/* =============================================================================
   EMERGENCY. Dedicated emergency roof repair landing page
   (/emergency-roof-repairs-stockport). Layers a warm "alert" accent and a few
   emergency-specific components on top of the shared lp-* section toolkit
   (landing.css) and the standard page-hero. Only the badge, primary CALL CTAs
   and sticky bar go warm; the rest of the page keeps the brand cyan, so urgency
   reads without the page looking alarmist.

   Loaded only on this page (per-page $pageCss), so every selector here is
   page-scoped by virtue of not appearing elsewhere. Warm-accent button rules use
   .btn.btn--emergency (0,2,0) so they win over core.css's single-class .btn--*
   rules regardless of the preload->onload sheet race.
   ========================================================================== */

:root {
  --clr-emergency: #ff5a36;
  --clr-emergency-hover: #e8431f;
  --clr-emergency-light: #ff8a6b;
  --clr-emergency-glow: rgba(255, 90, 54, 0.4);
  --clr-emergency-tint: rgba(255, 90, 54, 0.12);
  --clr-emergency-border: rgba(255, 90, 54, 0.4);
  /* Clearance baseline for lifting the section-navigator scroll-pill above the
     fixed call bar. The bar's height varies by state (one-line open bar ~65px;
     closed status block taller, up to ~82px when both the reassurance and the
     "Opens …" line wrap on a narrow phone). This sits between those so the pill
     clears the tallest bar without floating too far above the shortest. Excludes
     the safe-area inset: it is in the bar's bottom padding AND the pill's own
     padding-bottom, so it cancels between the two. */
  --emg-callbar-h: calc(48px + 1.2rem);
}

/* ----------------------------------------------------------------- Warm CTA -- */
.btn.btn--emergency {
  background-color: var(--clr-emergency);
  color: #fff;
  border: 2px solid var(--clr-emergency);
}

.btn.btn--emergency:hover {
  background-color: var(--clr-emergency-hover);
  border-color: var(--clr-emergency-hover);
  box-shadow: 0 0 30px var(--clr-emergency-glow);
}

.btn.btn--emergency:focus-visible {
  outline: 3px solid var(--clr-emergency-light);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- Hero badge -- */
/* Mirrors layout/critical/emergency.php so first paint and the settled sheet match. */
.emg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-emergency-light);
  background: var(--clr-emergency-tint);
  border: 1px solid var(--clr-emergency-border);
  border-radius: var(--radius-md);
  line-height: 1.3;
}

/* Long copy wraps to two lines on small screens. A touch smaller + tighter so
   it stays on one line at common widths, and the dot aligns to the first line
   (not the vertical centre of the block) if it does wrap. */
@media (max-width: 768px) {
  .emg-hero__badge {
    align-items: flex-start;
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .emg-hero__badge-dot {
    margin-top: 0.28rem;
  }
}

.emg-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-emergency);
  box-shadow: 0 0 12px var(--clr-emergency-glow);
  flex-shrink: 0;
  animation: emg-pulse 2s ease-in-out infinite;
}

@keyframes emg-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

/* Hero secondary text link — quiet route out to standard (non-urgent) repairs,
   sits under the CALL / Report a leak buttons. */
.emg-hero__secondary {
  margin: 1rem 0 0;
}

.emg-hero__secondary a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(203, 213, 225, 0.4);
  text-underline-offset: 3px;
  transition: color var(--ease), text-decoration-color var(--ease);
}

.emg-hero__secondary a:hover {
  color: var(--clr-accent);
  text-decoration-color: var(--clr-accent);
}

.emg-hero__secondary svg {
  flex-shrink: 0;
  transition: transform var(--ease);
}

