/* Dark home hero (chocolate cake video). Loaded on the home page only, after styles.css.
   Copied into site/ by tools/dark-hero.py; body.hero-dark switches it on. */

/* ---------- Header while it sits over the video ---------- */
/* Two logos in the brand mark: the cream one shows over the video, the navy one once the header turns solid */
.brand-mark__light { display: none; }
body.hero-dark:not(.menu-open) .site-header:not(.is-solid) .brand-mark img { display: none; }
body.hero-dark:not(.menu-open) .site-header:not(.is-solid) .brand-mark .brand-mark__light {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(10, 10, 12, 0.6)) drop-shadow(0 0 8px rgba(10, 10, 12, 0.45));
}
/* A dark wash at the top instead of the cream one, so the light header reads over cocoa and cake */
body.hero-dark .site-header:not(.is-solid)::before {
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.55) 0%, rgba(12, 12, 14, 0) 100%);
}
body.hero-dark:not(.menu-open) .site-header:not(.is-solid) .menu-toggle { color: var(--cream); }

@media (min-width: 901px) {
  /* Top-level links only: the recipes dropdown keeps its own light panel and navy text */
  body.hero-dark .site-header:not(.is-solid) .nav > a:not(.btn),
  body.hero-dark .site-header:not(.is-solid) .nav-item--mega > a {
    color: var(--cream);
    text-shadow: 0 1px 2px rgba(10, 10, 12, 0.7), 0 0 10px rgba(10, 10, 12, 0.5);
  }
  body.hero-dark .site-header:not(.is-solid) .nav-item--mega > .nav-sub-toggle {
    color: var(--cream);
    filter: drop-shadow(0 1px 2px rgba(10, 10, 12, 0.7));
  }
  /* Navy disappears on the dark slate, so the header button turns gold until the header goes solid */
  body.hero-dark .site-header:not(.is-solid) .nav a.btn--navy { background: var(--gold); color: var(--navy-deep); }
  body.hero-dark .site-header:not(.is-solid) .nav a.btn--navy:hover { background: #e8b72a; }
}

/* ---------- Hero ---------- */
body.hero-dark .hero { background: #1b1b1d; }
/* A soft dark pool behind the logo and lines, so they hold up over the cake at the end of the clip */
body.hero-dark .hero__scrim {
  background: radial-gradient(ellipse 42% 44% at 50% 50%, rgba(12, 12, 14, 0.62) 0%, rgba(12, 12, 14, 0.4) 55%, rgba(12, 12, 14, 0) 100%);
}
body.hero-dark .hero__logo img { filter: drop-shadow(0 2px 10px rgba(10, 10, 12, 0.55)); }
body.hero-dark .hero__line h1,
body.hero-dark .hero__line p.big {
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(10, 10, 12, 0.6);
}
body.hero-dark .hero__line .hero__ranges { color: var(--gold); text-shadow: 0 1px 8px rgba(10, 10, 12, 0.7); }
body.hero-dark .hero__ranges span { color: var(--cream); }
body.hero-dark .hero__line .btn--navy { background: var(--gold); color: var(--navy-deep); }
body.hero-dark .hero__line .btn--navy:hover { background: #e8b72a; }
body.hero-dark .hero__cue { color: var(--cream); }
body.hero-dark .hero__cue i { background: linear-gradient(var(--cream), transparent); }

@media (max-width: 767px) {
  body.hero-dark .hero__scrim {
    background: radial-gradient(ellipse 85% 42% at 50% 52%, rgba(12, 12, 14, 0.66) 0%, rgba(12, 12, 14, 0.42) 55%, rgba(12, 12, 14, 0) 100%);
  }
}

/* ---------- hero scroll length ----------
   About 3.2 screens of scrolling (was 4.6), so the first line arrives within a few wheel ticks */
@media (prefers-reduced-motion: no-preference) {
  body.hero-dark .hero { height: 420vh; }
}
