/* ==========================================================================
   Sprucely — Cleaning Service HTML Template
   Version 1.0

   TABLE OF CONTENTS
   01. Design tokens (edit colors & fonts here)
   02. Base & typography
   03. Layout helpers
   04. Buttons & links
   05. Header & navigation
   06. Hero (foggy glass)
   07. Page header (inner pages)
   08. Sections: trust, services, quote, before/after, steps
   09. Checklist tabs, testimonials, FAQ, CTA band
   10. About, team, pricing, projects, blog, contact
   11. Footer
   12. Motion (scroll reveal) & reduced motion
   13. Responsive
   ========================================================================== */

/* 01. Design tokens ------------------------------------------------------- */
:root {
  /* Brand palette */
  --spruce: #0E3B36;        /* primary dark: headings, dark sections */
  --spruce-2: #165049;      /* hover / lighter dark */
  --chalk: #F4F8F7;         /* page background */
  --white: #FFFFFF;
  --mint: #BFEBD9;          /* soft surfaces */
  --mint-2: #E3F6EE;        /* very light mint */
  --zest: #F2E25C;          /* accent: main call-to-action */
  --zest-2: #E8D63A;        /* accent hover */
  --slate: #4D5F5C;         /* secondary text */
  --line: rgba(14, 59, 54, .14);
  --line-strong: rgba(14, 59, 54, .28);
  --danger: #B3261E;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  --step-5: clamp(2.8rem, 1.2rem + 5.6vw, 6.25rem);

  /* Shape & space */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 84px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* 02. Base & typography --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--spruce);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.015em; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: var(--step-1); color: var(--slate); line-height: 1.5; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }

:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--zest); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--zest); padding: .75rem 1rem; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 03. Layout helpers ------------------------------------------------------ */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--mint { background: var(--mint-2); }
.section--dark { background: var(--spruce); color: var(--chalk); }
.section--dark .lead, .section--dark .muted { color: rgba(244, 248, 247, .74); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 2rem 4rem; }
.section-head--split p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.stack > * + * { margin-top: 1rem; }

