/* ==========================================================================
   ApexTone HVAC Solutions — Design System
   Single stylesheet. Organised: tokens → base → layout → components → pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy (trust) + cool cyan (cooling) + ember orange (heating/CTA) */
  --ink-950: #061019;
  --ink-900: #0b1c2c;
  --ink-800: #112c42;
  --ink-700: #1b4059;
  --ink-600: #2f5a75;

  --cool-700: #0369a1;
  --cool-600: #0284c7;
  --cool-500: #0ea5e9;
  --cool-400: #38bdf8;
  --cool-100: #e0f2fe;

  --warm-700: #c2410c;
  --warm-600: #ea580c;
  --warm-500: #f97316;
  --warm-100: #ffedd5;

  --slate-700: #334155;
  --slate-600: #53657a;
  --slate-500: #7c8ea1;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;

  --green-600: #15803d;
  --green-500: #16a34a;
  --amber-400: #fbbf24;

  /* Typography */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2:  clamp(1.42rem, 1.28rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.72rem, 1.48rem + 1.2vw, 2.3rem);
  --step-4:  clamp(2.05rem, 1.66rem + 1.95vw, 3rem);
  --step-5:  clamp(2.45rem, 1.8rem + 3.25vw, 4rem);

  /* Space */
  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap:    1.25rem;
  --gap-md: 2rem;
  --gap-lg: 3rem;
  --gap-xl: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgb(11 28 44 / 0.06), 0 2px 6px rgb(11 28 44 / 0.05);
  --sh:    0 4px 10px rgb(11 28 44 / 0.06), 0 14px 32px rgb(11 28 44 / 0.08);
  --sh-lg: 0 8px 20px rgb(11 28 44 / 0.08), 0 28px 60px rgb(11 28 44 / 0.14);
  --sh-cta: 0 6px 16px rgb(234 88 12 / 0.28);

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink-900);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--cool-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warm-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }

strong { color: var(--ink-800); font-weight: 700; }

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

::selection { background: var(--cool-100); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--r-xs);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow { max-width: 780px; }

.section { padding-block: var(--gap-xl); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--slate { background: var(--slate-50); }
.section--ink { background: var(--ink-900); color: var(--slate-300); }
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--gap-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); color: var(--slate-600); }
.section--ink .section-head p { color: #9fb6c9; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: var(--r-full);
  background: var(--cool-100);
  color: var(--cool-700);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cool-500);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.2);
}
.eyebrow--warm { background: var(--warm-100); color: var(--warm-700); }
.eyebrow--warm::before { background: var(--warm-500); box-shadow: 0 0 0 3px rgb(249 115 22 / 0.2); }
.eyebrow--ghost { background: rgb(255 255 255 / 0.08); color: var(--cool-400); }

.grid { display: grid; gap: var(--gap-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.1fr 0.9fr; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--warm-600);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 800;
  font-size: var(--step-0);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn svg { flex: none; width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--warm-500); box-shadow: 0 10px 24px rgb(234 88 12 / 0.34); }

.btn--ink { --btn-bg: var(--ink-900); box-shadow: var(--sh); }
.btn--ink:hover { background: var(--ink-800); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  border-color: var(--slate-300);
}
.btn--outline:hover { border-color: var(--ink-900); background: var(--ink-900); --btn-fg: var(--white); }

.btn--ghost {
  --btn-bg: rgb(255 255 255 / 0.07);
  --btn-fg: var(--white);
  border-color: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--white); --btn-fg: var(--ink-900); border-color: var(--white); }

.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--cool-700);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink-950);
  color: #a9c0d2;
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-block: 0.4rem;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.topbar__list svg { width: 15px; height: 15px; color: var(--cool-400); flex: none; }
.topbar a { color: inherit; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--white); }
.topbar__pulse { color: var(--amber-400); font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.logo__name b { color: var(--cool-600); font-weight: 800; }
.logo__sub {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.logo--light .logo__name { color: var(--white); }
.logo--light .logo__name b { color: var(--cool-400); }
.logo--light .logo__sub { color: #7f97ab; }

/* Nav */
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-xs);
  color: var(--ink-800);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__link:hover { background: var(--slate-100); color: var(--ink-900); }
.nav__link[aria-current="page"] { color: var(--cool-700); background: var(--cool-100); }

.header-cta { display: flex; align-items: center; gap: 0.85rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink-900);
}
.header-phone svg { width: 34px; height: 34px; flex: none; }
.header-phone span { display: block; font-size: 0.68rem; color: var(--slate-500); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.header-phone strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

/* The CTA inside .nav is there for the open mobile menu; above 1023px the one in
   .header-cta is the visible button, so only show it once. */
@media (min-width: 1024px) { .nav .btn { display: none; } }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xs);
  background: var(--white);
  cursor: pointer;
  color: var(--ink-900);
}
.nav-toggle svg { width: 22px; height: 22px; margin-inline: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--sh-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 0.9rem 0.75rem; font-size: 1.05rem; border-bottom: 1px solid var(--slate-100); border-radius: 0; }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 719px) {
  .header-phone span { display: none; }
  .header-phone strong { font-size: 0.95rem; }
}
@media (max-width: 519px) {
  .header-phone strong { display: none; }
}

