/* ============================================================
 * /fire-alarm-system-installation-sa/ — scoped service-page styles
 *
 * Loaded only by single-fire-alarm-system-installation-sa.php
 * (slug-gated in functions.php). Inherits :root variables from style.css.
 * ============================================================ */

:root {
  --fd-red: var(--c4-red, #D11A22);
  --fd-yellow: var(--c4-yellow, #FFC200);
  --fd-blue: #2BB6E5;
  --fd-green: #14C77B;
  --fd-elev: #16161A;
  --fd-elev-2: #1F1F24;
  --fd-line: #2A2A30;
  --fd-line-soft: rgba(255,255,255,0.07);
}

.fd-page {
  background: var(--c4-black);
  color: var(--c4-white);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* Namespaced reveal so theme GSAP scroll-animations.js leaves them alone.
   Driven by IntersectionObserver in page-fire-detection.js. */
.fd-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.55s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.55s var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.fd-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .fd-reveal { opacity: 1; transform: none; transition: none; }
}

.no-js .fd-reveal { opacity: 1; transform: none; }

/* Defer paint on below-fold sections */
.fd-page > .fd-compare,
.fd-page > .fd-process,
.fd-page > .fd-maint,
.fd-page > .fd-why,
.fd-page > .fd-faq,
.fd-page > .fd-related,
.fd-page > .fd-quote {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.fd-stat,
.fd-industry,
.fd-why__card {
  contain: layout paint;
}

.fd-page .container--narrow {
  max-width: 880px;
}

/* ============================================================
 * HERO
 * ============================================================ */
.fd-hero {
  position: relative;
  min-height: clamp(620px, 88vh, 860px);
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 12vh, 9rem) clamp(3rem, 6vh, 5rem);
  isolation: isolate;
}

.fd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.fd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.40) saturate(1.05) contrast(1.05);
  transform: scale(1.05);
}

.fd-hero__bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 32%, rgba(209, 26, 34, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 194, 0, 0.10), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 75%, var(--c4-black) 100%);
}

.fd-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.fd-hero__copy {
  max-width: 720px;
  min-width: 0;
}

.fd-hero__eyebrow {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  background: rgba(255, 194, 0, 0.10);
  border: 1px solid rgba(255, 194, 0, 0.30);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.fd-hero__headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.0rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.fd-hero__line { display: block; }

.fd-hero__line--accent {
  color: var(--fd-red);
  text-shadow: 0 0 60px rgba(209, 26, 34, 0.45);
}

.fd-hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

.fd-hero__sub strong {
  color: var(--c4-white);
  font-weight: 600;
}

.fd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.fd-hero__call svg { margin-right: 0.4rem; }

.fd-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fd-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.fd-hero__trust li svg {
  width: 14px;
  height: 14px;
  color: var(--fd-yellow);
  flex-shrink: 0;
}

/* Right-side panel — SANS 10139 mini-checklist */
.fd-hero__panel {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(20,20,24,0.92) 0%, rgba(10,10,12,0.96) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem 1.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.7);
}

.fd-hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(209, 26, 34,0.45), rgba(255,194,0,0.20) 50%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.fd-hero__panel-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 1rem;
}

.fd-hero__timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
}

.fd-hero__timeline li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.92rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid var(--fd-line);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s var(--ease-out);
}

.fd-hero__timeline li.fd-hero__t-active {
  background: rgba(209, 26, 34,0.10);
  border-left-color: var(--fd-red);
  color: var(--c4-white);
}

.fd-hero__t-time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--fd-yellow);
  font-variant-numeric: tabular-nums;
}

.fd-hero__t-active .fd-hero__t-time { color: var(--fd-red); }

.fd-hero__t-event {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
}

.fd-hero__panel-foot {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  border-top: 1px solid var(--fd-line);
  padding-top: 0.85rem;
}

/* ============================================================
 * PAIN — stats
 * ============================================================ */
.fd-pain { background: var(--c4-black); position: relative; }

.fd-pain__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-xl, 3rem);
}

.fd-pain__head h2 { margin-block: 0.5rem 1rem; }

.fd-pain__head p {
  color: var(--text-muted, rgba(255,255,255,0.7));
  font-size: 1.0625rem;
  line-height: 1.65;
}

