/* =========================================================
   ALPINE JANITORIAL — Site-wide styles
   Brand colors sampled from the official logo:
     Alpine blue  #016699  (sunburst rays)
     Mountain     #5A5E5D  (peaks)
     Black / white (wordmark + background)
   Visual motifs pulled from the logo: the sunburst (homepage hero +
   blue CTA band only) and mountain ridgelines (section edges).
   Subpage-only styles live in subpage-styles.css.
   ========================================================= */

:root {
  /* Brand */
  --blue: #016699;
  --blue-deep: #014a70;
  --blue-sky: #3aa0d4;        /* brighter blue for use on dark backgrounds only */
  --blue-ice: #e4f0f6;
  --ink: #0b0d0f;             /* logo black */
  --ink-2: #14181b;
  --mountain: #5a5e5d;        /* logo peaks */
  --stone: #9aa1a3;
  --snow: #f2f5f7;
  --white: #ffffff;

  /* Text */
  --text: #161b1e;
  --muted: #586166;
  --line: #dbe2e6;

  /* Layout */
  --header-height: 88px;
  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 18px 40px -22px rgba(11, 13, 15, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Fonts */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--white); }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

p + p { margin-top: 1em; }

:focus-visible {
  outline: 3px solid var(--blue-sky);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 22px; height: 22px; flex-shrink: 0; }

.accent-word { color: var(--blue); }
.band-dark .accent-word,
.hero .accent-word,
.page-hero .accent-word { color: var(--blue-sky); }
.cta-band .accent-word { color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link { transition: top 0.3s ease; }
.skip-link:focus { top: 12px; }

/* Crossfade helper (scripts.js): the outgoing results pair / review fades
   out before the next one fades in with the results-in animation. */
.is-leaving {
  opacity: 0 !important;
  animation: none !important;
  transition: opacity 0.18s ease;
}

/* =========================
   BUTTONS & LINKS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--white); }

.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-sm { padding: 11px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.text-link::after {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.text-link:hover::after,
.service-card:hover .text-link::after { width: 36px; }

/* =========================
   TOP BAR + HEADER
   ========================= */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  min-height: 40px;
}
.topbar-email:hover { color: var(--white); }
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--white);
}
.topbar-phone .icon { width: 15px; height: 15px; color: var(--blue-sky); }
.topbar-phone strong { font-weight: 500; font-size: 1rem; }
.topbar-phone:hover { color: var(--blue-sky); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--ink);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }

/* Homepage: header floats over the hero photo until you scroll */
.header-homepage {
  position: absolute;     /* sits just under the contact bar, over the hero */
  left: 0;
  right: 0;
  top: 40px;
}
.header-homepage:not(.scrolled) { background: transparent; }
.header-homepage.scrolled {   /* contact bar has scrolled away — pin to the top */
  position: fixed;
  top: 0;
  background: rgba(11, 13, 15, 0.97);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo { display: block; flex-shrink: 0; }
.logo img {
  height: 74px;
  width: auto;
  transition: transform 0.5s var(--ease);
}
.logo:hover img { transform: scale(1.04); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-caret { width: 11px; height: 8px; transition: transform 0.3s ease; }
.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Services dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 330px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  border-top: 3px solid var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
}
.dropdown::before {           /* hover bridge between link and panel */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -22px;
  height: 22px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-link {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.dropdown-link:hover,
.dropdown-link.active { background: var(--blue-ice); color: var(--blue); }
.dropdown-link .icon { color: var(--blue); }

.header-cta { margin-left: 4px; }

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  z-index: 120;
}
.menu-bar {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(380px, 90vw);
  background: var(--ink-2);
  z-index: 99;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
  padding: 140px 30px 36px;
  overflow-y: auto;
}
.mobile-menu.open { transform: none; visibility: visible; box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5); }
.mobile-menu-nav { display: flex; flex-direction: column; }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav-link.active,
.mobile-nav-link:hover { color: var(--blue-sky); }
.mobile-subnav {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px 16px;
  border-left: 2px solid var(--blue);
  margin: 6px 0 4px;
}
.mobile-subnav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 7px 0;
  font-size: 1.02rem;
}
.mobile-subnav-link.active,
.mobile-subnav-link:hover { color: var(--white); }
.mobile-menu-cta { margin-top: 28px; }
.mobile-menu-phone {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--blue-sky);
}

