/* =============================================================
   Apollo Cleaning Solutions — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Sections · 7. Effects · 8. Responsive
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --navy-950: #071a33;
  --navy-900: #0b2447;
  --navy-800: #12325f;
  --blue-700: #1849a8;
  --blue-600: #1f5fd1;
  --blue-500: #3b7bea;
  --blue-300: #9fd0ff;
  --blue-100: #dceaff;
  --blue-50:  #f1f6ff;
  --white:    #ffffff;
  --ink:      #0f1b2d;
  --muted:    #4d5b72;
  --line:     #dfe6f1;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fd;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,36,71,.06), 0 2px 8px rgba(11,36,71,.05);
  --shadow:    0 2px 4px rgba(11,36,71,.04), 0 12px 32px rgba(11,36,71,.08);
  --shadow-lg: 0 4px 8px rgba(11,36,71,.05), 0 24px 60px rgba(11,36,71,.14);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
p { text-wrap: pretty; }
::selection { background: var(--blue-100); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .7rem 1rem; background: var(--navy-900); color: #fff; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 4. Typography ------------------------------------------------ */
h1, h2, h3, .h3 { font-family: var(--display); color: var(--navy-900); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 2.2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose a, .form-legal a, .text-link-inline, .two-col p a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* 5. Components ------------------------------------------------ */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1;
  border: 2px solid transparent; white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(31,95,209,.28); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 26px rgba(31,95,209,.34); }
.btn-ghost { background: var(--white); color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }
@media (max-width: 539px) { .hero .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; } }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--display); font-weight: 700; color: var(--blue-700); }
.text-link .icon { transition: transform .3s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.brand-text strong { font-size: 1.3rem; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.brand-text small { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }
.brand-invert .brand-text strong { color: #fff; }
.brand-invert .brand-text small { color: #b6c6e0; }

/* Top bar (scrolls away; the header below stays sticky) */
.topbar { background: var(--navy-950); color: #c9d6ea; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px; }
.topbar ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; list-style: none; padding: 0; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--blue-300); }
.topbar a { color: #fff; font-weight: 600; padding-block: .45rem; }
.topbar a:hover { color: var(--blue-300); }
.topbar-info { display: none !important; }
.topbar-email-full { display: none; }
.topbar-contact { width: 100%; justify-content: space-between; }

/* Header */
/* Blur lives on ::before — a backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); }
@supports (backdrop-filter: blur(12px)) { .site-header::before { background: rgba(255,255,255,.85); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11,36,71,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; color: var(--navy-900); border: 1px solid var(--line); background: #fff; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

/* Nav — base (no-JS + mobile): stacked panel */
.site-nav { width: 100%; }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.nav-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .2rem; font-weight: 600; color: var(--navy-900); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue-600); }
.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub-list { padding-left: .5rem; }
.sub-icon { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-600); }
.sub-icon .icon { width: 18px; height: 18px; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy-900); }
.nav-phone:hover { color: var(--blue-600); }
.nav-mail { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }
.nav-mail:hover { color: var(--blue-600); }

/* JS mobile menu */
.js .nav-toggle { display: inline-flex; }
.js .header-inner { flex-wrap: nowrap; }
.js .site-nav {
  position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.25rem var(--gutter) 2rem; background: #fff; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
}
.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s; }
.js .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.js .nav-list > li { border-bottom: 1px solid var(--line); }
.js .nav-list > li > a { width: 100%; padding: 1rem 0; font-size: 1.1rem; font-family: var(--display); }
.js .sub-list { padding: 0 0 .75rem; display: grid; gap: .25rem; }
.js .sub-list a { padding: .45rem 0; font-size: 1rem; font-family: var(--sans); }
.js .nav-cta { flex-direction: column; align-items: stretch; }
.js .nav-cta .btn { min-height: 52px; }
.js .nav-phone { justify-content: center; padding: .5rem; }
body.nav-open { overflow: hidden; }

