/* ═══════════════════════════════════════════════════════════════
   Headmill Capital — base.css
   Shared foundation: design tokens, type scale, materials, reset,
   buttons, badges, nav, mobile sheet, forms, contact panel, FAQ,
   footer, cookie banner. Page layouts live in home.css /
   service.css / privacy.css.

   Two rules run through the whole file:
   · Type is sized, tracked and led as a set — tracking tightens
     as text grows, leading loosens as it shrinks. No single
     letter-spacing value is right at every size.
   · Chrome is a translucent material with content passing under
     it, separated by a soft scroll edge rather than a hard rule.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette ── */
  --forest:   #4A6B2F;
  --pine:     #3D5A26;
  --moss:     #5A7F3B;
  --cream:    #F0E9C2;
  --cream-lt: #F8F5E6;
  --page:     #FCFBF7;
  --ink:      #1F2A1A;
  --ink-70:   rgba(31, 42, 26, 0.70);
  --ink-60:   rgba(31, 42, 26, 0.60);
  --ink-50:   rgba(31, 42, 26, 0.50);
  --ink-30:   rgba(31, 42, 26, 0.30);
  --line:     rgba(31, 42, 26, 0.08);
  --line-lt:  rgba(31, 42, 26, 0.05);
  --error:    #b3402e;

  /* ── Type scale ──
     Each size ships with the tracking and leading that suit it.  */
  --fs-display: clamp(2.75rem, 7vw, 5rem);
  --fs-h2:      clamp(2rem, 4.4vw, 3.25rem);
  --fs-h3:      1.375rem;
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-label:   0.75rem;

  --tr-display: -0.038em;   /* large text reads too loose — pull it in */
  --tr-h2:      -0.028em;
  --tr-h3:      -0.016em;
  --tr-lead:    -0.011em;
  --tr-body:    0;
  --tr-sm:      0.004em;    /* small text wants a touch of air */
  --tr-label:   0.075em;

  --lh-display: 1.03;       /* leading tightens as size grows */
  --lh-h2:      1.08;
  --lh-h3:      1.25;
  --lh-lead:    1.5;
  --lh-body:    1.65;

  /* ── Materials ──
     Weight encodes hierarchy: heavier separates structural
     regions, lighter draws attention to interactive surfaces.    */
  --mat-chrome:      rgba(252, 251, 247, 0.72);
  --mat-chrome-deep: rgba(252, 251, 247, 0.88);
  --mat-sheet:       rgba(252, 251, 247, 0.86);
  --mat-blur:        saturate(180%) blur(20px);
  --mat-blur-lg:     saturate(180%) blur(32px);
  --mat-edge:        rgba(255, 255, 255, 0.55);
  --scrim:           rgba(31, 42, 26, 0.28);

  /* ── Depth ──
     Bigger surfaces read as thicker: more blur, deeper shadow.   */
  --sh-1: 0 1px 2px rgba(31, 42, 26, 0.04), 0 8px 24px rgba(31, 42, 26, 0.06);
  --sh-2: 0 2px 6px rgba(31, 42, 26, 0.05), 0 24px 56px rgba(31, 42, 26, 0.10);
  --sh-3: 0 4px 12px rgba(31, 42, 26, 0.07), 0 44px 96px rgba(31, 42, 26, 0.15);

  /* ── Geometry ── */
  --r-lg: 28px;
  --r:    20px;
  --r-sm: 12px;

  /* Mirrored pair: the return path retraces the outbound one. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0.39, 0.78, 0.38);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cream); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Entrance effects are installed by JS only when observed. Default content
   stays visible, including when scripts or IntersectionObserver fail. */
.reveal { opacity: 1; }
.motion-heading-host { position: relative; }
.motion-heading-overlay { position: absolute; pointer-events: none; user-select: none; }
.motion-line-mask { position: absolute; left: 0; width: 100%; overflow: clip; }
.motion-line-content { position: relative; width: 100%; height: 100%; overflow: clip; }
.motion-line-mask h1 { position: absolute; left: 0; margin: 0 !important; }