.fd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fd-stat {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, #0E0E11 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.fd-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-red), transparent 90%);
}

.fd-stat--yellow::before {
  background: linear-gradient(90deg, var(--fd-yellow), transparent 90%);
}

.fd-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 26, 34,0.35);
}

.fd-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--c4-white);
  margin-bottom: 0.5rem;
}

.fd-stat--yellow .fd-stat__value { color: var(--fd-yellow); }

.fd-stat__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c4-red);
  margin-bottom: 1rem;
}

.fd-stat--yellow .fd-stat__label { color: var(--fd-yellow); }

.fd-stat__copy {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
 * INDUSTRIES GRID — 9 clickable cards (open detail modal)
 * ============================================================ */
.fd-industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.fd-industry {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 1.6rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.fd-industry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--fd-red), transparent);
}

.fd-industry:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 26, 34,0.45);
  box-shadow: 0 20px 50px -28px rgba(209, 26, 34,0.45);
}

.fd-industry:focus-visible {
  outline: 2px solid var(--fd-yellow);
  outline-offset: 3px;
  border-color: rgba(255,194,0,0.55);
}

.fd-industry__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--fd-line-soft);
  margin-bottom: 0.85rem;
}

.fd-industry__num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.fd-industry__head > div {
  flex: 1;
  min-width: 0;
}

.fd-industry__label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--c4-white);
  margin: 0;
}

.fd-industry__tag {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-yellow);
}

.fd-industry__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fd-red);
  background: rgba(209, 26, 34,0.10);
  border: 1px solid rgba(209, 26, 34,0.30);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.fd-industry:hover .fd-industry__more {
  transform: rotate(90deg);
  background: rgba(209, 26, 34,0.18);
}

.fd-industry__copy {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  flex: 1;
}

.fd-industry__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--fd-line-soft);
  transition: color 0.25s ease, gap 0.25s ease;
}

.fd-industry:hover .fd-industry__cta {
  color: var(--c4-white);
  gap: 0.65rem;
}

.fd-industry__cta svg { flex-shrink: 0; }

.fd-industries__note {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 880px;
  margin: 1.5rem auto 0;
  text-align: center;
  line-height: 1.6;
}

.fd-industries__note a,
.fd-compare__note a,
.fd-quote__direct-foot a,
.fd-why__note a {
  color: var(--fd-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fd-industries__note a:hover,
.fd-compare__note a:hover,
.fd-quote__direct-foot a:hover,
.fd-why__note a:hover { color: var(--c4-white); }

/* ============================================================
 * ADDRESSABLE vs CONVENTIONAL TABLE
 * ============================================================ */
.fd-compare__wrap {
  overflow-x: auto;
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
}

.fd-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.fd-compare__table th,
.fd-compare__table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--fd-line-soft);
  vertical-align: top;
  color: rgba(255,255,255,0.85);
}

.fd-compare__table thead th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 2px solid var(--fd-line);
  background: rgba(0,0,0,0.25);
}

.fd-compare__table thead .fd-compare__addr { color: var(--fd-red); }
.fd-compare__table thead .fd-compare__conv { color: var(--fd-yellow); }

.fd-compare__table tbody tr:last-child th,
.fd-compare__table tbody tr:last-child td { border-bottom: none; }

.fd-compare__table tbody .fd-compare__rowlabel {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--c4-white);
  background: rgba(255,255,255,0.02);
  width: 26%;
}

.fd-compare__table .fd-compare__addr {
  border-left: 2px solid rgba(209, 26, 34,0.30);
}

.fd-compare__note {
  margin: 1.5rem auto 0;
  max-width: 880px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  padding: 1.2rem 1.4rem;
  background: rgba(255,194,0,0.06);
  border-left: 3px solid var(--fd-yellow);
  border-radius: 4px;
}

.fd-compare__note strong { color: var(--c4-white); }

/* ============================================================
 * PROCESS — 5-step timeline
 * ============================================================ */
.fd-process__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

/* Dim base line — runs from the centre of circle 1 to the centre of the last circle.
   Offset = step padding-top (1.2rem) + half of 60px circle (30px). Same for bottom. */
