/* ===== Fonts ===== */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* ===== Design tokens ===== */
:root {
  --cream: #F4EEE2;
  --sage-bg: #E7E5D3;
  --green: #28352C;
  --green-soft: #3A4A3E;
  --clay: #BE6A47;          /* decorative accent only */
  --clay-ink: #9E4A28;      /* AA-safe: white text on this, or this as text on cream */
  --clay-light: #E2A982;    /* AA-safe warm accent text on the dark footer */
  --sage-soft: #D6DEC8;
  --body: #54594D;
  --hairline: #D8CEB9;
  --hairline-soft: #E4DCC9;
  --eyebrow: #7C5C3C;
  --muted: #6B6C60;         /* AA-safe muted text on cream */
  --card: #FBF7EE;
  --card-sage: #F0EEDF;     /* card tint for sage sections */

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-sans: 'Figtree', system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.18vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.07rem + 0.55vw, 1.5rem);
  --step-2:  clamp(1.62rem, 1.36rem + 1.3vw, 2.4rem);
  --step-3:  clamp(2.25rem, 1.7rem + 2.3vw, 3.35rem);

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4.5rem, 8vw, 8.5rem);
  --radius: 16px;
  --header-h: 76px;

  --shadow-soft: 0 2px 14px -6px rgba(40, 53, 44, 0.18);
  --shadow-lift: 0 22px 44px -24px rgba(40, 53, 44, 0.4);
  --shadow-photo: 0 38px 70px -34px rgba(40, 53, 44, 0.55);
}

/* ===== Base ===== */
html { scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain — faint tooth over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 430;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--green);
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; font-weight: 430; }
p { max-width: 64ch; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
::selection { background: var(--clay); color: var(--cream); }

/* ===== Layout primitives ===== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; overflow: clip; }
.section--sage { background: var(--sage-bg); }
.measure { max-width: 760px; }
.nowrap { white-space: nowrap; }

/* editorial section label: index number + rule + caps label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 1.2rem;
}
.eyebrow-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--clay-ink);
  line-height: 1;
}
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  margin-left: 0.7rem;
  vertical-align: 0.32em;
  background: var(--clay);
}
/* hero variant: a soft pill, no number */
.eyebrow--pill {
  display: inline-flex;
  background: var(--sage-soft);
  color: var(--green-soft);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--green-soft); }
.section .eyebrow + h2 { margin-top: 0; }
.section h2 + .lead { margin-top: 1rem; }
.fineprint { font-size: var(--step--1); color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -3.5rem; z-index: 300;
  background: var(--green); color: var(--cream); padding: 0.65rem 1.1rem;
  border-radius: 8px; font-weight: 600; font-size: var(--step--1);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--clay-ink); outline-offset: 3px; border-radius: 5px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--step--1); line-height: 1;
  padding: 1rem 1.55rem; border-radius: 10px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-sm { padding: 0.62rem 1.05rem; }
.btn-primary { background: var(--clay-ink); color: #FBF7EE; box-shadow: var(--shadow-soft); }
.btn-primary::after {
  content: "→"; font-size: 1.05em; transition: transform 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(158, 74, 40, 0.75); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(40, 53, 44, 0.06); }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 238, 226, 0.86);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.62rem; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark path { fill: var(--clay); }
.brand-name {
  font-family: var(--font-display); font-weight: 560; font-size: 0.98rem;
  line-height: 1.1; color: var(--green); letter-spacing: 0.005em;
}
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); }
.nav-menu a { font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--green-soft); }
.nav-menu a:not(.btn) { position: relative; padding-block: 0.3rem; }
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--clay); transition: width 0.22s ease;
}
.nav-menu a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--green);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 6.5rem) clamp(3.5rem, 7vw, 7rem); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.14fr 0.86fr;
  gap: clamp(1.5rem, 4vw, 3.75rem); align-items: center;
}
/* min-width:0 lets grid children shrink instead of forcing track blowout */
.hero-copy, .hero-figure, .about-copy, .about-figure { min-width: 0; }
.hero-copy h1 { margin-block: 1.1rem 1.1rem; }
.hero-copy .lead { max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block: 1.9rem 1.1rem; }

