/* =========================================================
   TRUEVOLT Power Systems — Design Tokens
   ========================================================= */
:root {
  /* Neutrals — white site background with a whisper of contrast for panels */
  --white: #ffffff;
  --paper: #f4f7f9;
  --line: #e1e8ec;

  /* Charcoal-navy scale, from the TRUEVOLT logo mark (#28363f) — used for text */
  --navy-900: #1b252d;
  --navy-700: #28363f;
  --slate-600: #57666f;
  --slate-400: #8a99a1;

  /* Blue scale, from the TRUEVOLT logo bolt/wordmark (#0087bf) — the accent */
  --blue-600: #006a95;
  --blue-500: #0087bf;
  --blue-400: #2ea6d6;
  --blue-50: #e7f4fa;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;

  --shadow-card: 0 10px 30px -14px rgba(27, 37, 45, 0.16);
  --shadow-card-hover: 0 22px 44px -16px rgba(27, 37, 45, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Reset
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy-700);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--blue-500);
}
p { margin: 0 0 1em; color: var(--slate-600); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(0, 135, 191, 0.45);
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(0, 135, 191, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-700);
}
.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  padding: 10px 14px;
  font-size: 14.5px;
}
.btn-ghost:hover { color: var(--blue-500); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--white);
  transition: padding var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 8px 24px -14px rgba(27, 37, 45, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-700);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width var(--dur-med) var(--ease-out);
}
.main-nav a:hover { color: var(--blue-500); }
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.22;
  z-index: 0;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.08) translateX(-1.5%); }
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 64px;
  text-align: center;
}

.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.eyebrow::before, .section-eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  color: var(--blue-500);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--navy-900);
  max-width: 760px;
  margin: 0 auto 34px;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero .hero-ctas { justify-content: center; }

/* Licensing + endorsement logos. Each logo's width is set inline (--logo-w) so
   wide wordmarks and square badges read at the same visual weight. */
.hero-endorsements {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-endorsements li { display: flex; align-items: center; justify-content: center; }
.hero-endorsements img { width: var(--logo-w); height: auto; max-width: 100%; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--slate-600);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* =========================================================
   Section shared
   ========================================================= */
section { position: relative; padding: 110px 0; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy-900);
  max-width: 640px;
}
.section-sub {
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 0;
}

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--white); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin-top: 56px;
}
/* 6 cards: 2 featured (priority) cards, then 3, then the last 1 centred */
.service-cards > .service-card { grid-column: span 2; }
.service-cards > .service-card-featured { grid-column: span 3; }
.service-cards > .service-card:last-child:not(.service-card-featured) { grid-column: 3 / span 2; }
.service-card-featured .service-media { aspect-ratio: 16 / 10; }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 135, 191, 0.35);
}

.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}
.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
  filter: saturate(1.05);
}
.service-card:hover .service-media img {
  transform: scale(1.06);
}
.service-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-500);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.service-body { padding: 28px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.service-card:hover .service-icon {
  background: var(--blue-500);
  color: var(--white);
  transform: rotate(-8deg) scale(1.08);
}
.service-body h3 { color: var(--navy-900); font-size: 21px; margin-bottom: 10px; }
.service-body p { font-size: 15px; margin-bottom: 16px; }

.service-list { margin-bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.service-list li {
  font-size: 14px;
  color: var(--slate-600);
  padding-left: 22px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue-500);
  transform: rotate(45deg);
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue-500);
  width: fit-content;
}
.service-link svg { transition: transform var(--dur-fast) var(--ease-out); }
.service-link:hover svg { transform: translateX(4px); }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-photo-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--slate-600);
  text-align: center;
  font-style: italic;
}

.about-content .section-title { margin-bottom: 20px; }