.fd-process__list::before {
  content: "";
  position: absolute;
  left: 30px;
  top: calc(1.2rem + 30px);
  bottom: calc(1.2rem + 30px);
  width: 2px;
  background: linear-gradient(180deg,
    rgba(209, 26, 34,0.45) 0%,
    rgba(209, 26, 34,0.18) 30%,
    rgba(255,194,0,0.18) 50%,
    rgba(209, 26, 34,0.18) 70%,
    rgba(209, 26, 34,0.45) 100%);
  border-radius: 999px;
  /* Soft red ambient glow on the rail itself — keeps the line present even between sweeps. */
  box-shadow: 0 0 8px rgba(209, 26, 34,0.18);
}

/* Travelling spark — overlays the base line and loops every 3 seconds for the lifetime of
   the page once the section enters the viewport (class .is-animating added in JS). */
.fd-process__list::after {
  content: "";
  position: absolute;
  left: 26px;
  width: 10px;
  height: 30px;
  border-radius: 999px;
  /* White-hot core fading through yellow into red, with transparent caps so the spark
     reads as a soft elongated drop of light rather than a hard pill. */
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%,
      #ffffff 0%,
      #FFE17A 28%,
      var(--fd-yellow) 48%,
      var(--fd-red) 72%,
      rgba(209, 26, 34,0) 100%);
  /* Layered halo — tight white core, mid yellow flame, wide red bloom. */
  box-shadow:
    0 0 14px rgba(255,255,255,0.85),
    0 0 30px rgba(255,194,0,0.85),
    0 0 60px rgba(209, 26, 34,0.65),
    0 0 100px rgba(209, 26, 34,0.30);
  filter: saturate(1.15);
  top: calc(1.2rem + 30px - 15px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: top, opacity;
}

.fd-process__list.is-animating::after {
  animation: fd-spark-travel 3s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

/* 3-second loop:
     0% -> 4%   fade in at circle 1 top
     4% -> 78%  travel the full line length (2.22s of pure motion)
     78% -> 82% fade out at circle 5 bottom
     82% -> 83% snap back to start with opacity 0 (invisible reset)
     83% -> 100% invisible pause (~0.51s) before the next pass starts
   Keeping opacity:0 across the reset and pause prevents any visible "rewind". */
@keyframes fd-spark-travel {
  0%   { opacity: 0; top: calc(1.2rem + 30px - 15px); }
  4%   { opacity: 1; top: calc(1.2rem + 30px - 15px); }
  78%  { opacity: 1; top: calc(100% - 1.2rem - 30px - 15px); }
  82%  { opacity: 0; top: calc(100% - 1.2rem - 30px - 15px); }
  83%  { opacity: 0; top: calc(1.2rem + 30px - 15px); }
  100% { opacity: 0; top: calc(1.2rem + 30px - 15px); }
}

@media (prefers-reduced-motion: reduce) {
  .fd-process__list.is-animating::after {
    animation: none;
    opacity: 0;
  }
}

.fd-process__step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.2rem 1.4rem 1.2rem 0;
}

.fd-process__num {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c4-white);
  background: linear-gradient(135deg, var(--fd-red), #B81D21);
  border-radius: 50%;
  box-shadow: 0 8px 24px -10px rgba(209, 26, 34,0.55);
  position: relative;
  z-index: 1;
  /* Solid dark ring stops the spark glow from bleeding through the circle. */
  outline: 4px solid var(--c4-black);
  outline-offset: -1px;
}

/* Each circle pulses as the spark reaches it. The pulse animation duration matches the
   spark loop (3s) and runs infinite. The keyframe peak occupies ~5% of the 3s window so
   the pulse stays crisp (~150ms ramp, ~300ms settle). animation-delay staggers them so
   they fire in sync with the spark passing through (spark travels between 4% and 78% of
   the 3s cycle = 0.12s -> 2.34s, so circles 1-5 pulse at roughly that span). */
