
/* =========================================================
   HERO (VIDEO + OVERLAY + CENTERED CONTENT)
   Updates you asked for:
   1) Added comments + reorganized (single source of truth)
   2) Proof text scales with screen so it “fills the bubble”
   3) Eyebrow/overline is YELLOW and NOT in a bubble
========================================================= */

.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 clamp(58px, 7vw, 92px);
  overflow: hidden;
  background: var(--page-bg, #fff);

  /* Desktop scaling tokens (driven by media query below) */
  --hero-box-w: 920px;
  --hero-pad: 18px;
  --hero-gap: 18px;
  --hero-radius: 18px;
}

/* Layout container: centers hero content block vertically + horizontally */
.hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  align-content: center;
  gap: clamp(14px, 2.8vw, 22px);
  min-height: 100vh;
  min-height: 100svh;

  position: relative;
  z-index: 2;

  /* respect fixed header */
  padding-top: calc(var(--topbar-h, 72px) + clamp(18px, 3vw, 34px));
  padding-bottom: clamp(22px, 4vw, 44px);
}

/* The “glass” text block */
.hero__content{
  position: relative;
  z-index: 2;
  margin: 0 auto;

  text-align: center;
  max-width: 70ch;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 18px;

  /* White hero type */
  color: rgba(255,255,255,0.97);
}

/* Subtle dark glass behind hero content (NOT the whole hero) */
.hero__content::before{
  content:"";
  position:absolute;

  /* tighter than -10/-12 */
  inset: -6px -7px -6px -7px;

  border-radius: 18px;
  z-index: -1;
  pointer-events: none;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);

  /* less “bloom”, more crisp */
  box-shadow:
    0 14px 44px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08);

  /* fade-in */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 650ms ease, transform 650ms ease;
}

/* Less blur “glass” (you wanted it lower) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .hero__content::before{
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.14);
  }
}

/* Media layer (video/image) */
.hero__media{
  position:absolute;
  inset:0;
  z-index:0;
  /* Dark backdrop so there's no bright flash before the video paints.
     (The video has no poster on purpose: the old poster was a different
     house than the video, which read as an image "flashing" on load.) */
  background:#22303f;
}
.hero__video{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile/reduced-motion hero image. Hidden by default (desktop shows the
   video); the media queries below flip video/poster together. Being a real
   <img> — not a background — lets it join the preload/srcset/dimensions
   pipeline and lets Lighthouse attribute LCP to it correctly. */
.hero__poster{
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
}

/* Read-zone overlay: dark center + cinematic edges */
.hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(980px 560px at 50% 38%,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.62) 46%,
      rgba(0,0,0,0.28) 76%,
      rgba(0,0,0,0.10) 100%
    ),
    radial-gradient(1600px 1000px at 50% 50%,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.16) 72%,
      rgba(0,0,0,0.34) 100%
    );
}

/* Keep all hero content above overlay */
.hero__inner,
.hero__content{
  position: relative;
  z-index: 2;
}

/* Reset heavy shadows globally inside hero; add back intentionally below */
.hero__content,
.hero__content *{
  text-shadow: none;
}

/* =========================================================
   EYEBROW / OVERLINE (YOUR REQUEST)
   - Yellow text
   - NOT in a bubble (no background / border)
========================================================= */
.hero__kicker,
.hero__content .kicker,
.eyebrow
.overline{
  display: inline-block;
  padding: 0;                 /* remove pill feel */
  border: 0;
  background: transparent;    /* remove bubble */
  border-radius: 0;

  color: #cd9a26; /* gold/yellow */
  letter-spacing: .18em;
  text-transform: uppercase;

  /* tiny separation so it reads on video */
  text-shadow: 0 10px 24px rgba(0,0,0,0.50);
}

/* HEADLINE POP */
.hero h1,
.hero__title{
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: rgba(255,255,255,0.99);

  text-shadow:
    0 1px 0 rgba(0,0,0,0.40),
    0 18px 48px rgba(0,0,0,0.78),
    0 0 22px rgba(0,0,0,0.32);

  -webkit-text-stroke: 0; /* kill the artifact */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.40),
    0 18px 48px rgba(0,0,0,0.78),
    0 0 22px rgba(0,0,0,0.32),
    0 0 1px rgba(0,0,0,0.55),  /* tiny outline */
    0 0 2px rgba(0,0,0,0.35);  /* tiny outline */

}