.about-stats { margin: 26px 0; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.stat-card img {
  width: 84px;
  height: 64px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
  flex-shrink: 0;
}
.stat-card strong { display: block; color: var(--navy-900); font-size: 15px; margin-bottom: 4px; }
.stat-card span { font-size: 13.5px; color: var(--slate-600); }

.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid rgba(0, 135, 191, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews { background: var(--white); }
.reviews-carousel {
  position: relative;
  margin-top: 28px;
}
.reviews-track-wrap { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 20px;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.reviews-aggregate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.reviews-aggregate .agg-g { width: 26px; height: 26px; flex-shrink: 0; }
.reviews-aggregate .agg-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--navy-900);
}
.reviews-aggregate .agg-label { font-size: 14px; color: var(--slate-600); }
.g-stars { display: inline-flex; gap: 2px; }
.g-stars svg { width: 18px; height: 18px; display: block; }

.reviews-fallback { margin: 0; padding: 28px 4px; color: var(--slate-600); }

.review-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 48px) / 3);
  min-height: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.review-card:hover { border-color: rgba(0, 135, 191, 0.35); box-shadow: var(--shadow-card-hover); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review-g { width: 20px; height: 20px; flex-shrink: 0; }
.review-text {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--navy-700);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.review-card.is-expanded .review-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.review-more {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-600);
  cursor: pointer;
}
.review-more:hover { color: var(--blue-500); text-decoration: underline; }
.review-more:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.review-more[hidden] { display: none; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  font-size: 18px; /* 45% of the disc */
  line-height: 1;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 14px; color: var(--navy-900); }
.review-author span { font-size: 12.5px; color: var(--slate-600); }

.carousel-arrow {
  position: absolute;
  top: calc(50% - 33px);
  z-index: 2;
  box-shadow: var(--shadow-card);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.carousel-arrow-left { left: -14px; }
.carousel-arrow-right { right: -14px; }
.carousel-arrow[hidden] { display: none; }
.carousel-arrow:hover:not(:disabled) {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
  transform: scale(1.06);
}
.carousel-arrow:disabled { opacity: 0.4; cursor: default; }
.carousel-arrow:focus-visible, .reviews-dot:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.reviews-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.reviews-dots[hidden] { display: none; }
.reviews-dot {
  width: 24px; height: 24px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.reviews-dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--line);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.reviews-dot:hover::before { background: var(--slate-400); }
.reviews-dot.is-active::before { background: var(--blue-500); transform: scale(1.25); }

/* Quiet secondary link under the carousel; must not compete with the quote CTA */
.reviews-google-link { margin: 14px 0 0; text-align: center; font-size: 14px; }
.reviews-google-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--slate-600);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}
.reviews-google-link a:hover { color: var(--blue-600); text-decoration-color: currentColor; }
.reviews-google-link a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.reviews-more { display: flex; justify-content: center; margin-top: 8px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-copy h2 { color: var(--navy-900); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-copy > p:not(.section-eyebrow) { font-size: 16px; margin-bottom: 26px; max-width: 460px; }
.cta-copy-note { font-size: 13px; color: var(--slate-600); margin-top: 12px; opacity: 0.85; }

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.quote-form h3 {
  color: var(--navy-900);
  font-size: 21px;
  margin-bottom: 6px;
}
.quote-form-sub {
  font-size: 14px;
  margin-bottom: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
}
.form-field .optional {
  font-weight: 400;
  color: var(--slate-600);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy-900);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--slate-400);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0, 135, 191, 0.16);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2357666f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.quote-submit { width: 100%; margin-top: 4px; }