/* --------------------------------------------------------------------------
   6. Media frames + image placeholders
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--slate-100), var(--cool-100));
  box-shadow: var(--sh);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--hero { aspect-ratio: 4 / 3; border-radius: var(--r-xl); }

/* Shown by main.js when an image file is missing — keeps the layout intact. */
.img-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgb(2 132 199 / 0.05) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--cool-100), var(--slate-100));
  color: var(--cool-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.img-fallback svg { width: 34px; height: 34px; margin-inline: auto; opacity: 0.55; }
.img-fallback code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--ink-700);
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--ink-900);
  color: #b9cdda;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
}
.hero::before {
  width: 620px; height: 620px;
  top: -240px; right: -160px;
  background: radial-gradient(circle, rgb(14 165 233 / 0.5), transparent 68%);
}
.hero::after {
  width: 540px; height: 540px;
  bottom: -300px; left: -180px;
  background: radial-gradient(circle, rgb(249 115 22 / 0.28), transparent 68%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cool-400), var(--cool-500) 55%, var(--warm-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: var(--step-1); max-width: 34ch; color: #b9cdda; }
.hero .btn-row { margin-top: 1.9rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2.1rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  color: #cbdde9;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--cool-400); flex: none; }

/* Floating badges on the hero image */
.hero__media { position: relative; }
.hero__media .media { box-shadow: var(--sh-lg); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-lg);
  color: var(--ink-900);
  font-size: 0.85rem;
  line-height: 1.3;
}
.float-card strong { display: block; font-size: 1.05rem; font-weight: 800; }
.float-card small { color: var(--slate-500); font-weight: 700; }
.float-card--rating { left: -14px; bottom: 26px; }
.float-card--response { right: -10px; top: 26px; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--cool-100);
  color: var(--cool-700);
}
.float-card__icon svg { width: 21px; height: 21px; }
.float-card--response .float-card__icon { background: var(--warm-100); color: var(--warm-700); }
.stars { color: var(--amber-400); letter-spacing: 1px; font-size: 0.9rem; }

@media (max-width: 767px) {
  .float-card--rating { left: 8px; bottom: 12px; }
  .float-card--response { display: none; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2.75rem, 2rem + 4vw, 5rem);
  background: var(--ink-900);
  color: #b9cdda;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px; height: 700px;
  top: -320px; right: -120px;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgb(14 165 233 / 0.38), transparent 70%);
}
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero p { font-size: var(--step-1); max-width: 60ch; color: #b9cdda; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 700;
  color: #8ea9bd;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--cool-400); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--r);
  background: var(--white);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.card p { color: var(--slate-600); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--cool-100), #f0f9ff);
  color: var(--cool-700);
  border: 1px solid rgb(2 132 199 / 0.14);
}
.card__icon svg { width: 27px; height: 27px; }
.card__icon--warm {
  background: linear-gradient(140deg, var(--warm-100), #fff7ed);
  color: var(--warm-700);
  border-color: rgb(234 88 12 / 0.16);
}

.card__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}
.card__list li {
  position: relative;
  margin: 0 0 0.4rem;
  padding-left: 1.5rem;
  color: var(--slate-600);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cool-400);
}

.card__foot { margin-top: auto; padding-top: 0.5rem; }