/* Lead/subcopy */
.hero p,
.hero__sub,
.hero__lead{
  color: rgba(255,255,255,0.88);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.34),
    0 14px 34px rgba(0,0,0,0.64);
}

/* Actions */
.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0 18px;
}

/* Buttons: keep labels crisp */
.hero__actions a,
.hero__actions button{
  text-shadow: none !important;
}

/* Primary — white text + gold glow (matches deck .dksChip--gold) */
.hero__actions .btn--primary,
.hero__actions .btnPrimary,
.hero__actions a:first-child,
.hero__actions button:first-child{
  background: linear-gradient(180deg, #cd9a26, rgba(205, 154, 38,0.82)) !important;
  color: #fff !important;
  border: 1px solid rgba(205, 154, 38,0.9) !important;
  text-shadow: 0 1px 2px rgba(11, 15, 23,0.45) !important;
  box-shadow: 0 10px 30px rgba(205, 154, 38,0.45), 0 0 22px rgba(205, 154, 38,0.55) !important;
}

/* Secondary */
.hero__actions .btn--ghost,
.hero__actions .btnSecondary,
.hero__actions a:nth-child(2),
.hero__actions button:nth-child(2){
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
}

/* =========================================================
   PROOF CHIPS (LIGHT) — WITH SCALING TEXT (YOUR REQUEST #2)
   Goal: on big screens the text grows so it doesn't feel tiny.
========================================================= */

.hero__proof{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 14px auto 0;
}

/* Proof card base */
.proof{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: clamp(12px, 1.0vw, 18px); /* scales with screen */
  box-shadow: 0 16px 44px rgba(0,0,0,0.34);

  /* Ensure text uses available space nicely */
  display: grid;
  gap: clamp(4px, .4vw, 8px);
  align-content: left;
}

/* Proof text scales with screen width */
.proof__kicker{
  display:block;
  color: var(--faint);
  font-size: clamp(12px, 0.9vw, 16px);
  letter-spacing: .02em;
}

.proof__value{
  display:block;
  font-weight: 900;
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 34px);
  line-height: 1.05;
}

.proof__meta{
  display:block;
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 18px);
}

/* =========================================================
   HERO QUOTE / FORM CARD (optional)
========================================================= */
.hero__card{
  width: min(920px, 92vw);
  margin: 0 auto;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 16px 44px rgba(11,15,23,0.14);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .hero__card{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.62);
  }
}

/* =========================================================
   RESPONSIVE: Mobile poster + stacking proof
========================================================= */

@media (prefers-reduced-motion: reduce){
  .hero__video{ display:none; }
  .hero__poster{ display:block; }
}

/* Brighten the hero photo on phones (7 Aug 2026). The desktop overlay sizes
   its darkening gradient in ABSOLUTE px (980x560) — at 375px wide the whole
   viewport falls inside the darkest core (0.82 -> 0.62) and never reaches the
   light 0.28/0.10 outer stops desktop gets, so the photo read almost black.
   Re-cut here in PERCENTAGES so the falloff scales with the viewport, and
   lighten the core. Text stays legible: .hero__content::before still lays its
   own dark glass panel behind the headline. Mobile only — desktop untouched. */
@media (max-width: 768px){
  .hero__video{ display:none; }
  .hero__poster{ display:block; }

  .hero__overlay{
    background:
      radial-gradient(135% 62% at 50% 40%,
        rgba(0,0,0,0.34) 0%,
        rgba(0,0,0,0.24) 45%,
        rgba(0,0,0,0.10) 76%,
        rgba(0,0,0,0.00) 100%
      ),
      linear-gradient(180deg,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.00) 28%,
        rgba(0,0,0,0.00) 68%,
        rgba(0,0,0,0.24) 100%
      );
  }

  .hero__proof{
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  /* keep centered on mobile (you wanted centered) */
  .hero__content{
    text-align: center;
  }
}