.fd-process__list.is-animating .fd-process__step:nth-child(1) .fd-process__num { animation: fd-circle-pulse 3s ease-out 0.12s infinite; }
.fd-process__list.is-animating .fd-process__step:nth-child(2) .fd-process__num { animation: fd-circle-pulse 3s ease-out 0.68s infinite; }
.fd-process__list.is-animating .fd-process__step:nth-child(3) .fd-process__num { animation: fd-circle-pulse 3s ease-out 1.23s infinite; }
.fd-process__list.is-animating .fd-process__step:nth-child(4) .fd-process__num { animation: fd-circle-pulse 3s ease-out 1.78s infinite; }
.fd-process__list.is-animating .fd-process__step:nth-child(5) .fd-process__num { animation: fd-circle-pulse 3s ease-out 2.34s infinite; }

@keyframes fd-circle-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 24px -10px rgba(209, 26, 34,0.55);
    background: linear-gradient(135deg, var(--fd-red), #B81D21);
  }
  3% {
    transform: scale(1.22);
    box-shadow:
      0 10px 32px -6px rgba(209, 26, 34,1),
      0 0 0 8px rgba(209, 26, 34,0.40),
      0 0 0 20px rgba(255,194,0,0.18),
      0 0 0 36px rgba(209, 26, 34,0.05),
      0 0 36px rgba(255,255,255,0.7),
      0 0 60px rgba(255,194,0,0.55);
    background: linear-gradient(135deg, #FFF1A6, var(--fd-red) 65%, #B81D21);
  }
  18% {
    transform: scale(1);
    box-shadow: 0 8px 24px -10px rgba(209, 26, 34,0.55);
    background: linear-gradient(135deg, var(--fd-red), #B81D21);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px -10px rgba(209, 26, 34,0.55);
    background: linear-gradient(135deg, var(--fd-red), #B81D21);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-process__list.is-animating .fd-process__step .fd-process__num {
    animation: none;
  }
}

.fd-process__body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--c4-white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.fd-process__duration {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  background: rgba(255,194,0,0.10);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,194,0,0.30);
}

.fd-process__body p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ============================================================
 * MAINTENANCE + 24/7 MONITORING UPSELL
 * ============================================================ */
.fd-maint__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.fd-maint__copy h2 { margin-block: 0.5rem 1rem; }

.fd-maint__copy p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.fd-maint__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fd-maint__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.fd-maint__list svg {
  width: 20px;
  height: 20px;
  color: var(--fd-green);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.fd-maint__card {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

.fd-maint__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fd-red), var(--fd-yellow) 80%, transparent);
}

.fd-maint__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--fd-yellow);
  background: rgba(255,194,0,0.12);
  border: 1px solid rgba(255,194,0,0.30);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.fd-maint__card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  color: var(--c4-white);
}

.fd-maint__card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.fd-maint__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fd-maint__card-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.fd-maint__card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--fd-red);
  font-weight: 900;
}

/* ============================================================
 * WHY C4 — 4-card grid
 * ============================================================ */
.fd-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.fd-why__card {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.fd-why__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--fd-yellow), transparent);
}

.fd-why__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,194,0,0.30);
}

.fd-why__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fd-yellow);
  margin-bottom: 1rem;
}

.fd-why__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c4-white);
  margin: 0 0 0.6rem;
}

.fd-why__card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

.fd-why__note {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 1rem 0 0;
  text-align: center;
}

/* ============================================================
 * FAQ
 * ============================================================ */
.fd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fd-faq__item {
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 10px);
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.fd-faq__item[open] {
  border-color: rgba(209, 26, 34,0.40);
}

.fd-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-heading);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--c4-white);
}

.fd-faq__item summary::-webkit-details-marker { display: none; }

.fd-faq__chev {
  color: var(--fd-red);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.fd-faq__item[open] .fd-faq__chev { transform: rotate(180deg); }

.fd-faq__answer {
  padding: 0 1.35rem 1.25rem;
  border-top: 1px solid var(--fd-line-soft);
  margin-top: -1px;
}

.fd-faq__answer p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

/* ============================================================
 * RELATED SERVICES grid
 * ============================================================ */
.fd-related__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.fd-related__grid li a {
  display: block;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  color: var(--c4-white);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
  height: 100%;
}

.fd-related__grid li a:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 26, 34,0.40);
}

.fd-related__grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--c4-white);
  margin-bottom: 0.4rem;
}

.fd-related__grid span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ============================================================
 * QUOTE / CTA SECTION
 * ============================================================ */
