/*
 * pvx-hero.css — the full-bleed video banner.
 *
 * The banner carries no overlay copy. The video plays clean behind a transparent
 * header, and the only interface on it is the sound toggle and a single call to
 * action, which is revealed at the end of each loop as the PRODUCTIONVIBES lock-up
 * resolves in the footage.
 *
 * PALETTE: beige #EEDFD4 + blue #0072B9 only. The lime accent that used to live here
 * was removed at the client's request — "keep the theme consistent instead of
 * introducing the new color". Nothing in this file may reintroduce a third hue.
 *
 * Tokens come from pvx-brand.css; blues are written as literals to match the rest of
 * the codebase, where --pvx-blue is defined but never consumed.
 */

/* ============================================================ the stage ===== */

.pvx-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;               /* fallback where svh is unsupported */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--pvx-ink, #0A0E1A);
}

.pvx-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* The poster is mirrored here as a background so a refused autoplay, a slow first
     byte, or reduced-motion all degrade to a still frame rather than a black box. */
  background: var(--pvx-ink, #0A0E1A) center / cover no-repeat;
}

/*
 * Two jobs, not one:
 *   - the TOP band darkens enough for the reversed logo to hold against bright
 *     stage footage (the source is lit LED walls; some shots are near-white up there)
 *   - the BOTTOM band seats the call to action
 * The middle is left alone — the footage is the point.
 */
.pvx-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 8, 14, .58) 0%, rgba(6, 8, 14, .22) 14%,
                    rgba(6, 8, 14, 0) 32%),
    linear-gradient(to top, rgba(6, 8, 14, .62) 0%, rgba(6, 8, 14, .18) 22%,
                    rgba(6, 8, 14, 0) 42%);
}

.pvx-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px clamp(56px, 8vh, 116px);
  display: flex;
  justify-content: center;
  color: #fff;
}

/* The page's only real <h1>. Removing the visible headline removed it, and
   pv-fixes.js would otherwise synthesise one from the hidden legacy hero — an <h1>
   no visitor can see. Kept in the accessibility tree, out of the picture. */
.pvx-hero__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ======================================================== call to action ===== */
/*
 * Matches the site's established button, .pv-cta-repair in pv-fixes.css:184-199 —
 * blue fill, white label, full pill, 2px lift on hover. White on #0072B9 is 5.18:1.
 */
.pvx-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: #ffffff;
  background: #0072B9;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(6, 8, 14, .34);

  /* Hidden until the lock-up resolves; pvx-hero.js adds .pvx-hero--cta-on. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  /* Leaving. Matched to the lock-up's own 0.30s fade-out in the video so the button
     and the wordmark go together rather than one trailing the other. */
  transition: opacity .30s cubic-bezier(.16, .84, .28, 1),
              transform .30s cubic-bezier(.16, .84, .28, 1),
              visibility .30s, background-color .25s;
}

.pvx-hero--cta-on .pvx-hero__cta {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  /* Arriving. Matched to the lock-up's 0.34s fade-in. */
  transition: opacity .34s cubic-bezier(.16, .84, .28, 1),
              transform .34s cubic-bezier(.16, .84, .28, 1),
              visibility .34s, background-color .25s;
}

.pvx-hero__cta:hover,
.pvx-hero__cta:focus-visible {
  background: #00639F;
  color: #ffffff;
}

.pvx-hero--cta-on .pvx-hero__cta:hover,
.pvx-hero--cta-on .pvx-hero__cta:focus-visible {
  transform: translateY(-2px);
}

.pvx-hero__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ========================================================= sound toggle ===== */

.pvx-hero__sound {
  position: absolute;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(16px, 3vw, 38px);
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(10, 14, 26, .45);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .22s, border-color .22s, transform .22s;
}

