/* ============================================================
   Dynamic Cleaning Services — design system
   Style: Trust & Authority  ·  Type: Lexend / Source Sans 3
   Palette: DCS brand slate #2b5672 + sky #4eb7f5 + CTA #c2410c
   ============================================================ */

/* ---------- fonts (self-hosted variable, no third-party request) ---------- */
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans3-var.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* brand */
  --primary: #2b5672;
  --primary-deep: #16344a;
  --primary-mid: #386b8d;
  --primary-tint: #e3f0f8;
  --secondary: #4eb7f5;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --success: #15803d;

  /* surfaces */
  --bg: #ffffff;
  --surface: #f2f8fc;
  --surface-2: #f7fafc;
  --fg: #0f2231;
  --fg-muted: #5a7183;
  --border: #dbe7ef;
  --on-primary: #ffffff;

  /* type */
  --font-head: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem);

  /* spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 88px; --sp-10: 120px;

  /* shape + depth */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(15,34,49,.06), 0 1px 3px rgba(15,34,49,.08);
  --sh-2: 0 4px 6px -1px rgba(15,34,49,.07), 0 2px 4px -2px rgba(15,34,49,.06);
  --sh-3: 0 10px 15px -3px rgba(15,34,49,.09), 0 4px 6px -4px rgba(15,34,49,.06);
  --sh-4: 0 20px 25px -5px rgba(15,34,49,.12), 0 8px 10px -6px rgba(15,34,49,.07);
  --sh-glow: 0 12px 32px -8px rgba(43,86,114,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 150ms var(--ease);
  --t: 220ms var(--ease);
  --wrap: 1200px;
  --wrap-narrow: 780px;
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
h1,h2,h3,h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 var(--sp-4);
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
a  { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15em; }
li { margin-bottom: var(--sp-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button, [role="button"], summary, label[for] { cursor: pointer; }

/* ---------- focus (visible on every surface) ---------- */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible { outline-color: #ffd9a8; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sp-9); }
.section-sm { padding-block: var(--sp-7); }
.section-tint { background: var(--surface); }
.section-dark {
  background: linear-gradient(160deg, var(--primary-deep), var(--primary) 65%, #35648a);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #d6e6f2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-mid); margin-bottom: var(--sp-3);
}
/* On dark surfaces the mid-blue eyebrow only reaches 3.5:1. This lighter
   tint hits 5.2:1, which 13px bold text needs to pass AA. */
.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.on-dark .eyebrow { color: #a5d8f9; }
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.lede { font-size: var(--fs-lg); color: var(--fg-muted); max-width: 62ch; }
.section-dark .lede { color: #cfe2f0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section-head { margin-bottom: var(--sp-7); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 15px var(--sp-6);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base);
  line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform var(--t-fast), box-shadow var(--t);
  box-shadow: var(--sh-2);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary  { --btn-bg: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--border); box-shadow: none; }
.btn-outline:hover { background: var(--primary-tint); border-color: var(--primary-mid); color: var(--primary-deep); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.btn-ghost-light:hover { background: #fff; color: var(--primary-deep); border-color: #fff; }
.btn-lg { padding: 18px var(--sp-7); font-size: var(--fs-lg); }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--primary-tint); color: var(--primary-deep);
  font-size: var(--fs-sm); font-weight: 600; margin: 0;
}
.chip svg { width: 15px; height: 15px; color: var(--success); flex: none; }
.on-dark .chip, .section-dark .chip { background: rgba(255,255,255,.13); color: #fff; }
.on-dark .chip svg, .section-dark .chip svg { color: var(--secondary); }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--primary-deep); color: #cfe2f0;
  font-size: var(--fs-xs); padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.topbar-items { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--secondary); flex: none; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--secondary); }
@media (max-width: 860px) { .topbar-hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(15,34,49,.28); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}
/* the brand must be allowed to shrink, or a long name pushes the
   hamburger off-screen on narrow viewports */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand img { width: 52px; height: 52px; border-radius: var(--r-sm); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem;
  color: #fff; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Only let the brand shrink where the nav collapses to a drawer. Above that
   there is room for the full name, so it must not ellipsize. */
@media (min-width: 1081px) {
  .brand { flex: none; }
  .brand-name { overflow: visible; text-overflow: clip; }
}
@media (max-width: 520px) {
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: .9375rem; }
}
/* #4eb7f5 is only 3.52:1 on the header blue — too low for 11px text */
.brand-sub { font-size: 11px; color: #a5d8f9; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 420px) { .brand-sub { display: none; } }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  position: relative; display: block; padding: 10px 13px;
  color: #eaf3fa; text-decoration: none;
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500;
  border-radius: var(--r-sm); transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav a[aria-current="page"] { color: #fff; font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--secondary); border-radius: 2px;
}
/* the in-nav CTA is for the mobile drawer only */
.nav > .btn { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: #fff; text-decoration: none; font-family: var(--font-head);
  font-weight: 700; font-size: var(--fs-base); white-space: nowrap;
  transition: color var(--t);
}
.header-phone:hover { color: var(--secondary); }
.header-phone svg { width: 18px; height: 18px; color: var(--secondary); }

/* dropdown */
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-4); padding: var(--sp-2); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub li { margin: 0; }
.sub a { color: var(--fg); padding: 10px 12px; font-weight: 500; }
.sub a:hover { background: var(--primary-tint); color: var(--primary-deep); }

.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm); color: #fff; cursor: pointer; transition: background var(--t);
}
.nav-toggle:hover { background: rgba(255,255,255,.24); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 0 auto; width: min(360px, 88vw);
    background: var(--primary-deep); flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--sp-5) var(--sp-4) var(--sp-8);
    overflow-y: auto; transform: translateX(105%);
    /* `visibility` matters as much as the transform: a closed drawer that is
       merely translated still widens the document, which pushes the hamburger
       off-screen and leaves its links keyboard-focusable. */
    visibility: hidden;
    /* visibility is discrete: delay it out on close, apply it instantly on
       open, so the drawer is never mid-slide while still hidden */
    transition: transform 280ms var(--ease), visibility 0s linear 280ms;
    box-shadow: -14px 0 40px rgba(0,0,0,.34);
  }
  .nav.is-open {
    transform: translateX(0); visibility: visible;
    transition: transform 280ms var(--ease), visibility 0s;
  }
  .nav a { padding: 14px var(--sp-4); font-size: var(--fs-lg); border-radius: var(--r-sm); }
  .nav a[aria-current="page"]::after { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: 0 0 var(--sp-2) var(--sp-4); border-left: 2px solid rgba(255,255,255,.2);
    margin-left: var(--sp-4);
  }
  .sub a { color: #b9d3e6; font-size: var(--fs-base); padding: 10px var(--sp-3); }
  .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav > .btn { display: inline-flex; margin-top: var(--sp-4); }
}
@media (max-width: 620px) { .header-phone span { display: none; } }

.nav-scrim {
  position: fixed; inset: 0; background: rgba(15,34,49,.5); z-index: 99;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--primary-deep) 0%, var(--primary) 55%, #35688f 100%);
  color: #fff; overflow: hidden;
  padding-block: var(--sp-9) var(--sp-10);
}
.hero::after {
  content: ""; position: absolute; right: -14%; top: -28%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,183,245,.3), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--sp-8); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 .hl { color: var(--secondary); }