/* Cards & panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.panel h2 { margin-bottom: 1rem; }
.panel-blue { background: var(--navy-900); border-color: var(--navy-900); color: #dbe6f7; }
.panel-blue h2 { color: #fff; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.service-icon .icon { width: 24px; height: 24px; }

.check-list { display: grid; gap: .8rem; margin: 1.25rem 0 1.75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); margin-top: 1px; stroke-width: 2.6; }

.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.chip-grid li { padding: .7rem .9rem; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--navy-900); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.tag-list li { padding: .35rem .8rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: .875rem; font-weight: 600; }

.num-list { counter-reset: n; display: grid; gap: .75rem; }
.num-list li { counter-increment: n; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 500; }
.num-list li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-600); color: #fff; font-family: var(--display); font-weight: 800; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #9aa7bb; }
.breadcrumbs a { color: var(--blue-700); }
.breadcrumbs a:hover { text-decoration: underline; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; color: var(--navy-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--blue-600); transition: transform .3s var(--ease-out); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* Form */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy-900); }
.req { color: var(--blue-600); }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid #cfd9e8; border-radius: 12px; background: #fff;
  font-size: 1rem; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 20px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31,95,209,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2362f; }
.field-error { color: #b42318; font-size: .875rem; font-weight: 500; }
.field-hint { font-size: .875rem; color: var(--muted); }
.form-note { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.field-hint.is-error { color: #b42318; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js [data-moving-only][hidden] { display: none; }
.form-legal { font-size: .875rem; color: var(--muted); margin: 1.25rem 0 1rem; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }
.form-status .msg { padding: 1rem 1.1rem; border-radius: 12px; font-weight: 500; }
.form-status .msg-ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status .msg-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.is-sending [data-submit] { opacity: .75; pointer-events: none; }

/* 6. Sections -------------------------------------------------- */
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
/* Two sections with the same background back to back: don't double the gap */
.section:not(.section-soft) + .section:not(.section-soft), .section-soft + .section-soft { padding-top: 0; }
.section-tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head.split { max-width: none; display: grid; gap: 1rem; align-items: end; }
.section-head.split > p { color: var(--muted); max-width: 52ch; }

/* Hero */
.hero { position: relative; padding-block: clamp(1.75rem, 5vw, 4rem) clamp(2.5rem, 5.5vw, 4.25rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 85% 10%, rgba(159,208,255,.45), transparent 70%),
  radial-gradient(45% 45% at 0% 90%, rgba(31,95,209,.10), transparent 70%),
  linear-gradient(180deg, #f3f8ff 0%, #fff 100%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title { font-size: clamp(2.35rem, 7.2vw, 4.1rem); line-height: 1.04; max-width: 15ch; }
.hero-title .accent { color: var(--blue-600); display: block; }
.hero-copy .lead { margin-top: 1.25rem; }
.hero-copy .btn-row { margin-top: 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.75rem; color: var(--navy-800); font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--blue-600); stroke-width: 2.6; width: 1.1em; height: 1.1em; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem .7rem; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.hero-badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-600); color: #fff; }
.hero-badge strong { display: block; font-family: var(--display); color: var(--navy-900); line-height: 1.2; }
.hero-badge small { color: var(--muted); font-size: .85rem; }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 0; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); }
.trust-item strong { display: block; font-family: var(--display); color: var(--navy-900); line-height: 1.25; }
.trust-item span { font-size: .9rem; color: var(--muted); }

/* Service cards */
.service-grid { display: grid; gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.service-card-media { display: block; overflow: hidden; }
.service-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 0 1.4rem 1.5rem; flex: 1; }
.service-card-body .service-icon { margin-top: -24px; background: #fff; box-shadow: var(--shadow); }
.service-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card-body h3 a:hover { color: var(--blue-700); }
.service-card-body p { color: var(--muted); flex: 1; }
.service-card-body .text-link { position: relative; z-index: 1; }

/* Service groups (home) */
.group-grid { display: grid; gap: 1.25rem; }
.group-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.group-card:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
.group-card-media { overflow: hidden; }
.group-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease-out); }
.group-card:hover .group-card-media img { transform: scale(1.03); }
.group-card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.group-card-body > p { color: var(--muted); }
.group-card-body .btn { align-self: flex-start; margin-top: auto; }
.group-links { display: grid; gap: .25rem; margin: .25rem 0 .75rem; }
.group-links a { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; margin-inline: -.5rem; border-radius: 12px; font-weight: 600; color: var(--navy-900); transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.group-links a > span:nth-child(2) { flex: 1; }
.group-links a > .icon { width: 18px; height: 18px; color: var(--blue-600); opacity: .55; transition: transform .3s var(--ease-out), opacity .2s; }
.group-links a:hover { background: var(--blue-50); color: var(--blue-700); }
.group-links a:hover > .icon { transform: translateX(3px); opacity: 1; }
.section-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Service groups (services page) */
.group-row { display: grid; gap: 1.75rem; align-items: start; }
.group-row-media { margin-bottom: 1.5rem; }
.group-row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.group-row-head h2 + p { margin-top: .75rem; }
.tile-grid { display: grid; gap: 1rem; }
.service-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.service-tile:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.service-tile .service-icon { flex: none; }
.service-tile-body p { color: var(--muted); margin-top: .35rem; }
.service-tile-body h3 a:hover { color: var(--blue-700); }
.service-tile-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .75rem; }
.text-link-quiet { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.text-link-quiet:hover { text-decoration-color: currentColor; }

/* Service area + hours */
.city-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.city-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .925rem; color: var(--navy-900); }
.city-list .icon { width: 16px; height: 16px; color: var(--blue-600); }
.hours-list { display: grid; gap: .45rem; margin-bottom: 1.25rem; font-size: .95rem; }
.hours-list strong { color: var(--navy-900); }
.hours-invert, .hours-invert strong { color: #fff; }
.hours-invert li:not(:first-child) { color: #c9d6ea; }
.panel-subtitle { font-size: 1rem; color: #fff; margin: 1.25rem 0 .6rem; }
.break { overflow-wrap: anywhere; }
#area .panel { align-self: start; }

/* Feature */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature-media img, .page-hero-media img, .service-row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-copy > p { color: var(--muted); margin-top: 1rem; }

/* Steps */
.steps { display: grid; gap: 1.25rem; }
.step { position: relative; padding: 1.35rem 1.4rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step-num { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue-100); }
.step-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--blue-600); color: #fff; margin-bottom: .8rem; }
.step p { color: var(--muted); margin-top: .5rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 1.5rem; padding: clamp(1.75rem, 5vw, 3.5rem); border-radius: var(--radius-lg); color: #d6e3f7; background:
  radial-gradient(60% 90% at 100% 0%, rgba(59,123,234,.55), transparent 60%),
  linear-gradient(135deg, var(--navy-900), var(--navy-950)); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: .6rem; max-width: 52ch; }
.cta-band-wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Page hero */
.page-hero { padding-block: clamp(1.5rem, 4vw, 3.25rem); background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%); }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
.page-hero .lead { margin-top: 1rem; }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero-compact { padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-hero-compact.center .lead { margin-inline: auto; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ecfdf3; color: #067647; margin-bottom: 1.25rem; }
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }

/* Two columns */
.two-col { display: grid; gap: 2rem; }
.two-col h2 + p { margin-top: 1rem; color: var(--muted); }
.two-col .btn { margin-top: 1.5rem; }

/* Service rows */
.service-rows { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }
.service-row { display: grid; gap: 1.5rem; align-items: center; }
.service-row-copy h2 { margin-top: 1rem; }
.service-row-copy > p { color: var(--muted); margin-top: .75rem; }

/* Values */
.value-grid { display: grid; gap: 1.25rem; }
.value { padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.value > .icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 1rem; }
.value p { color: var(--muted); margin-top: .5rem; }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
.contact-aside { display: grid; gap: 1.25rem; }
.mini-steps { counter-reset: s; display: grid; gap: 1rem; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: .8rem; }
.mini-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-family: var(--display); }
.mini-steps strong { color: var(--navy-900); }
.mini-steps span { color: var(--muted); font-size: .95rem; }
.contact-list { display: grid; gap: .75rem; }
.contact-list a, .contact-list li > span { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--blue-300); }

/* Footer */
.site-footer { background: var(--navy-950); color: #b6c6e0; padding-top: clamp(2.5rem, 5vw, 3.75rem); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding-bottom: 2.5rem; }
.footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 38ch; }
.footer-title { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-static { display: inline-flex; align-items: center; gap: .55rem; padding-block: .15rem; }
.footer-links a:hover { color: #fff; }
.footer-links.dark a { color: var(--navy-900); font-weight: 600; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin-bottom: 1.25rem; }
.footer-badges li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .85rem; font-weight: 600; }
.footer-badges .icon { width: 16px; height: 16px; color: var(--blue-300); }
.footer-title-gap { margin-top: 1.75rem; }
.footer-domain { white-space: nowrap; }
.site-footer .hours-list { font-size: .9rem; }
.footer-links.dark a:hover { color: var(--blue-600); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.5rem calc(1.5rem + 76px); border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.footer-bottom a:hover { color: #fff; }

/* Mobile CTA bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,36,71,.08); transition: transform .3s var(--ease-out); }
.mobile-cta .btn { flex: 1; min-height: 50px; }
.mobile-cta .btn-ghost { flex: 0 0 auto; }
.mobile-cta.is-hidden { transform: translateY(110%); }

/* 7. Effects --------------------------------------------------- */
/* Hero entrance — CSS only, content is never hidden without it */
/* Text only slides (never hidden, even if the animation stalls); the photo also fades */
@keyframes heroIn { from { transform: translateY(12px); } to { transform: none; } }
@keyframes heroFade { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-in { animation: heroIn .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms); }
.hero-media.hero-in { animation-name: heroFade; }

/* Scroll reveal — only below-the-fold items, added by JS (with CSS safety net) */
.js .reveal.is-pending { opacity: 0; transform: translateY(18px); animation: revealSafety .01s 4s forwards; }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* View transitions between pages */
@view-transition { navigation: auto; }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  :root { --gutter: 24px; }
  .topbar-contact { width: auto; margin-left: auto; }
  .topbar-email-full { display: inline; }
  .topbar-email-short { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
  .trust-item + .trust-item { border-top: 0; }
  .chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .field.full, .field-hint.full { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; }
  .quote-form { padding: 2rem; }
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-brand { grid-column: 1 / -1; }
  .section-head.split { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 3.5rem; }
  .topbar-info { display: flex !important; }
  .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-row { grid-template-columns: 1fr 1.35fr; gap: 3.5rem; }
  .group-row.is-flipped .group-row-head { order: 2; }
  .group-row-head { position: sticky; top: calc(var(--header-h) + 24px); }
  .nav-mail { display: none; }
  .hero-media img { aspect-ratio: 5 / 4.4; }
  .hero-badge { left: -24px; bottom: 32px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 1.4rem 0; }
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .page-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .two-col.align-center { align-items: center; }
  .service-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .service-row.is-flipped .service-row-media { order: 2; }
  .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding-bottom: 1.5rem; }
  .mobile-cta { display: none; }

  /* Desktop nav (JS or not) */
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav {
    position: static; visibility: visible; opacity: 1; transform: none; overflow: visible;
    flex-direction: row; align-items: center; justify-content: flex-end; gap: 1.75rem;
    padding: 0; background: none; width: auto;
  }
  .js .nav-list, .nav-list { flex-direction: row; gap: 1.75rem; align-items: center; }
  .js .nav-list > li { border: 0; }
  .js .nav-list > li > a, .nav-list > li > a { width: auto; padding: .5rem 0; font-size: 1rem; font-family: var(--sans); }
  .js .nav-cta { flex-direction: row; align-items: center; }
  .js .nav-phone { padding: 0; }
  .has-sub { display: flex; align-items: center; gap: .1rem; }
  .sub-toggle { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; color: var(--navy-900); }
  .sub-toggle .icon { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .js .sub-list, .sub-list {
    position: absolute; top: calc(100% + 10px); left: -1rem; z-index: 60; width: 580px; grid-template-columns: 1fr 1fr;
    display: grid; gap: .15rem; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(6px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
  }
  .sub-list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover .sub-list, .has-sub:focus-within .sub-list, .sub-toggle[aria-expanded="true"] + .sub-list {
    visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s;
  }
  .js .sub-list a, .sub-list a { display: flex; padding: .55rem .6rem; border-radius: 10px; font-family: var(--sans); font-size: .98rem; }
  .sub-list a:hover, .sub-list a[aria-current="page"] { background: var(--blue-50); }
  .has-sub.is-dismissed .sub-list { visibility: hidden; opacity: 0; }
  body.nav-open { overflow: visible; }
}

@media (min-width: 1280px) {
  :root { --gutter: 32px; }
  .service-grid:not(.service-grid-2) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 9. Reduced motion — only intrusive bits */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation-duration: .01s; }
  .service-card:hover .service-card-media img { transform: none; }
}