.pvx-hero__sound:hover,
.pvx-hero__sound:focus-visible {
  background: rgba(10, 14, 26, .72);
  border-color: var(--pvx-ground, #EEDFD4);
  transform: scale(1.06);
}

.pvx-hero__sound svg { width: 21px; height: 21px; display: block; }
.pvx-hero__sound .pvx-ico-on  { display: none; }
.pvx-hero__sound[aria-pressed="true"] .pvx-ico-on  { display: block; }
.pvx-hero__sound[aria-pressed="true"] .pvx-ico-off { display: none; }

.pvx-hero__sound::after {
  content: attr(data-hint);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font: 600 11px/1 "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  background: rgba(10, 14, 26, .55);
  padding: 8px 11px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.pvx-hero__sound[data-hint]:not([aria-pressed="true"]):hover::after,
.pvx-hero--hint .pvx-hero__sound:not([aria-pressed="true"])::after { opacity: 1; }

/* ====================================================== transparent nav ===== */
/*
 * Festiva's px-header--transparent is a POSITIONING class only (header.scss:76-83
 * sets position:absolute and nothing else) — the video already sits behind the nav.
 * The beige comes from the header Elementor template's own section background, so
 * that is what has to be cleared.
 *
 * Scoped to body.home deliberately. The same header template renders on every page,
 * and the other eight have no video behind it — clearing the background globally
 * would leave dark nav text on a white page.
 *
 * The scrolled state needs no work: Festiva prints a SEPARATE sticky template that
 * theme.js:538-556 reveals past 100px, and it keeps its own opaque background.
 */
body.home #pxl-header-elementor .pxl-header-elementor-main.px-header--transparent,
body.home #pxl-header-elementor .px-header--transparent .pxl-header-content,
body.home #pxl-header-elementor .px-header--transparent .elementor-section,
body.home #pxl-header-elementor .px-header--transparent .elementor-top-section,
body.home #pxl-header-elementor .px-header--transparent .elementor-container,
body.home #pxl-header-elementor .px-header--transparent .e-con,
body.home #pxl-header-elementor .px-header--transparent .e-con-inner {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/*
 * The logo over the video.
 *
 * A CSS filter does NOT work here, and it is worth recording why: the logo PNG is not
 * transparent. Sampling it gives rgba(235,223,212,255) at the corner — a solid beige
 * plate baked into the image. `brightness(0) invert(1)` therefore turns the whole
 * rectangle white, producing a large white box instead of a reversed mark. (Same trap
 * as the Trusted By logos with baked-in white backgrounds.)
 *
 * So a genuinely reversed asset is used instead: the beige keyed out to alpha, the ink
 * turned white, kept on the ORIGINAL 1600x1204 canvas including its padding so that
 * background-size:contain reproduces the existing 179x135 box and the header layout
 * does not shift. The <img> keeps its box for layout and is simply made invisible.
 *
 * The theme has no light-header skin and no alternate/sticky logo field (pxl_logo.php
 * exposes only `logo` and `logo_link`), so this is the available seam. The scrolled
 * sticky header is a separate template and is untouched — the normal blue logo returns.
 */
body.home #pxl-header-elementor .px-header--transparent .pxl-logo a,
body.home #pxl-header-elementor .px-header--transparent .pxl-header-branding a {
  background: url("https://productionvibes.com/wp-content/uploads/2026/09/productionvibes-logo-white.png")
              center / contain no-repeat;
}

body.home #pxl-header-elementor .px-header--transparent .pxl-logo img,
body.home #pxl-header-elementor .px-header--transparent .pxl-header-branding img {
  opacity: 0;          /* keeps the box, hides the beige plate */
  filter: none;
}

/* Below 1200px Festiva hides both Elementor header wrappers and shows its own mobile
   bar, which carries a theme background. Same treatment — but never once it has gone
   fixed on scroll, where it needs to stay opaque. */
@media (max-width: 1200px) {
  body.home.pvx-at-top #pxl-header-elementor,
  body.home.pvx-at-top #pxl-header-elementor #pxl-header-mobile,
  body.home.pvx-at-top #pxl-header-elementor #pxl-header-mobile .pxl-header-main {
    background: transparent !important;
    background-image: none !important;
  }
  body.home.pvx-at-top #pxl-header-elementor #pxl-header-mobile .pxl-header-branding a {
    background: url("https://productionvibes.com/wp-content/uploads/2026/09/productionvibes-logo-white.png")
                center / contain no-repeat;
  }
  body.home.pvx-at-top #pxl-header-elementor #pxl-header-mobile .pxl-header-branding img {
    opacity: 0;
  }
}

/* ========================================================= small screens ===== */

@media (max-width: 767px) {
  .pvx-hero {
    min-height: 92svh;
    min-height: 92vh;
  }
  .pvx-hero__inner { padding-bottom: clamp(46px, 7vh, 84px); }
  .pvx-hero__cta   { padding: 15px 30px; font-size: 15px; }
  .pvx-hero__sound { width: 46px; height: 46px; }
  .pvx-hero__sound::after { display: none; }
}

/* ============================================================== motion ===== */
/*
 * Motion-sensitive visitors get the poster instead of a loop. pvx-hero.js pauses
 * playback to match, and — importantly — forces the CTA visible, since its reveal is
 * driven by playback that will never happen.
 */
@media (prefers-reduced-motion: reduce) {
  .pvx-hero__video { display: none; }
  .pvx-hero { background-size: cover; background-position: center; }
  .pvx-hero__cta { transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   STAGING MIRROR — transparent nav on /pv-staging-home/
   The rules above are scoped to body.home, which only ever matches
   the front page. The staging copy is an ordinary page and carries
   body.page-id-17622 instead, so it was previewing the redesign
   with the OLD opaque header — making it look like the transparent
   nav had been lost when it was live and working the whole time.
   Delete this block at cutover; body.home covers it then.
   ───────────────────────────────────────────────────────────── */
body.page-id-17622 #pxl-header-elementor .pxl-header-elementor-main.px-header--transparent,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .pxl-header-content,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .elementor-section,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .elementor-top-section,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .elementor-container,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .e-con,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .e-con-inner {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.page-id-17622 #pxl-header-elementor .px-header--transparent .pxl-logo a,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .pxl-header-branding a {
  background: url("https://productionvibes.com/wp-content/uploads/2026/09/productionvibes-logo-white.png")
              center / contain no-repeat;
}

body.page-id-17622 #pxl-header-elementor .px-header--transparent .pxl-logo img,
body.page-id-17622 #pxl-header-elementor .px-header--transparent .pxl-header-branding img {
  opacity: 0;
  filter: none;
}