.hero-sub { font-size: var(--fs-lg); color: #d3e6f4; max-width: 54ch; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: #eaf4fb; margin: 0; }
.hero-trust svg { width: 17px; height: 17px; color: var(--secondary); flex: none; }

.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-4); aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: 34px;
  background: #fff; color: var(--fg); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--sh-4);
  display: flex; align-items: center; gap: var(--sp-3); max-width: 260px;
}
.hero-badge svg { width: 34px; height: 34px; color: var(--success); flex: none; }
.hero-badge b { font-family: var(--font-head); font-size: var(--fs-base); display: block; line-height: 1.25; }
.hero-badge span { font-size: var(--fs-xs); color: var(--fg-muted); }

@media (max-width: 980px) {
  /* headline leads on narrow screens — the image follows the pitch */
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 16/11; }
  .hero-badge { left: auto; right: 14px; bottom: -18px; }
}
@media (max-width: 560px) {
  .hero { padding-block: var(--sp-7) var(--sp-8); }
  .hero-cta .btn { width: 100%; }
  .hero-badge { position: static; margin-top: var(--sp-4); max-width: none; }
}

/* ---------- quote form card ---------- */
.quote-card {
  background: #fff; color: var(--fg);
  border-radius: var(--r-xl); padding: var(--sp-6);
  box-shadow: var(--sh-4); border-top: 5px solid var(--accent);
}
.quote-card h2, .quote-card h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.quote-card .form-note { font-size: var(--fs-sm); color: var(--fg-muted); margin-bottom: var(--sp-5); }