/* Image frames. Replace files in assets/images — see documentation. */
.media { border-radius: var(--radius-l); overflow: hidden; background: var(--mint); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* 04. Buttons & links ----------------------------------------------------- */
.btn {
  --btn-bg: var(--zest); --btn-fg: var(--spruce); --btn-bd: var(--zest);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-weight: 600; text-decoration: none; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: 999px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:hover { --btn-bg: var(--zest-2); --btn-bd: var(--zest-2); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { --btn-bg: var(--spruce); --btn-fg: var(--chalk); --btn-bd: var(--spruce); }
.btn--dark:hover { --btn-bg: var(--spruce-2); --btn-bd: var(--spruce-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--spruce); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--spruce); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .cta-band .btn--ghost { --btn-fg: var(--chalk); --btn-bd: rgba(244, 248, 247, .4); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { --btn-bg: rgba(244, 248, 247, .08); --btn-bd: var(--chalk); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease-out);
}
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* 05. Header & navigation ------------------------------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: var(--zest); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 248, 247, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 248, 247, .94); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); transition: height .3s var(--ease-out); }
.site-header.is-scrolled .header-inner { height: 68px; }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.04em; }
.logo-mark { width: 34px; height: 34px; flex: none; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: .55rem .85rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; color: var(--slate);
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { color: var(--spruce); background: var(--mint-2); }
.nav-list a[aria-current="page"] { color: var(--spruce); background: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
.header-actions .btn { min-height: 46px; padding: .7rem 1.3rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 06. Hero (foggy glass) ------------------------------------------------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; overflow: hidden; background: var(--spruce); isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-fog { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; touch-action: pan-y; }
.hero-inner { display: grid; align-content: end; padding-block: clamp(3rem, 8vw, 6rem); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { color: var(--spruce); opacity: .82; max-width: 34ch; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; font-size: var(--step--1); font-weight: 500; }
.stars { display: inline-flex; gap: 2px; color: var(--spruce); }
.stars svg { width: 16px; height: 16px; }
.wipe-hint {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(14, 59, 54, .78); color: var(--chalk); font-size: var(--step--1); font-weight: 500;
  pointer-events: none; transition: opacity .6s;
}
.wipe-hint svg { width: 18px; height: 18px; }
.wipe-hint.is-hidden { opacity: 0; }

/* Hero entrance — one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
  .hero-copy > :nth-child(1) { animation-delay: .9s; }
  .hero-copy > :nth-child(2) { animation-delay: 1.02s; }
  .hero-copy > :nth-child(3) { animation-delay: 1.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 1.26s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* 07. Page header (inner pages) ------------------------------------------ */
.page-head { position: relative; overflow: hidden; background: var(--mint-2); padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-5); max-width: 14ch; }
.page-head .lead { margin: 0; max-width: 46ch; }
.page-head-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem 4rem; align-items: end; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: var(--step--1); color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head-bubbles { position: absolute; right: -60px; top: -80px; width: 380px; height: 380px; color: var(--mint); z-index: 0; pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }

/* 08. Sections ------------------------------------------------------------ */
/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.trust-list li { display: flex; align-items: center; gap: .85rem; padding: 1.6rem 1.25rem; font-weight: 500; line-height: 1.35; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list svg { width: 28px; height: 28px; flex: none; color: var(--spruce); }

/* Service rows: a list you scan like a menu, not a card grid */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service-row { border-bottom: 1px solid var(--line-strong); }
.service-row a {
  display: grid; grid-template-columns: 56px 1.1fr 1.4fr 110px 44px; gap: 1.5rem; align-items: center;
  padding: 1.6rem .5rem; text-decoration: none; position: relative;
  transition: background-color .25s, padding .35s var(--ease-out);
}
.service-row a:hover { background: var(--white); padding-inline: 1.25rem; }
.service-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; transition: background-color .25s; }
.service-icon svg { width: 26px; height: 26px; }
.service-row a:hover .service-icon { background: var(--zest); }
.service-row h3 { margin: 0; font-size: var(--step-2); }
.service-row p { margin: 0; color: var(--slate); }
.service-price { font-weight: 600; white-space: nowrap; }
.service-price span { display: block; font-weight: 400; font-size: var(--step--1); color: var(--slate); }
.service-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .35s var(--ease-out); }
.service-arrow svg { width: 18px; height: 18px; }
.service-row a:hover .service-arrow { background: var(--spruce); border-color: var(--spruce); color: var(--chalk); transform: rotate(-45deg); }

/* Instant quote calculator */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.quote-intro ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.quote-intro li { display: flex; gap: .75rem; align-items: flex-start; }
.quote-intro li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--spruce); }
.section--dark .quote-intro li svg { color: var(--zest); }
.quote-card .muted { color: var(--slate); }
.quote-card { background: var(--white); color: var(--spruce); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.quote-card fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.quote-card legend, .field-label { font-weight: 600; margin-bottom: .75rem; padding: 0; display: block; }
.seg { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; gap: .15rem; align-content: center; text-align: center; padding: .85rem .5rem; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); font-weight: 600; line-height: 1.2;
  transition: background-color .2s, border-color .2s;
}
.seg label small { font-weight: 400; color: var(--slate); font-size: .8rem; }
.seg label:hover { border-color: var(--spruce); }
.seg input:checked + label { background: var(--spruce); border-color: var(--spruce); color: var(--chalk); }
.seg input:checked + label small { color: var(--mint); }
.seg input:focus-visible + label { outline: 3px solid var(--spruce); outline-offset: 2px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.75rem; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .5rem .5rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); }
.stepper-label { font-weight: 600; line-height: 1.2; }
.stepper-label small { display: block; font-weight: 400; color: var(--slate); font-size: .8rem; }
.stepper-ctrl { display: flex; align-items: center; gap: .35rem; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mint-2); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.stepper button:hover { background: var(--mint); }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 1.6ch; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.check { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: var(--radius-s); background: var(--mint-2); cursor: pointer; font-weight: 500; transition: background-color .2s; }
.check:hover { background: var(--mint); }
.check input { width: 20px; height: 20px; accent-color: var(--spruce); margin: 0; }
.check span:last-child { margin-left: auto; color: var(--slate); font-size: .875rem; }
.quote-total { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px dashed var(--line-strong); margin-bottom: 1.25rem; }
.quote-total .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.quote-total .save { display: inline-block; margin-top: .35rem; padding: .2rem .6rem; border-radius: 999px; background: var(--zest); font-size: .85rem; font-weight: 600; }
.quote-total .save[hidden] { display: none; }