/* hero figure: arched portrait with a layered arch behind it */
.hero-figure { position: relative; justify-self: center; width: min(420px, 80vw); }
.hero-figure::before {
  content: ""; position: absolute; z-index: 0;
  left: -7%; bottom: -5%; width: 78%; height: 86%;
  background: var(--sage-soft);
  border-radius: 999px 999px 14px 14px;
}
.hero-figure::after {
  content: ""; position: absolute; z-index: 0;
  right: -6%; top: 7%; width: 64%; height: 70%;
  border: 1.5px solid var(--clay);
  border-radius: 999px 999px 12px 12px;
  opacity: 0.5;
}
.hero-photo {
  position: relative; z-index: 1;
  aspect-ratio: 5 / 6;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  box-shadow: var(--shadow-photo);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Decorative shapes ===== */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.blob--hero {
  width: 340px; height: 380px; right: -90px; top: -120px;
  background: var(--sage-soft); opacity: 0.5;
  border-radius: 999px 999px 40px 40px;
  filter: blur(3px);
}
.blob--approach {
  width: 300px; height: 300px; bottom: -110px; left: -90px;
  background: rgba(190, 106, 71, 0.13); border-radius: 50%;
  filter: blur(4px);
}
.hero .wrap, .section .wrap { position: relative; z-index: 1; }

/* ===== Conditions & principle tags ===== */
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.tag-grid li {
  background: var(--card); border: 1px solid var(--hairline-soft); border-radius: 999px;
  padding: 0.62rem 1.15rem; font-size: var(--step--1); font-weight: 500; color: var(--green-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.section--sage .tag-grid li { background: var(--card-sage); }
.tag-grid li:hover { transform: translateY(-3px); border-color: var(--clay); color: var(--clay-ink); }
.tag-grid--principles { margin-top: 1.3rem; }
.tag-grid--principles li {
  background: transparent; box-shadow: none;
  border: 1.5px solid var(--clay); color: var(--clay-ink);
  font-weight: 600; letter-spacing: 0.02em;
}
.tag-grid--principles li:hover { color: var(--cream); background: var(--clay-ink); border-color: var(--clay-ink); }

/* ===== Approach pillars ===== */
.pillars {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; margin-top: 2.2rem;
}
.pillars li {
  background: var(--card); border: 1px solid var(--hairline-soft);
  border-radius: 6px 6px 16px 16px;
  padding: 1.5rem 0.7rem 1.3rem; text-align: center;
  font-weight: 600; font-size: var(--step--1); color: var(--green);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillars li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.pillar-ic {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: 0 auto 0.85rem;
  background: var(--sage-soft);
  border-radius: 999px 999px 9px 9px;
}
.pillar-ic svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--clay-ink); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.75rem, 5vw, 4rem); align-items: center;
}
.about-figure { position: relative; justify-self: center; width: min(380px, 82vw); }
.about-figure::before {
  content: ""; position: absolute; z-index: 0;
  right: -7%; top: -6%; width: 70%; height: 60%;
  background: var(--clay); opacity: 0.14; border-radius: 16px 16px 14px 999px;
}
.about-photo {
  position: relative; z-index: 1;
  aspect-ratio: 5 / 6;
  border-radius: 16px 16px 999px 999px; overflow: hidden;
  box-shadow: var(--shadow-photo);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-copy .role {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1);
  font-weight: 500; color: var(--clay-ink); margin-top: 0.35rem;
}
.about-copy .role + p { margin-top: 1.1rem; }
.creds {
  margin-top: 1.6rem; display: grid; gap: 1rem;
  border-top: 1px solid var(--hairline); padding-top: 1.4rem;
}
.creds dt {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--clay-ink); margin-bottom: 0.2rem;
}
.creds dd { font-size: var(--step--1); color: var(--green-soft); }

