/* ════════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════════ */

/* ── HERO (dark cinematic) ───────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 0;
  overflow: hidden;
  background: #0D0A09;
  border-bottom: none;
}

/* Animated heat-glow layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Worthing seafront photo — sits under the glow/grain/ember layers.
   Photo: Earldelawarr, CC BY-SA 3.0 (credit in footer). The saturation
   tweak is baked into the JPEGs so the browser doesn't run a filter.
   Small file for phones, larger one for desktop (both preloaded in index.html). */
.hero-bg__photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(13,10,9,0.8), rgba(13,10,9,0.74) 45%, rgba(13,10,9,0.94)),
    url('../img/hero-worthing-900.jpg');
  background-size: cover;
  background-position: center 42%;
}
@media (min-width: 901px) {
  .hero-bg__photo {
    background-image:
      linear-gradient(to bottom, rgba(13,10,9,0.78), rgba(13,10,9,0.72) 45%, rgba(13,10,9,0.94)),
      url('../img/hero-worthing-1600.jpg');
  }
}
/* Static warm glow. (It used to "breathe" with infinite scale animations
   under a blended grain layer, which forced a full-hero repaint every frame.) */
.hero-bg__glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 68% at 8% 110%, rgba(185,28,28,0.62), transparent 60%),
    radial-gradient(ellipse 52% 46% at 72% 102%, rgba(234,88,12,0.3), transparent 58%),
    radial-gradient(ellipse 42% 32% at 42% 108%, rgba(249,115,22,0.18), transparent 52%);
}

@media (max-width: 900px) {
  #ember-canvas { display: none; }
}

#ember-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Dark hero: text + UI overrides ───────────────── */
.hero .hero-h1 { color: #fff; }
.hero .accent { color: var(--ember-300); }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: #FFC9A3;
  margin-bottom: 20px;
}
.hero .btn--ghost {
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.2);
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .hero .btn--ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
  }
}