/* =========================================================
   DESKTOP: Scale hero box + spacing + keep lead one-line
   NOTE: You currently have BOTH "H1 one line" and "H1 two lines"
   rules in your original snippet. This version keeps H1 ONE LINE.
========================================================= */

@media (min-width: 981px){
  .hero{
    --hero-box-w: clamp(980px, 78vw, 1680px);
    --hero-pad:   clamp(18px, 2.2vw, 36px);
    --hero-gap:   clamp(14px, 2.0vw, 28px);
    --hero-radius: clamp(18px, 2.0vw, 30px);
  }

  .hero__inner{
    grid-template-columns: minmax(0, var(--hero-box-w));
    gap: var(--hero-gap);
  }

  .hero__content{
    max-width: none;
    width: 100%;
    padding: var(--hero-pad);
    border-radius: var(--hero-radius);
  }

  .hero__content::before{
    inset: calc(-1 * var(--hero-pad) * 0.55);
    border-radius: var(--hero-radius);
  }

  .hero__proof{
    max-width: var(--hero-box-w);
    gap: clamp(10px, 1.2vw, 16px);
    text-align:left;
  display: grid;

  /* each column sizes to the widest chip, but never exceeds viewport */
  grid-template-columns: repeat(3, minmax(0, max-content));

  /* Make the whole grid only as wide as it needs to be */
  width: max-content;
  max-width: min(var(--hero-box-w), 100%);

  /* Center the whole group under the hero (change to start if you want) */
  justify-content: center;

  /* Left-align text inside each chip */
  text-align: left;

  gap: clamp(10px, 1.2vw, 16px);
  margin: 14px auto 0;

  /* If you want it to wrap instead of overflow on very tight widths */
  overflow: hidden;
}

/* Each proof chip fills its column, making them uniform */
.hero__proof .proof{
  width: 100%;
}

  /* Lead: one line + centered */
  .hero p.lead{
    white-space: nowrap;
    text-wrap: nowrap;
    overflow: visible;
    font-size: clamp(16px, 1.15vw, 22px);

    display:block;
    width:100%;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }

  /* H1: one line */
  .hero h1,
  .hero__title{
    white-space: nowrap;
    text-wrap: nowrap;
    overflow: visible;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(20px, 6.6vw, 132px);
    line-height: 0.92;
  }
}

/* HERO PROOF: 3 equal cards (match widest / BBB feel) */
.hero__proof{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* equal widths */
  width: min(var(--hero-box-w), 100%);
  max-width: min(var(--hero-box-w), 100%);
  gap: clamp(10px, 1.2vw, 16px);
  margin: 14px auto 0;
  align-items: stretch; /* make heights match */
}

/* make each proof card fill its column + equal height */
.hero__proof .proof{
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
}

/* optional: keep the text from looking tiny on large screens */
@media (min-width: 981px){
  .proof__kicker{ font-size: clamp(12px, .9vw, 14px); }
  .proof__value { font-size: clamp(20px, 1.6vw, 28px); }
  .proof__meta  { font-size: clamp(12px, 1.0vw, 15px); }
}


/* =========================
PROOF CHIPS (LIGHT)
========================= */
.proof{
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 12px;

  /* Slightly softer, more “editorial” */
  box-shadow: 0 12px 30px rgba(11,15,23,.12);
}

.proof__kicker{
  display:block;
  color: var(--faint);
  font-size: 12px;
}

.proof__value{
  display:block;
  font-size: 18px;
  font-weight: 850;
  margin: 4px 0 0;
  color: var(--text);
}

.proof__meta{
  display:block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* =========================
HERO QUOTE / FORM CARD (LIGHT “GLASS”)
========================= */
.hero__card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(11,15,23,.14);
  padding: 18px;
  color: var(--text);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .hero__card{
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.9);
  }
}

/* HERO PROOF: 3 equal cards (match widest / BBB feel) */
.hero__proof{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* equal widths */
  width: min(var(--hero-box-w), 100%);
  max-width: min(var(--hero-box-w), 100%);
  gap: clamp(10px, 1.2vw, 16px);
  margin: 14px auto 0;
  align-items: stretch; /* make heights match */
}

/* make each proof card fill its column + equal height */
.hero__proof .proof{
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
}