.fd-quote__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.fd-quote__copy h2 { margin-block: 0.5rem 1rem; }

.fd-quote__copy p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.fd-quote__points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fd-quote__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.fd-quote__points li svg {
  width: 18px;
  height: 18px;
  color: var(--fd-green);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.fd-quote__direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.fd-quote__direct a {
  display: block;
  padding: 0.95rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--c4-white);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.fd-quote__direct a:hover {
  border-color: rgba(209, 26, 34,0.40);
  background: rgba(209, 26, 34,0.05);
}

.fd-quote__direct span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  margin-bottom: 0.25rem;
}

.fd-quote__direct strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c4-white);
}

.fd-quote__direct-foot {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Form */
.fd-quote__form {
  padding: 2rem 1.85rem 1.85rem;
  background: linear-gradient(180deg, var(--fd-elev) 0%, var(--fd-elev-2) 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 14px);
  position: sticky;
  top: 110px;
}

.fd-quote__form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  color: var(--c4-white);
}

.fd-quote__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.fd-quote__field {
  display: block;
  margin-bottom: 0.85rem;
}

.fd-quote__field span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}

.fd-quote__field input,
.fd-quote__field select,
.fd-quote__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--c4-white);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--fd-line);
  border-radius: 6px;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
}

.fd-quote__field textarea { resize: vertical; min-height: 90px; }

.fd-quote__field input:focus,
.fd-quote__field select:focus,
.fd-quote__field textarea:focus {
  outline: none;
  border-color: var(--fd-red);
  background: rgba(0,0,0,0.55);
}

.fd-quote__submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.fd-quote__form-foot {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.5;
}

.fd-quote__form-msg {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  text-align: center;
  display: none;
}

.fd-quote__form-msg.is-success {
  display: block;
  background: rgba(20,199,123,0.10);
  color: var(--fd-green);
  border: 1px solid rgba(20,199,123,0.35);
}

.fd-quote__form-msg.is-error {
  display: block;
  background: rgba(209, 26, 34,0.10);
  color: var(--fd-red);
  border: 1px solid rgba(209, 26, 34,0.35);
}

/* ============================================================
 * STICKY MOBILE CTA
 * ============================================================ */
.fd-sticky {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, var(--fd-red), #B81D21);
  color: var(--c4-white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(209, 26, 34,0.5);
  z-index: 70;
  transition: transform 0.45s var(--ease-out);
}

.fd-sticky.is-visible { transform: translateX(-50%) translateY(0); }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
  .fd-hero__inner,
  .fd-maint__inner,
  .fd-quote__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-hero__panel { max-width: 520px; }

  .fd-quote__form { position: static; }
}

@media (max-width: 720px) {
  .fd-hero { min-height: clamp(560px, 82vh, 740px); }

  .fd-hero__cta { flex-direction: column; align-items: stretch; }
  .fd-hero__cta .btn { justify-content: center; }

  .fd-hero__trust { gap: 0.8rem 1.4rem; }

  .fd-industries__grid,
  .fd-why__grid,
  .fd-related__grid { grid-template-columns: minmax(0, 1fr); }

  .fd-process__step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .fd-process__num { width: 44px; height: 44px; font-size: 1rem; }
  .fd-process__list::before {
    left: 22px;
    top: calc(1.2rem + 22px);
    bottom: calc(1.2rem + 22px);
  }
  .fd-process__list::after {
    left: 18px;
    width: 8px;
    height: 24px;
    top: calc(1.2rem + 22px - 12px);
  }
  @keyframes fd-spark-travel {
    0%   { opacity: 0; top: calc(1.2rem + 22px - 12px); }
    4%   { opacity: 1; top: calc(1.2rem + 22px - 12px); }
    78%  { opacity: 1; top: calc(100% - 1.2rem - 22px - 12px); }
    82%  { opacity: 0; top: calc(100% - 1.2rem - 22px - 12px); }
    83%  { opacity: 0; top: calc(1.2rem + 22px - 12px); }
    100% { opacity: 0; top: calc(1.2rem + 22px - 12px); }
  }

  .fd-sticky { display: inline-flex; }

  .fd-quote__row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .fd-hero__panel { padding: 1.35rem 1.1rem; }
  .fd-stat { padding: 1.75rem 1.4rem 1.4rem; }
  .fd-industry { padding: 1.35rem 1.2rem; }
  .fd-quote__form { padding: 1.5rem 1.3rem 1.4rem; }
  .fd-compare__table { font-size: 0.9rem; }
  .fd-compare__table th,
  .fd-compare__table td { padding: 0.8rem 0.85rem; }
}

