/* =========================================================================
   Two Sisters Organizing — shared styles (every page)
   Page-specific styles: home.css, products.css
   ========================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --cream: #FAF6F1;
  --warm-white: #FFFCF8;
  --sand: #E8DED3;
  --clay: #C4A882;
  --clay-dark: #8E7454;
  --clay-light: #E8D5BF;
  --blush: #E8CFC0;
  --sage: #8B9E8B;
  --sage-dark: #6B7E6B;
  --sage-deep: #5E715E;   /* buttons + small sage text (AA contrast on cream/white) */
  --sage-ink: #4A5D4A;    /* hover */
  --sage-light: #C5D4C0;
  --sage-mist: #E4EBE2;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #626262;
  --line: rgba(44, 44, 44, 0.09);
  --error: #A83A2C;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --container: 1180px;
  --section-y: clamp(64px, 9vw, 104px);
}

/* ---------- Page transitions ----------
   Smooth cross-fade between pages in supporting browsers (Chrome, Edge, Safari 18.2+).
   Others simply load normally. The header stays put so navigation feels continuous. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 160ms ease-out both vt-fade-out; }
::view-transition-new(root) { animation: 240ms ease-out both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; }
:focus-visible { outline: 2.5px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }
html.consult-open, html.nav-open { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--warm-white); }
.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: -60px; z-index: 3000;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.section-tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 1.5px; background: currentColor; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.18;
  color: var(--charcoal); margin-bottom: 16px; text-wrap: balance;
}
.section-lead { font-size: 1.02rem; color: var(--text-light); max-width: 620px; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-tag { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }

.text-link {
  color: var(--sage-deep); font-weight: 600; font-size: 0.92rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(94, 113, 94, 0.35);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-ink); box-shadow: 0 10px 24px rgba(74, 93, 74, 0.22); }
.btn-secondary { background: transparent; color: var(--sage-deep); border-color: rgba(94, 113, 94, 0.4); }
.btn-secondary:hover { background: rgba(94, 113, 94, 0.07); border-color: var(--sage-deep); }
.btn-light { background: #fff; color: var(--sage-ink); }
.btn-light:hover { background: var(--cream); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-small { min-height: 40px; padding: 9px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  background: rgba(250, 246, 241, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06); }
.site-header__inner {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--sage-deep); text-decoration: none; white-space: nowrap;
}
.brand--light { color: #fff; font-size: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 24px; }
.site-nav__list a {
  position: relative; display: block; padding: 6px 0;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none; transition: color 0.2s;
}
.site-nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--sage); transition: width 0.25s;
}
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: var(--sage-ink); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { width: 100%; }

.nav-toggle {
  display: none; position: relative; z-index: 1102;
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle__bar {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--charcoal);
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle__bar:nth-child(2) { top: 15px; }
.nav-toggle__bar:nth-child(3) { top: 21px; }
.nav-toggle__bar:nth-child(4) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; z-index: 1050; background: rgba(44, 44, 44, 0.42); }
html.nav-open .site-header { z-index: 1100; } /* lift the menu panel above the scrim */

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; right: 0; z-index: 1101;
    width: min(320px, 86vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 28px;
    padding: 88px 36px 40px; background: var(--cream);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
    transform: translateX(105%); visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav__list a { font-size: 0.95rem; padding: 8px 0; }
  .site-nav__cta { min-height: 48px; font-size: 0.9rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background:
    radial-gradient(circle at 92% 6%, rgba(197, 212, 192, 0.55) 0, rgba(197, 212, 192, 0) 38%),
    linear-gradient(135deg, var(--warm-white) 0%, #F5F1E7 55%, var(--sage-mist) 100%);
}
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(36px, 6vw, 72px); align-items: center;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.1;
  color: var(--charcoal); margin-bottom: 22px; text-wrap: balance;
}
.page-hero .lead { font-size: 1.1rem; color: var(--text-light); max-width: 600px; }
.page-hero__media {
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg); overflow: hidden;
  border: 8px solid rgba(255, 252, 248, 0.75);
  box-shadow: 0 28px 64px rgba(74, 93, 74, 0.16); background: var(--sand);
  aspect-ratio: 4 / 4.4;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--simple { padding-bottom: 56px; }
.page-hero--simple .page-hero__inner { max-width: 760px; }

.breadcrumbs { margin-bottom: 26px; font-size: 0.82rem; color: var(--text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--clay); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--charcoal); }