/* Desktop: headline / lead / actions stack on the left, call card on the right.
   Mobile: headline → lead → call card → actions, all in one column. */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px 32px;
  position: relative;
  padding-bottom: 88px;
}
.hero-headline { grid-column: 1 / span 2; grid-row: 1; }
.hero-lead     { grid-column: 1 / span 2; grid-row: 2; max-width: 600px; }
.hero-actions  { grid-column: 1 / span 2; grid-row: 3; }
.hero-trust    { grid-column: 3; grid-row: 1 / span 3; align-self: center; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.hero-h1 .line {
  display: block;
}

/* ── Hero entrance: lines rise out of a clip, supporting UI follows ──
   Pure CSS, plays once on load. animation-fill-mode:both means the
   global reduced-motion override (duration→0.01ms) snaps straight
   to the final state. */
.hero-h1 .line {
  animation: heroLineRise 900ms var(--ease-out) both;
}
.hero-h1 .line:nth-child(1) { animation-delay: 80ms; }
.hero-h1 .line:nth-child(2) { animation-delay: 190ms; }
.hero-h1 .line:nth-child(3) { animation-delay: 300ms; }
@keyframes heroLineRise {
  from { transform: translateY(0.55em); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.hero-lead .lead,
.hero-actions {
  animation: heroFadeUp 800ms var(--ease-out) both;
}
.hero-lead .lead { animation-delay: 480ms; }
.hero-actions    { animation-delay: 580ms; }
.hero-trust {
  animation: heroTrustIn 900ms var(--ease-out) 420ms both;
}
@keyframes heroFadeUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes heroTrustIn {
  from { transform: translateY(26px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.hero-h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--ember-300);
  letter-spacing: -0.035em;
}

/* ── Hero call card: one job — get the phone ringing ── */
.hero-trust {
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-cta__kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--flame-600);
  margin-bottom: 12px;
}
.hero-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-cta__sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}
.hero-cta__calls {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.hero-call {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  text-align: left;
  transition: transform var(--t-1), filter var(--t-1), box-shadow var(--t-1);
}
.hero-call__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.hero-call__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-call--office { background: var(--grad-cta); color: #fff; }
.hero-call--office .hero-call__label { color: rgba(255,255,255,0.9); }
.hero-call--emergency { background: var(--dark); color: #fff; }
.hero-call--emergency .hero-call__label { color: #FFC9A3; }
.hero-call--emergency .pulse, .hero-call--emergency .pulse::after { background: #F97316; }
.hero-call .short { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-call:hover { transform: translateY(-1px); box-shadow: var(--sh-glow); filter: brightness(1.06); }
}
.hero-call:active { transform: scale(0.98); }

/* Mobile: no stacked card — just two big tap-to-call buttons */
@media (max-width: 960px) {
  .hero-grid-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; }
  .hero-headline, .hero-lead, .hero-trust, .hero-actions { grid-column: 1 / -1; grid-row: auto; }
  .hero-trust { justify-self: stretch; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-eyebrow { font-size: 10.5px; margin-bottom: 14px; }
  .hero-h1 { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .hero .lead { font-size: 1.02rem; }
  .hero-trust { padding: 0; background: transparent; box-shadow: none; overflow: visible; }
  .hero-cta__kicker, .hero-cta__title, .hero-cta__sub { display: none; }
  .hero-cta__calls { grid-template-columns: 1fr 1fr; margin-top: 0; gap: 8px; }
  .hero-call { padding: 11px 12px; }
  .hero-call--emergency { background: #fff; color: var(--ink); }
  .hero-call--emergency .hero-call__label { color: var(--flame-600); }
  .hero-call--emergency .pulse, .hero-call--emergency .pulse::after { background: var(--flame-500); }
  .hero-call__num { font-size: 15px; gap: 6px; }
  .hero-call__num svg { display: none; }
  .hero-call .long { display: none; }
  .hero-call .short { display: inline; }
  .hero-actions { margin-top: 0; }
}

.mono.small { font-size: 11px; letter-spacing: 0.12em; }
.mono.small.muted { color: var(--ink-4); }
.muted { color: var(--ink-4); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quiet pause control for the ember effect (WCAG 2.2.2). Desktop only —
   the embers never run on phones/tablets or with reduced motion. */
.motion-toggle {
  position: absolute;
  left: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  bottom: 22px;
  z-index: 2;
  width: 32px; height: 32px;
  display: none;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,10,9,0.35);
  color: rgba(255,255,255,0.55);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.motion-toggle:hover, .motion-toggle:focus-visible { color: #fff; border-color: rgba(255,255,255,0.4); }
.motion-toggle:active { transform: scale(0.94); }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.has-embers .motion-toggle { display: grid; }



/* ── Section heading layout ─────────────────────── */
.section-head {
  margin-bottom: 56px;
}
.section-head__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 520px;
  margin-top: 16px;
}

/* ── SERVICES grid — six equal cards, 3×2 ───────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Stagger delays for scroll-reveal */
.services-grid .service-card:nth-child(1) { --stagger: 0; }
.services-grid .service-card:nth-child(2) { --stagger: 1; }
.services-grid .service-card:nth-child(3) { --stagger: 2; }
.services-grid .service-card:nth-child(4) { --stagger: 3; }
.services-grid .service-card:nth-child(5) { --stagger: 4; }
.services-grid .service-card:nth-child(6) { --stagger: 5; }

/* Featured card (02 · maintenance): red accents, same size as the rest */
.service-card--featured-home {
  background: var(--bg-card);
  border-color: rgba(185,28,28,0.15);
  border-top: 3px solid var(--flame-600);
  color: var(--ink);
}
.service-card--featured-home .service-card__tag {
  background: var(--flame-600);
  border-color: var(--flame-600);
  color: #fff;
  font-weight: 600;
}
.service-card--featured-home .service-card__num { color: var(--flame-600); }
.service-card--featured-home p { color: var(--ink-3); }
.service-card--featured-home .service-card__cta {
  color: var(--flame-600);
  border-top-color: rgba(185,28,28,0.12);
}
@media (hover: hover) and (pointer: fine) {
  .service-card--featured-home:hover {
    background: #fff8f7;
    border-color: rgba(185,28,28,0.3);
    border-top-color: var(--flame-600);
    transform: translateY(-4px);
    box-shadow: 0 28px 56px -24px rgba(20,17,15,0.2), 0 8px 20px -10px rgba(185,28,28,0.14);
  }
  .service-card--featured-home:hover .service-card__cta { color: var(--flame-600); }
}

/* Grid collapses: 2 columns, then 1 */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  overflow: hidden;
  transition: border-color var(--t-2), box-shadow var(--t-2), transform var(--t-2);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(185,28,28,0.2);
    box-shadow: 0 24px 48px -24px rgba(20,17,15,0.18), 0 8px 16px -10px rgba(185,28,28,0.10);
  }
}
.service-card__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-4);
}
.service-card__num {
  color: var(--flame-600);
  font-weight: 600;
}
.service-card__tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-3);
  font-size: 10px;
}
.service-card__icon {
  color: var(--flame-600);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-top: 4px;
}
.service-card p {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.service-card__cta {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__cta { color: var(--flame-600); }
  .service-card:hover .service-card__cta svg { transform: translateX(3px); }
}
.service-card__cta svg { transition: transform var(--t-1); }

/* ── DIFFERENCE STRIP ─────────────────────────── */
.difference {
  position: relative;
  overflow: hidden;
}
.difference-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.difference-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.difference-list li h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 500;
}
.difference-list li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.difference-list li a { color: #FFC9A3; }
/* Darren's sign-off under the statement */
.byline {
  display: grid;
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--ember-500);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.byline strong { color: #fff; font-size: 15px; font-weight: 600; }
.difference-list li p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}
.difference-list .mono.small.muted { color: rgba(255,255,255,0.62); font-size: 11px; }
.difference-lead .lead { color: rgba(255,255,255,0.78); max-width: 440px; }
@media (max-width: 880px) {
  .difference-grid { grid-template-columns: 1fr; gap: 48px; }
  .difference-list { grid-template-columns: 1fr; gap: 24px; }
}

/* ── COVERAGE TEASE ─────────────────────────── */
.coverage-tease__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.coverage-tease__panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.cov-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.cov-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cov-panel__hq {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--flame-600);
  white-space: nowrap;
}
.cov-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.cov-panel__region { min-width: 0; }
.cov-panel__region strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cov-panel__region span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.cov-panel__badge {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}
.cov-panel__badge--home {
  background: var(--ember-50);
  border-color: var(--ember-100);
  color: var(--flame-600);
}
.cov-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--flame-600);
  transition: background var(--t-1), color var(--t-1);
}
.cov-panel__cta svg { transition: transform var(--t-1); }
@media (hover: hover) and (pointer: fine) {
  .cov-panel__cta:hover { background: var(--ember-50); color: var(--flame-700); }
  .cov-panel__cta:hover svg { transform: translateX(3px); }
}
@media (max-width: 480px) {
  .cov-panel__head, .cov-panel__row, .cov-panel__cta { padding-inline: 18px; }
  .cov-panel__row { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 880px) { .coverage-tease__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── TESTIMONIALS ───────────────────────────── */
/* One testimonial = a single quote card. home.js only adds arrows/dots
   (and the .has-nav grid) once there is more than one. */
.testi-track {
  position: relative;
  max-width: 900px;
}
.testi-track.has-nav {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 24px;
  align-items: center;
  max-width: none;
}
.testi-viewport {
  overflow: hidden;
  width: 100%;
}
.testi-viewport-inner {
  display: flex;
  transition: transform 300ms var(--ease-out);
}
.testi {
  flex: 0 0 100%;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.testi .quote {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.6;
  color: var(--ember-500);
  position: absolute;
  top: 24px; left: 32px;
  opacity: 0.3;
}
.testi p {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 24px 0 32px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.testi footer { display: flex; flex-direction: column; gap: 4px; }
.testi footer strong { font-weight: 500; color: var(--ink); }
.testi__role { color: var(--ink-3); font-size: 14px; }
.testi blockquote { margin: 0; }
.testi-nav {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all var(--t-1);
}
@media (hover: hover) and (pointer: fine) {
  .testi-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.testi-dots:empty { display: none; }
.testi-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: all var(--t-1);
}
.testi-dots button[data-active="true"] {
  background: var(--flame-600);
  width: 28px;
  border-radius: 4px;
}
@media (max-width: 720px) {
  .testi-track.has-nav { grid-template-columns: 40px 1fr 40px; gap: 12px; }
  .testi-nav { width: 40px; height: 40px; }
  .testi { padding: 24px; }
}

/* ── BIG CTA ───────────────────────────────────── */
.big-cta {
  background: var(--dark);
  color: #fff;
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.big-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.big-cta .lead { color: rgba(255,255,255,0.8); max-width: 540px; margin-top: 24px; }
.big-cta__small {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255,255,255,0.68);
}
.big-cta__small a { color: #FFC9A3; }
.big-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: end;
}
@media (max-width: 720px) {
  .big-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .big-cta-actions { justify-self: start; }
}

/* ── WHO WE LOOK AFTER ───────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1080px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.audience-card__icon { color: var(--flame-600); }
.audience-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.audience-card p { font-size: 14px; line-height: 1.6; color: var(--ink-3); flex: 1; }
.audience-card a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--flame-600);
}
.audience-card a:hover { color: var(--flame-700); text-decoration: underline; text-underline-offset: 3px; }
.audience-card--trade { background: var(--dark); border-color: var(--dark); }
.audience-card--trade h3 { color: #fff; }
.audience-card--trade p { color: rgba(255,255,255,0.78); }
.audience-card--trade .audience-card__icon { color: #FFC9A3; }
.audience-card--trade a { color: #FFC9A3; }