/* ============================================================
 * INDUSTRY DETAIL MODAL
 * ============================================================ */
.fd-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

.fd-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0s;
}

body.fd-modal-open { overflow: hidden; }

.fd-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(209, 26, 34,0.18), transparent 55%),
    rgba(5,5,7,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fd-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  background: linear-gradient(180deg, #15151A 0%, #0D0D10 100%);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.85);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
  overflow: hidden;
}

.fd-modal.is-open .fd-modal__panel { transform: translateY(0) scale(1); }

.fd-modal__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(209, 26, 34,0.55), rgba(255,194,0,0.25) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.fd-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--fd-line);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.fd-modal__close:hover {
  background: rgba(209, 26, 34,0.15);
  border-color: rgba(209, 26, 34,0.55);
  color: var(--fd-red);
}

.fd-modal__close:focus-visible {
  outline: 2px solid var(--fd-yellow);
  outline-offset: 2px;
}

.fd-modal__head {
  padding: 1.7rem 1.85rem 1.1rem;
  padding-right: 4rem;
  border-bottom: 1px solid var(--fd-line-soft);
}

.fd-modal__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  margin-bottom: 0.5rem;
}

.fd-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c4-white);
  margin: 0 0 0.55rem;
}

.fd-modal__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-red);
  background: rgba(209, 26, 34,0.10);
  border: 1px solid rgba(209, 26, 34,0.30);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.fd-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.85rem 1.5rem;
  scrollbar-color: rgba(209, 26, 34,0.6) rgba(255,255,255,0.06);
  scrollbar-width: thin;
}

.fd-modal__body::-webkit-scrollbar { width: 8px; }
.fd-modal__body::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.fd-modal__body::-webkit-scrollbar-thumb { background: rgba(209, 26, 34,0.45); border-radius: 4px; }

.fd-modal__detail {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.fd-modal__detail strong { color: var(--c4-white); font-weight: 600; }

.fd-modal__section { margin-bottom: 1.5rem; }
.fd-modal__section:last-child { margin-bottom: 0; }

.fd-modal__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fd-yellow);
  margin-bottom: 0.6rem;
}

.fd-modal__label--warn { color: var(--fd-red); }

.fd-modal__install {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fd-modal__install li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

.fd-modal__install li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--fd-red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(209, 26, 34,0.55);
}

.fd-modal__why {
  background: rgba(209, 26, 34,0.06);
  border-left: 3px solid var(--fd-red);
  border-radius: 6px;
  padding: 1rem 1.1rem 1.1rem;
}

.fd-modal__why .fd-modal__label { margin-bottom: 0.4rem; }

.fd-modal__why p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.fd-modal__related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fd-modal__related li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.92rem;
  color: var(--c4-white);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.fd-modal__related li a::after {
  content: "→";
  color: var(--fd-yellow);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.fd-modal__related li a:hover {
  border-color: rgba(209, 26, 34,0.45);
  background: rgba(209, 26, 34,0.06);
  transform: translateX(2px);
}

.fd-modal__related li a:hover::after { transform: translateX(3px); }

.fd-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.1rem 1.85rem 1.35rem;
  border-top: 1px solid var(--fd-line-soft);
  background: rgba(0,0,0,0.25);
}

.fd-modal__foot .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }

@media (max-width: 720px) {
  .fd-modal { padding: 0; align-items: flex-end; }
  .fd-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .fd-modal.is-open .fd-modal__panel { transform: translateY(0); }
  .fd-modal__head { padding: 1.35rem 1.35rem 1rem; padding-right: 3.6rem; }
  .fd-modal__body { padding: 1.25rem 1.35rem 1.25rem; }
  .fd-modal__foot { padding: 1rem 1.35rem 1.2rem; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .fd-modal,
  .fd-modal__panel { transition: none; }
}
