/* lp.css - Roman Plumbing & Heat landing pages (lp/). Hand-written source.
   Loaded after the main site's css/site.css (copied in by the build), so every colour,
   font and radius comes from the site's tokens. This file only adds what landing pages
   need: a hero that fits the first screen, a header without navigation, four-step
   process, value cards and the compact form's extras.

   The numbers that matter (re-run the fold check after changing any of them):
   --lp-chrome = utility bar + sticky header on desktop; on <=920px it also includes the
   fixed bottom call bar. Measured on this site: util 35 + header 73 = 108 desktop;
   util 35 + header 73 + mobile bar 71 = 179 on phones. */

/* ---------- header without navigation ---------- */
.lp .logo { cursor: default; }
.lp .hdr-cta { margin-left: auto; }
@media (min-width: 901px) { .lp .hdr-quote { display: inline-block; } }

/* ---------- hero: fills the first screen and never runs past it ---------- */
.lp-hero { --lp-chrome: 108px; display: flex; align-items: center; min-height: calc(100vh - var(--lp-chrome)); min-height: calc(100svh - var(--lp-chrome)); padding-block: clamp(14px, 3vh, 44px); }
.lp-hero > .wrap { width: min(var(--wrap), 100% - 32px); }
.lp-hero .hero-grid { align-items: center; }
/* the site stacks its hero at 960px; landing pages keep copy + form side by side down to 921px */
@media (min-width: 921px) { .lp-hero .hero-grid { grid-template-columns: 1.12fr .88fr; } }
.lp-hero .pill { margin-bottom: clamp(8px, 1.6vh, 18px); }
.lp-hero h1 { font-size: clamp(2.4rem, min(5vw, 8vh), 4.6rem); margin-bottom: clamp(10px, 1.8vh, 20px); }
.lp-hero .lead { font-size: clamp(1rem, 1.9vh, 1.14rem); margin-bottom: clamp(12px, 2.4vh, 24px); }
.lp-hero .lead-sm { display: none; }
.lp-hero .hero-trust { margin-top: clamp(12px, 2.4vh, 26px); }

/* compact form: name, phone, email, ZIP, service (no message box) */
.lp-hero .lead-form { gap: clamp(6px, 1.1vh, 12px); padding: clamp(16px, 2.6vh, 28px) clamp(18px, 2vw, 26px); }
.lp-hero .lead-form input:not([type="checkbox"]):not([type="radio"]), .lp-hero .lead-form select { min-height: clamp(40px, 5.4vh, 48px); padding-top: 8px; padding-bottom: 8px; }
.lp-hero .lead-form .btn-lg { min-height: clamp(46px, 6.2vh, 56px); padding-top: 12px; padding-bottom: 12px; }
.form-note { margin: 0; text-align: center; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.form-note a { color: inherit; }

/* short laptop screens: drop nice-to-haves so the submit button stays visible */
@media (min-width: 921px) and (max-height: 760px) {
  .lp-hero .lead-form .form-sub { display: none; }
}
@media (min-width: 921px) and (max-height: 640px) {
  .lp-hero .hero-trust, .lp-hero .form-note { display: none; }
  .lp-hero .lead-form .form-title { font-size: 1.35rem; }
}

/* phones and tablets: the copy block fills the screen above the fixed call bar; the form starts at the fold */
@media (max-width: 920px) {
  .lp-hero { --lp-chrome: 179px; display: block; min-height: 0; padding: 0 0 clamp(36px, 8vw, 60px); }
  .lp-hero .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .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(14px, 3vh, 36px); }
  .lp-hero h1 { font-size: clamp(2.2rem, min(10vw, 6.6vh), 4rem); }
  .lp-hero .lead { font-size: 1.04rem; }
  .lp-hero .lead-lg { display: none; }
  .lp-hero .lead-sm { display: block; }
  .lp-hero .hero-trust { margin-top: clamp(12px, 2.2vh, 22px); }
}
@media (max-width: 920px) and (max-height: 620px) { .lp-hero .hero-trust { display: none; } }
@media (max-width: 600px) { .lp-hero .btn-row .hero-quote { display: none; } }

/* ---------- service blocks ---------- */
.lp-block .photo-stack img:last-child { margin-top: 48px; }
.lp-block.lp-swap .split-grid > :first-child { order: 2; }
@media (max-width: 900px) { .lp-block.lp-swap .split-grid > :first-child { order: 0; } }

/* umbrella page: service cards (no links on ad pages) + emergency card */
.lp-svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-svc { padding: 26px 24px; }
.lp-svc .ic-lg { color: var(--accent-fg); margin-bottom: 14px; }
.tone-light .lp-svc .ic-lg { color: var(--blue); }
.lp-svc h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lp-svc p { margin: 0; color: var(--muted); font-size: .96rem; }
.lp-svc.emergency { background: linear-gradient(160deg, rgba(231,172,12,.16), rgba(231,172,12,.04)); border-color: rgba(231,172,12,.45); }
.lp-svc.emergency .btn { margin-top: 16px; }
@media (max-width: 1000px) { .lp-svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-svc-grid { grid-template-columns: 1fr; } }

/* "Why Roman": three value cards */
.lp-values { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .lp-values { grid-template-columns: 1fr; } }

/* four-step process */
.step-list.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .step-list.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .step-list.four { grid-template-columns: 1fr; } }

/* service area with a job photo instead of a map */
.lp-area-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* thank-you */
.ty-name:empty { display: none; }
