/* ============================
   Service landing pages (/<slug>/)
   Loaded after styles.css. Only adds what landing pages need on top of the
   site's own components: the above-the-fold hero + compact quote form, stats,
   value cards, process steps, FAQ, CTA band and the fixed mobile call bar.

   --lp-chrome = announce bar (36) + header (84) measured on the live site; on
   <=920px it also includes the fixed mobile bar. Re-run the fold check
   (am-landing-pages scripts/fold_check.js) after changing any hero sizing.
   ============================ */

:root {
  --lp-accent: var(--blue-light);
  --lp-surface: var(--bg-panel);
  --lp-line: var(--border);
  --lp-muted: var(--gray);
  --lp-display: var(--font-display);
  --lp-radius: var(--radius);
  --lp-bar-h: 0px;
}

/* ---------- Hero: fills the first screen and never runs past it ---------- */
.lp-hero {
  --lp-chrome: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--lp-chrome);
  min-height: 100vh;
  min-height: 100svh;
}
.lp-hero .hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,16,41,0.74) 0%, rgba(0,16,41,0.6) 45%, rgba(0,16,41,0.94) 100%),
    linear-gradient(90deg, rgba(0,16,41,0.9) 0%, rgba(0,16,41,0.4) 70%);
}
.lp-hero .hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(14px, 3vh, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px var(--blue-glow);
}

/* Headline scales with screen HEIGHT as well as width; that keeps short laptops in the fold */
.lp-hero h1 {
  font-size: clamp(2.6rem, min(5.6vw, 9.5vh), 5.6rem);
  letter-spacing: -0.035em;
  margin-bottom: clamp(12px, 2vh, 22px);
  color: var(--white);
}
.lp-hero h1 .accent {
  color: var(--blue-light);
  text-shadow: 0 0 36px var(--blue-glow);
}
.lp-hero .lead {
  max-width: 580px;
  font-size: clamp(1rem, 1.9vh, 1.15rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: clamp(16px, 3vh, 30px);
}
.lp-hero .lead-sm { display: none; }
.lp-hero .hero-actions { margin-top: 0; }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: clamp(14px, 2.6vh, 30px);
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.hero-checks svg { flex: none; width: 18px; height: 18px; color: var(--blue-light); }

/* #quote clears the fixed announce bar + header when jumped to */
.hero-form { scroll-margin-top: 136px; }

/* Hero quote form: the homepage's .contact-form, unchanged in look and fields.
   On desktop only the spacing tightens on short screens (it reaches the homepage's
   exact values at ~900px tall) so the submit button stays above the fold. */
@media (min-width: 921px) {
  .lp-hero .contact-form { padding: clamp(18px, 4vh, 36px); }
  .lp-hero .form-fields { gap: clamp(8px, 2vh, 18px); margin-bottom: clamp(12px, 2.4vh, 22px); }
  .lp-hero .form-row:not(.form-row-split),
  .lp-hero .form-row-split > div { gap: clamp(4px, 0.9vh, 8px); }
  .lp-hero .form-row input,
  .lp-hero .form-row select { padding-block: clamp(7px, 1.35vh, 12px); }
  .lp-hero .form-row textarea { height: clamp(44px, 12vh, 110px); padding-block: clamp(7px, 1.35vh, 12px); }
  .lp-hero .contact-form .btn { padding-block: clamp(10px, 1.7vh, 15px); }
}

/* Short laptop screens: drop nice-to-haves in the copy block */
@media (min-width: 921px) and (max-height: 620px) {
  .lp-hero .hero-checks { display: none; }
  .lp-hero .lead-lg { display: none; }
  .lp-hero .lead-sm { display: block; }
}

/* ---------- Stats strip ---------- */
.lp-stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.lp-stats .stat {
  padding: clamp(28px, 4vw, 44px) 20px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.lp-stats .stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Section rhythm (tones alternate bg / bg-alt; never two of one tone touching) ---------- */
.lp-section { padding: clamp(80px, 11vw, 140px) 0; }
.tone-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-section .section-heading { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.section-intro { max-width: 640px; font-size: 1.1rem; }
.lp-section .section-head { margin-bottom: 48px; }

/* Service grid (umbrella page) reuses .services-grid / .service-card */
.lp-services .service-card { display: flex; flex-direction: column; }
.lp-services .service-card p { flex-grow: 1; }
.card-link {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-light);
  transition: color 0.2s var(--ease);
}
.card-link:hover { color: var(--white); }
.service-card.is-emergency {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(0,66,170,0.35) 0%, var(--bg-panel) 70%);
}
.service-card.is-emergency p { flex-grow: 0; max-width: 620px; }
.service-card.is-emergency h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.value-card h3 { font-size: 1.6rem; color: var(--white); }
.value-card p { margin: 0; }
.value-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid rgba(77, 127, 214, 0.5);
  color: var(--blue-light);
  box-shadow: 0 0 24px -6px var(--blue-glow);
}
.value-icon svg { width: 24px; height: 24px; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: 'SF Mono', 'Roboto Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue-light);
  text-shadow: 0 0 24px var(--blue-glow);
}
.step h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.97rem; }