/* ── Buttons ──────────────────────────────────────────────────
   Feedback lives on the press, not the release, and it's
   immediate. Waiting for the click to acknowledge feels dead.  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.006em;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: background 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              transform 0.22s var(--ease-out);
}

.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

.btn-solid { background: var(--forest); color: #fff; box-shadow: var(--sh-1); }
.btn-solid:hover { background: var(--pine); box-shadow: var(--sh-2); }

.btn-cream { background: var(--cream); color: var(--pine); box-shadow: var(--sh-1); }
.btn-cream:hover { background: #fff; box-shadow: var(--sh-2); }

/* Sits on the forest hero: vibrancy rules apply — heavier weight
   and a brighter edge, never flat grey text on a coloured field. */
.btn-outline-light {
  border: 1px solid rgba(240, 233, 194, 0.35);
  color: var(--cream);
  background: rgba(240, 233, 194, 0.08);
  backdrop-filter: var(--mat-blur);
  -webkit-backdrop-filter: var(--mat-blur);
}
.btn-outline-light:hover {
  background: rgba(240, 233, 194, 0.16);
  border-color: rgba(240, 233, 194, 0.5);
}

/* ── Badges / section labels ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.badge-cream { background: var(--cream); color: var(--pine); }

.badge-on-green {
  background: rgba(240, 233, 194, 0.14);
  color: var(--cream);
  border: 1px solid rgba(240, 233, 194, 0.18);
}
.badge-on-green .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); }

/* ── Section scaffolding ────────────────────────────────────── */
section.container { padding-top: 6rem; padding-bottom: 6rem; }

.section-head { max-width: 44rem; }

.section-head h2 {
  margin-top: 1.5rem;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-h2);
  text-wrap: balance;
}

.section-head p {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
  color: var(--ink-70);
}

/* ── NAV ──────────────────────────────────────────────────────
   A floating translucent layer with content running underneath,
   not an opaque strip that eats a band of the page. The edge is
   a soft gradient that only appears once content is actually
   passing under it.                                             */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mat-chrome);
  backdrop-filter: var(--mat-blur);
  -webkit-backdrop-filter: var(--mat-blur);
  transition: background 0.3s var(--ease-out);
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 1.25rem;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(31, 42, 26, 0.07), transparent);
  transition: opacity 0.3s var(--ease-out);
}

header.site-header.scrolled { background: var(--mat-chrome-deep); }
header.site-header.scrolled::after { opacity: 1; }

.nav {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-dot { color: var(--forest); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--ink-70);
}

/* Padded hit area rather than bare text — the target is bigger
   than the glyphs, and the highlight shows on press. */
.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--forest); background: rgba(74, 107, 47, 0.07); }
.nav-links a:active { background: rgba(74, 107, 47, 0.12); }

/* aria-current also covers About, which uses the default brand green. */
.nav-links a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--svc, var(--forest));
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-phone {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.004em;
  color: var(--forest);
  transition: color 0.2s var(--ease-out);
}
.nav-phone:hover { color: var(--pine); }

.nav-cta {
  border-radius: 999px;
  background: var(--forest);
  padding: 0.5rem 1.125rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.004em;
  color: #fff;
  box-shadow: var(--sh-1);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.nav-cta:hover { background: var(--pine); }
.nav-cta:active { transform: scale(0.96); transition-duration: 0.1s; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE SHEET ─────────────────────────────────────────────
   Comes down from the header and leaves the same way. Position
   is driven by a spring in shared.js, so it can be grabbed and
   thrown mid-flight — hence no transition on transform here.    */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-scrim.active { pointer-events: auto; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--mat-sheet);
  backdrop-filter: var(--mat-blur-lg);
  -webkit-backdrop-filter: var(--mat-blur-lg);
  border-bottom: 1px solid var(--mat-edge);
  box-shadow: var(--sh-3);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 1.25rem 1.5rem 1rem;
  pointer-events: none;
  touch-action: pan-x;
  will-change: transform;
}

.mobile-nav.active { pointer-events: auto; }

.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--r-sm);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.mobile-nav-link:hover { background: rgba(74, 107, 47, 0.07); color: var(--forest); }
.mobile-nav-link:active { background: rgba(74, 107, 47, 0.14); color: var(--forest); }

.mobile-nav .btn { width: 100%; }

/* The affordance that says "this can be dragged". */
.sheet-grip {
  width: 2.25rem;
  height: 4px;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: var(--ink-30);
}