/* =========================
   SECTIONS / BANDS
   ========================= */
.band { position: relative; padding: 112px 0; }
.band-tight { padding: 80px 0; }
.band-tight-top { padding-top: 64px; }
.band-white { background: var(--white); }
.band-snow { background: var(--snow); }
.band-dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.band-dark h2, .band-dark h3 { color: var(--white); }

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.band-dark .section-header p { color: rgba(255, 255, 255, 0.7); }

.section-label,
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.band-dark .section-label,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--blue-sky); }

.section-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ink);
}

/* Mountain ridgeline dividers */
.ridge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
}
.ridge-bottom { bottom: -1px; z-index: 3; fill: var(--white); }
.ridge-top { top: -59px; fill: var(--ink); }

/* =========================
   HOMEPAGE HERO
   ========================= */
.hero {
  position: relative;
  min-height: min(820px, 100vh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 80px) 0 150px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  transform: scale(1.06);
  animation: hero-drift 18s ease-out forwards;
}
@keyframes hero-drift { to { transform: scale(1); } }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 15, 0.88) 0%, rgba(11, 13, 15, 0.6) 50%, rgba(11, 13, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 13, 15, 0.55) 0%, transparent 30%, transparent 70%, rgba(11, 13, 15, 0.5) 100%);
}

/* Sunburst rising from behind the ridge, straight from the logo */
.hero-sunburst {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: min(1500px, 140vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 1000px 1000px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(58, 160, 212, 0.1) 0 2.2deg, transparent 2.2deg 6deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 24%, #000 25%, #000 40%, transparent 58%);
          mask: radial-gradient(circle at 50% 100%, transparent 24%, #000 25%, #000 40%, transparent 58%);
  pointer-events: none;
  opacity: 0;
  animation: sunrise 2.4s var(--ease) 0.3s forwards;
}
@keyframes sunrise {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; }
.hero-title {
  font-size: clamp(3rem, 7.2vw, 5.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}
.hero-text {
  font-size: 1.2rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================
   TRUST STRIP
   Full-width gray band; the hero's mountain ridge is filled with the
   same gray so the peaks run straight into it.
   ========================= */
.hero .ridge-bottom { fill: var(--snow); }
.trust {
  background: var(--snow);
  padding: 22px 0 46px;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
}
.trust-item:first-child { padding-left: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { width: 30px; height: 30px; color: var(--blue); }
.trust-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--blue);
}
.trust-label { font-weight: 700; font-size: 0.98rem; line-height: 1.35; color: var(--ink); }

/* =========================
   SERVICE CARDS
   ========================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 10px; }
.service-card-body p { color: var(--muted); margin-bottom: 20px; flex: 1; }

.services-extra {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
}
.services-extra a { color: var(--blue); font-weight: 700; border-bottom: 1px solid currentColor; }
.services-extra a:hover { color: var(--ink); }

/* =========================
   SPLIT (image + copy)
   ========================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.split-media { position: relative; z-index: 0; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-media-portrait img { aspect-ratio: 4 / 5; object-position: center 30%; }
.split-media::before {         /* offset blue frame */
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.split-copy .section-title { margin-bottom: 20px; }
.split-copy p { color: var(--muted); }

/* About: three short points under the intro */
.about-points {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.about-points li { display: flex; gap: 16px; align-items: flex-start; }
.about-points .icon { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.about-points strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.about-points span { color: var(--muted); line-height: 1.5; }
.about-more { margin-top: 30px; }

/* Simple check list (service page "What's included") */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); line-height: 1.4; }
.check-list .icon { width: 20px; height: 20px; color: var(--blue); stroke-width: 2.4; margin-top: 1px; }

/* =========================
   HOMEPAGE RESULTS (tabs + one before/after pair)
   ========================= */
.results {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}
.results-copy .section-title { margin-bottom: 0; }

.results-tabs {
  display: grid;
  margin: 30px 0 28px;
  border-top: 1px solid var(--line);
}
.results-tab {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 18px 0 18px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.results-tab:hover { background: var(--snow); }
.results-tab.active { border-left-color: var(--blue); background: var(--snow); }
.results-tab-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  padding-top: 2px;
  transition: color 0.3s ease;
}
.results-tab.active .results-tab-num { color: var(--blue); }
.results-tab-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.results-tab-text small {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2px;
}

/* Each tab's panel carries its own offset blue frame, so the frame
   fades in and out together with its photos. */
.results-panel {
  position: relative;
  animation: results-in 0.5s ease;
}
.results-panel[hidden] { display: none; }
.results-panel::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
}
@keyframes results-in { from { opacity: 0; } to { opacity: 1; } }
.results-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.results-pair figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
}
.results-pair img { width: 100%; height: 100%; object-fit: cover; }
/* The old photos already have BEFORE / AFTER burned in, so the captions
   are for screen readers only. Replace this line with visible styling
   if new, unlabeled photos come in. */
.results-pair figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================
   BEFORE / AFTER COMPARE SLIDER (service page galleries)
   ========================= */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.compare-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }

