/* ============================================================
   Zeinab Kamara — zeinabkamarahealth.com
   Design system per ZK_WebsiteReferenceBoard.md + Brand Guide
   Light mode: Warm Ivory bg / navy text / warm gold accents
   Dark mode:  Deep Navy bg / white text / gold accents
   Typography: Montserrat (primary, as the logo is drawn)
   ============================================================ */

:root {
  /* Brand palette (fixed) */
  --navy: #1B2A40;
  --navy-soft: #2E4057;
  --gold: #C6993D;
  --gold-bright: #E8C44D;
  --white: #FFFFFF;
  --bluegrey: #B0C4D8;
  --ivory: #F5F0E8;

  /* Light mode (default): ivory background */
  --bg: var(--ivory);
  --bg-raised: #FDFBF7;
  --text: var(--navy);
  --text-soft: #4A5A72;
  --accent: var(--gold);
  --accent-strong: #A87E2B;   /* gold deepened for small text on ivory (contrast) */
  --heading: var(--navy);
  --border: rgba(27, 42, 64, 0.14);
  --shadow: 0 2px 16px rgba(27, 42, 64, 0.07);
}

[data-theme="dark"] {
  --bg: var(--navy);
  --bg-raised: var(--navy-soft);
  --text: var(--white);
  --text-soft: var(--bluegrey);
  --accent: var(--gold-bright);
  --accent-strong: var(--gold-bright);
  --heading: var(--white);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* Respect device preference before JS runs / when no manual choice saved */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: var(--navy);
    --bg-raised: var(--navy-soft);
    --text: var(--white);
    --text-soft: var(--bluegrey);
    --accent: var(--gold-bright);
    --accent-strong: var(--gold-bright);
    --heading: var(--white);
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.wordmark {
  font-weight: 500; /* Montserrat Medium — as Bhavik drew the logo */
  letter-spacing: 0.18em;
  font-size: 1rem;
  color: var(--heading);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon { height: 1.65rem; width: auto; display: inline-block; }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links .btn { font-size: 0.9rem; }
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  width: 2.4rem; height: 2.4rem; cursor: pointer; color: var(--text);
  font-size: 1.05rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-btn {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.4rem 0.65rem; cursor: pointer; color: var(--text); font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
[data-theme="dark"] .btn-primary { background: var(--gold-bright); color: var(--navy); border-color: var(--gold-bright); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .btn-primary { background: var(--gold-bright); color: var(--navy); border-color: var(--gold-bright); }
}
[data-theme="light"] .btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-outline { border-color: var(--accent-strong); color: var(--accent-strong); background: transparent; }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
/* Cinematic touch: a slow, barely-there gold light drift behind the hero.
   Calm by design — "slow authority," not a hype site. */
.hero::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse 60% 45% at 78% 30%, rgba(198, 153, 61, 0.13), transparent 65%);
  animation: heroDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
[data-theme="dark"] .hero::before { background: radial-gradient(ellipse 60% 45% at 78% 30%, rgba(232, 196, 77, 0.10), transparent 65%); }
.hero .container { position: relative; }
@keyframes heroDrift {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.eyebrow {
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-weight: 800; /* Montserrat ExtraBold — header weight per brand guide */
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.18;
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.hero h1 .gold { color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 2rem; max-width: 34em; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.credline {
  font-size: 0.9rem; color: var(--text-soft);
  border-top: 2px solid var(--accent);
  display: inline-block; padding-top: 0.6rem;
  letter-spacing: 0.02em;
}
.hero-portrait {
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 0.9rem; text-align: center; padding: 1rem;
}
.hero-portrait.has-photo {
  padding: 0; overflow: hidden; aspect-ratio: 1/1; max-width: 420px;
  border-bottom: 3px solid var(--accent);
}
.hero-portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Light, reversible grade for candid family photos: settle the saturation,
   lift the haze slightly. Deliberately subtle — real life must stay real. */
.graded { filter: saturate(0.86) contrast(1.06) brightness(1.01); }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--heading);
  margin-bottom: 0.6rem;
}
.section-sub { color: var(--text-soft); margin-bottom: 2.2rem; max-width: 40em; }

/* ---------- Pillar hub cards (Huberman topic-grid pattern) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  color: var(--text);
  display: block;
}
.pillar-card:hover { text-decoration: none; border-color: var(--accent); }
.pillar-card .p-num {
  color: var(--accent-strong); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pillar-card h3 { font-weight: 700; font-size: 1.02rem; color: var(--heading); margin: 0.5rem 0 0.4rem; line-height: 1.35; }
.pillar-card p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; }

/* ---------- Story section (origin-story pattern) ---------- */
.story { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.story blockquote {
  font-size: 1.25rem; font-weight: 600; color: var(--heading);
  border-left: 3px solid var(--accent); padding-left: 1.2rem; line-height: 1.5;
  margin-bottom: 1.2rem;
}
.story p { color: var(--text-soft); margin-bottom: 1rem; }

/* ---------- Parallax quote band (fixed background, content scrolls over it) ---------- */
.parallax-band {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  color: var(--white);
  background-color: var(--navy);
  overflow: hidden;
}
/* The moving layer: taller than the band, shifted slower than scroll by JS */
.parallax-band .parallax-bg {
  position: absolute;
  left: 0; right: 0;
  top: -40%; height: 180%;
  background-image:
    linear-gradient(rgba(27, 42, 64, 0.5), rgba(27, 42, 64, 0.6)),
    url("parallax-bg-a.jpg"); /* A = darker, quote stays the focus. B reserved for the About page header. */
  background-size: cover;
  background-position: center;
  will-change: transform;
  pointer-events: none;
}
.parallax-band .container { position: relative; }
.parallax-band .quote {
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  line-height: 1.35;
  max-width: 22em;
  margin: 0 auto 0.9rem;
  color: var(--white);
}
.parallax-band .quote .gold { color: var(--gold-bright); }
.parallax-band .attribution {
  color: var(--bluegrey);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 820px) {
  .parallax-band { padding: 4.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-band .parallax-bg { transform: none !important; }
}

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.article-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem; box-shadow: var(--shadow); color: var(--text); display: block;
}
.article-card:hover { text-decoration: none; border-color: var(--accent); }
.article-card .a-tag { color: var(--accent-strong); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.article-card h3 { font-weight: 700; font-size: 1.05rem; color: var(--heading); margin: 0.5rem 0; line-height: 1.4; }
.article-card p { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Email capture (inline only — never a popup) ---------- */
.capture {
  background: var(--navy); color: var(--white);
  border-radius: 16px; padding: 2.6rem 2rem; text-align: center;
}
[data-theme="dark"] .capture { background: var(--navy-soft); }
.capture h2 { font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--white); margin-bottom: 0.6rem; }
.capture h2 .gold { color: var(--gold-bright); }
.capture p { color: var(--bluegrey); max-width: 36em; margin: 0 auto 1.6rem; }
.capture .kit-embed {
  /* Kit form embeds here at go-live; placeholder for now */
  max-width: 460px; margin: 0 auto;
  border: 1.5px dashed rgba(255,255,255,0.35); border-radius: 10px;
  padding: 1.4rem; color: var(--bluegrey); font-size: 0.9rem;
}

/* ---------- Sub-page hero ---------- */
.page-hero { padding: 3.5rem 0 2.5rem; }
.page-hero h1 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  color: var(--heading);
  margin: 0.4rem 0 0.9rem;
}
.page-hero .sub { color: var(--text-soft); max-width: 42em; font-size: 1.08rem; }
.page-hero.with-image {
  position: relative;
  padding: 6rem 0 5rem;
  color: var(--white);
  overflow: hidden;
}
.page-hero.with-image .hero-image-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  pointer-events: none;
}
.page-hero.with-image .hero-image-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(27,42,64,0.55), rgba(27,42,64,0.72));
}
.page-hero.with-image .container { position: relative; }
.page-hero.with-image h1, .page-hero.with-image .eyebrow { color: var(--white); }
.page-hero.with-image .eyebrow { color: var(--gold-bright); }
.page-hero.with-image .sub { color: var(--bluegrey); }

.breadcrumbs { font-size: 0.85rem; color: var(--text-soft); padding-top: 1.4rem; }
.breadcrumbs a { color: var(--text-soft); }

/* ---------- Article template ---------- */
.article-body { max-width: 720px; }
.article-body h2 { font-weight: 700; font-size: 1.35rem; color: var(--heading); margin: 2.2rem 0 0.8rem; line-height: 1.35; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.3rem; }
.article-meta { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.8rem; }
.takeaways {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin: 1.8rem 0 2.2rem;
}
.takeaways h2 { margin: 0 0 0.7rem; font-size: 1.05rem; font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: 0.08em; }
.takeaways ul { margin: 0 0 0 1.2rem; }
.takeaways li { margin-bottom: 0.45rem; }
.faq details {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-raised);
  padding: 0.9rem 1.2rem; margin-bottom: 0.7rem;
}
.faq summary { font-weight: 600; color: var(--heading); cursor: pointer; }
.faq details p { margin: 0.7rem 0 0; color: var(--text-soft); }
.refs { font-size: 0.85rem; color: var(--text-soft); }
.refs ol { margin-left: 1.3rem; }
.refs li { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.assoc-note {
  font-size: 0.85rem; color: var(--text-soft);
  border-left: 3px solid var(--accent); padding-left: 0.9rem; margin: 1rem 0;
}

/* ---------- Empty state (honest placeholder, no fake content) ---------- */
.empty-state {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Framework stage list ---------- */
.stage-list { list-style: none; margin: 1.5rem 0; counter-reset: stage; }
.stage-list li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem 1.2rem 3.6rem;
  margin-bottom: 0.8rem;
  position: relative;
  counter-increment: stage;
}
.stage-list li::before {
  content: counter(stage);
  position: absolute; left: 1.2rem; top: 1.15rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: var(--navy);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.stage-list strong { color: var(--heading); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0; font-size: 0.9rem; color: var(--text-soft);
}
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.disclaimer { margin-top: 1.6rem; font-size: 0.8rem; max-width: 60em; }

/* ---------- Responsive: mobile-first collapses ---------- */
@media (max-width: 820px) {
  .hero { padding: 2.8rem 0 2.2rem; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-portrait { max-width: 320px; aspect-ratio: 1/1; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem 1.25rem; gap: 1rem; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
}