/* ── CONTACT PANEL ──────────────────────────────────────────── */
.contact-panel {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--forest);
  box-shadow: var(--sh-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  position: relative;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(120% 90% at 0% 110%, rgba(61, 90, 38, 0.85), transparent 60%),
    radial-gradient(80% 70% at 100% 0%, rgba(90, 127, 59, 0.55), transparent 65%);
}

.contact-left-inner { position: relative; }

.contact-headline {
  margin-top: 1.5rem;
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-h2);
  color: #fff;
  text-wrap: balance;
}

.contact-headline .accent { color: var(--cream); }

.contact-body {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
  color: rgba(255, 255, 255, 0.88);
}

.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.contact-detail { display: flex; align-items: center; gap: 1rem; }

.contact-detail-label {
  width: 4rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: rgba(240, 233, 194, 0.75);
  flex-shrink: 0;
}

.contact-detail-val {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--cream);
  transition: color 0.2s var(--ease-out);
}

a.contact-detail-val:hover { color: #fff; }

.contact-detail-val.plain { font-weight: 600; color: rgba(255, 255, 255, 0.82); }

.contact-right {
  position: relative;
  background: var(--cream-lt);
  padding: 3rem 1.5rem;
}

/* ── FORMS ────────────────────────────────────────────────────
   Validation is inline and immediate, not saved up for submit.  */
.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.f-group { margin-bottom: 1rem; position: relative; }
.f-row .f-group { margin-bottom: 0; }

.f-group label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.5rem;
}

.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(31, 42, 26, 0.1);
  background: #fff;
  padding: 0.8125rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--ink-30); }

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(74, 107, 47, 0.16);
}

.f-group textarea { min-height: 6.5rem; resize: vertical; line-height: 1.6; }

.f-group input.error,
.f-group select.error,
.f-group textarea.error { border-color: var(--error); }

.f-error {
  display: block;
  margin-top: 0.375rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  border-radius: 999px;
  border: none;
  background: var(--forest);
  padding: 1rem 2rem;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.006em;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: background 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              transform 0.22s var(--ease-out);
}

.form-submit:hover { background: var(--pine); box-shadow: var(--sh-2); }
.form-submit:active { transform: scale(0.98); transition-duration: 0.1s; }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tr-sm);
  color: var(--ink-50);
}

.form-error-msg {
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
  background: rgba(179, 64, 46, 0.08);
  border: 1px solid rgba(179, 64, 46, 0.25);
  padding: 0.75rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
}

.form-success { text-align: center; padding: 3rem 1rem; }

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--forest);
}

.form-success-title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: var(--tr-h3);
}

.form-success-body {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--ink-70);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem 4rem;
  align-items: start;
}

.faq-section .section-head { position: sticky; top: 7rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.875rem; }

.faq-item {
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line-lt);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out);
}

.faq-item[open] { box-shadow: var(--sh-2); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease-out), background 0.15s var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:active { background: rgba(74, 107, 47, 0.05); }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--cream-lt);
  color: var(--forest);
  font-size: 1.125rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease-out), background 0.2s var(--ease-out);
}

.faq-item[open] summary { color: var(--forest); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--cream); }

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--ink-70);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--cream-lt);
  padding: 4.5rem 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.footer-tagline { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-50); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-60);
}

.footer-links a { transition: color 0.2s var(--ease-out); }
.footer-links a:hover { color: var(--forest); }

.footer-fca {
  margin-top: 3rem;
  max-width: 58rem;
  font-size: var(--fs-xs);
  line-height: 1.75;
  letter-spacing: var(--tr-sm);
  color: var(--ink-50);
}

/* ── COOKIE BANNER ────────────────────────────────────────────
   Materialises rather than fading in: blur and scale animate
   together so it reads as a surface arriving, not a decal. The
   spring in shared.js owns transform and opacity.               */
/* The transform lives on the wrapper and the material on the
   surface inside it. Put both on one element and the backdrop is
   sampled in the untransformed space — the blur visibly detaches
   from the panel as it scales. */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 47;              /* below the nav scrim: an open sheet dims this too */
  max-width: 33rem;
  margin-inline: auto;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.cookie-banner.active { pointer-events: auto; }

