/* 47-hero-video.css - full-width video homepage hero
   Loaded alongside the original split hero (05-hero.css); only one of the two
   layouts renders, chosen in the Customizer. White type on a dark gradient is
   deliberate here: dark type cannot be kept legible over moving footage. */

.vhero{
  position:relative;
  isolation:isolate;
  min-height:min(88vh,760px);
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--color-navy);
}

/* ---- Media layer ---- */
.vhero__media{position:absolute;inset:0;z-index:0;}
.vhero__poster,
.vhero__video{position:absolute;inset:0;width:100%;height:100%;}
/* No background-image here on purpose: it is applied by hero-video.php inside
   a mobile-only media query, so desktop never fetches the still. */
.vhero__poster{background-size:cover;background-position:center;}
.vhero__video{object-fit:cover;border:0;}

/* Gradient rather than a flat wash: heavier on the left where the type sits,
   lighter on the right so the footage still reads behind the promo card. */
.vhero__overlay{
  position:absolute;inset:0;
  background:
    linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.66) 34%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.34) 100%),
    linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 45%);
}

/* ---- Layout ---- */
.vhero__inner{
  position:relative;z-index:1;
  width:100%;
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-10);
  padding-block:var(--space-12);
}
.vhero--with-promo .vhero__inner{grid-template-columns:1fr 1.05fr;align-items:center;}

/* ---- Type ----
   Sizes, weights and spacing are matched exactly to the original split hero
   (05-hero.css) so the two layouts are interchangeable and the only visible
   difference is the background and the type colour. */