.quote-form-success {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border: 1px solid rgba(0, 135, 191, 0.35);
  color: var(--blue-600);
  font-size: 13.5px;
}
.quote-form-success.is-visible { display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--white); padding-top: 80px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .footer-logo { height: 96px; }
.footer-brand p { font-size: 14.5px; margin: 16px 0 18px; max-width: 300px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { color: var(--navy-900); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-col a, .footer-text { font-size: 14.5px; color: var(--slate-600); transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--blue-500); }
.footer-col a.footer-phone { font-size: 17px; font-weight: 600; color: var(--navy-900); }
.footer-col a.footer-phone:hover { color: var(--blue-500); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { transform: translateY(-2px); border-color: rgba(0, 135, 191, 0.35); box-shadow: var(--shadow-card); }
.footer-social a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.footer-social svg { width: 22px; height: 22px; display: block; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 24px 32px;
  font-size: 13px;
  color: var(--slate-600);
}
.footer-fine { opacity: 0.75; }

/* =========================================================
   Scroll progress bar
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--blue-500);
  z-index: 200;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(0, 135, 191, 0.45);
}

/* =========================================================
   Scroll reveal — apparent, directional, staggered
   ========================================================= */
/* Hidden only when JS is running (the .js class is set in <head>), so content is visible if the script fails. */
.js .reveal,
.js .reveal-left,
.js .reveal-right,
.js .reveal-scale,
.js .reveal-up-lg {
  opacity: 0;
  transition: opacity 850ms var(--ease-out), transform 850ms var(--ease-out), filter 850ms var(--ease-out);
  transition-delay: var(--stagger-delay, 0ms);
  will-change: transform, opacity;
}

.js .reveal { transform: translateY(38px) scale(0.98); }
.js .reveal-up-lg { transform: translateY(64px) scale(0.96); filter: blur(6px); }
.js .reveal-left { transform: translateX(-70px) scale(0.98); }
.js .reveal-right { transform: translateX(70px) scale(0.98); }
.js .reveal-scale { transform: scale(0.82); }

.js .reveal.is-visible,
.js .reveal-left.is-visible,
.js .reveal-right.is-visible,
.js .reveal-scale.is-visible,
.js .reveal-up-lg.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* Staggered children inside a .stagger-group get incremental delay via JS-set --stagger-delay */
.stagger-group > * { transition-delay: var(--stagger-delay, 0ms); }

/* Icon / badge pop-in, triggered alongside parent card reveal */
.service-card.is-visible .service-icon,
.stat-card.is-visible img {
  animation: popIn 620ms var(--ease-out) both;
  animation-delay: 180ms;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Eyebrow underline draws in on reveal */
.js .section-eyebrow::before,
.js .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out) 120ms;
}
.reveal.is-visible .section-eyebrow::before,
.reveal.is-visible.section-eyebrow::before,
.is-visible .eyebrow::before {
  transform: scaleX(1);
}

/* CTA band gets a soft pulse the first time it enters view */
.cta-band.glow-in::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 135, 191, 0.1);
  opacity: 0;
  animation: glowPulse 1400ms var(--ease-out) forwards;
}
@keyframes glowPulse {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 0; }
}

/* Reduced motion: no reveal animation at all. Content is simply there. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale, .js .reveal-up-lg {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  .section-eyebrow::before, .eyebrow::before { transform: none; transition: none; }
  .hero-photo, .scroll-cue { animation: none; }
  .scroll-cue { transform: translateX(-50%); }
  .service-card.is-visible .service-icon,
  .stat-card.is-visible img,
  .cta-band.glow-in::before {
    animation: none !important;
  }
}

/* =========================================================
   Header — Services dropdown
   ========================================================= */
.nav-item-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-700);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-dropdown-toggle svg { transition: transform var(--dur-fast) var(--ease-out); }
.nav-item-dropdown:hover .nav-dropdown-toggle,
.nav-item-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle:focus-visible {
  color: var(--blue-500);
}
.nav-item-dropdown:hover .nav-dropdown-toggle svg,
.nav-item-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  min-width: 232px;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  z-index: 120;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-700);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--paper); color: var(--blue-500); }

.main-nav a.active,
.nav-dropdown-toggle.active,
.nav-dropdown-menu a.active {
  color: var(--blue-500);
  font-weight: 600;
}

/* =========================================================
   Inner-page hero (Services, Reviews, Emergency, etc.)
   ========================================================= */
.page-hero {
  position: relative;
  min-height: clamp(360px, 46vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
  padding-top: 90px;
}
.page-hero .hero-photo { opacity: 0.26; }
.page-hero .hero-scrim { background: rgba(255, 255, 255, 0.78); }
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-bottom: 56px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  color: var(--navy-900);
  margin-bottom: 14px;
}
.page-hero-sub {
  font-size: 17px;
  color: var(--slate-600);
  max-width: 620px;
  margin-bottom: 0;
}
.page-hero-content .hero-ctas { margin-top: 26px; margin-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--blue-500); font-weight: 500; }
.breadcrumb svg { opacity: 0.5; flex-shrink: 0; }

