/* Section: landing/header (parent). Root class .sec-landing-header, children use .sec-landing-header__element. Colours, fonts, radii and spacing come from global.css.
   The top strip (__top) is styled here; its content and the other parts (shared/header/left, shared/header/right, landing/menu, shared/menu/panel, ...) have their own files.
   Shared parts read one variable set here: --r4p-menu-pad (side padding). --sh-strip (strip height) is set by header.js.
   The scrolled state is the attribute data-scrolled="true" on .sec-landing-header__shell; the parts read it with an attribute selector. */

/* The header is an empty spacer in the page flow; its height is measured by header.js (the fallbacks below are used until then).
   The visible menu is the fixed shell inside it. --r4p-header-h is also read by the landing hero, which slides up under it. */
:root { --r4p-header-h: 126px; }
@media (min-width: 560px) { :root { --r4p-header-h: 104px; } }
@media (min-width: 1180px) { :root { --r4p-header-h: 117px; } }

.sec-landing-header { --r4p-menu-pad: var(--r4p-space-20); position: relative; z-index: var(--r4p-z-header); height: var(--r4p-header-h); font-family: var(--r4p-font); }
.sec-landing-header--static { height: auto; }
.sec-landing-header__shell { position: fixed; top: 0; left: 0; right: 0; transition: transform 0.3s var(--r4p-ease); }
.sec-landing-header--static .sec-landing-header__shell { position: relative; }
.sec-landing-header__shell[data-scrolled="true"] { transform: translateY(calc(var(--sh-strip, 0px) * -1)); }

@media (min-width: 560px) {
  .sec-landing-header { --r4p-menu-pad: var(--r4p-space-24); }
}
@media (min-width: 960px) {
  .sec-landing-header { --r4p-menu-pad: var(--r4p-space-32); }
}
@media (prefers-reduced-motion: reduce) {
  .sec-landing-header, .sec-landing-header__shell { transition: none !important; animation: none !important; }
}

/* Top strip above the main bar. It slides away on scroll and is then hidden from view and from the tab order. */
.sec-landing-header__top { position: relative; z-index: 2; padding-left: max(var(--r4p-menu-pad), env(safe-area-inset-left)); padding-right: max(var(--r4p-menu-pad), env(safe-area-inset-right)); background: var(--r4p-strip-bg); border-bottom: 1px solid var(--r4p-strip-line); visibility: visible; transition: visibility 0s linear 0s; }
.sec-landing-header__shell[data-scrolled="true"] .sec-landing-header__top { visibility: hidden; transition: visibility 0s linear 0.3s; }
.sec-landing-header__top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--r4p-space-24); max-width: var(--r4p-container); margin: 0 auto; padding: var(--r4p-space-10) var(--r4p-space-2); }
@media (min-width: 1180px) {
  .sec-landing-header__top-in { padding: var(--r4p-space-16) var(--r4p-space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .sec-landing-header__top { transition: none !important; }
}
