/* ============================================================
   Dr. Shivangini Gupta — Design System
   Editorial, warm, premium women's health
   ============================================================ */

:root {
  /* ——— Color: clean, ivory-led, dusty pink as accent only ——— */
  --ivory:        #fbf8f4;
  --paper:        #ffffff;
  --cream:        #f6f1ea;   /* used very sparingly */
  --blush:        #f3ece5;
  --lavender:     #efeaef;
  --sage:         #e2e5dc;

  --pink-50:      #f7ece8;
  --pink-100:    #ecd5cd;
  --pink-200:    #dfb5a9;
  --pink-400:    #cf9d96;
  --pink-600:    #a6736b;
  --pink-700:    #7f4940;

  --ink:         #1f1a1d;       /* deeper, more credible */
  --ink-80:      #3d3438;
  --ink-60:      #6a5e64;
  --ink-40:      #9a9095;
  --ink-20:      #d4cdd0;
  --hairline:    #ebe5dd;
  --hairline-2:  #e2dad0;

  --bg:          var(--ivory);
  --surface:     #ffffff;
  --surface-2:   var(--cream);

  /* primary accent — dusty pink, used subtly */
  --accent:        var(--pink-400);
  --accent-soft:   var(--pink-50);
  --accent-deep:   var(--pink-700);
  --accent-text:   #ffffff;

  --tone:          1;
  --density:       1;

  /* Type — editorial, serious, medically credible */
  --f-display: "Source Serif 4", "Source Serif Pro", "Cormorant Garamond", Georgia, serif;
  --f-body:    "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Scale (fluid) — reduced, calmer, more classic */
  --t-xs:   clamp(10.5px, 0.7vw, 11.5px);
  --t-sm:   clamp(12.5px, 0.82vw, 13.5px);
  --t-base: clamp(14px, 0.92vw, 15.5px);
  --t-md:   clamp(15.5px, 1vw, 17px);
  --t-lg:   clamp(17.5px, 1.2vw, 20px);
  --t-xl:   clamp(20px, 1.45vw, 25px);
  --t-2xl:  clamp(26px, 2vw, 34px);
  --t-3xl:  clamp(32px, 2.9vw, 46px);
  --t-4xl:  clamp(42px, 4.6vw, 68px);

  /* Radius — subtle, refined */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 999px;

  --sh-1: 0 1px 2px rgba(31,26,29,.03), 0 0 0 1px rgba(31,26,29,.04);
  --sh-2: 0 6px 24px -10px rgba(31,26,29,.08), 0 0 0 1px rgba(31,26,29,.04);
  --sh-3: 0 24px 60px -24px rgba(31,26,29,.14), 0 0 0 1px rgba(31,26,29,.04);
}

/* ——— Base ——— */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-text); }

/* ——— Typography utilities ——— */
.display { font-family: var(--f-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.008em; }
.display em, .italic { font-style: italic; font-family: var(--f-display); }
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}
.lede { font-size: var(--t-md); line-height: 1.6; color: var(--ink-80); max-width: 56ch; }
.muted { color: var(--ink-60); }
.script { font-family: "Caveat", "Bradley Hand", cursive; }

h1,h2,h3,h4,h5 { margin: 0; font-weight: 400; font-family: var(--f-display); line-height: 1.1; letter-spacing: -0.008em; }
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
p  { margin: 0 0 0.7em 0; }

/* ——— Layout — more generous, breathing whitespace ——— */
.wrap     { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 64px); }
.wrap-tight { max-width: 980px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 64px); }
section   { padding: calc(var(--density) * clamp(96px, 12vw, 180px)) 0; }
.hairline { height: 1px; background: var(--hairline); border: 0; }

/* ——— Buttons — quieter, more refined ——— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--ivory); }
.btn.primary:hover { background: var(--ink-80); }
.btn.accent  { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost   { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn.ghost:hover { background: transparent; color: var(--accent-deep); border-color: var(--accent-deep); }
.btn.light   { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn .arrow  { display: inline-block; transition: transform .25s ease; font-size: 0.95em;}
.btn:hover .arrow { transform: translateX(3px); }

/* ——— Cards — quieter ——— */
.card {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  padding: clamp(22px, 2.2vw, 32px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-1px); border-color: var(--ink-20); }
.card.blush { background: var(--surface); }
.card.lav   { background: var(--surface); }
.card.sage  { background: var(--surface); }
.card.ink   { background: var(--ink); color: var(--ivory); }

/* ============================================================
   STICKY NAV — consolidated (replaces per-page nav CSS)
   ============================================================ */

/* ——— Base nav: dark accent, sticky ——— */
.site-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: #7F4940 !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter: none !important;
  transition: box-shadow 0.25s ease;
}
.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4.5vw, 64px);
  max-width: 1320px; margin: 0 auto;
  gap: 24px;
}
.site-nav .brand {
  display: flex; align-items: center; gap: 0;
  color: #fff !important;
  font-family: var(--f-display);
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 400;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.site-nav .brand span { color: inherit; }
.site-nav .brand .mark { display: none; }

/* Desktop nav links */
.site-nav ul.nav-links {
  display: flex; gap: 26px; list-style: none; padding: 0; margin: 0;
  font-size: var(--t-sm);
}
.site-nav .inner ul.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
  position: relative;
  font-weight: 400;
  letter-spacing: .005em;
  transition: color .2s;
}
.site-nav .inner ul.nav-links a:hover,
.site-nav .inner ul.nav-links a.active {
  color: #fff;
}
.site-nav .inner ul.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
}