.emg-hero__secondary a:hover svg {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------- Response -- */
.emg-response {
  background: var(--clr-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-response__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.emg-response__grid > * {
  flex: 1 1 280px;
  max-width: 380px;
}

.emg-response__card {
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

/* The "we stop the water first" card carries the warm accent so the eye lands
   on the promise that matters most to a panicked visitor. */
.emg-response__card--alert {
  border-left: 3px solid var(--clr-emergency);
  background:
    linear-gradient(135deg, var(--clr-emergency-tint) 0%, transparent 55%),
    var(--clr-bg-surface-solid);
}

.emg-response__card-title {
  color: var(--clr-text-bright);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.emg-response__card p {
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------- Make-safe guarantee note -- */
.emg-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 720px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  padding: 0.9rem 1.25rem;
  background: var(--clr-success-bg);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: var(--clr-text-bright);
  font-size: 0.95rem;
  line-height: 1.5;
}

.emg-guarantee-note svg {
  color: var(--clr-success);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------- Triage -- */
.emg-triage {
  background: var(--clr-bg-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-triage__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.emg-triage__col {
  flex: 1 1 320px;
  max-width: 480px;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}

.emg-triage__col--urgent {
  border-color: var(--clr-emergency-border);
  box-shadow: inset 0 3px 0 var(--clr-emergency);
}

.emg-triage__col--calm {
  border-color: rgba(15, 187, 245, 0.3);
  box-shadow: inset 0 3px 0 var(--clr-accent);
}

.emg-triage__col-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--clr-text-bright);
}

/* translateY optical-centres the bottom-heavy alert triangle against the heading
   caps; scoped to --urgent so the symmetric clock icon in --calm isn't nudged. */
.emg-triage__col--urgent .emg-triage__col-title svg { color: var(--clr-emergency); transform: translateY(-0.1em); }
.emg-triage__col--calm   .emg-triage__col-title svg { color: var(--clr-accent); }

.emg-triage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.emg-triage__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.emg-triage__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.emg-triage__col--urgent .emg-triage__list li::before { background: var(--clr-emergency); }
.emg-triage__col--calm   .emg-triage__list li::before { background: var(--clr-accent); }

.emg-triage__note {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

/* Calm "why act early" note below the triage columns — factual, not fear. */
.emg-triage__why {
  max-width: 760px;
  margin: 1.75rem auto 0;
  padding: 1.5rem;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.emg-triage__why-title {
  color: var(--clr-text-bright);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.emg-triage__why p {
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.emg-triage__why p:last-child {
  margin-bottom: 0;
  color: var(--clr-text-muted);
}

.emg-triage__why-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.emg-triage__why-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.emg-triage__why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-emergency);
}

/* ----------------------------------------------------------------- While you wait -- */
.emg-wait {
  background: var(--clr-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-wait__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.emg-wait__do,
.emg-wait__dont {
  flex: 1 1 360px;
  list-style: none;
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emg-wait__do li,
.emg-wait__dont li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.emg-wait__tick,
.emg-wait__cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-top: 0.05rem;
}

.emg-wait__tick {
  color: var(--clr-success);
  background: var(--clr-success-bg);
}

.emg-wait__cross {
  color: var(--clr-emergency);
  background: var(--clr-emergency-tint);
}

/* ----------------------------------------------------------------- Storm & insurance -- */
.emg-storm {
  background: var(--clr-bg-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-storm__card {
  max-width: 860px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(15, 187, 245, 0.10) 0%, transparent 55%),
    var(--clr-bg-surface-solid);
  border: 1px solid rgba(15, 187, 245, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.emg-storm__heading {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0 0 1rem;
}

/* Sub-headings inside the storm card ("What our report gives you" /
   "Making a claim"). */
.emg-storm__subheading {
  color: var(--clr-text-bright);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.emg-storm__card p {
  color: var(--clr-text);
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.emg-storm__list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.emg-storm__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--clr-text-bright);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.emg-storm__list svg {
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.emg-storm__note {
  margin: 1.25rem 0 0 !important;
  font-size: 0.92rem !important;
  color: var(--clr-text-muted) !important;
}

/* ----------------------------------------------------------------- Cost -- */
.emg-cost {
  background: var(--clr-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-cost__card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-emergency-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.emg-cost__price {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--clr-emergency-tint), transparent 70%),
    var(--clr-bg-dark);
  border-right: 1px solid var(--clr-border);
}

.emg-cost__amount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 1;
  color: var(--clr-emergency-light);
  letter-spacing: 1px;
}

.emg-cost__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-text-muted);
}

.emg-cost__detail {
  flex: 2 1 360px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.emg-cost__detail p {
  color: var(--clr-text);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.emg-cost__detail strong {
  color: var(--clr-text-bright);
}

.emg-cost__actions {
  margin-top: 1.1rem;
}

/* ----------------------------------------------------------------- Report (form) -- */
.emg-report {
  background: var(--clr-bg-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-report__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.emg-report__copy .lp-section-eyebrow {
  margin-bottom: 0.85rem;
}

.emg-report__copy .lp-section-heading {
  text-align: left;
}

.emg-report__copy .lp-section-lead {
  margin-bottom: 1.5rem;
}

.emg-report__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.emg-report__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--clr-text-bright);
  font-weight: 500;
  font-size: 0.95rem;
}

.emg-report__points svg {
  color: var(--clr-success);
  flex-shrink: 0;
}

/* The inline form card sits on a surface so it reads as a distinct panel. */
.emg-report__form {
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-emergency);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------------- Areas -- */
.emg-areas {
  background: var(--clr-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-areas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.85rem;
}

/* Linked town row: pin icon, name + postcode chip, one muted local line, and a
   chevron that slides in on hover. Lighter than the old bordered note-cards. */
.emg-area {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  transition: transform var(--ease-smooth), border-color var(--ease), background var(--ease);
}

a.emg-area:hover {
  transform: translateY(-2px);
  border-color: var(--clr-accent);
  background: var(--clr-accent-subtle);
}

/* Stockport HQ row (not a link) — warm-flagged so the base stands out. */
.emg-area--hq {
  border-left: 3px solid var(--clr-emergency);
}

.emg-area__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-accent-subtle);
  color: var(--clr-accent);
}

.emg-area--hq .emg-area__pin {
  background: var(--clr-emergency-tint);
  color: var(--clr-emergency);
}

.emg-area__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.emg-area__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.emg-area__name {
  color: var(--clr-text-bright);
  font-weight: 700;
  font-size: 1rem;
}

.emg-area__pc {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-accent);
  background: var(--clr-accent-subtle);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
}

.emg-area__note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--clr-text-muted);
}

.emg-area__arrow {
  align-self: center;
  flex-shrink: 0;
  color: var(--clr-accent);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity var(--ease), transform var(--ease);
}

a.emg-area:hover .emg-area__arrow {
  opacity: 1;
  transform: translateX(0);
}

.emg-areas__all {
  text-align: center;
  margin: 1.75rem 0 0;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- Sticky call bar -- */
/* Mobile-only persistent call bar. On desktop the nav phone + hero CTA cover it,
   so it is hidden there. The site-wide speed-dial is hidden on mobile here so the
   two do not stack in the same corner. */
.emg-callbar {
  display: none;
}

@media (max-width: 768px) {
  /* Hero secondary link is centered on mobile to line up under the
     full-width stacked CALL / Report a leak buttons. */
  .emg-hero__secondary {
    text-align: center;
  }

  /* The fixed call bar owns the bottom edge on this page, so the section-
     navigator scroll-pill (default bottom: var(--sp-6)) would sit on top of it.
     Lift the pill above the bar, keeping its usual --sp-6 gap. emergency.css's
     <link> comes after scroll-pill.css's, so this wins the settled cascade; the
     pill is hidden (opacity 0) until the user scrolls, by which point both
     sheets have applied, so the load race never shows the un-lifted position. */
  .scroll-pill {
    bottom: calc(var(--emg-callbar-h) + var(--sp-6));
  }

  .emg-callbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(20, 29, 43, 0.96);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-top: 1px solid var(--clr-emergency-border);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
  }

  .emg-callbar__text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text-bright);
    line-height: 1.25;
  }

  /* Closed-state status block: a reassurance line plus a small "Opens …" line,
     stacked like the home hero's closed CTA (.btn-closed__label / __next), so a
     visitor on this emergency page sees at a glance that we will be straight
     back and exactly when we next open. */
  .emg-callbar__status {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
  }

  .emg-callbar__status-main {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text-bright);
    line-height: 1.25;
  }

  .emg-callbar__status-next {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--clr-text);
  }

  .emg-callbar__status-next svg {
    color: var(--clr-accent);
    flex-shrink: 0;
  }

  .emg-callbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.7rem 1.1rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    background: var(--clr-emergency);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .emg-callbar__btn:active {
    background: var(--clr-emergency-hover);
  }

  /* Keep the footer clear of the fixed bar. The closed-state status block (a
     wrapped reassurance line plus the small "Opens …" line) makes the bar taller
     than the open state, up to ~82px when both lines wrap on a narrow phone, so
     reserve enough that the footer's legal line is never hidden behind it. */
  .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  /* One persistent call affordance on mobile, not two stacked in the corner. */
  .speed-dial {
    display: none;
  }
}

@media (max-width: 360px) {
  .emg-callbar__text,
  .emg-callbar__status {
    display: none;
  }

  .emg-callbar__btn {
    flex: 1;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------- Hero status line -- */
/* Honest open/closed status under the hero CTAs, resolved server-side. The honest
   counterpart to a fake "24/7" badge. Every LAYOUT-affecting property here is
   mirrored byte-for-byte in layout/critical/emergency.php so first paint matches
   the settled async sheet and this above-the-fold line never shifts (CLS rule). */
.emg-hero__status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 540px;
  margin: 1.25rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.emg-hero__status-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  /* Optically centre the dot on the first line of text. Nudged down from the
     line-box centre so it sits on the lowercase letter bodies, not the cap line. */
  margin-top: 0.5em;
  border-radius: 50%;
}

.emg-hero__status--open .emg-hero__status-dot {
  background: var(--clr-success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.emg-hero__status--closed .emg-hero__status-dot {
  background: var(--clr-emergency);
  box-shadow: 0 0 10px var(--clr-emergency-glow);
}

/* Centred on mobile to line up under the full-width stacked hero CTAs. */
@media (max-width: 768px) {
  .emg-hero__status {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----------------------------------------------------------------- Early CTA band -- */
.emg-earlycta {
  background: var(--clr-bg-dark);
  border-top: 1px solid var(--clr-emergency-border);
  border-bottom: 1px solid var(--clr-emergency-border);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.emg-earlycta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.emg-earlycta__lead {
  margin: 0;
  max-width: 640px;
  color: var(--clr-text);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.55;
}

.emg-earlycta__lead strong { color: var(--clr-text-bright); }

.emg-earlycta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ----------------------------------------------------------------- Recent work strip -- */
.emg-proof {
  background: var(--clr-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-proof__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.emg-proof__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-surface-solid);
}

/* Fixed 4:3 box + cover crop: the box reserves its space from first layout
   whatever the image's native dimensions are, so there is no CLS. */
.emg-proof__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.emg-proof__more {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- Our promises -- */
.emg-promises {
  background: var(--clr-bg-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.emg-promises__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.emg-promises__item {
  background: var(--clr-bg-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
}

.emg-promises__icon {
  display: inline-flex;
  color: var(--clr-emergency);
  margin-bottom: 0.6rem;
}

.emg-promises__title {
  color: var(--clr-text-bright);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.emg-promises__item p {
  margin: 0;
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------------- Coverage map -- */
.emg-map {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 1000px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.emg-map__frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ----------------------------------------------------------------- Responsive -- */
@media (max-width: 600px) {
  .emg-earlycta__actions {
    width: 100%;
    flex-direction: column;
  }

  .emg-earlycta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .emg-report__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .emg-cost__price {
    border-right: 0;
    border-bottom: 1px solid var(--clr-border);
  }

  .emg-cost__actions .btn,
  .emg-response__card .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .emg-hero__badge-dot {
    animation: none;
  }

  a.emg-area:hover {
    transform: none;
  }

  a.emg-area:hover .emg-area__arrow,
  .emg-hero__secondary a:hover svg {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Below-the-fold render skipping — emergency-page sections (see the matching
   block in landing.css for the architecture). .emg-response is the first
   content section (~1.4 viewports down) so it is load-window-only: main.js
   settles it at idle. The rest are deep and stay content-visibility:auto.
   Heights measured at 412px mobile. ---------------------------------------- */
.emg-response { content-visibility: auto; contain-intrinsic-size: auto 1050px; }
.emg-triage   { content-visibility: auto; contain-intrinsic-size: auto 1580px; }
.emg-wait     { content-visibility: auto; contain-intrinsic-size: auto 960px; }
.emg-storm    { content-visibility: auto; contain-intrinsic-size: auto 1080px; }
.emg-cost     { content-visibility: auto; contain-intrinsic-size: auto 790px; }
.emg-report   { content-visibility: auto; contain-intrinsic-size: auto 1260px; }
.emg-areas    { content-visibility: auto; contain-intrinsic-size: auto 2500px; }
