/* ==========================================================================
   The Haus Flow — styles
   Palette sampled from the HAUSFLOW logo + Balance & Burn slide.
   Contrast (WCAG 2.1):
     cream #efe6cf on olive-deep #63664c ........ 4.78:1  (AA body text)
     gold-cream #ecdcaa on olive-deep ........... 4.35:1  (large text only)
     olive-text #5f6249 on cream ................ 5.07:1  (AA)
     ink-soft #4a4a40 on cream .................. 7.2:1
     cobalt #1a4fb5 on cream .................... 5.97:1  (AA)
   Brand olive #808366 is used for surfaces/decoration, not small text.
   ========================================================================== */
:root {
  --olive: #808366;        /* logo circle (brand) */
  --olive-deep: #63664c;   /* text-safe background */
  --olive-text: #5f6249;   /* olive text on light */
  --sage: #a9ab8e;
  --cream: #efe6cf;
  --ivory: #f7f2e5;
  --gold-cream: #ecdcaa;   /* monogram cream */
  --ink: #1b1b17;
  --ink-soft: #4a4a40;
  --cobalt: #1a4fb5;
  --cobalt-dark: #143f93;
  --error: #9b2c1f;
  --line: rgba(27, 27, 23, .14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible { border-radius: 999px; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #000; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--ivory); }
.btn-ghost { border-color: rgba(239, 230, 207, .75); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(239, 230, 207, .1); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-dark); }

/* ---------- Header + nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 230, 207, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.brand img { width: 22px; }
.brand-word { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .22em; }
.header-cta { margin-left: auto; }

.nav-toggle {
  position: relative; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
  background: var(--cream); padding: 28px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.nav-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.nav-list a {
  display: block; padding: 18px 2px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 32px; line-height: 1.1; text-decoration: none; color: var(--ink);
}
.nav-list a:hover { color: var(--olive-text); }
.nav-cta { width: 100%; }
@media (max-width: 959px) { html:not(.js) .nav, html:not(.js) .nav-toggle { display: none; } }

.header-cta { white-space: nowrap; }
@media (max-width: 479px) {
  .brand-word { font-size: 18px; letter-spacing: .18em; }
  .header-cta { padding: 0 14px; font-size: 13px; }
}
@media (max-width: 374px) { .header-cta { display: none; } }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; height: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 0;
    visibility: visible; opacity: 1; transform: none; transition: none; margin-left: auto;
  }
  .nav-list { flex-direction: row; gap: 30px; border: 0; }
  .nav-list a { padding: 8px 0; border: 0; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
  .nav-list a:hover { color: var(--ink); }
  .nav-cta { display: none; }
  .header-cta { margin-left: 32px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--olive-deep); color: var(--cream); padding: 44px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-mark { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 34px; }
.hero-mark img { width: 64px; }
.hero-word {
  margin-top: 14px; font-family: var(--serif); font-weight: 500; color: var(--gold-cream);
  font-size: clamp(28px, 8vw, 40px); letter-spacing: .28em; padding-left: .28em; line-height: 1;
}
.hero-tagline { margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.hero-tagline span { opacity: .7; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: var(--ivory);
  font-size: clamp(40px, 10.5vw, 76px); line-height: 1.02; letter-spacing: -.01em; text-align: center;
}
.hero h1 em { color: var(--gold-cream); }
.lede { margin: 20px auto 0; max-width: 34ch; text-align: center; font-size: 17px; color: var(--ivory); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero-bio { margin-top: 22px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-cream); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 0%;
  border-radius: 240px 240px var(--radius) var(--radius); background: var(--olive);
}
.hero-media figcaption { display: none; }
@media (min-width: 600px) { .hero-actions { flex-direction: row; justify-content: center; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .hero-mark { align-items: flex-start; text-align: left; }
  .hero-word { padding-left: 0; }
  .hero h1, .lede, .hero-bio { text-align: left; margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-media figcaption {
    display: block; position: absolute; right: -36px; bottom: 24px; writing-mode: vertical-rl;
    font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
  }
}

/* ---------- Generic sections ---------- */
.section { padding: var(--section) 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--olive-text); margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 8vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
.section-title em { color: var(--olive-text); }
.section-intro { font-size: 17px; color: var(--ink-soft); max-width: 42ch; }
.section-head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; } .section-head .section-intro { justify-self: end; } }

/* ---------- How it works ---------- */
.how .section-title { margin-bottom: 48px; }
.steps { display: grid; gap: 16px; }
.step { position: relative; background: var(--ivory); border-radius: var(--radius); padding: 30px 26px 32px; border: 1px solid var(--line); }
.step-num { position: absolute; top: 26px; right: 26px; font-family: var(--serif); font-size: 22px; color: var(--olive); }
.step-icon { width: 40px; height: 40px; fill: none; stroke: var(--olive-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.step h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } .step { padding: 36px 32px 40px; } }

