/* ==========================================================================
   Nigella Health — styles.css
   Mobile-first | WCAG 2.1 AA | Dark mode | CSS custom properties
   ========================================================================== */


/* ==========================================================================
   1. CUSTOM PROPERTIES (Light Mode)
   ========================================================================== */
:root {
  /* — Brand Colours — */
  --clr-forest:        #2D4A3E;   /* deep botanical green */
  --clr-forest-dark:   #1E3329;   /* darker forest for hero */
  --clr-forest-deeper: #162820;
  --clr-sage:          #4A7A6A;   /* medium sage */
  --clr-sage-light:    #7BAA96;   /* lighter sage */
  --clr-sage-mist:     #D4E8E1;   /* very pale sage */

  --clr-lavender:      #7B72A4;   /* mid purple-lavender */
  --clr-lavender-soft: #A89ECE;   /* softer lavender */
  --clr-lavender-mist: #EDE9F5;   /* near-white lavender bg */
  --clr-lavender-pale: #F5F3FA;

  --clr-earth:         #B8845A;   /* warm terracotta */
  --clr-earth-light:   #D4A880;
  --clr-earth-pale:    #F7EDE3;

  --clr-cream:         #F7F3EE;   /* warm off-white */
  --clr-white:         #FFFFFF;

  /* — Text — */
  --clr-text:          #1C2421;
  --clr-text-medium:   #3A4A46;
  --clr-text-light:    #5E7470;
  --clr-text-muted:    #8FA09A;

  /* — Borders — */
  --clr-border:        #D5E0DB;
  --clr-border-light:  #E8F0ED;

  /* — Surfaces — */
  --clr-bg:            var(--clr-white);
  --clr-surface:       var(--clr-cream);

  /* — Typography — */
  --font-serif:  Georgia, 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --font-sans:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* — Fluid Type Scale — */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 3vw, 2.25rem);
  --text-4xl:  clamp(2rem, 4vw, 3rem);
  --text-5xl:  clamp(2.5rem, 5vw, 4rem);
  --text-hero: clamp(2.6rem, 5.5vw, 4.75rem);

  /* — Spacing — */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* — Layout — */
  --max-width:      1200px;
  --max-width-text: 700px;
  --nav-height:     72px;
  --section-py:     clamp(4rem, 8vw, 7rem);

  /* — Radii — */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-xs: 0 1px 3px rgba(28,36,33,.06);
  --shadow-sm: 0 2px 8px rgba(28,36,33,.08);
  --shadow-md: 0 4px 20px rgba(28,36,33,.10);
  --shadow-lg: 0 8px 40px rgba(28,36,33,.13);

  /* — Transitions — */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:    150ms;
  --t-base:    250ms;
  --t-slow:    400ms;

  /* — Z-index — */
  --z-nav:     100;
  --z-overlay: 200;
}


/* ==========================================================================
   2. DARK MODE
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --clr-forest:        #7ABBA4;
    --clr-forest-dark:   #0F1A16;
    --clr-forest-deeper: #0A1210;
    --clr-sage:          #5A9A85;
    --clr-sage-light:    #92C8B5;
    --clr-sage-mist:     #1A2922;

    --clr-lavender:      #A89ECE;
    --clr-lavender-soft: #C4BCDF;
    --clr-lavender-mist: #1C1A26;
    --clr-lavender-pale: #17151F;

    --clr-earth:         #C9956A;
    --clr-earth-light:   #D4A880;
    --clr-earth-pale:    #1E1610;

    --clr-cream:         #111816;
    --clr-white:         #1B2220;

    --clr-text:          #EDF1EF;
    --clr-text-medium:   #B8CBC5;
    --clr-text-light:    #88A49D;
    --clr-text-muted:    #607A74;

    --clr-border:        #273330;
    --clr-border-light:  #1F2A27;

    --clr-bg:      #111816;
    --clr-surface: #1B2220;

    --shadow-xs: 0 1px 3px rgba(0,0,0,.25);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.30);
    --shadow-md: 0 4px 20px rgba(0,0,0,.38);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.45);
  }
}


/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.25;
  color: var(--clr-text);
}

p {
  max-width: 68ch;
}

/* ==========================================================================
   4. ACCESSIBILITY
   ========================================================================== */

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-nav) + 10);
  padding: var(--space-3) var(--space-6);
  background: var(--clr-forest);
  color: var(--clr-white);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--clr-earth);
  outline-offset: 2px;
}

/* Focus ring — visible, branded */
:focus-visible {
  outline: 3px solid var(--clr-earth);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove outline when not keyboard navigating */
:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   5. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-10); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-12); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-sage);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--clr-text);
  margin-bottom: var(--space-5);
}

.section-heading em {
  color: var(--clr-sage);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--clr-text-light);
  line-height: 1.75;
  max-width: var(--max-width-text);
}

