/* ===== SHARED STYLES — HealthCalc4Me ===== */
:root {
  --bg: #f5f6f8;
  --bg2: #eceef2;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: #f9fafb;
  --border: #e2e5ec;
  --border2: #c8cdd8;
  --accent: #1a73e8;
  --accent-light: #e8f0fd;
  --accent2: #0f9d58;
  --accent2-light: #e6f4ea;
  --accent3: #c62828;
  --text: #1c1e26;
  --text2: #3d4257;
  --muted: #7a7f96;
  --danger: #c62828;
  --shadow: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,115,232,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #1a73e8, #0f9d58, #1a73e8);
  z-index: 200;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 3px;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-light); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); font-weight: 500; }

/* ── QUICK ACCESS CALCULATOR BAR ── */
.quick-calcs {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  position: relative;
  z-index: 99;
  box-shadow: var(--shadow);
}
.quick-calcs-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.quick-calcs-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
  flex-shrink: 0;
  font-weight: 500;
}
.qc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text2);
  text-decoration: none;
  background: white;
  white-space: nowrap;
  transition: all 0.18s;
  font-weight: 500;
}
.qc-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}
.qc-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.qc-icon { font-size: 14px; }

/* ── LAYOUT ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}
.wrapper-wide {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 40px;
  animation: fadeDown 0.5s ease both;
}
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--text);
}
h1 span { color: var(--accent); }
h1 span.green { color: var(--accent2); }
.lead {
  color: var(--text2);
  font-size: 17px;
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
}
.last-updated {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  letter-spacing: -0.3px;
}
.section h3 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-top: 20px;
  margin-bottom: 8px;
}
.section p {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 13px;
  line-height: 1.85;
}
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol {
  color: var(--text2);
  font-size: 16px;
  padding-left: 20px;
  margin-bottom: 13px;
  line-height: 1.85;
}
.section ul li, .section ol li { margin-bottom: 4px; }
.section a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(26,115,232,0.3); transition: border-color 0.2s; }
.section a:hover { border-bottom-color: var(--accent); }

/* ── AD PLACEHOLDER ── */
.ad-placeholder {
  background: var(--card2);
  border: 1.5px dashed var(--border2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.footer-brand .brand-name span { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 240px; }
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(14px)}  to{opacity:1;transform:translateY(0)} }
@keyframes spin     { to{transform:rotate(360deg)} }

/* ── STAGGER ── */
.section:nth-child(2) { animation-delay:0.05s }
.section:nth-child(3) { animation-delay:0.1s }
.section:nth-child(4) { animation-delay:0.15s }
.section:nth-child(5) { animation-delay:0.2s }
.section:nth-child(6) { animation-delay:0.25s }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wrapper, .wrapper-wide { padding: 28px 16px 72px; }
  .section, .card { padding: 20px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  /* quick-calcs wraps naturally on mobile */
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