.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px var(--sp-4);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: #fff; font-size: var(--fs-base); font-family: var(--font-body);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary-mid); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(78,183,245,.28);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { font-size: var(--fs-xs); color: var(--fg-muted); margin: var(--sp-3) 0 0; text-align: center; }

/* ============================================================
   TRUST BAR
   ============================================================ */
/* Pure white, not the tinted surface: most of these logo files carry an
   opaque white background, so a tinted band renders them as visible boxes. */
.trust-bar { background: #fff; border-block: 1px solid var(--border); padding-block: var(--sp-6); }
.trust-bar p { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-5); }

/* ---------- logo marquee ---------- */
.marquee {
  --marquee-gap: var(--sp-8);
  --marquee-speed: 38s;
  overflow: hidden;
  /* fade the logos out at both edges instead of clipping them dead */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
}
.marquee-set {
  display: flex; align-items: center;
  gap: var(--marquee-gap);
  /* the trailing gap must live inside the set, so translating by exactly
     one set width lands seamlessly on the duplicate */
  padding-right: var(--marquee-gap);
  margin: 0; padding-left: 0; list-style: none;
}
.marquee-set li { margin: 0; flex: none; }
/* These wordmarks run from 1:1 (Baskin-Robbins) to 5.7:1 (State Farm), so
   cap both axes — a fixed height would blow the wide ones out. */
.marquee-set img {
  width: auto; height: auto;
  /* taller cap lifts the square roundels (Baskin, Nektar, Domino's) so they
     don't read as half the size of the wide wordmarks */
  max-height: 64px; max-width: 190px;
  object-fit: contain;
  opacity: .9;
  transition: opacity var(--t), transform var(--t);
}
.marquee-set img:hover { opacity: 1; transform: scale(1.07); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@media (max-width: 620px) {
  .marquee { --marquee-gap: var(--sp-6); --marquee-speed: 26s; }
  .marquee-set img { max-height: 38px; max-width: 140px; }
}

/* No motion: drop the animation and let the row be swiped/scrolled instead,
   so every logo is still reachable. */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* service card */
.svc {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--sh-4); border-color: var(--primary-mid); }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-tint); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.svc:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: var(--sp-2); }
.svc-body p { color: var(--fg-muted); font-size: var(--fs-sm); flex: 1; }
.svc-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--sp-3);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  color: var(--primary); text-decoration: none;
}
.svc-link svg { width: 16px; height: 16px; transition: transform var(--t); }
.svc:hover .svc-link { color: var(--accent); }
.svc:hover .svc-link svg { transform: translateX(4px); }
.svc-tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: rgba(15,34,49,.82); color: #fff; backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-full);
}