/* ---------- Inner page building blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.22; color: var(--charcoal); margin-bottom: 18px; text-wrap: balance; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--charcoal); margin: 30px 0 8px; }
.prose p { color: var(--text-light); margin-bottom: 16px; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 20px; color: var(--text-light); margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--sage-deep); font-weight: 500; text-underline-offset: 3px; }

.aside-card {
  background: linear-gradient(150deg, rgba(197, 212, 192, 0.4), rgba(232, 213, 191, 0.42));
  border: 1px solid rgba(94, 113, 94, 0.14); border-radius: var(--radius-lg); padding: 30px;
}
.aside-card h2, .aside-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--sage-ink); margin-bottom: 10px; }
.aside-card ul { list-style: none; margin-bottom: 22px; }
.aside-card li { padding: 10px 0; border-bottom: 1px solid rgba(94, 113, 94, 0.14); font-size: 0.93rem; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card .btn { width: 100%; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--charcoal); margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: var(--text-light); }
.card .text-link { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--sage-mist); color: var(--sage-ink); font-family: var(--font-display); font-weight: 600;
}

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.check-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-item::before {
  content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--sage-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%234A5D4A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check-item strong { display: block; color: var(--charcoal); font-weight: 600; }
.check-item span { display: block; font-size: 0.9rem; color: var(--text-light); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 0.84rem; color: var(--sage-ink); background: rgba(197, 212, 192, 0.45); border: 1px solid rgba(94, 113, 94, 0.12); }

.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.area-card { background: #fff; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: var(--radius); padding: 24px; }
.area-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--sage-ink); margin-bottom: 6px; }
.area-card p { font-size: 0.92rem; color: var(--text-light); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.05); }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.project figcaption { padding: 18px 20px 20px; }
.project h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--charcoal); margin-bottom: 4px; }
.project p { font-size: 0.88rem; color: var(--text-light); }


/* ---------- Shared: founders, pricing card, testimonials (home, about, pricing) ---------- */
/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 80px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-photo { position: relative; margin: 0; }
.about-photo:first-child { transform: translateY(-20px); }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; background: var(--sand); }
.about-photo figcaption {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 252, 248, 0.92); color: var(--sage-ink); font-size: 0.8rem; font-weight: 600;
}
.about-person + .about-person { margin-top: 24px; }
.about-person h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--charcoal); }
.about-role { font-size: 0.86rem; color: var(--sage-deep); font-weight: 500; margin-bottom: 8px; }
.about-person p:last-child { font-size: 0.95rem; color: var(--text-light); }

/* ---------- Rates ---------- */
.rates-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: linear-gradient(145deg, var(--sage-ink), var(--sage-dark));
}
.rates-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; margin-bottom: 8px; }
.rates-price { font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1.1; }
.rates-price span { font-family: var(--font-body); font-size: 1rem; font-weight: 400; opacity: 0.8; }
.rates-sub { font-size: 0.92rem; opacity: 0.85; margin: 8px 0 24px; }
.rates-includes li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.95rem; }
.rates-includes li::before { content: '✓'; color: var(--clay-light); font-weight: 600; }
.rates-details p { font-size: 0.95rem; line-height: 1.8; opacity: 0.9; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; background: #fff; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 20px; padding: 34px; }
.testimonial blockquote p { font-style: italic; color: var(--text-light); line-height: 1.8; }
.testimonial blockquote::before { content: '\201C'; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--sage-light); margin-bottom: 6px; }
.testimonial figcaption { margin-top: 16px; font-weight: 600; color: var(--charcoal); }

@media (max-width: 960px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .about, .rates-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .rates-price { font-size: 2.8rem; }
}

/* ---------- FAQ (shared accordion) ---------- */
.faq { max-width: 780px; }
.faq--center { margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.02rem; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--sage-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%234A5D4A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s, background-color 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sage-light); }
.faq summary:hover { color: var(--sage-ink); }
.faq .faq__answer { padding: 0 44px 22px 0; color: var(--text-light); }
.faq .faq__answer a { color: var(--sage-deep); font-weight: 500; text-underline-offset: 3px; }