.cookie-surface {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--mat-edge);
  box-shadow: var(--sh-3);
  padding: 1rem 1.25rem 1rem 1.5rem;
}

.cookie-banner p {
  font-size: var(--fs-xs);
  line-height: 1.55;
  letter-spacing: var(--tr-sm);
  color: var(--ink-70);
}
.cookie-banner a { font-weight: 700; color: var(--forest); }
.cookie-banner a:hover { color: var(--pine); }

.cookie-accept {
  border-radius: 999px;
  border: none;
  background: var(--forest);
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.cookie-accept:hover { background: var(--pine); }
.cookie-accept:active { transform: scale(0.95); transition-duration: 0.1s; }

/* ── RESPONSIVE (shared) ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-scrim { display: block; }

  section.container { padding-top: 4.5rem; padding-bottom: 4.5rem; }

  .contact-panel { grid-template-columns: 1fr; }

  .faq-section { grid-template-columns: 1fr; gap: 0; }
  .faq-section .section-head { position: static; margin-bottom: 2rem; }
}

@media (max-width: 640px) {
  .nav-phone { display: none; }

  .f-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .f-row .f-group { margin-bottom: 1rem; }

  .cookie-surface { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-accept { padding: 0.75rem 1.25rem; }
}

@media (min-width: 641px) {
  .contact-left, .contact-right { padding: 4rem 3rem; }
}

/* ── ACCESSIBILITY PREFERENCES ────────────────────────────────
   Reduced motion means a gentler equivalent, not the absence of
   feedback: cross-fades survive, travel and overshoot don't.    */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: opacity 0.3s linear; }

  .btn:active,
  .nav-cta:active,
  .form-submit:active,
  .cookie-accept:active { transform: none; }

  .service-card:hover { transform: none; }
  .service-card:hover .service-media img { transform: none; }
  .faq-item summary::after { transition: background 0.2s linear; }
}

/* Frostier and solid rather than translucent. */
@media (prefers-reduced-transparency: reduce) {
  header.site-header,
  header.site-header.scrolled { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cookie-surface { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-outline-light { background: rgba(61, 90, 38, 0.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Near-solid backgrounds with a defined, contrasting border. */
@media (prefers-contrast: more) {
  :root {
    --ink-70: rgba(31, 42, 26, 0.88);
    --ink-60: rgba(31, 42, 26, 0.82);
    --ink-50: rgba(31, 42, 26, 0.75);
    --line:   rgba(31, 42, 26, 0.35);
    --line-lt: rgba(31, 42, 26, 0.28);
  }
  header.site-header, header.site-header.scrolled {
    background: var(--page);
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  header.site-header::after { display: none; }
  .cookie-surface, .mobile-nav { background: #fff; border-color: var(--line); }
  .btn-outline-light { border-width: 2px; border-color: var(--cream); background: transparent; }
}

/* Current branding and accessibility within the restored design. */
.brand-logo { display: block; width: 11.5rem; height: 2.5rem; object-fit: contain; object-position: left; }
.nav-logo { flex-shrink: 0; }
.footer-logo { flex-wrap: wrap; gap: 1rem; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--forest); color: var(--cream); }
.skip-link:focus { top: 1rem; }

/* WhatsApp contact link. */
.whatsapp-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 46; /* Below the menu scrim (48), sheet (49) and header (50). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--forest);
  color: var(--page);
  box-shadow: var(--sh-1);
  transition: background 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.whatsapp-float:hover { background: var(--pine); }

.whatsapp-float:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--forest);
}

.whatsapp-float svg { display: block; flex-shrink: 0; }

/* Hide during consent choices or while the mobile menu is open. */
body:has(#iubenda-cs-banner) .whatsapp-float,
.nav-scrim.active ~ .whatsapp-float,
.mobile-nav.active ~ .whatsapp-float {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after,
  .whatsapp-float svg {
    animation: none;
    transition: none;
  }
}

/* Small feedback on surfaces without an existing lift. Entrance effects use
   an additive transform, leaving the existing card hover transform in charge. */
.offer-card, main .review-card { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .offer-card:hover, .review-card:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(.97); }
.offer-card:active { transform: scale(.995); transition-duration: 100ms; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .offer-card:hover, .offer-card:active,
  .review-card:hover { transform: none; }
}