/* feature / why card */
.feat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--primary-mid); }
.feat-ico {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  transition: background var(--t), color var(--t);
}
.feat-ico svg { width: 25px; height: 25px; }
.feat:hover .feat-ico { background: var(--primary); color: #fff; }
.feat h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.feat p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }

.section-dark .feat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: none; }
.section-dark .feat:hover { background: rgba(255,255,255,.12); border-color: var(--secondary); }
.section-dark .feat-ico { background: rgba(78,183,245,.2); color: var(--secondary); }
.section-dark .feat:hover .feat-ico { background: var(--secondary); color: var(--primary-deep); }
.section-dark .feat p { color: #cfe2f0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1;
  color: var(--secondary); margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.stat span { font-size: var(--fs-sm); color: #cfe2f0; font-weight: 600; }
.stats-light .stat b { color: var(--primary); }
.stats-light .stat span { color: var(--fg-muted); }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); align-items: start; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--secondary);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-1);
}
.stars { display: flex; gap: 3px; margin-bottom: var(--sp-3); color: #f59e0b; }
.stars svg { width: 19px; height: 19px; }
.quote blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-base); color: var(--fg); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); }
.quote figcaption b { display: block; font-family: var(--font-head); }
.quote figcaption span { color: var(--fg-muted); font-size: var(--fs-xs); }
/* declared after (and more specifically than) the figcaption span rule —
   otherwise the initial inherits muted grey onto the dark circle */
.avatar, .quote figcaption .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-base);
}

/* ---------- before / after proof ---------- */
.ba { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }
.ba figure {
  margin: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t);
}
.ba figure:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.ba .ba-img { position: relative; }
.ba img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.ba .ba-img::before, .ba .ba-img::after {
  position: absolute; bottom: var(--sp-3);
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-full); color: #fff;
}
.ba .ba-img::before { content: "Before"; left: var(--sp-3); background: rgba(15,34,49,.85); }
.ba .ba-img::after  { content: "After";  right: var(--sp-3); background: var(--success); }
.ba figcaption { padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); color: var(--fg-muted); }
.ba figcaption b { display: block; font-family: var(--font-head); color: var(--fg); margin-bottom: 2px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: var(--sp-5); } }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
  color: var(--primary-tint); line-height: 1;
}
.section-dark .step::before { color: rgba(78,183,245,.28); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }
.section-dark .step p { color: #cfe2f0; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--sp-6); } }
.split img { border-radius: var(--r-lg); box-shadow: var(--sh-3); width: 100%; }
.split-media-first .split-media { order: -1; }

/* ---------- checklist ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-3); }
.ticks li { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; }
.ticks svg { width: 21px; height: 21px; color: var(--success); flex: none; margin-top: 2px; }
.section-dark .ticks svg { color: var(--secondary); }
.ticks-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .ticks-2 { grid-template-columns: 1fr; } }

/* ---------- price table ---------- */
.price-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--sh-1); background: #fff; }
.price { width: 100%; border-collapse: collapse; min-width: 460px; }
.price caption { text-align: left; padding: var(--sp-4) var(--sp-5) 0; font-size: var(--fs-sm); color: var(--fg-muted); }
.price th, .price td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--border); }
.price thead th {
  background: var(--primary); color: #fff; font-family: var(--font-head);
  font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase;
}
.price tbody tr:last-child td { border-bottom: 0; }
.price tbody tr:hover { background: var(--surface); }
.price td:last-child, .price th:last-child { text-align: right; }
.price .amount { font-family: var(--font-head); font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ---------- numbered detail blocks ---------- */
.detail { display: grid; gap: var(--sp-5); }
.detail article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-1);
  display: grid; grid-template-columns: 62px 1fr; gap: var(--sp-5); align-items: start;
  transition: border-color var(--t), box-shadow var(--t);
}
.detail article:hover { border-color: var(--primary-mid); box-shadow: var(--sh-3); }
@media (max-width: 620px) { .detail article { grid-template-columns: 1fr; gap: var(--sp-3); } }
.detail .num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.75rem;
  color: var(--primary-tint); line-height: 1;
  -webkit-text-stroke: 1px var(--primary-mid);
}
.detail h3 { margin-bottom: var(--sp-2); }
.detail dl { margin: 0; display: grid; gap: var(--sp-3); }
.detail dt {
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary-mid); margin-bottom: 2px;
}
.detail dd { margin: 0; color: var(--fg-muted); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--t), box-shadow var(--t);
}
.faq details[open] { border-color: var(--primary-mid); box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base);
  list-style: none; transition: background var(--t), color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface); color: var(--primary); }