/* Fade-in animation class (JS adds .is-visible) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }
.fade-up:nth-child(5) { transition-delay: 320ms; }
.fade-up:nth-child(6) { transition-delay: 400ms; }
.fade-up:nth-child(7) { transition-delay: 480ms; }


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — forest green */
.btn--primary {
  background-color: var(--clr-forest);
  color: var(--clr-white);
  box-shadow: 0 2px 12px rgba(45,74,62,.25);
}

.btn--primary:hover {
  background-color: var(--clr-forest-dark);
  box-shadow: 0 4px 20px rgba(45,74,62,.35);
}

/* Ghost — outlined */
.btn--ghost {
  background-color: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}

.btn--ghost:hover {
  border-color: var(--clr-sage);
  color: var(--clr-forest);
}

/* Ghost on dark backgrounds */
.btn--ghost-light {
  background-color: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.35);
}

.btn--ghost-light:hover {
  background-color: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--clr-white);
}

/* Earth accent */
.btn--earth {
  background-color: var(--clr-earth);
  color: var(--clr-white);
  box-shadow: 0 2px 12px rgba(184,132,90,.25);
}

.btn--earth:hover {
  background-color: #A5743F;
  box-shadow: 0 4px 20px rgba(184,132,90,.35);
}

/* Large variant */
.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}


/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              backdrop-filter var(--t-base) var(--ease);
}

/* Scrolled state — added by JS */
.site-header.is-scrolled {
  background-color: rgba(247,243,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border), var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .site-header.is-scrolled {
    background-color: rgba(17,24,22,.92);
  }
}

.nav {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav { padding-inline: var(--space-10); }
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: #ffffff; /* always white on dark hero bg */
  line-height: 1.1;
  transition: color var(--t-base) var(--ease);
}

.nav__logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--t-base) var(--ease);
}

.site-header.is-scrolled .nav__logo-text {
  color: var(--clr-text);
}

.site-header.is-scrolled .nav__logo-sub {
  color: var(--clr-text-muted);
}

/* Nav links (desktop) */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-md);
  transition: color var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--clr-white);
  background-color: rgba(255,255,255,.1);
}

.site-header.is-scrolled .nav__link {
  color: var(--clr-text-medium);
}

.site-header.is-scrolled .nav__link:hover {
  color: var(--clr-forest);
  background-color: var(--clr-sage-mist);
}

/* Nav actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__cta {
  display: none;
}

@media (min-width: 768px) {
  .nav__cta { display: inline-flex; }
}

.nav__cta--default {
  background-color: rgba(255,255,255,.15);
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: var(--space-2) var(--space-6);
  min-height: 40px;
  font-size: var(--text-sm);
}

.nav__cta--default:hover {
  background-color: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}

.site-header.is-scrolled .nav__cta--default {
  background-color: var(--clr-forest);
  color: var(--clr-white);
  border-color: var(--clr-forest);
}

.site-header.is-scrolled .nav__cta--default:hover {
  background-color: var(--clr-forest-dark);
  border-color: var(--clr-forest-dark);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: background-color var(--t-base) var(--ease);
}

.nav__hamburger:hover {
  background-color: rgba(255,255,255,.1);
}

.site-header.is-scrolled .nav__hamburger:hover {
  background-color: var(--clr-sage-mist);
}

@media (min-width: 1024px) {
  .nav__hamburger { display: none; }
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
}

.site-header.is-scrolled .nav__hamburger-line {
  background-color: var(--clr-text);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--clr-forest-deeper);
  z-index: calc(var(--z-nav) - 1);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
}

.nav__mobile.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .nav__mobile { display: none; }
}

.nav__mobile-link {
  display: block;
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-md);
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.nav__mobile-link:hover {
  color: var(--clr-white);
  background-color: rgba(255,255,255,.08);
}

.nav__mobile-cta {
  margin-top: var(--space-6);
  text-align: center;
}

.nav__mobile-cta .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-4);
}


/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--clr-forest-deeper);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Organic background gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 30%, rgba(74,122,106,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(123,114,164,.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(184,132,90,.08) 0%, transparent 50%),
    linear-gradient(160deg, #1E3329 0%, #162820 50%, #0F1D18 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--section-py);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
  }
}

.hero__content {
  max-width: 640px;
}

/* Virtual badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(123,170,150,.18);
  border: 1px solid rgba(123,170,150,.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-sage-light);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--clr-sage-light);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

.hero__heading {
  font-size: var(--text-hero);
  color: #ffffff;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__heading em {
  font-style: italic;
  color: #C8E8D8; /* high-contrast light sage — ≥10:1 against dark hero bg */
}