/* Before / after */
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden; background: var(--mint); --pos: 50%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--zest); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); pointer-events: none; transition: transform .2s var(--ease-out); }
.ba-handle svg { width: 26px; height: 26px; }
.ba:hover .ba-handle { transform: scale(1.08); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible ~ .ba-handle { outline: 3px solid var(--white); outline-offset: 3px; }
.ba-tag { position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; pointer-events: none; }
.ba-tag--before { left: 1rem; background: rgba(14, 59, 54, .82); color: var(--chalk); }
.ba-tag--after { right: 1rem; background: var(--white); color: var(--spruce); }

/* Steps: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 2rem 2rem 0 0; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.5rem;
  background: var(--zest); color: var(--spruce); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: calc(2rem + 28px); left: 56px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--slate); }
.section--dark .step p { color: rgba(244, 248, 247, .74); }
.section--dark .step::after { background: repeating-linear-gradient(90deg, rgba(244, 248, 247, .3) 0 8px, transparent 8px 16px); }

/* 09. Checklist tabs ------------------------------------------------------ */
.tabs-list { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin-bottom: 2rem; }
.tab { border: 0; background: transparent; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--slate); transition: background-color .25s, color .25s; }
.tab:hover { color: var(--spruce); }
.tab[aria-selected="true"] { background: var(--spruce); color: var(--chalk); }
.tab-panel ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.tab-panel li { break-inside: avoid; display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.tab-panel li svg { width: 22px; height: 22px; flex: none; color: var(--spruce); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel:not([hidden]) li { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
}

/* Testimonials */
.reviews-wrap { position: relative; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.review { scroll-snap-align: start; background: var(--white); border-radius: var(--radius-m); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; border: 1px solid var(--line); margin: 0; }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .85rem; }
.review figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--mint); }
.review figcaption strong { display: block; line-height: 1.2; }
.review figcaption span { font-size: var(--step--1); color: var(--slate); }
.review-nav { display: flex; gap: .5rem; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.icon-btn:hover { background: var(--spruce); border-color: var(--spruce); color: var(--chalk); }
.icon-btn svg { width: 20px; height: 20px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--mint); transition: transform .35s var(--ease-out), background-color .25s; }
.faq-icon svg { width: 18px; height: 18px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--zest); }
.faq-body { padding: 0 3.5rem 1.5rem 0; color: var(--slate); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-body { animation: rise .45s var(--ease-out); }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--spruce); color: var(--chalk); padding: clamp(2.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--step-4); margin: 0 0 .75rem; max-width: 16ch; }
.cta-band p { margin: 0; color: rgba(244, 248, 247, .78); }
.cta-band .btn-row { flex-direction: column; align-items: stretch; }
.cta-band .bubbles { position: absolute; right: -40px; top: -60px; width: 340px; height: 340px; color: var(--spruce-2); pointer-events: none; }
.cta-band > * { position: relative; }

/* 10. About ---------------------------------------------------------------- */
.about-media { display: grid; grid-template-columns: 1fr .7fr; gap: 1rem; align-items: end; }
.about-media .media:first-child { aspect-ratio: 4 / 5; }
.about-media .media:last-child { aspect-ratio: 3 / 4; margin-bottom: 3rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.fact strong { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -.03em; margin-bottom: .4rem; }
.fact span { color: var(--slate); font-size: var(--step--1); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.value-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--zest); color: var(--spruce); margin-bottom: 1.5rem; }
.value-icon svg { width: 30px; height: 30px; }
.section--dark .value p { color: rgba(244, 248, 247, .74); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member .media { aspect-ratio: 4 / 5; border-radius: var(--radius-m); margin-bottom: 1rem; }
.member h3 { font-size: var(--step-1); margin: 0; }
.member p { margin: 0; color: var(--slate); font-size: var(--step--1); }

/* Service detail */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail-body .media { aspect-ratio: 16 / 9; margin-bottom: 2.5rem; }
.detail-body h2 { font-size: var(--step-3); margin-top: 2.5rem; }
.included { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.included li { display: flex; gap: .65rem; align-items: flex-start; }
.included svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.75rem; }
.aside-box h3 { font-size: var(--step-1); }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; transition: color .2s, padding .3s var(--ease-out); }
.aside-links a:hover, .aside-links a[aria-current="page"] { padding-left: .5rem; }
.aside-links a[aria-current="page"] { font-weight: 700; }
.aside-links svg { width: 16px; height: 16px; }
.aside-box--dark { background: var(--spruce); color: var(--chalk); border-color: var(--spruce); }
.aside-box--dark p { color: rgba(244, 248, 247, .78); }
.aside-price { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: .25rem 0 1rem; }
.aside-price span { font-size: var(--step-0); font-weight: 500; letter-spacing: 0; font-family: var(--font-body); }