.compare {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare::before {               /* divider line */
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  z-index: 2;
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: 3px solid var(--white);
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}
.compare-handle svg { width: 20px; height: 20px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}
.compare:focus-within .compare-handle { outline: 3px solid var(--blue-sky); outline-offset: 3px; }
.compare figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(11, 13, 15, 0.8));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* =========================
   REVIEWS — one at a time
   ========================= */
.review-slider {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark { width: 40px; height: 30px; color: var(--blue-sky); margin: 0 auto 26px; display: block; }
/* All reviews sit stacked in the same grid cell, so the box is always as
   tall as the longest review and never changes size. Shorter reviews are
   centered in that space. Switching just crossfades: the old one fades
   out while the new one fades in a beat later. */
.review-track { display: grid; }
.review {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.review.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.15s, visibility 0s;
}
.review blockquote {
  font-size: 1.3rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.review figcaption { margin-top: 26px; }
.review figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.review figcaption span { font-size: 0.92rem; color: var(--stone); }

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.review-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: grid;
  place-items: center;
}
.review-btn svg { width: 20px; height: 20px; }
.review-btn:hover { background: var(--blue); border-color: var(--blue); }
.review-dots { display: flex; gap: 10px; }
.review-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.review-dot:hover { background: rgba(255, 255, 255, 0.55); }
.review-dot.active { background: var(--blue-sky); transform: scale(1.25); }
.review-all { margin-top: 30px; color: var(--blue-sky); }
.review-all:hover { color: var(--white); }

/* =========================
   CONTACT + LOCATION
   ========================= */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); }
