/* ==========================================================================
   ABLENTRA V15 — Phase 0 base fixes (2026-11-08). Loaded LAST in <head>.
   1. D2 (ROOT CAUSE): ablentra-signature-redesign.css forces the homepage
      hero intro + checklist to WHITE (rgba(255,255,255,.84/.9) !important)
      on the claim the hero "sits on charcoal" — the real hero background
      is light warm white (#F7F7F5), so the text was invisible. These
      overrides restore dark ink on the pale hero (higher specificity +
      !important + later load order wins over the white rules).
   2. Pinned-hero kill (belt & braces): the pin is removed at source by
      deleting data-abl-pin-hero from index.html, so premium JS never adds
      .abl-pin-hero-on. These rules make a stray pin class harmless.
   3. Process images: tilt ±1.4deg, flat at <=640px, scoped to .pq-process.
   4. D8: anchor targets clear the sticky header (112px base rule exists
      in main.css; reinforced here at 120px for the 64px bar + margin).
   5. D3: hero video fallback — poster image behind the video so a failed
      or not-yet-loaded video never shows a black box.
   Fonts: the premium base loads Manrope only (61/61 pages); no Hanken
   Grotesk / Inter exists in the base, so V15 keeps the base font rather
   than redesigning the whole site's type. See phase3-4 report.
   ========================================================================== */

/* --- 1. D2: dark ink on the pale hero ------------------------------------- */
html body .home-hero .lede,
html body .home-hero .lede .abl-w,
html body .home-hero .hero-copy .lede,
html body .home-hero .hero-copy .lede .abl-w {
  color: #2B2B2E !important;
}
html body .home-hero .hero-review-check li {
  color: #0E0E0F !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(14, 14, 15, .18) !important;
  box-shadow: none !important;
}
html body .home-hero .hero-review-check li::before {
  background: #FF5A1F !important;
}

/* --- 2. Pinned hero: never again ------------------------------------------ */
.home-hero.abl-pin-hero-on {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-top: var(--sp-hero, 7rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem) !important;
}
.home-hero.abl-pin-hero-on > .wrap {
  position: static !important;
  height: auto !important;
  align-content: normal !important;
}
.home-hero.abl-pin-hero-on .hero-frame {
  transition: transform .5s ease !important;
  will-change: auto !important;
  box-shadow: none !important;
}
.home-hero.abl-pin-hero-on .hero-copy h1 { will-change: auto !important; }

/* --- 3. Process images: tilt ±1.4deg, flat <= 640px ----------------------- */
.pq-process .mini-step-img {
  transition: transform .35s ease;
}
.pq-process .mini-step:nth-child(odd) .mini-step-img { transform: rotate(-1.4deg); }
.pq-process .mini-step:nth-child(even) .mini-step-img { transform: rotate(1.4deg); }
.pq-process .mini-step:nth-child(3) .mini-step-img { transform: rotate(-1.4deg); }
@media (max-width: 640px) {
  .pq-process .mini-step-img { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pq-process .mini-step-img { transform: none !important; transition: none; }
}

/* --- 4. D8: anchor targets clear the sticky header ------------------------ */
/* V16 F11 + industry anchor-nav: 170px clears BOTH the floating site-nav pill
   (~64px bar + 12px gap, bottom ~79px) AND the sticky anchor-nav pills bar
   (top 84px desktop / 76px mobile, ~56-67px tall, bottom ~159px). The old
   120px left section tops ~39px under the anchor nav on industry/service
   pages. Headings get the same margin so scrollIntoView never parks an h2
   under the pill. */
#enquiry, #process, #faq, #pricing, #services, #included, #problems,
#search, #deliverables, #approach, #measure, #fit, #trust, #reviews,
#mistakes, #main {
  scroll-margin-top: 170px !important;
}
main h2, main h3 { scroll-margin-top: 170px; }
html { scroll-padding-top: 170px; }

/* --- 5. D3: hero video fallback (poster behind the video) ----------------- */
.hero-video {
  background: #DDDDDD url("https://res.cloudinary.com/lqhshvga/video/upload/so_0,w_1200,q_auto,f_jpg/v1793555111/WhatsApp_Video_2026-11-01_at_10.42.36_PM.jpg") center / cover no-repeat !important;
}

/* --- 6. Pointer audit fix: the 3px progress bars (.progress-bar on 15 blog
   pages, .rest-progress on restaurants) are fixed at top:0 with NO
   pointer-events rule, so their invisible 3px strip sat above the header
   (z-1100 / z-200) and could swallow clicks at the very top edge. They are
   decorative indicators that never need input. ---------------------------- */
.progress-bar, .rest-progress { pointer-events: none !important; }