/* Pricing */
.billing { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 3rem; font-weight: 600; }
.switch { position: relative; width: 64px; height: 36px; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; transition: background-color .25s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease-out); }
.switch[aria-checked="true"] { background: var(--spruce); }
.switch[aria-checked="true"]::after { transform: translateX(28px); }
.billing .badge { background: var(--zest); padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2.25rem; display: flex; flex-direction: column; }
.plan h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.plan > p { color: var(--slate); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 1.75rem; }
.plan-price .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--slate); }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.plan li { display: flex; gap: .65rem; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--spruce); color: var(--chalk); border-color: var(--spruce); position: relative; }
.plan--featured > p, .plan--featured .plan-price .per { color: rgba(244, 248, 247, .74); }
.plan--featured li svg { color: var(--zest); }
.plan-flag { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--zest); color: var(--spruce); padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: var(--step-1); background: var(--mint-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare svg { width: 20px; height: 20px; display: inline-block; }
.compare .no { color: var(--line-strong); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter { border: 1.5px solid var(--line-strong); background: transparent; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--spruce); }
.filter[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--chalk); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.project.is-hidden { display: none; }
.project h3 { font-size: var(--step-2); margin: 1.25rem 0 .25rem; }
.project p { margin: 0; color: var(--slate); }
.project .ba { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.post a { text-decoration: none; display: block; }
.post .media { aspect-ratio: 4 / 3; border-radius: var(--radius-m); margin-bottom: 1.25rem; }
.post .media img { transition: transform .8s var(--ease-out); }
.post a:hover .media img { transform: scale(1.04); }
.post-meta { font-size: var(--step--1); color: var(--slate); margin-bottom: .5rem; display: flex; gap: 1rem; }
.post h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.post a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post--wide { grid-column: 1 / -1; }
.post--wide a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.post--wide .media { aspect-ratio: 16 / 10; margin: 0; border-radius: var(--radius-l); }
.post--wide h3 { font-size: var(--step-3); }
.article { max-width: 720px; margin-inline: auto; }
.article .media { aspect-ratio: 16 / 9; margin: 0 0 3rem; }
.article h2 { font-size: var(--step-3); margin-top: 2.5rem; }
.article p, .article li { font-size: 1.125rem; line-height: 1.75; }
.article ul { padding-left: 1.25rem; }
.article blockquote { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 1.75rem; border-left: 4px solid var(--zest); font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; letter-spacing: -.01em; }
.author { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; margin-top: 3rem; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; }
.page-head--article { text-align: left; }
.page-head--article h1 { max-width: 20ch; font-size: var(--step-4); }

/* Contact & forms */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong); background: var(--chalk); transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--spruce); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--spruce); background: var(--white); box-shadow: 0 0 0 4px var(--mint); }
.field .error { display: none; margin-top: .4rem; color: var(--danger); font-size: var(--step--1); font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.form-status { display: none; align-items: flex-start; gap: .75rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-s); background: var(--mint); font-weight: 500; }
.form-status.is-visible { display: flex; }
.form-status svg { width: 22px; height: 22px; flex: none; }
.info-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .info-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); }
.info-list svg { width: 22px; height: 22px; }
.info-list strong { display: block; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--mint); margin-top: 2rem; }
.map svg { width: 100%; height: 100%; }