.contact-phone {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.contact-phone:hover { color: var(--ink); }
.contact-details {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0 30px;
}
.contact-details li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.contact-details .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
.contact-details a { color: var(--text); font-weight: 700; }
.contact-details a:hover { color: var(--blue); }
.contact-details small { display: block; font-size: 0.88rem; margin-top: 2px; }

.form-card {
  background: var(--snow);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-card-title { font-size: 1.8rem; color: var(--ink); margin-bottom: 4px; }
.form-card-sub { color: var(--muted); margin-bottom: 26px; }
.estimate-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group > label { font-weight: 700; font-size: 0.93rem; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(1, 102, 153, 0.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.recaptcha-wrap { margin: 4px 0 18px; min-height: 78px; }
.recaptcha-error { margin: -8px 0 18px; color: #8a2419; font-size: 0.95rem; }
/* Google's checkbox is a fixed 304px wide: shrink it on narrow phones */
@media (max-width: 400px) { .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; } .recaptcha-wrap { min-height: 69px; } }
@media (max-width: 345px) { .g-recaptcha { transform: scale(0.8); } .recaptcha-wrap { min-height: 62px; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.98rem; }
.form-alert-success { background: #e6f4ea; color: #1d5b2e; border: 1px solid #bfe0c8; }
.form-alert-error { background: #fbecea; color: #8a2419; border: 1px solid #f1c5bf; }

/* =========================
   CTA BAND
   ========================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: 80px 0 120px;
}
.sunburst {
  position: absolute;
  right: -160px;
  bottom: -60px;
  width: 760px;
  height: 380px;
  border-radius: 760px 760px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(255, 255, 255, 0.12) 0 2.5deg, transparent 2.5deg 7deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 28%, #000 29%);
          mask: radial-gradient(circle at 50% 100%, transparent 28%, #000 29%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-band-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.cta-band-text { font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================
   FOOTER
   ========================= */
.footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: 72px 0 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 0.96rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--white);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 17px; height: 17px; }

.footer-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a:hover { color: var(--blue-sky); }
.footer-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  color: var(--blue-sky);
  margin-bottom: 14px;
}
.footer-phone:hover { color: var(--white); }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: 0.96rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--blue-sky); margin-top: 4px; }
.footer-contact address { font-style: normal; }
.footer-contact a:hover { color: var(--white); }

.sub-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}
.sub-footer a { color: rgba(255, 255, 255, 0.75); }
.sub-footer a:hover { color: var(--blue-sky); }

/* =========================
   MOTION — simple fade-up reveals
   Added by scripts.js (IntersectionObserver); content is visible
   without JS and for reduced-motion users.
   ========================= */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js-motion [data-reveal].revealed { opacity: 1; transform: none; }
.js-motion [data-reveal="fade"] { transform: none; }
.js-motion [data-reveal="left"] { transform: translateX(-36px); }
.js-motion [data-reveal="right"] { transform: translateX(36px); }
.js-motion [data-reveal="left"].revealed,
.js-motion [data-reveal="right"].revealed { transform: none; }
@media (max-width: 960px) {
  .js-motion [data-reveal="left"]:not(.revealed),
  .js-motion [data-reveal="right"]:not(.revealed) { transform: translateY(26px); }
}

/* Hero headline: words rise in on load */
.js-motion .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-rise 0.8s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i) * 0.07s);
}
@keyframes word-rise { to { 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;
  }
  .hero-sunburst { opacity: 1; }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .nav-desktop { gap: 22px; }
  .header-cta { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-height: 76px; }
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
  .logo img { height: 56px; }

  .band { padding: 84px 0; }
  .hero { min-height: 0; padding: calc(var(--header-height) + 72px) 0 140px; }

  .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .trust-item { padding: 14px 24px; }
  .trust-item:nth-child(odd) { padding-left: 0; border-left: none; }

  .service-grid { grid-template-columns: 1fr 1fr; }

  .split,
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .split-media { max-width: 560px; }

  .results { grid-template-columns: 1fr; gap: 48px; }
  .results-media { max-width: 640px; }

  .compare-grid-3 { gap: 16px; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar-email { display: none; }
  .topbar-inner { justify-content: center; }

  .band { padding: 68px 0; }
  .section-header { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .service-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .trust { padding: 10px 0 30px; }
  .trust-grid { grid-template-columns: 1fr; row-gap: 0; }
  .trust-item { padding: 14px 0; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--line); }

  .split-media::before { inset: 14px -10px -14px 14px; }
  .check-list { grid-template-columns: 1fr; }

  .results-panel::before { inset: 14px -10px -14px 14px; }
  /* Phones: photo right under the heading, tabs below it, so a tap
     changes a photo that's on screen */
  .results { gap: 0; }
  .results-copy { display: contents; }
  .results-copy > .section-label { order: 1; }
  .results-copy > .section-title { order: 2; margin-bottom: 26px; }
  .results-media { order: 3; margin-right: 10px; }
  .results-tabs { order: 4; margin: 36px 0 22px; }
  .results-copy > .text-link { order: 5; }

  .compare-grid,
  .compare-grid-3 { grid-template-columns: 1fr; max-width: 420px; }

  .review blockquote { font-size: 1.1rem; }

  .contact-phone { font-size: 1.9rem; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1 1 100%; }
  .sunburst { right: -300px; }

  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .sub-footer { flex-direction: column; }
}