/* ---------- CTA band (inner pages) ---------- */
.cta-band {
  padding: clamp(64px, 9vw, 96px) 0; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 10% 110%, rgba(196, 168, 130, 0.28) 0, rgba(196, 168, 130, 0) 40%),
    linear-gradient(135deg, var(--sage-deep), #46584A);
}
.cta-band .section-title { color: #fff; }
.cta-band p { max-width: 600px; margin: 0 auto; color: rgba(255, 255, 255, 0.85); }
.cta-band .button-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px; font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.site-footer__brand p { margin: 12px 0 22px; max-width: 360px; line-height: 1.75; }
.site-footer__heading { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 14px; }
.site-footer__links li { margin-bottom: 9px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.68); text-decoration: none; transition: color 0.2s; overflow-wrap: anywhere; }
.site-footer__links a:hover, .site-footer__links a[aria-current="page"] { color: var(--sage-light); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.7); }

/* ---------- Consultation form (modal) ---------- */
.consult {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(44, 44, 44, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s ease;
}
.consult[hidden] { display: none; }
.consult.is-open { opacity: 1; }
/* No-JavaScript fallback: links to #consult still open the form */
html:not(.js) .consult:target { display: flex; opacity: 1; }

.consult__panel {
  position: relative; width: min(100%, 640px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--warm-white); border-radius: 26px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
  transform: translateY(16px); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.consult.is-open .consult__panel { transform: none; }
.consult__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sand); color: var(--text); transition: background-color 0.2s;
}
.consult__close:hover { background: var(--clay-light); }
.consult__close svg { width: 18px; height: 18px; }
.consult__header { padding: 40px 44px 22px; border-bottom: 1px solid var(--line); }
.consult__kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; }
.consult__title { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--charcoal); margin: 0 48px 8px 0; }
.consult__intro { font-size: 0.92rem; color: var(--text-light); }
.consult__body { padding: 26px 44px 36px; }
.consult__fineprint { margin-top: 14px; font-size: 0.8rem; color: var(--text-light); text-align: center; }
.consult__fineprint a { color: var(--sage-deep); }

.consult__success { text-align: center; padding: 24px 0 8px; }
.consult__success:focus { outline: none; }
.consult__success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-light); color: var(--sage-ink); }
.consult__success-icon svg { width: 28px; height: 28px; }
.consult__success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--charcoal); margin-bottom: 8px; }
.consult__success p { color: var(--text-light); margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 7px; font-size: 0.86rem; font-weight: 600; color: var(--charcoal); }
.optional { font-weight: 400; color: var(--text-light); font-size: 0.8rem; margin-left: 4px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1.5px solid rgba(0, 0, 0, 0.12); border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23626262' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9A9A9A; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(94, 113, 94, 0.16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .choice { border-color: rgba(168, 58, 44, 0.45); }
.field-error { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--error); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; text-align: center;
  border: 1.5px solid rgba(0, 0, 0, 0.1); border-radius: var(--radius-sm); background: #fff;
  font-size: 0.9rem; font-weight: 500; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choice:hover span { border-color: var(--sage); }
.choice input:checked + span { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.choice input:focus-visible + span { outline: 2.5px solid var(--sage-deep); outline-offset: 2px; }

.form-error { margin: 4px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: #FBEDEA; color: var(--error); font-size: 0.9rem; }
.form-error a { color: inherit; font-weight: 600; }

@media (max-width: 640px) {
  .consult { padding: 0; align-items: flex-end; }
  .consult__panel { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .consult__header { padding: 30px 22px 18px; }
  .consult__title { font-size: 1.45rem; }
  .consult__body { padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); }
  .form-row { grid-template-columns: 1fr; }
  .choice-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page-hero__grid, .split { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 520px; aspect-ratio: 1; border-radius: 180px 180px var(--radius-lg) var(--radius-lg); }
  .card-grid, .card-grid--4, .project-grid, .area-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .site-header__inner { padding: 0 18px; }
  .brand { font-size: 1.05rem; }
  .card-grid, .card-grid--4, .project-grid, .area-grid, .check-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .page-hero { padding-bottom: 56px; }
  .page-hero__media { border-radius: 140px 140px var(--radius) var(--radius); }
  .button-row .btn { flex: 1 1 100%; }
  .faq .faq__answer { padding-right: 0; }
}

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

/* ---------- FAQ page groups ---------- */
.faq-groups { max-width: 860px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--sage-ink); margin-bottom: 4px; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--sage-light); }