/* =========================================================
   Endorsement bar (Home)
   ========================================================= */
.endorsements {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.text-center-block {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.endorsement-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.endorsement-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
.endorsement-item:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 135, 191, 0.3);
  transform: translateY(-3px);
}
.endorsement-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--dur-med) var(--ease-out);
}
.endorsement-item:hover img { filter: grayscale(0) opacity(1); }
.endorsement-grid-compact {
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 560px;
}
.endorsements-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-400);
}

/* =========================================================
   Area served badges (service pages)
   ========================================================= */
.area-served { background: var(--paper); }
.section-sub a { color: var(--blue-600); font-weight: 600; white-space: nowrap; }
.section-sub a:hover { color: var(--blue-500); text-decoration: underline; }
.area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Two-column checklist variant of .service-list */
.service-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

/* =========================================================
   Simple CTA band (service pages without an embedded form)
   ========================================================= */

.cta-band-simple .cta-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-band-simple .section-eyebrow { justify-content: center; }
.cta-band-simple .hero-ctas { justify-content: center; margin-bottom: 0; }

/* Emergency Call Now emphasis — same brand blue, just a pulse to draw the eye */
.call-now-pulse { animation: callPulse 2.2s ease-in-out infinite; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(0, 135, 191, 0.45); }
  50% { box-shadow: 0 10px 34px -6px rgba(0, 135, 191, 0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .call-now-pulse { animation: none; }
}

/* Placeholder shown where a service photo will go */
.about-photo-frame.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--slate-600);
  background: linear-gradient(135deg, var(--paper) 0%, var(--white) 100%);
  border-style: dashed;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}
.about-photo-frame.photo-placeholder svg { opacity: 0.55; }