/* ===== Insurance & rates ===== */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.2rem; }
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--hairline-soft);
  border-radius: 8px 8px var(--radius) var(--radius); padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.section--sage .card { background: var(--card-sage); }
.card > h3 { margin-bottom: 1.1rem; }
.plan-list { display: grid; gap: 0.6rem; }
.plan-list li { padding-left: 1.5rem; position: relative; color: var(--green-soft); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px; background: var(--clay);
  border-radius: 999px 999px 2px 2px;
}
.rate-list { display: grid; }
.rate {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--hairline-soft);
}
.rate:first-child { padding-top: 0; }
.rate:last-child { border-bottom: 0; padding-bottom: 0; }
.rate dt { color: var(--green-soft); }
.rate dd {
  font-family: var(--font-display); font-weight: 560; font-size: var(--step-1);
  color: var(--green);
}

/* ===== Getting started ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.2rem; }
.steps li {
  position: relative;
  background: var(--card); border: 1px solid var(--hairline-soft);
  border-radius: 6px 6px var(--radius) var(--radius); padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.step-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 2.6rem; font-weight: 500; line-height: 1;
  color: var(--clay); display: block; margin-bottom: 0.6rem;
}
.steps h3 { font-size: var(--step-0); font-weight: 600; font-family: var(--font-sans);
  letter-spacing: 0; color: var(--green); margin-bottom: 0.35rem; }
.steps p { font-size: var(--step--1); color: var(--green-soft); }
.start-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2.2rem; }
.start-note { font-size: var(--step--1); }
.start-note a { color: var(--clay-ink); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: var(--green); color: #C9CEC0; padding-block: var(--section-y);
}
.crisis {
  background: var(--green-soft); border: 1px solid #4C5C4E;
  border-radius: 8px 8px var(--radius) var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 2.6rem;
  border-left: 3px solid var(--clay);
}
.crisis strong {
  color: var(--cream); display: block; margin-bottom: 0.3rem;
  font-size: var(--step-0);
}
.crisis p { color: #C9CEC0; max-width: none; }
.crisis a { color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid #4C5C4E;
}
.footer-name {
  font-family: var(--font-display); color: var(--cream);
  font-size: var(--step-2); font-weight: 430; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.footer-h {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--clay-light); margin-bottom: 0.7rem;
}
.footer-grid p { color: #C9CEC0; }
.footer-grid a { color: var(--cream); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.6rem; font-size: var(--step--1); color: #9DA595;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.2rem;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.28s ease, visibility 0s linear 0.28s;
  }
  .nav-menu.is-open {
    clip-path: inset(0 0 0 0); visibility: visible;
    transition: clip-path 0.28s ease, visibility 0s linear 0s;
  }
  .nav-menu a:not(.btn) { padding-block: 0.9rem; border-bottom: 1px solid var(--hairline-soft); }
  .nav-menu .btn { margin-top: 1rem; }
}

@media (max-width: 760px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin-bottom: 0.5rem; }
  .about-figure { justify-self: center; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .card-row, .steps { grid-template-columns: 1fr; }
  .hero-copy .lead { max-width: 48ch; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 460px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .nav-menu .btn { width: 100%; }
  .hero-figure::after, .about-figure::before { display: none; }
}

/* ===== Motion ===== */
html { scroll-behavior: smooth; }

/* Scroll reveal — only active when JS is present; no-JS users see everything. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.09s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.18s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.27s; }
.js [data-reveal][data-delay="4"] { transition-delay: 0.36s; }

/* Ambient drift on decorative shapes. */
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -22px; }
}
.blob { animation: drift 26s ease-in-out infinite; }
.blob--approach { animation-duration: 32s; animation-direction: reverse; }

/* Respect reduced-motion: kill all movement, keep content visible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  .btn, .btn-primary::after, .tag-grid li, .pillars li { transition: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after,
  .nav-menu, .nav-menu a:not(.btn)::after, .skip-link { transition: none; }
}