.hero__subheading {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Botanical illustration */
.hero__illustration {
  display: none;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  opacity: .9;
}

@media (min-width: 1024px) {
  .hero__illustration { display: block; }
}

@media (min-width: 1280px) {
  .hero__illustration {
    width: 500px;
    height: 500px;
  }
}

/* Wave separator */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: auto;
}


/* ==========================================================================
   9. SECTION BASE
   ========================================================================== */
.section {
  padding-block: var(--section-py);
}

.section--cream {
  background-color: var(--clr-surface);
}

.section--lavender {
  background-color: var(--clr-lavender-mist);
}

@media (prefers-color-scheme: dark) {
  .section--lavender {
    background-color: var(--clr-lavender-mist);
  }
}

.section--forest {
  background-color: var(--clr-forest-deeper);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header--centered .section-intro {
  margin-inline: auto;
}


/* ==========================================================================
   10. PHILOSOPHY
   ========================================================================== */
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .philosophy__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.philosophy__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--clr-sage);
}

.philosophy__card h3 {
  font-size: var(--text-xl);
  color: var(--clr-text);
}

.philosophy__card p {
  color: var(--clr-text-light);
  font-size: var(--text-base);
  line-height: 1.75;
}

.philosophy__aside {
  margin-top: var(--space-16);
  padding: var(--space-8) var(--space-8);
  background: linear-gradient(135deg, var(--clr-sage-mist) 0%, var(--clr-lavender-mist) 100%);
  border-left: 3px solid var(--clr-sage);
  border-radius: var(--radius-lg);
}

@media (prefers-color-scheme: dark) {
  .philosophy__aside {
    background: linear-gradient(135deg, rgba(26,41,34,.8) 0%, rgba(28,26,38,.8) 100%);
  }
}

.philosophy__aside p {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  color: var(--clr-text-medium);
  line-height: 1.65;
  font-style: italic;
  max-width: 70ch;
}


/* ==========================================================================
   11. SERVICES
   ========================================================================== */
.services__groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services__group {
  border-bottom: 1px solid var(--clr-border);
}

.services__group-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding-bottom: var(--space-4);
  padding-top: var(--space-4);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.services__group-heading::-webkit-details-marker { display: none; }

.services__group-heading:hover {
  color: var(--clr-text);
}

.services__group-icon {
  width: 20px;
  height: 20px;
  color: var(--clr-sage);
  flex-shrink: 0;
}

.services__group-chevron {
  margin-left: auto;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.services__group[open] .services__group-chevron {
  transform: rotate(180deg);
}

.services__group[open] .services__grid {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-sage-mist);
  transform: translateY(-2px);
}

.service-card__accent {
  width: 32px;
  height: 3px;
  background-color: var(--clr-sage);
  border-radius: var(--radius-full);
}

.service-card--hormonal .service-card__accent { background-color: var(--clr-lavender); }
.service-card--fertility .service-card__accent { background-color: var(--clr-earth); }
.service-card--thyroid   .service-card__accent { background-color: var(--clr-sage); }
.service-card--mind      .service-card__accent { background-color: var(--clr-lavender-soft); }
.service-card--skin      .service-card__accent { background-color: var(--clr-earth-light); }
.service-card--immune    .service-card__accent { background-color: var(--clr-sage-light); }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--clr-text);
  line-height: 1.3;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.7;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-sage);
  margin-top: auto;
  padding-top: var(--space-2);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.service-card__link:hover {
  color: var(--clr-forest);
  gap: var(--space-3);
}


/* ==========================================================================
   12. ABOUT
   ========================================================================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr 400px;
    gap: var(--space-20);
  }
}

.about__content .section-heading {
  margin-bottom: var(--space-6);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about__body p {
  color: var(--clr-text-medium);
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 62ch;
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--clr-border);
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.credential-item__icon {
  width: 20px;
  height: 20px;
  color: var(--clr-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.credential-item__text {
  font-size: var(--text-sm);
  color: var(--clr-text-medium);
  line-height: 1.5;
}

.credential-item__text strong {
  font-weight: 600;
  color: var(--clr-text);
}

/* Botanical portrait placeholder */
.about__portrait {
  position: relative;
}

.about__portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, var(--clr-sage-mist) 0%, var(--clr-lavender-mist) 100%);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .about__portrait-frame {
    background: linear-gradient(145deg, #1A2922 0%, #1C1A26 100%);
  }
}

.about__portrait-botanical {
  width: 80%;
  height: 80%;
  opacity: .7;
}

.about__portrait-tag {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background-color: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

@media (prefers-color-scheme: dark) {
  .about__portrait-tag {
    background-color: rgba(27,34,32,.92);
  }
}

.about__portrait-tag strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--clr-text);
}

.about__portrait-tag span {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
}

/* Decorative ring behind portrait */
.about__portrait::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 1.5px solid var(--clr-sage-mist);
  border-radius: var(--radius-xl);
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .about__portrait::before {
    border-color: var(--clr-sage-mist);
  }
}


