/* Header on every page: transparent over the top of the page, pinned while scrolling,
 * and white once the page has scrolled (culcha-header.js adds body.culcha-scrolled). */
header[id^="comp-"] {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 54;                       /* below the menu tray (56), above page content */
  background-color: transparent;
  transition: background-color .35s ease, box-shadow .35s ease;
}
/* Soft shade at the very top so the white menu icon reads on light photos too */
header[id^="comp-"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 130%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity .35s ease;
}
/* The gold block and white bar behind the menu button and logo become see-through */
header[id^="comp-"] [id$="_r_comp-l1gy3w0g3"] > .inner-box,
header[id^="comp-"] [id$="_r_comp-l1gy3w0i1"] > .inner-box {
  background-color: transparent !important;
  transition: background-color .35s ease;
}
header[id^="comp-"] [id$="_r_comp-l5k57ti5"] {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
  transition: filter .35s ease;
}
header[id^="comp-"] [id$="_r_comp-l5k57ti5"] svg * { transition: fill .35s ease; }

/* Scrolled: white header with a hairline shadow; menu icon turns brand gold */
body.culcha-scrolled header[id^="comp-"] {
  background-color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}
body.culcha-scrolled header[id^="comp-"]::before { opacity: 0; }
body.culcha-scrolled header[id^="comp-"] [id$="_r_comp-l5k57ti5"] {
  --fill: #E8BE4D !important;  /* beats the page's own #id rule that sets it white */
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  header[id^="comp-"], header[id^="comp-"]::before,
  header[id^="comp-"] [id$="_r_comp-l5k57ti5"], header[id^="comp-"] [id$="_r_comp-l5k57ti5"] svg * { transition: none; }
}