/* Clickable service card with image */
.service-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--cool-400);
}
.service-card .media { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.service-card .media img { transition: transform 0.5s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: var(--step-1); }
.service-card__body h3 a { color: inherit; text-decoration: none; }
.service-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card__tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: rgb(11 28 44 / 0.78);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Stats */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-radius: var(--r);
  overflow: hidden;
  background: var(--slate-200);
}
.stat { padding: 1.5rem 1.4rem; background: var(--white); text-align: center; }
.stat strong {
  display: block;
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.1;
}
.stat span { font-size: var(--step--1); font-weight: 700; color: var(--slate-500); }
.section--ink .stats { background: rgb(255 255 255 / 0.12); }
.section--ink .stat { background: var(--ink-900); }
.section--ink .stat strong { color: var(--white); }
.section--ink .stat span { color: #8ea9bd; }

/* Feature list (why choose us) */
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--cool-100);
  color: var(--cool-700);
}
.feature-list__icon svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: var(--step-0); margin-bottom: 0.25em; }
.feature-list p { font-size: 0.95rem; color: var(--slate-600); margin: 0; }
.section--ink .feature-list__icon { background: rgb(56 189 248 / 0.14); color: var(--cool-400); }
.section--ink .feature-list p { color: #9fb6c9; }

/* Process steps */
.steps {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cool-700);
  background: var(--cool-100);
  border-radius: var(--r-full);
  padding: 0.4rem 0.95rem;
  letter-spacing: 0.04em;
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--slate-600); font-size: 0.95rem; }

/* Reviews */
.review {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--sh-sm);
}
.review__stars { color: var(--amber-400); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 0.85rem; }
.review blockquote { margin: 0 0 1.4rem; font-size: 1.02rem; color: var(--slate-700); }
.review blockquote p::before { content: "\201C"; }
.review blockquote p::after { content: "\201D"; }
.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--slate-100);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--ink-800), var(--cool-700));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.review__name { font-weight: 800; color: var(--ink-900); line-height: 1.3; }
.review__meta { font-size: 0.82rem; color: var(--slate-500); font-weight: 600; }

/* Service-area chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips span,
.chips a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-700);
  text-decoration: none;
}
.chips a:hover { border-color: var(--cool-500); color: var(--cool-700); }
.section--ink .chips span,
.section--ink .chips a {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.14);
  color: #cbdde9;
}

/* Brand strip */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-strip li {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-500);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   9. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
  background: var(--ink-900);
  color: #b9cdda;
  overflow: hidden;
  text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgb(11 28 44 / 0.94) 20%, rgb(11 28 44 / 0.7));
}
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band p { font-size: var(--step-1); max-width: 55ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  background: var(--white);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--cool-400); box-shadow: var(--sh-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.03rem;
  color: var(--ink-900);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--cool-600);
  border-bottom: 2.5px solid var(--cool-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__body { padding: 0 1.4rem 1.35rem; color: var(--slate-600); }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--sh);
}
.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 800; color: var(--ink-800); }
.field label .req { color: var(--warm-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-xs);
  background: var(--slate-50);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-900);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.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='%235a6c7d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 17px; padding-right: 2.6rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--cool-500);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.14);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.field__error { font-size: 0.82rem; font-weight: 700; color: #dc2626; min-height: 0; }
.field__error:empty { display: none; }

.form-consent { font-size: 0.82rem; color: var(--slate-500); }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-xs);
  font-weight: 700;
  font-size: 0.93rem;
}
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: #f0fdf4; color: var(--green-600); border: 1px solid #bbf7d0; }
.form-status[data-state="error"] { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Contact info blocks */
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 1rem; margin: 0 0 1.6rem; }
.info-list__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--cool-100);
  color: var(--cool-700);
}
.info-list__icon svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--slate-500); margin-bottom: 0.25em; }
.info-list p { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink-900); }
.info-list p a { color: inherit; text-decoration: none; }
.info-list p a:hover { color: var(--cool-700); }
.info-list small { display: block; font-size: 0.86rem; font-weight: 600; color: var(--slate-500); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table th,
.hours-table td { padding: 0.65rem 0; text-align: left; border-bottom: 1px solid var(--slate-200); }
.hours-table th { font-weight: 700; color: var(--slate-600); }
.hours-table td { font-weight: 800; color: var(--ink-900); text-align: right; }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }

.map-frame {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  display: block;
}

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.gallery figure { margin: 0; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-600);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: #8ea9bd;
  padding-block: var(--gap-lg) 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: var(--gap-lg);
}
.footer-grid > :first-child { grid-column: span 1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.site-footer p { color: #8ea9bd; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 0.6rem; }
.footer-links a { color: #a9c0d2; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.footer-badges span {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #cbdde9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #a9c0d2; }

/* --------------------------------------------------------------------------
   14. Mobile sticky call bar
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -6px 24px rgb(11 28 44 / 0.1);
}
.callbar .btn { flex: 1; padding-inline: 0.75rem; font-size: 0.95rem; }
@media (max-width: 767px) {
  .callbar { display: flex; }
  body { padding-bottom: 74px; }
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .callbar, .cta-band, .site-footer { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