/* ---------- Services ---------- */
.services { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.service { display: flex; align-items: baseline; gap: 18px; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: background-color .25s ease; }
.service-num { font-family: var(--serif); font-size: 18px; color: var(--olive-text); min-width: 26px; }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 6vw, 30px); line-height: 1.15; }
.service p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .service:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .service { padding: 30px 4px; }
}

/* ---------- Balance & Burn ---------- */
.bb { background: var(--cream); overflow: hidden; }
.bb-grid { display: grid; gap: 44px; align-items: center; }
.bb-title {
  font-family: var(--sans); font-weight: 800; color: var(--cobalt);
  font-size: clamp(56px, 16vw, 108px); line-height: .9; letter-spacing: -.045em;
  display: flex; flex-direction: column;
}
.bb-title .outline { color: transparent; -webkit-text-stroke: 2px var(--cobalt); }
@supports not (-webkit-text-stroke: 1px black) { .bb-title .outline { color: var(--cobalt); } }
.bb-sub { margin-top: 30px; font-weight: 700; font-size: 19px; }
.bb-text { margin-top: 10px; max-width: 42ch; font-size: 16.5px; color: var(--ink-soft); }
.bb-pills { margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.bb-pills li { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(26, 79, 181, .45); color: var(--cobalt); background: var(--ivory); }
.bb-media { background: #808266; border-radius: var(--radius); overflow: hidden; }
.bb-media img { width: 100%; aspect-ratio: 990 / 566; object-fit: cover; }
@media (min-width: 960px) {
  .bb-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

/* ---------- At home band ---------- */
.athome { background: var(--olive-deep); color: var(--cream); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.athome-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.athome-big { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 9vw, 80px); line-height: 1; color: var(--ivory); }
.athome-big em { color: var(--gold-cream); }
.athome-pin { width: 28px; fill: none; stroke: var(--gold-cream); stroke-width: 2.2; }
.athome-small { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.athome-small span { display: inline-block; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-grid { display: grid; gap: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 2px; font-family: var(--serif); font-size: clamp(22px, 5.4vw, 27px); font-weight: 500; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--olive-text), var(--olive-text)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--olive-text), var(--olive-text)) center / 1.6px 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 2px; color: var(--ink-soft); max-width: 60ch; }
.faq details a { color: var(--cobalt); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } }

/* ---------- Contact ---------- */
.contact { background: var(--ivory); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 48px; }
.contact-info .section-title { margin-bottom: 18px; }
.contact-list { margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-text); }
.contact-list a { font-family: var(--serif); font-size: clamp(24px, 6.4vw, 30px); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--cobalt); }

.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; display: grid; gap: 18px; align-content: start; }
.form-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.form-lead { font-size: 14px; color: var(--ink-soft); margin-top: -8px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
input {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--ivory); border: 1px solid rgba(27, 27, 23, .4); border-radius: 12px; padding: 14px 15px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
input:hover { border-color: rgba(27, 27, 23, .6); }
input:focus-visible { outline: none; border-color: var(--olive-text); box-shadow: 0 0 0 3px rgba(26, 79, 181, .35); }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: 14px; font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.form-note a { color: var(--cobalt); font-weight: 600; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
@media (min-width: 640px) { .contact-form { padding: 40px; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-deep); color: var(--cream); padding: 64px 0 40px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; }
.footer-word { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .28em; padding-left: .28em; color: var(--gold-cream); line-height: 1; }
.footer-tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { display: inline-block; padding: 8px 2px; text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: 13px; color: var(--cream); opacity: .9; margin-top: 4px; }

/* ---------- Simple pages (thank-you) ---------- */
.simple-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.simple-main { flex: 1; display: flex; align-items: center; background: var(--olive-deep); color: var(--cream); padding: 64px 0; }
.simple-card { max-width: 620px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.simple-card img { width: 64px; }
.simple-card h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 10vw, 72px); line-height: 1.02; color: var(--ivory); }
.simple-card h1 em { color: var(--gold-cream); }
.simple-card p { font-size: 17px; color: var(--ivory); max-width: 40ch; }
.simple-card p a { color: var(--ivory); font-weight: 600; }
.simple-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Reveal animations (only when JS + motion allowed) ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
a[href^="tel:"] { white-space: nowrap; }

.form-status { margin-top: 12px; font-size: 14px; color: #8a1f1f; background: #fbeaea; border-radius: 10px; padding: 10px 12px; text-align: center; }