/* optional: keep the text from looking tiny on large screens */
@media (min-width: 981px){
  .proof__kicker{ font-size: clamp(12px, .9vw, 14px); }
  .proof__value { font-size: clamp(20px, 1.6vw, 28px); }
  .proof__meta  { font-size: clamp(12px, 1.0vw, 15px); }
}


/* HERO PROOF: slightly smaller uniform cards */
.hero__proof{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1100px, 92vw);                 /* smaller than before */
  max-width: min(1100px, 92vw);
  gap: clamp(10px, 1.0vw, 14px);
  margin: 14px auto 0;
  align-items: stretch;
}

.hero__proof .proof{
  width: 100%;
  height: 100%;
  padding: clamp(12px, 1.0vw, 16px);        /* slightly tighter */
  border-radius: clamp(14px, 1.2vw, 10px);  /* a touch smaller */
}

/* optional: reduce big text a hair so it fits the smaller cards */
@media (min-width: 981px){
  .proof__value{ font-size: clamp(18px, 1.35vw, 24px); }
}

.hero__content p.eyebrow{
  color: #cd9a26 !important;
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1.25;
  letter-spacing: 0.14em;
}

/* The localized H1 ("Exterior Remodeling in Central Maryland") is longer than
   the original one-line headline: wrap it in balanced centered lines instead
   of clipping at the viewport edge on desktop. */
@media (min-width: 981px){
  .hero h1,
  .hero__title{
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(20px, 5vw, 96px);
  }
}

/* Trust chips: gold rating stars + frosted glass so the hero photo shows
   through (was near-opaque slabs). */
.proof__stars { color: #cd9a26; letter-spacing: 1px; }
.proof {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 769-980px band: the proof bar's viewport-based max-width exceeded its
   parent column and burst out to the right. Cap it at the parent. */
@media (min-width: 769px) and (max-width: 980px) {
  .hero__proof { max-width: 100%; }
}

/* Start the homepage message sooner below the mobile navigation while keeping
   the image crop, hero height, and desktop composition unchanged. */
@media (max-width: 980px){
  .hero__content{
    transform: translateY(-48px);
  }
}

/* Preserve comfortable header clearance on the shortest, narrowest phones. */
@media (max-width: 380px){
  .hero__content{
    transform: translateY(-36px);
  }
}

.proof__mobileCopy { display: none; }

/* Mobile proof becomes one compact three-column trust bar. The desktop DOM
   stays unchanged; only the parent owns the frosted surface on phones. */
@media (max-width: 768px){
  .hero__proof{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(92vw, 520px);
    max-width: min(92vw, 520px);
    gap: 0;
    padding: 8px 0;
    justify-items: stretch;
    align-items: stretch;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(11, 15, 23, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .hero__proof .proof{
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 9px clamp(4px, 1.8vw, 9px);
    gap: 5px;
    align-content: center;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero__proof .proof + .proof{
    border-left: 1px solid rgba(47, 58, 80, 0.18);
  }

  .hero__proof .proof__kicker{ display: none; }

  .hero__proof .proof__value{
    margin: 0;
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero__proof .proof__meta{
    margin: 0;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.15;
    white-space: nowrap;
  }

  .proof__desktopCopy{ display: none; }
  .proof__mobileCopy{ display: inline; }

  .hero__proof .proof__stars{
    font-size: 0;
    letter-spacing: 0;
  }

  .hero__proof .proof__stars::after{
    content: "★";
    font-size: 20px;
  }
}

/* SMS consent checkbox (10DLC carrier compliance) — sits in the hero quote
   card above the captcha; fine print, never a bold label. The extra selector
   depth outranks .kpiQuoteBand .hero__card :is(label, …), which uppercases
   and letterspaces every label in the card. */
.kpiQuoteBand .hero__card label.smsConsent,
.smsConsent{
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  /* literal color: decks.css redefines --faint as a 6% border tint */
  color: rgba(11, 15, 23, 0.66);
}
.smsConsent input{
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--navy, #2c3a50);
}
.smsConsent a{
  color: inherit;
  text-decoration: underline;
}

/* Disclosure paragraph flows as prose; flex is for the radio label rows. */
p.smsConsent {
  display: block;
  margin: 4px 0 6px;
  font-size: 6px;
}