/* ==========================================================================
   13. MODALITIES
   ========================================================================== */
.modalities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .modalities__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .modalities__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Last row: 3 items centred for a 4+3 grid */
@media (min-width: 1024px) {
  .modality-card:nth-child(5) { grid-column: 1 / 2; }
  .modality-card:nth-child(5),
  .modality-card:nth-child(6),
  .modality-card:nth-child(7) {
    /* let them flow naturally; JS/CSS override not needed */
  }
}

.modality-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.modality-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-border);
}

.modality-card__icon {
  width: 40px;
  height: 40px;
  color: var(--clr-forest);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .modality-card__icon { color: var(--clr-sage-light); }
}

.modality-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--clr-text);
}

.modality-card p {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.7;
}


/* ==========================================================================
   14. HOW IT WORKS
   ========================================================================== */
.how__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
  position: relative;
}

@media (min-width: 768px) {
  .how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* Connecting line on desktop */
@media (min-width: 768px) {
  .how__steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(33.333% - 16px);
    right: calc(33.333% - 16px);
    height: 1px;
    background: linear-gradient(90deg, var(--clr-sage-mist), var(--clr-sage-light), var(--clr-sage-mist));
    z-index: 0;
  }
}

.how__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-8);
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  z-index: 1;
}

@media (min-width: 768px) {
  .how__step { align-items: center; text-align: center; }
}

.how__step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--clr-forest);
  color: var(--clr-white);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px var(--clr-sage-mist);
}

@media (prefers-color-scheme: dark) {
  .how__step-number {
    box-shadow: 0 0 0 8px rgba(26,41,34,.6);
  }
}

.how__step h3 {
  font-size: var(--text-xl);
  color: var(--clr-text);
}

.how__step p {
  font-size: var(--text-base);
  color: var(--clr-text-light);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .how__step p { margin-inline: auto; }
}


/* ==========================================================================
   15. FAQ
   ========================================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--clr-bg);
  transition: box-shadow var(--t-base) var(--ease);
}

.faq-item.is-open {
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-border);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6);
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--clr-text);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 64px;
  transition: background-color var(--t-fast) var(--ease);
}

.faq-item__trigger:hover {
  background-color: var(--clr-surface);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--clr-sage-mist);
  color: var(--clr-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background-color: var(--clr-sage);
  color: var(--clr-white);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease);
}

.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}

.faq-item__body-inner {
  overflow: hidden;
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--clr-text-medium);
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 70ch;
}


/* ==========================================================================
   17. CTA BANNER
   ========================================================================== */
.cta-banner {
  background-color: var(--clr-forest-deeper);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(74,122,106,.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(123,114,164,.15) 0%, transparent 50%);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}

.cta-banner__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-sage-light);
}

.cta-banner__heading {
  font-size: var(--text-5xl);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.cta-banner__heading em {
  font-style: italic;
  color: var(--clr-sage-light);
}

.cta-banner__body {
  color: rgba(255,255,255,.65);
  font-size: var(--text-lg);
  max-width: 52ch;
  line-height: 1.75;
}

.cta-banner__body strong {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta-banner__disclaimer {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
  margin-top: var(--space-4);
}

/* Botanical decoration */
.cta-banner__botanical {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 280px;
  height: 280px;
  opacity: .12;
  pointer-events: none;
}

@media (min-width: 1280px) {
  .cta-banner__botanical { width: 360px; height: 360px; }
}


/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--clr-forest-deeper);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: var(--space-16) var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: #ffffff; /* always white — footer bg is always dark */
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 32ch;
}

.footer__affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
}

.footer__col-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links--contact {
  gap: var(--space-5);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--t-fast) var(--ease);
}

.footer__link--cta {
  color: var(--clr-sage-light);
}

.footer__link:hover {
  color: var(--clr-white);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
}

.footer__contact-item strong {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.35);
}

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.3);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  transition: color var(--t-fast) var(--ease);
}

.footer__legal a:hover {
  color: rgba(255,255,255,.6);
}

.footer__land-acknowledgment {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background-color: rgba(123,170,150,.07);
  border: 1px solid rgba(123,170,150,.14);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  line-height: 1.8;
}

.footer__land-acknowledgment strong {
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer__disclaimer {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(255,255,255,.04);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.3);
  line-height: 1.6;
}


/* ==========================================================================
   19. WAVE SEPARATORS
   ========================================================================== */
.wave-top,
.wave-bottom {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.wave-top svg,
.wave-bottom svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ==========================================================================
   20. PRINT
   ========================================================================== */
@media print {
  .site-header,
  .nav__hamburger,
  .hero__illustration,
  .cta-banner__botanical { display: none; }

  body { color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; }
}