.section-cta { margin-top: 44px; }

/* Reviews on landing pages: three cards */
.lp-reviews .reviews-grid { grid-template-columns: repeat(3, 1fr); }

/* Service area heading is longer than the homepage's */
.lp-area .section-heading { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.lp-area .area-content { max-width: 760px; }

/* FAQ (native <details>) */
.faq { max-width: 880px; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-light);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--blue-light);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 26px 24px; }
.faq details p a { color: var(--white); text-decoration: underline; }

/* CTA band */
.lp-cta { padding: clamp(80px, 10vw, 130px) 0; text-align: center; }
.lp-cta .section-heading { font-size: clamp(2.6rem, 6vw, 5rem); }
.lp-cta p { max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.lp-cta .hero-actions { justify-content: center; }

/* Thank-you / 404 */
.lp-simple { min-height: 100svh; display: flex; align-items: center; }
.lp-simple .hero-actions { margin-top: 28px; }


/* ---------- Phones and tablets: the copy block fills the screen above the fixed
   call bar; the form starts right at the fold ---------- */
@media (max-width: 920px) {

  .lp-hero { --lp-chrome: 195px; display: block; min-height: 0; padding-top: 120px; padding-bottom: clamp(40px, 8vw, 64px); }
  .lp-hero .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-block: 0; }
  .lp-hero .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--lp-chrome));
    min-height: calc(100svh - var(--lp-chrome));
    padding-block: clamp(16px, 3.5vh, 40px);
  }
  .lp-hero h1 { font-size: clamp(2.5rem, min(11vw, 7.5vh), 4.6rem); }
  .lp-hero .lead { font-size: 1.05rem; margin-bottom: clamp(16px, 3vh, 26px); }
  .lp-hero .lead-lg { display: none; }
  .lp-hero .lead-sm { display: block; }
  .lp-hero .hero-checks { margin-top: clamp(14px, 2.5vh, 24px); gap: 6px 16px; }
  .lp-hero .hero-checks li { font-size: 0.92rem; }
  .lp-hero .contact-form { max-width: 560px; }

  .lp-stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-stats .stat:nth-child(3) { border-left: 0; }
  .lp-stats .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lp-reviews .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) and (max-height: 600px) {
  .lp-hero .hero-checks { display: none; }
}
@media (max-width: 600px) {
  .lp-hero .hero-actions .hero-quote { display: none; }   /* the fixed bar already has Free Quote */
  .steps { grid-template-columns: 1fr; }
  .faq summary { padding: 18px; }
  .faq details p { padding: 0 18px 20px; }
  .service-card.is-emergency .btn { width: 100%; }
}