/* Service page photo galleries (photos shown whole, never cropped) */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-gallery .about-photo-frame { aspect-ratio: 3 / 4; }
.about-gallery .about-photo-frame:not(.is-portrait) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.about-photo-frame.is-portrait { aspect-ratio: 3 / 4; }
.about-media > .about-photo-frame.is-portrait { max-width: 460px; margin: 0 auto; }
.about-gallery .about-photo-frame:not(.is-portrait) { aspect-ratio: auto; }
.about-gallery .about-photo-frame:not(.is-portrait) img { height: auto; display: block; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .service-cards > .service-card,
  .service-cards > .service-card-featured,
  .service-cards > .service-card:last-child:not(.service-card-featured) { grid-column: auto; }
  .service-card-featured .service-media { aspect-ratio: 4 / 3; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-card { flex-basis: calc((100% - 24px) / 2); }
  .cta-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 1200px) {
  .hero-endorsements { flex-wrap: wrap; gap: 22px 32px; max-width: 800px; }
  .hero-endorsements .endorsement-licence { flex-basis: 100%; }
  .hero-endorsements img { width: calc(var(--logo-w) * 0.9); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }

  /* ---------- Header: logo, tap-to-call icon, quote button, menu ---------- */
  .site-header, .site-header.scrolled { padding: 8px 0; }
  .header-inner { gap: 8px; }
  .brand-logo { height: 40px; }
  .brand { min-height: 44px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; gap: 4px; }
  /* Phone number stays in the DOM (screen readers read it); only the icon is drawn. */
  .header-cta .btn-ghost {
    font-size: 0;
    width: 44px; height: 44px;
    padding: 0;
    color: var(--blue-500);
  }
  .header-cta .btn-ghost svg { width: 22px; height: 22px; }
  .header-cta .btn-primary { min-height: 44px; padding: 0 14px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
  }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 6px var(--gutter) 14px;
    gap: 0;
    max-height: calc(100svh - 62px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -14px rgba(27, 37, 45, 0.18);
  }
  .main-nav a, .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-size: 16px;
  }
  .nav-item-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    top: auto; left: auto; transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 14px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown-menu { width: auto; }
  .nav-dropdown-menu a { padding: 0 12px; font-size: 16px; white-space: normal; }
  .nav-item-dropdown.open .nav-dropdown-menu { display: flex; }

  /* ---------- Hero: one screen, call button first ---------- */
  .hero-photo { opacity: 0.15; animation: none; }
  /* Landscape photo in a portrait viewport: keep the hot tub (right side of the frame) in view */
  .hero .hero-photo img { object-position: 78% 60%; }
  .hero-scrim { background: rgba(255, 255, 255, 0.85); }
  .hero-content { padding-top: 96px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); margin-bottom: 12px; }
  .hero-sub { font-size: 17px; margin-bottom: 22px; }
  .hero-ctas { gap: 12px; margin-bottom: 22px; }
  .hero-ctas .btn { flex: 1 1 0; min-height: 48px; padding: 12px 16px; }
  .hero-ctas a[href^="tel:"] { order: -1; }
  .hero-endorsements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    max-width: 360px;
    padding-top: 22px;
  }
  .hero-endorsements .endorsement-licence { grid-column: 1 / -1; }
  .hero-endorsements img { width: calc(var(--logo-w) * 0.95); }
  .scroll-cue {
    bottom: 12px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    animation: none;
  }

  .page-hero { min-height: 0; padding-top: 84px; align-items: center; }
  .page-hero .hero-photo { opacity: 0.16; }
  .page-hero-content { padding-bottom: 32px; }
  .page-hero h1 { font-size: clamp(30px, 8.4vw, 38px); margin-bottom: 10px; }
  .page-hero-sub { font-size: 16px; }
  .page-hero-content .hero-ctas { margin-top: 18px; }
  .breadcrumb { font-size: 14px; margin-bottom: 10px; }
  .breadcrumb a { position: relative; }
  /* 44px hit area without adding height to the row */
  .breadcrumb a::before { content: ''; position: absolute; inset: -14px -10px; }

  /* ---------- Shared section rhythm ---------- */
  section { padding: 44px 0; }
  .section-title { font-size: clamp(26px, 7.2vw, 32px); margin-bottom: 10px; }
  .section-sub { font-size: 16px; }
  .eyebrow, .section-eyebrow { margin-bottom: 10px; }

  /* ---------- Swipe galleries (services, multi-photo pages) ---------- */
  .service-cards,
  .about-gallery:has(> :nth-child(3)) {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin: 20px calc(-1 * var(--gutter)) 0;
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .service-cards::-webkit-scrollbar,
  .about-gallery:has(> :nth-child(3))::-webkit-scrollbar { display: none; }

  .service-card {
    /* 84% of the viewport, so the next card peeks in at the right edge */
    flex: 0 0 min(calc((100% + 2 * var(--gutter)) * 0.84), 340px);
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .service-card:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--line); }
  .service-card:hover .service-media img { transform: none; }
  .service-card:hover .service-icon { background: var(--blue-50); color: var(--blue-500); transform: none; }
  .service-media { aspect-ratio: auto; height: 190px; }
  .service-tag { top: 10px; left: 10px; }
  .service-body {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    align-items: center;
    align-content: start;
    padding: 14px 16px 6px;
  }
  .service-icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service-body h3 { font-size: 19px; margin: 0; }
  .service-body p { grid-column: 1 / -1; font-size: 16px; margin: 10px 0 0; }
  .service-link {
    grid-column: 1 / -1;
    margin-top: 0;
    min-height: 44px;
    font-size: 16px;
  }

  .service-dots { display: flex; justify-content: center; margin-top: -6px; }
  .service-dot {
    width: 44px; height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    position: relative;
  }
  .service-dot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--line);
    transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }
  .service-dot.is-active::before { background: var(--blue-500); transform: scale(1.4); }

  /* Photos on service pages: two-up, or a swipe row when there are 3+ */
  .about-grid { gap: 20px; }
  .about-gallery { gap: 12px; }
  .about-gallery .about-photo-frame:not(.is-portrait) { grid-column: auto; }
  .about-gallery:has(> :nth-child(3)) > .about-photo-frame {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }
  .about-media > .about-photo-frame.is-portrait { max-width: 220px; }
  .about-photo-frame { aspect-ratio: 16 / 10; }
  .about-photo-caption { font-size: 14px; margin-top: 8px; }

  /* ---------- Reviews carousel stays a carousel; cards peek ---------- */
  .reviews-carousel { margin-inline: calc(-1 * var(--gutter)); }
  .reviews-track {
    gap: 14px;
    padding: 6px var(--gutter) 14px;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .review-card {
    flex: 0 0 min(calc((100% + 2 * var(--gutter)) * 0.84), 340px);
    min-height: 0;
    padding: 18px;
  }
  .review-text { font-size: 16px; }
  .review-head { margin-bottom: 10px; }
  .review-author { padding-top: 10px; }
  .review-author strong { font-size: 16px; }
  .review-author span { font-size: 14px; }
  .review-more { position: relative; font-size: 16px; }
  .review-more::after { content: ''; position: absolute; inset: -8px -10px; }
  .carousel-arrow { display: none; }
  /* 8 dots can't all be 44px wide on a phone; on touch they are a position indicator, swipe is the control */
  .reviews-dots { margin-top: 0; }
  .reviews-dot { pointer-events: none; }
  .reviews-aggregate { margin-top: 14px; }
  .reviews-google-link { margin-top: 4px; font-size: 16px; }
  .reviews-more { margin-top: 0; }
  .reviews-more .btn { min-height: 44px; }

  /* ---------- Contact / form ---------- */
  .cta-band { padding: 44px 0; }
  .cta-grid { gap: 24px; }
  .cta-copy h2 { font-size: clamp(26px, 7.2vw, 32px); }
  .cta-copy > p:not(.section-eyebrow) { font-size: 16px; margin-bottom: 18px; }
  .cta-copy-note { font-size: 14px; }
  .quote-form { padding: 20px; }
  .quote-form h3 { font-size: 20px; }
  .quote-form-sub { font-size: 16px; margin-bottom: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-field { margin-bottom: 12px; gap: 4px; }
  .form-field label { font-size: 15px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; min-height: 48px; padding: 10px 14px; }
  .form-field textarea { min-height: 88px; }
  .quote-submit { min-height: 52px; }
  .quote-form-success { font-size: 16px; }
  .cta-band-simple .hero-ctas { margin-top: 18px; }
  .service-list.two-col { grid-template-columns: 1fr; }
  .endorsement-item { height: 96px; padding: 14px; }

  /* ---------- Footer: two link columns, 44px links ---------- */
  .site-footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 24px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand .footer-logo { height: 80px; }
  .footer-brand p { font-size: 16px; margin: 10px 0 12px; }
  .footer-col { gap: 0; }
  .footer-col h3 { font-size: 14px; margin-bottom: 4px; }
  .footer-col a, .footer-text { font-size: 16px; }
  .footer-col a { display: flex; align-items: center; min-height: 44px; }
  .footer-col a.footer-phone { font-size: 18px; }
  .footer-text { margin: 4px 0; }
  .footer-social { margin-top: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 24px; font-size: 14px; }

  /* ---------- Motion: reveal only the first two sections on phones ---------- */
  /* Side-slide reveals start 70px outside the viewport, which widens the page (the sideways drift). Rise instead. */
  .js .reveal-left, .js .reveal-right { transform: translateY(28px) scale(0.98); }
  .js :is(section, footer):not(.hero, .page-hero, .hero + section, .page-hero + section)
    :is(.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-up-lg),
  .js .service-card.reveal-up-lg {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  :is(section, footer):not(.hero, .page-hero, .hero + section, .page-hero + section) .section-eyebrow::before,
  :is(section, footer):not(.hero, .page-hero, .hero + section, .page-hero + section) .eyebrow::before {
    transform: none;
    transition: none;
  }
  .service-card.is-visible .service-icon,
  .stat-card.is-visible img,
  .cta-band.glow-in::before { animation: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .cta-buttons .btn { width: 100%; }
  .endorsement-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 861px) {
  .service-dots { display: none; }
}
