/* ============================================================
   FMI Well-Being — shared stylesheet
   Ojai, CA. See about.html for the one place the name gets
   explained.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=Quicksand:wght@500;600&display=swap');

:root {
  --bone: #f1e9da;        /* primary light background */
  --bone-deep: #e4d8c2;   /* alt section / card background */
  --ink: #3a2f28;         /* primary text, warm near-black */
  --rose: #c1766d;        /* primary accent — the Pink Moment */
  --rose-deep: #a15d54;   /* hover / text-on-bone accent */
  --sage: #7d8f70;        /* secondary accent */
  --sage-deep: #64735a;   /* darker sage, labels */
  --dusk: #423c56;        /* dark accent: hero sky, callout, footer */
  --dusk-soft: #a89bb5;   /* muted text-on-dusk */
  --cream: #f7f2e7;       /* headline text-on-dusk */
  --line: #d9cbb0;        /* hairline on bone */
  --line-dusk: #5c5570;   /* hairline on dusk */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-label: "Quicksand", sans-serif;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
h1 em, h2 em { font-style: italic; color: var(--rose-deep); }
.hero h1 em { color: var(--rose); }

p { margin: 0 0 1.2em; color: var(--ink); opacity: 0.82; max-width: 60ch; }
a { color: var(--rose-deep); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }

main { scroll-margin-top: 90px; }

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sage-deep);
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--dusk); color: var(--cream);
  padding: 10px 16px; z-index: 100; text-decoration: none;
  font-family: var(--font-label); font-size: 0.8rem;
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, label:focus-visible, .nav-toggle-label:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

/* ---------- Header / Nav (light, sticky — the drama lives in the hero) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { flex-shrink: 0; color: var(--rose-deep); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.brand-sub { font-family: var(--font-label); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); margin-top: 4px; }

nav.primary-nav { display: flex; align-items: center; gap: 26px; }
nav.primary-nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em;
  text-decoration: none; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid transparent;
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] { border-bottom-color: var(--rose); color: var(--rose-deep); }
.nav-cta { background: var(--rose-deep); color: var(--cream) !important; padding: 9px 20px; border-radius: 999px; border-bottom: none !important; }
.nav-cta:hover { background: var(--sage-deep); color: var(--cream) !important; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; font-family: var(--font-label); font-weight: 600; font-size: 0.85rem;
  text-decoration: none; padding: 13px 28px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--rose-deep); color: var(--cream); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--sage-deep); }
.btn-outline { border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: currentColor; color: var(--dusk); }
.text-link {
  font-family: var(--font-label); font-weight: 600; font-size: 0.86rem;
  text-decoration: none; color: var(--rose-deep); border-bottom: 1.5px solid var(--rose-deep); padding-bottom: 2px;
}
.text-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }

/* ---------- Hero (home only — mountains at dusk, the one dramatic moment) ---------- */
.hero { position: relative; overflow: hidden; color: var(--cream); padding-block: clamp(64px, 10vw, 108px) 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(56px, 9vw, 92px); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; height: 46px; }
.hero-wave svg { width: 100%; height: 100%; }
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero .lede { color: var(--cream); opacity: 0.88; }
.hero-eyebrow { display: block; margin-bottom: 18px; color: var(--cream); opacity: 0.85; }
.cta-row { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Page header (interior — quiet, no mountain scene) ---------- */
.page-header { padding-block: clamp(46px, 8vw, 80px) 44px; border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 20ch; }
.page-header .lede { margin-top: 14px; }

.lede { font-size: 1.1rem; max-width: 56ch; opacity: 0.85; }

/* ---------- Stat band (kept light — the hero already spent the drama) ---------- */
.stat-band { background: var(--bone-deep); padding-block: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding-inline: 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; color: var(--rose-deep); line-height: 1; }
.stat .stat-label { font-family: var(--font-label); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-deep); margin-top: 10px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(50px, 8vw, 92px); }
.alt-bg { background: var(--bone-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .label { display: block; margin-bottom: 14px; }

/* Numbered list — the Journey's four phases (a real sequence; spelled out, not digits) */
.numbered-list { border-top: 1px solid var(--line); }
.numbered-item { display: grid; grid-template-columns: 100px 1fr; gap: 28px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.numbered-item .n { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--rose-deep); }
.numbered-item .n .n-phase { display: block; font-family: var(--font-label); font-weight: 600; font-size: 0.6rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sage-deep); font-style: normal; }
.numbered-item h3 { margin-bottom: 10px; }

/* Pillar grid — Frequency / Meditation / Intention (parallel, not a sequence: no numbers) */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card { background: var(--bone-deep); border-radius: 22px; padding: 34px 28px; }
.pillar-icon { color: var(--rose-deep); margin-bottom: 16px; }
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card ul { margin: 16px 0 0; padding-left: 18px; }
.pillar-card li { margin-bottom: 6px; opacity: 0.82; }

/* Team grid (Guides) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: var(--bone-deep); border-radius: 20px; padding: 28px 26px; }
.team-card .name { font-size: 1.15rem; margin-bottom: 2px; }
.team-card .role { font-family: var(--font-label); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 12px; display: block; }

/* Journal */
.journal-item { border-bottom: 1px solid var(--line); padding-block: 30px; }
.journal-item .label { margin-bottom: 10px; display: block; }

/* Callout — a floating rounded panel, not a full-bleed band */
.callout-wrap { padding-inline: var(--pad); }
.callout { background: var(--dusk); color: var(--dusk-soft); border-radius: 28px; max-width: var(--max); margin-inline: auto; }
.callout-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 42px 40px; }
.callout h2 { margin: 0; max-width: 15ch; color: var(--cream); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-grid h3 { margin-bottom: 18px; }
.direct-item { margin-bottom: 22px; }
.direct-item .label { display: block; margin-bottom: 4px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 600px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-label); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sage-deep); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--bone); padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); border-radius: 12px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--rose-deep); outline-offset: 1px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--dusk); color: var(--dusk-soft); padding-block: 54px 26px; }
footer.site-footer a { color: var(--dusk-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dusk); }
.footer-grid .brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--cream); }
.footer-grid p { color: var(--dusk-soft); opacity: 1; margin-top: 10px; }
.footer-grid h4 { font-family: var(--font-label); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dusk-soft); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact { font-family: var(--font-label); font-size: 0.82rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-family: var(--font-label); font-size: 0.68rem; color: var(--dusk-soft); flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.error-page { padding-block: 112px 132px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  nav.primary-nav {
    position: fixed; top: 62px; left: 0; right: 0; z-index: 45;
    background: var(--bone); flex-direction: column; align-items: flex-start;
    padding: 22px var(--pad) 30px; gap: 18px;
    transform: translateY(-120%); transition: transform .25s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ nav.primary-nav { transform: translateY(0); }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .numbered-item { grid-template-columns: 1fr; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .callout-inner { padding: 36px 28px; }
}
