/* ============================================================
   Ad landing pages (services/home-moving, services/junk-removal).
   Loaded after style.css and quote-form.css. Mobile first: most
   visitors arrive from a Google search on a phone.
   ============================================================ */

html {
  scroll-padding-top: 84px; /* anchor jumps (#quote) clear the fixed header */
  touch-action: manipulation; /* no 300ms tap delay anywhere on the page */
  caret-color: var(--accent-light);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Tertiary text (footer headings, legal row) at 0.4 alpha is 3.7:1; lift it to AA on these pages. */
body[data-lp] { --text-tertiary: rgba(255, 255, 255, 0.56); }

.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }

/* ---------- Lean header: logo, call, WhatsApp ---------- */
.lp-header .nav-inner { padding: 12px 16px 12px 20px; }
.lp-header-actions { display: flex; gap: 8px; }
.lp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 100ms ease-out, border-color 0.2s ease, background 0.2s ease;
}
.lp-icon-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.is-wa svg { color: #25d366; }
.lp-icon-label { display: none; }
@media (min-width: 769px) {
  .lp-header .nav-inner { padding: 14px 32px; }
  .lp-icon-btn { padding: 0 16px; }
  .lp-icon-label { display: inline; }
}

/* ---------- Shared bits ---------- */
.lp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: transform 100ms ease-out, background 0.2s ease, border-color 0.2s ease;
}
.lp-btn-outline svg { width: 20px; height: 20px; flex-shrink: 0; }
.lp-btn-outline.is-wa { border-color: rgba(37, 211, 102, 0.5); }
@media (hover: hover) {
  .lp-icon-btn:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.09); }
  .lp-btn-outline:hover { background: rgba(var(--accent-rgb), 0.1); border-color: var(--accent); }
  .lp-btn-outline.is-wa:hover { background: rgba(37, 211, 102, 0.08); border-color: #25d366; }
}
/* Immediate tap response. */
:is(.lp-icon-btn, .lp-btn-outline, .lp-sticky-btn, .lp-cta .btn-primary):active { transform: scale(0.97); }

/* Hidden chips keep their box (invisible), so the rating arriving later moves nothing; it fades in
   in place. If no rating comes back, js/lp.js removes the chip and the slot closes. */
.lp-rating[hidden] { display: block; visibility: hidden; opacity: 0; }
.lp-rating {
  transition: opacity 200ms ease-out;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  width: fit-content;
}

.lp-ticks { list-style: none; display: grid; gap: 12px; }
.lp-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); line-height: 1.55; }
.lp-ticks svg, .lp-proofs svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.lp-ticks li svg { margin-top: 4px; }
.lp-ticks strong { color: var(--text-primary); font-weight: 600; }
.lp-ticks-stack li { color: var(--text-primary); }

/* ---------- First screen ---------- */
.lp-top { position: relative; z-index: 1; padding: 88px 16px 40px; }
.lp-top-grid { max-width: 1160px; margin: 0 auto; display: grid; gap: 26px; }
.lp-intro { display: flex; flex-direction: column; gap: 14px; }
.lp-headline h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lp-sub {
  margin-top: 12px;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.lp-proofs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; }
.lp-proofs li { display: inline-flex; align-items: center; gap: 7px; }
.lp-contact { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }
.lp-contact a, .lp-note a, .lp-seo a, .lp-lede a, .lp-text-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.7);
  text-underline-offset: 3px;
}
.lp-hero-img { display: none; }
/* The <picture> around the hero: hidden whole below 960px so it is not an empty flex item adding a gap. */
.lp-hero { display: none; }

/* The wrapper is the card, so the heading and the form read as one piece. */
.lp-form {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 16px 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.lp-form-head { margin-bottom: 22px; }
.lp-slogan { font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--accent-light); margin-bottom: 4px; }
.lp-form-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lp-form-head h2 + p { margin-top: 8px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.lp-form .quote-form-mount.form-card {
  max-width: none;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* preset() scrolls the mount into view: leave the card heading above it visible
     (added to html's scroll-padding-top, so the card lands under the header like #quote does). */
  scroll-margin-top: 150px;
}
/* Room for step 1 while quote-form.js renders it. Measured: 808px at 390 and 1440 wide while the date hint
   fits on one line, 827px on phones when a longer date wraps it. The shorter height is reserved, so the
   reservation never leaves a gap; the wrapped line on phones lands below the first screen. */
/* (scripting: enabled) needs Chrome 120+, Safari 17+ or Firefox 113+; older browsers only lose the reserved
   height, a small layout shift. No noscript workaround. Without JS there is no form, so no gap either. */
@media (scripting: enabled) { .lp-form .quote-form-mount:not([data-ready]) { min-height: 808px; } }

@media (min-width: 600px) and (max-width: 959px) {
  .lp-top-grid { max-width: 640px; }
}
@media (min-width: 769px) {
  .lp-top { padding-top: 120px; }
  .lp-form { padding: 30px 30px 28px; }
}
@media (min-width: 960px) {
  .lp-top { padding: 128px 32px 64px; }
  .lp-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: start; }
  /* The form column is the taller one; the pitch and photo stay alongside it. */
  .lp-intro { gap: 18px; padding-top: 12px; position: sticky; top: 104px; }
  .lp-hero { display: block; }
  .lp-hero-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
  }
}
/* Junk step 1 has no drop-off field: 798px (817px on phones with the wrapped date hint). Same scripting browser floor as above. */
@media (scripting: enabled) { body[data-lp="junk-removal"] .lp-form .quote-form-mount:not([data-ready]) { min-height: 798px; } }