/* CTA buttons */
.btn.nav-cta-outline {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn.nav-cta-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}
.btn.nav-cta-solid {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.85);
  color: #7F4940;
  background: #fff;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn.nav-cta-solid:hover { background: rgba(255,255,255,0.88); }

/* Hamburger button — hidden desktop */
.menu-btn {
  display: none;
}

@media (min-width: 961px) {
  .menu-close-btn { display: none; }
  .drawer-ctas    { display: none; }
}

/* ——— Mobile ——— */
@media (max-width: 960px) {
  .site-nav ul.nav-links { display: none !important; }
  .site-nav .end > .btn.nav-cta-outline,
  .site-nav .end > .btn.nav-cta-solid { display: none !important; }

  .menu-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.10);
    padding: 0;
    flex-shrink: 0;
    z-index: 51;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .hamburger-icon span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background-color: #ffffff;
    flex-shrink: 0;
  }
}

/* ——— Mobile drawer ——— */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #7F4940;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 960px) {
  .mobile-drawer { display: flex; }
}

.menu-close-btn {
  position: fixed;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer-nav {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 100px 32px 60px;
}
.mobile-drawer-nav > a {
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}
.mobile-drawer-nav > a.active,
.mobile-drawer-nav > a:hover { color: #ffffff; }
.drawer-divider {
  width: min(220px, 100%);
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin: 16px 0 8px;
}
.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(240px, 100%);
}
.drawer-cta-primary {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #7F4940;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.drawer-cta-primary:hover { background: rgba(255,255,255,0.88); }
.drawer-cta-ghost {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-family: var(--f-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.38);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.drawer-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.68); }
/* ============================================================
   END STICKY NAV
   ============================================================ */



/* ——— Footer — quieter ——— */
.site-foot {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(80px, 9vw, 120px) 0 36px;
  margin-top: 0;
}
.site-foot .grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
.site-foot h5 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing:.18em; text-transform: uppercase; color: color-mix(in oklch, var(--ivory) 50%, transparent); margin-bottom: 18px;}
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-sm); }
.site-foot ul a { color: color-mix(in oklch, var(--ivory) 75%, transparent); }
.site-foot ul a:hover { color: var(--ivory); }
.site-foot .brandblock .mark { background: var(--ivory); color: var(--ink); }
.site-foot .legal {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklch, var(--ivory) 14%, transparent);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  font-size: var(--t-xs); color: color-mix(in oklch, var(--ivory) 50%, transparent);
}
@media (max-width: 760px) {
  .site-foot .grid { grid-template-columns: 1fr 1fr; }
}

/* ——— Designer credit — subtle, intentional ——— */
.legal-design-credit {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.design-credit-inner {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ivory) 28%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.design-credit-link {
  color: color-mix(in oklch, var(--ivory) 38%, transparent);
  text-decoration: none;
  transition: color .25s ease, letter-spacing .25s ease;
  position: relative;
}
.design-credit-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in oklch, var(--ivory) 28%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease, background .25s ease;
}
.design-credit-link:hover {
  color: color-mix(in oklch, var(--ivory) 68%, transparent);
  letter-spacing: .16em;
}
.design-credit-link:hover::after {
  transform: scaleX(1);
  background: color-mix(in oklch, var(--ivory) 40%, transparent);
}

/* ——— Portrait placeholder — neutral, refined ——— */
.portrait {
  position: relative;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ink) 6%, var(--cream)) 0%,
      color-mix(in oklch, var(--ink) 3%, var(--cream)) 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
}
.portrait::after {
  content:""; position:absolute; inset: 14px;
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  border-radius: calc(var(--r-md) - 4px);
  pointer-events: none;
}
.portrait .meta {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.portrait .meta .tag {
  background: rgba(255,255,255,.9);
  padding: 4px 8px;
  border-radius: var(--r-xs);
}
.portrait .crop {
  position: absolute; inset: 0; pointer-events: none;
}
.portrait .crop::before, .portrait .crop::after {
  content:""; position: absolute;
  background: rgba(31,26,29,.18);
}
.portrait .crop::before { left: 33.3%; top: 0; bottom: 0; width: 1px; }
.portrait .crop::after  { top: 33.3%; left: 0; right: 0; height: 1px; }
.portrait .focal {
  position: absolute; top: 36%; left: 42%;
  width: 32px; height: 32px;
  border: 1px solid rgba(31,26,29,.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.portrait .focal::after { display: none; }
.portrait .label {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: rgba(255,255,255,.9);
  padding: 4px 8px;
  border-radius: var(--r-xs);
}

/* ——— Pill — minimal, mono micro-label ——— */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-60);
  border: 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  width: max-content;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ——— Reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ——— Tweak panel mount ——— */
#tweaks-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; }

/* ——— Utility ——— */
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; }
