/* A Natural Path To Health — design system
   Brand: orange #F98B3C · charcoal #3a3a3a · logotype gray #6D6D6D · cool paper #f3f8fb
   Type: Bricolage Grotesque (display) · Albert Sans (body) */

:root {
  /* color — OKLCH, neutrals tinted toward brand orange (hue ~55) */
  --accent: oklch(0.72 0.155 55);            /* ≈ #F98B3C — the brand orange */
  --accent-hover: oklch(0.67 0.155 52);      /* button hover, still brand-true */
  --accent-deep: oklch(0.55 0.14 50);        /* link/label text — 4.9:1 on paper, 4.6:1 on tint */
  --accent-tint: oklch(0.965 0.018 60);      /* warm wash sections */
  --ink: oklch(0.28 0.008 55);               /* headings, near-charcoal warm */
  --ink-soft: oklch(0.46 0.006 55);          /* body text */
  --ink-faint: oklch(0.55 0.005 55);         /* captions, meta — 4.65:1 on paper */
  --paper: oklch(0.985 0.004 75);            /* page bg, warm off-white */
  --paper-cool: oklch(0.972 0.008 230);      /* ≈ #f3f8fb, clinical/info blocks */
  --line: oklch(0.90 0.008 60);              /* hairlines */
  --footer-bg: oklch(0.26 0.012 55);
  --footer-ink: oklch(0.88 0.01 65);

  /* space — 4pt scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* type */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.3rem;
  --text-xl: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);

  --radius: 10px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.01 55 / 0.06), 0 2px 8px oklch(0.3 0.01 55 / 0.05);
  --shadow-md: 0 2px 6px oklch(0.3 0.01 55 / 0.07), 0 10px 28px oklch(0.3 0.01 55 / 0.09);
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 var(--space-md); max-width: 70ch; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* kicker — small orange label above headings */
.kicker {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-sm);
}

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
/* dark ink on the true brand orange = 5.6:1; white on it would be 2.6:1 and fail WCAG AA */
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
/* on any dark band the ghost button must invert, or it renders dark-on-dark */
.section-dark .btn-ghost, .cta-band .btn-ghost { color: var(--footer-ink); border-color: oklch(0.45 0.01 55); }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(0.985 0.004 75 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); padding-block: var(--space-sm);
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--text-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-deep); }
.nav .btn { padding: 0.55rem 1.2rem; font-size: var(--text-sm); }
.nav-toggle { display: none; }

/* dropdown */
.nav .has-menu { position: relative; }
.nav .has-menu > a::after { content: " ▾"; font-size: 0.7em; color: var(--ink-faint); }
.nav .menu {
  position: absolute; top: calc(100% + 10px); left: -0.75rem;
  min-width: 15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-xs);
  display: none;
  flex-direction: column;
}
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu { display: flex; }
.nav .menu a { padding: 0.45rem 0.75rem; border-radius: 6px; }
.nav .menu a:hover { background: var(--accent-tint); }

/* sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-wash { background: var(--accent-tint); }
.section-cool { background: var(--paper-cool); }
.section-dark { background: var(--footer-bg); color: var(--footer-ink); }
.section-dark h2, .section-dark h3 { color: oklch(0.97 0.008 75); }

/* the path motif — thin curved connector line */
.path-line { color: var(--accent); opacity: 0.55; display: block; margin: clamp(1rem, 3vw, 2rem) auto clamp(-1.5rem, -2vw, -0.5rem); }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: var(--space-3xl) var(--space-xl); }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-2xl); }
.site-footer h4 { color: oklch(0.96 0.01 75); font-size: var(--text-base); letter-spacing: 0.04em; }
.site-footer .fineprint { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid oklch(0.4 0.01 55); font-size: var(--text-sm); color: oklch(0.7 0.01 60); }

/* sticky mobile call/book bar */
.mobile-cta {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.6rem clamp(1rem, 4vw, 2rem);
  gap: var(--space-sm);
}
.mobile-cta .btn { flex: 1; text-align: center; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; inset-inline: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--space-lg); gap: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  .nav .menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: var(--space-md); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