/* 404 */
.notfound { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--spruce); isolation: isolate; }
.notfound .hero-fog { z-index: 0; }
.notfound-inner { position: relative; z-index: 1; padding: 4rem var(--gutter); pointer-events: none; }
.notfound-inner a { pointer-events: auto; }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 22vw, 16rem); line-height: .85; letter-spacing: -.06em; margin: 0 0 1rem; }
.notfound p { margin-inline: auto; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--spruce); color: var(--chalk); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-grid h2 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--mint); margin-bottom: 1.25rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-grid a { text-decoration: none; color: rgba(244, 248, 247, .82); transition: color .2s; }
.footer-grid a:hover { color: var(--zest); }
.footer-about p { color: rgba(244, 248, 247, .74); max-width: 34ch; margin: 1.25rem 0 1.5rem; }
.footer-about .logo { color: var(--chalk); }
.newsletter { display: flex; gap: .5rem; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; min-height: 52px; padding: .8rem 1.25rem; border-radius: 999px; border: 1.5px solid rgba(244, 248, 247, .25); background: transparent; color: var(--chalk); }
.newsletter input::placeholder { color: rgba(244, 248, 247, .55); }
.newsletter input:focus { outline: none; border-color: var(--zest); }
.newsletter-msg { font-size: var(--step--1); color: var(--mint); margin: .6rem 0 0; min-height: 1.4em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid rgba(244, 248, 247, .14); font-size: var(--step--1); color: rgba(244, 248, 247, .6); }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--zest); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 248, 247, .25); transition: background-color .2s, border-color .2s, color .2s; }
.socials a:hover { background: var(--zest); border-color: var(--zest); color: var(--spruce); }
.socials svg { width: 18px; height: 18px; }
.footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 19vw, 17rem); line-height: 1; letter-spacing: -.06em; color: var(--spruce-2); margin: 0 0 .15em; user-select: none; overflow-x: clip; white-space: nowrap; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--zest); color: var(--spruce); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease-out), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* 12. Motion: scroll reveal --------------------------------------------- */
/* Elements with [data-reveal] fade in when they enter the screen.
   Remove the attribute from any element to switch it off. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Tier 2: keep a short fade, drop the movement */
  .js [data-reveal], .js [data-reveal="scale"] { transform: none; transition: opacity .2s ease; transition-delay: 0s; }
  .service-row a, .service-row a:hover { padding-inline: .5rem; }
  .service-row a:hover .service-arrow { transform: none; }
  .post a:hover .media img { transform: none; }
  .btn:active { transform: none; }
  .switch::after, .faq-icon { transition-duration: .01ms; }
}

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: var(--chalk); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem; margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
  }
  .site-header.is-scrolled .nav { top: 68px; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; padding: .7rem 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-mobile-cta { display: flex !important; margin-top: 1.5rem; }
  .section-head--split, .split, .quote, .detail, .contact, .page-head-grid, .cta-band { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 2; }
  .service-row a { grid-template-columns: 52px 1fr auto; grid-template-areas: "icon title arrow" "icon desc desc" "icon price price"; gap: .35rem 1.25rem; align-items: start; }
  .service-icon { grid-area: icon; width: 52px; height: 52px; }
  .service-row h3 { grid-area: title; align-self: center; }
  .service-row p { grid-area: desc; }
  .service-price { grid-area: price; margin-top: .5rem; }
  .service-price span { display: inline; margin-left: .35rem; }
  .service-arrow { grid-area: arrow; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .step { padding: 0 0 0 80px; min-height: 80px; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step::after { left: 27px; right: auto; top: 64px; bottom: -8px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 16px); }
  .section--dark .step::after { background: repeating-linear-gradient(180deg, rgba(244, 248, 247, .3) 0 8px, transparent 8px 16px); }
  .values, .plans, .posts { grid-template-columns: 1fr 1fr; }
  .plans .plan--featured { grid-column: 1 / -1; order: -1; }
  .post--wide a { grid-template-columns: 1fr; gap: 1.25rem; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .wipe-hint { left: var(--gutter); right: auto; top: 1.25rem; bottom: auto; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trust-list li { padding: 1.1rem 0; }
  .steppers, .checks, .form-grid, .included, .projects, .values, .plans, .posts, .team, .facts { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .seg { --cols: 2 !important; }
  .tab-panel ul { columns: 1; }
  .about-media { grid-template-columns: 1fr; }
  .about-media .media:last-child { display: none; }
  .faq-body { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}
.nav-mobile-cta { display: none !important; }
@media (max-width: 980px) { .nav-mobile-cta { display: flex !important; } }
@media (max-width: 640px) {
  .newsletter { max-width: 100%; }
  .newsletter .btn { padding-inline: 1.1rem; flex: none; }
  .tabs-list { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 999px; scrollbar-width: none; }
  .tab { white-space: nowrap; flex: none; }
}
.footer-grid > * { min-width: 0; }
.newsletter input { width: 100%; }