.faq summary .caret { width: 21px; height: 21px; flex: none; color: var(--primary); transition: transform var(--t); }
.faq details[open] summary .caret { transform: rotate(180deg); }
.faq .faq-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--fg-muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- area / city links ---------- */
.area-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }
.city-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2) var(--sp-4);
}
@media (max-width: 700px) { .city-list { grid-template-columns: repeat(2, 1fr); } }
.city-list li { margin: 0; }
.city-list a {
  display: block; padding: 6px 0; font-size: var(--fs-sm);
  color: var(--fg); text-decoration: none; transition: color var(--t), padding-left var(--t);
  border-bottom: 1px solid var(--border);
}
.city-list a:hover { color: var(--accent); padding-left: 6px; }
.section-dark .city-list a { color: #dceaf4; border-bottom-color: rgba(255,255,255,.15); }
.section-dark .city-list a:hover { color: var(--secondary); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary) 70%, #35688f);
  color: #fff; border-radius: var(--r-xl); padding: var(--sp-8);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items: center;
  box-shadow: var(--sh-glow);
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: var(--sp-6); text-align: center; } }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: #d3e6f4; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (max-width: 860px) { .cta-actions { align-items: stretch; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--primary-deep), var(--primary) 70%, #35688f);
  color: #fff; padding-block: var(--sp-8); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -60%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,183,245,.26), transparent 68%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.page-hero p { color: #d3e6f4; font-size: var(--fs-lg); max-width: 68ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.crumbs li { margin: 0; color: #b8d4e6; display: flex; gap: var(--sp-2); align-items: center; }
.crumbs li + li::before { content: "/"; color: #8fb4cd; }
.crumbs a { color: #cfe2f0; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--primary-mid); }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-deep); color: #b9d3e6; padding-block: var(--sp-8) var(--sp-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-7); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer a { color: #b9d3e6; text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--secondary); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-list li { margin: 0; }
.footer-nap { display: grid; gap: var(--sp-3); }
.footer-nap div { display: flex; gap: var(--sp-3); align-items: flex-start; }
.footer-nap svg { width: 17px; height: 17px; color: var(--secondary); flex: none; margin-top: 3px; }
.footer-nap a { color: #fff; font-weight: 600; }
.footer-brand img { width: 56px; height: 56px; border-radius: var(--r-sm); margin-bottom: var(--sp-4); }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-xs);
}
.socials { display: flex; gap: var(--sp-3); }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); transition: background var(--t), transform var(--t);
}
.socials a:hover { background: var(--secondary); color: var(--primary-deep); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- mobile sticky call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--border); box-shadow: 0 -4px 18px rgba(15,34,49,.18);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: 15px 8px; text-decoration: none;
    font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
  }
  .callbar .cb-call { background: var(--primary); color: #fff; }
  .callbar .cb-quote { background: var(--accent); color: #fff; }
  .callbar svg { width: 18px; height: 18px; }
  body { padding-bottom: 62px; }
}

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
/* never leave content invisible if JS fails or motion is reduced */
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Set by JS when the page loads in a hidden tab: a hidden document pauses
   transitions, so `is-in` alone would still compute to opacity 0. Show the
   content outright instead of animating it. */
.reveal-instant .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- utilities ---------- */
.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;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