.vhero__content{max-width:640px;color:#fff;}

.vhero__eyebrow{
  display:block;
  font-family:var(--font-body);
  font-size:var(--text-xs);
  font-weight:var(--weight-semibold);
  letter-spacing:var(--tracking-widest);
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
  margin-bottom:var(--space-4);
}

.vhero__tagline{
  display:block;
  font-family:var(--font-heading);
  font-size:var(--text-md);
  font-weight:var(--weight-semibold);
  letter-spacing:.01em;
  color:var(--color-action);
  margin-bottom:var(--space-3);
}

.vhero__headline{
  font-family:var(--font-heading);
  font-size:var(--text-hero);
  font-weight:var(--weight-bold);
  line-height:var(--leading-tight);
  letter-spacing:var(--tracking-tight);
  color:#fff;
  margin-bottom:var(--space-5);
  max-width:16ch;
}
.vhero__headline em{font-style:normal;color:var(--color-action);}

.vhero__subheadline{
  font-size:var(--text-base);
  line-height:var(--leading-normal);
  color:rgba(255,255,255,.92);
  max-width:44ch;
  margin-bottom:var(--space-8);
}

/* ---- Credential chips ---- */
.vhero__credentials{
  display:flex;align-items:center;flex-wrap:wrap;
  gap:var(--space-2);
  margin-bottom:var(--space-8);
  font-size:var(--text-sm);
  color:rgba(255,255,255,.75);
}
.vhero__cred{font-weight:var(--weight-medium);color:#fff;}
.vhero__cred-sep{color:var(--color-action);font-size:var(--text-xs);}

/* Optional: credentials in brand green rather than white. Add the class
   vhero--cred-green to the <section> to switch, or move this rule out of the
   modifier to make green the default. */
.vhero--cred-green .vhero__cred{color:var(--color-action);}

/* ---- Actions ---- */
.vhero__actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3);}
.vhero__cta-primary,
.vhero__cta-secondary{
  display:inline-flex;align-items:center;gap:var(--space-2);
  font-size:var(--text-sm);
  font-weight:var(--weight-semibold);
  border-radius:var(--radius-full);
  cursor:pointer;text-decoration:none;
  transition:background-color var(--duration-base) var(--ease-out),
             color var(--duration-base) var(--ease-out),
             transform var(--duration-base) var(--ease-out);
}
.vhero__cta-primary{
  padding:var(--space-3) var(--space-6);
  background:var(--color-cta);color:#fff;border:0;
}
.vhero__cta-primary:hover{background:var(--color-cta-hover);transform:translateY(-1px);}
.vhero__cta-secondary{
  padding:var(--space-3) var(--space-5);
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.vhero__cta-secondary:hover{background:rgba(255,255,255,.18);transform:translateY(-1px);}

/* ---- Promo card ----
   The offer sits in a dark header block, the form on white beneath it, so the
   two read as one designed object rather than a heading floating above an
   embed. The form itself is a HubSpot iframe and cannot be styled from here,
   so the shell does the work: generous padding, a light frame around the
   embed, and muted fine print. */
.vhero__promo{
  background:var(--color-bg-white);
  border-radius:var(--radius-lg);
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  overflow:hidden;
  padding:0;
  max-width:600px;
  width:100%;
  margin-inline-start:auto;
}

/* Offer header */
.vhero__promo-head{
  background:var(--color-navy);
  padding:var(--space-6) var(--space-6) var(--space-5);
  text-align:center;
}
.vhero__promo-eyebrow{
  display:inline-block;
  background:var(--color-cta);
  color:#fff;
  font-size:var(--text-xs);
  font-weight:var(--weight-bold);
  letter-spacing:var(--tracking-wide);
  text-transform:uppercase;
  padding:var(--space-1) var(--space-3);
  border-radius:var(--radius-full);
  margin-bottom:var(--space-3);
}
.vhero__promo-heading{
  font-family:var(--font-heading);
  font-size:var(--text-xl);
  font-weight:var(--weight-extrabold);
  line-height:1.15;
  letter-spacing:var(--tracking-tight);
  color:#fff;
  margin:0 0 var(--space-2);
  text-transform:uppercase;
  text-wrap:balance;
}
.vhero__promo-sub{
  font-size:var(--text-sm);
  font-weight:var(--weight-semibold);
  letter-spacing:var(--tracking-wide);
  color:var(--color-action);
  margin:0;
}

/* Form body */
.vhero__promo-body{padding:var(--space-6);}

.vhero__promo-form{
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  padding:var(--space-4);
  background:var(--color-bg-alt);
}
/* HubSpot injects an iframe that sizes itself; make sure it can fill the
   frame and never introduces a horizontal scrollbar. */
.vhero__promo-form iframe{width:100%!important;max-width:100%!important;border:0;display:block;}

.vhero__promo-disclaimer{
  margin:var(--space-4) 0 0;
  font-size:.6875rem;
  line-height:1.5;
  color:var(--color-text-muted);
  text-align:left;
}
.vhero__promo-disclaimer a{color:var(--color-text-muted);text-decoration:underline;}

/* ---- Responsive ---- */
@media (max-width:1100px){
  .vhero--with-promo .vhero__inner{grid-template-columns:1fr;}
  .vhero__promo{margin-inline-start:0;max-width:640px;}
}
@media (max-width:860px){
  /* ---- Mobile: white stacked layout ----
     The dark full-bleed composition has nowhere to go on a narrow screen, so
     mobile reflows into the same shape as the original split hero: a static
     image band on top, then the promotional offer card, then the copy on
     white. The video file is never fetched here (the source stays in
     data-src until 861px), so the band shows the poster still.
     Order inside .vhero__inner puts the promo card above the copy, which
     places it directly between the image and the "Durable. Non-toxic."
     eyebrow line. */
  .vhero{
    display:block;
    min-height:0;
    background:var(--color-bg-base);
  }

  /* Image band: static, sits at the top of the stack rather than behind. */
  .vhero__media{
    position:relative;
    height:280px;
  }
  .vhero__poster{position:absolute;inset:0;}
  .vhero__video{display:none;}

  /* Fade the band into the white below it instead of darkening it. */
  .vhero__overlay{
    background:linear-gradient(to bottom,
      transparent 0%,
      transparent 45%,
      rgba(255,255,255,.35) 72%,
      rgba(255,255,255,.85) 92%,
      var(--color-bg-base) 100%);
  }

  .vhero__inner,
  .vhero--with-promo .vhero__inner{
    display:flex;
    flex-direction:column;
    gap:var(--space-8);
    padding-block:var(--space-8) var(--space-10);
  }
  .vhero__promo{order:1;margin-inline:auto;max-width:640px;}
  .vhero__content{order:2;max-width:none;}

  /* Type flips back to dark now the backdrop is white. */
  .vhero__content{color:var(--color-text-primary);}
  .vhero__eyebrow{color:var(--color-text-muted);}
  .vhero__headline{color:var(--color-text-primary);}
  .vhero__subheadline{color:var(--color-text-body);}
  .vhero__cred{color:var(--color-text-primary);}
  .vhero__credentials{color:var(--color-text-muted);}
  .vhero__cta-secondary{
    color:var(--color-text-primary);
    background:var(--color-bg-white);
    border-color:var(--color-border-strong);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .vhero__cta-secondary:hover{background:var(--color-bg-alt);}

  .vhero__promo-head{padding:var(--space-5);}
  .vhero__promo-body{padding:var(--space-5);}
}
@media (max-width:560px){
  .vhero__subheadline{font-size:var(--text-base);}
  .vhero__actions{flex-direction:column;align-items:stretch;}
  .vhero__cta-primary,.vhero__cta-secondary{justify-content:center;}
}

/* Motion preference: the script already skips loading the video, this keeps
   the poster steady for anything that slips through. */
@media (prefers-reduced-motion:reduce){
  .vhero__video{display:none;}
}

/* ── Collapsed hero form ──
   Matches the location pages. The HubSpot embed is cross-origin so its
   internals cannot be styled, but the wrapper is ours: cap the height, fade
   the cut so it reads as "more below" rather than clipped, and release the
   cap on the visitor's first interaction. The height is a pixel value
   because nothing here can see inside the iframe to count fields. */
.vhero__promo-form--collapsed{
  position:relative;
  max-height:300px;
  overflow:hidden;
  transition:max-height .45s var(--ease-out);
}
.vhero__promo-form--collapsed.is-open{
  max-height:2200px;
  overflow:visible;
}
.vhero__promo-form--collapsed::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:90px;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(242,244,245,0) 0%, var(--color-bg-alt) 85%);
  transition:opacity .3s var(--ease-out);
}
.vhero__promo-form--collapsed.is-open::after{opacity:0;}

.vhero__promo-expand{
  display:block;
  width:100%;
  margin-top:var(--space-3);
  padding:var(--space-3);
  background:none;
  border:1px solid var(--color-border-strong);
  border-radius:var(--radius-full);
  font-family:var(--font-heading);
  font-size:var(--text-sm);
  font-weight:var(--weight-semibold);
  color:var(--color-text-primary);
  cursor:pointer;
  transition:background-color var(--duration-base) var(--ease-out);
}
.vhero__promo-expand:hover{background:var(--color-bg-alt);}
.vhero__promo-expand.is-hidden{display:none;}

@media (prefers-reduced-motion:reduce){
  .vhero__promo-form--collapsed{transition:none;}
}