/* ---------- Sections ---------- */
.lp-section { position: relative; z-index: 1; padding: 52px 16px; }
.lp-wrap { max-width: 1160px; margin: 0 auto; }
.lp-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26ch;
  margin-bottom: 22px;
}
.lp-h2-sm { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin-bottom: 10px; }
.lp-lede { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
.lp-note { margin-top: 22px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; max-width: 65ch; }
@media (min-width: 769px) {
  .lp-section { padding: 80px 32px; }
}

/* Reviews and partners */
.lp-reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; }
.lp-reviews-head .lp-h2 { margin-bottom: 0; }
.lp-reviews .testimonials-track { max-width: none; padding: 0; grid-template-columns: 1fr; gap: 14px; }
.lp-reviews .testimonial-card { padding: 24px; background: var(--bg-elevated); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lp-text-link { display: inline-block; margin-top: 10px; padding: 10px 0; }
.lp-partners { margin-top: 48px; }
.lp-partners .marquee-label { color: var(--text-secondary); margin-bottom: 22px; }
@media (min-width: 769px) {
  .lp-reviews .testimonials-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* Two ways */
.lp-ways { display: grid; gap: 14px; }
.lp-way {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.lp-way h3 { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -0.01em; }
.lp-way p { flex: 1; color: var(--text-secondary); line-height: 1.6; }
.lp-way .lp-btn-outline { margin-top: 8px; }
@media (min-width: 769px) {
  .lp-ways { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-way { padding: 28px; }
  .lp-way .lp-btn-outline { align-self: flex-start; }
}

/* What every move includes: thumbnails beside the text on phones, photos on top from tablet up. */
.lp-features { display: grid; gap: 18px; }
.lp-feature { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-feature img { width: 100%; height: auto; border-radius: 12px; }
.lp-feature h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; margin-bottom: 6px; }
.lp-feature p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }
.lp-features + .lp-ticks { margin-top: 30px; }
@media (min-width: 769px) {
  .lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .lp-feature { grid-template-columns: 1fr; gap: 16px; }
  .lp-feature img { border-radius: 16px; }
  .lp-feature h3 { font-size: 1.15rem; }
  .lp-features + .lp-ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
  .lp-ticks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* Price */
.lp-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.lp-panel h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 14px; }
.lp-small { margin-top: 16px; font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary); }
@media (min-width: 900px) {
  .lp-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
  .lp-panel { margin-top: 0; }
}

/* How it works: a numbered line, not cards. Vertical on phones, horizontal from tablet up. */
.lp-steps { list-style: none; counter-reset: lp-step; display: grid; margin-left: 15px; }
.lp-steps li {
  counter-increment: lp-step;
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.lp-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.lp-steps li::before {
  content: counter(lp-step);
  position: absolute;
  left: -16px;
  top: -3px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c120d;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.lp-steps h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.lp-steps p { color: var(--text-secondary); line-height: 1.55; font-size: 0.95rem; }
@media (min-width: 769px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; }
  .lp-steps li { padding: 32px 28px 0 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .lp-steps li::before { left: 0; top: -16px; }
}

/* Hiring a van vs WeDo */
.lp-compare { display: grid; gap: 14px; }
.lp-compare-col { padding: 24px; border-radius: 20px; border: 1px solid var(--border); }
.lp-compare-col.is-us { background: var(--bg-elevated); border-color: rgba(var(--accent-rgb), 0.35); }
.lp-compare-col h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 14px; }
.lp-dash { list-style: none; display: grid; gap: 12px; }
.lp-dash li { position: relative; padding-left: 26px; color: var(--text-secondary); line-height: 1.55; }
.lp-dash li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 12px; height: 1px; background: rgba(255, 255, 255, 0.4); }
@media (min-width: 769px) {
  .lp-compare { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-compare-col { padding: 28px; }
}

/* SEO blocks */
.lp-seo { display: grid; gap: 30px; }
.lp-seo p { color: var(--text-secondary); line-height: 1.7; max-width: 62ch; }
@media (min-width: 769px) {
  .lp-seo { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.lp-counties { margin: 20px 0 0; }
.lp-faq .faq-list { max-width: 780px; margin: 0; padding: 0; }

/* Final CTA */
.lp-cta { text-align: center; padding-bottom: 88px; }
.lp-cta .lp-h2 { margin-inline: auto; margin-bottom: 10px; }
.lp-cta .lp-lede { margin: 0 auto 28px; }
.lp-cta-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.lp-cta .btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
@media (min-width: 640px) {
  .lp-cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
}

/* ---------- Mobile sticky contact bar (js/lp.js shows it) ---------- */
.lp-sticky { display: none; }
@media (max-width: 768px) {
  .lp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 13, 16, 0.78);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(110%);
    visibility: hidden; /* off screen means out of the tab order too, once the slide-out ends */
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 380ms;
  }
  .lp-sticky.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
  /* The cookie banner owns the bottom edge while it is open. */
  body:has(#cookieBanner.visible) .lp-sticky { transform: translateY(110%); visibility: hidden; transition-delay: 0s, 380ms; }
  body[data-lp] footer { padding-bottom: 112px; }
}
.lp-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 100ms ease-out;
}
.lp-sticky-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.lp-sticky-btn.is-quote { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .lp-sticky { background: #0c0d10; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Discreet reveals (js/lp.js adds .lp-reveal); visible without JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal [data-reveal] {
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .lp-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(8px); }
}
/* Reduced motion: the bar fades instead of sliding (beats the global 0.01ms override). */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .lp-sticky { transform: none; opacity: 0; transition: opacity 150ms ease-out, visibility 0s linear 150ms !important; }
  .lp-sticky.is-shown { opacity: 1; transition: opacity 150ms ease-out, visibility 0s !important; }
  body:has(#cookieBanner.visible) .lp-sticky { transform: none; opacity: 0; visibility: hidden; transition: opacity 150ms ease-out, visibility 0s linear 150ms !important; }
}
