/* REORIN transparent header • standalone, prefixed CSS, 2026-11-23 */
:root {
  --reorin-header-height: 92px;
  --reorin-nav-text: #f8eddb;
  --reorin-header-scrolled: rgba(5, 32, 65, .90);
}
.reorin-header, .reorin-header * { box-sizing: border-box; }
/* Header overlays the current site's hero without a white background. */
.reorin-header {
  position: absolute; inset: 0 0 auto; z-index: 1000;
  height: var(--reorin-header-height); background: transparent;
  color: var(--reorin-nav-text); font-family: var(--sans);
  transition: background .25s ease, box-shadow .25s ease;
}
/* JS adds this state when scrolling; the text stays legible on any page. */
.reorin-header.is-scrolled {
  position: fixed;
  background: var(--reorin-header-scrolled);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 7px 22px rgba(0,0,0,.13);
}
.reorin-header__top-ornament {
  position: absolute; z-index: 0; top: 6px; left: 50%; transform: translateX(-50%);
  width: min(61vw, 800px); height: 32px;
  background: url('header/ornament-top.svg') center top / 100% 100% no-repeat;
  pointer-events: none;
}
.reorin-header__inner {
  position: relative; z-index: 1; height: 100%; max-width: 1420px; margin-inline: auto;
  padding: 9px 20px 0;
  display: grid; grid-template-columns: minmax(185px, 260px) minmax(0, 1fr) 194px;
  gap: clamp(12px, 2vw, 32px); align-items: center;
}
.reorin-header__brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.reorin-header__brand img { width: auto; height: 52px; max-width: 230px; object-fit: contain; }
.reorin-header__navigation { min-width: 0; display: flex; gap: 0; align-items: center; justify-content: center; }
.reorin-header__links {
  display: flex; justify-content: center; align-items: center; list-style: none;
  gap: clamp(1px, .6vw, 12px); padding: 0; margin: 0;
}
.reorin-header__links li { padding: 0; margin: 0; }
.reorin-header__link {
  position: relative; isolation: isolate; width: auto; min-width: 104px; height: 60px; padding: 0 16px;
  display: inline-flex; justify-content: center; align-items: center;
  color: var(--reorin-nav-text); text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  text-shadow: 0 2px 3px rgba(4,26,49,.66), 0 0 5px rgba(51,32,11,.26);
  transition: color .18s ease, filter .18s ease;
}
.reorin-header__link:hover { color: #fff5d2; filter: drop-shadow(0 0 4px rgba(255,204,107,.4)); }
.reorin-header__link:before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; }
.reorin-header__link.is-active { min-width: 142px; }
.reorin-header__link.is-active:before,
.reorin-header__link:not(.is-active):hover:before,
.reorin-header__link:focus-visible:before {
  background: url('header/nav-active.svg') center / 100% 100% no-repeat;
}
.reorin-header__side-ornament { flex: 0 1 75px; width: 75px; min-width: 28px; height: 24px; background: url('header/ornament-side.svg') center / 100% auto no-repeat; opacity: .9; pointer-events: none; }
.reorin-header__login {
  justify-self: end; position: relative; isolation: isolate; width: 174px; height: 60px; display: inline-flex;
  align-items: center; justify-content: center; gap: 10px; color: #fff7e8; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  text-shadow: 0 1px 3px rgba(0,10,32,.9);
}
.reorin-header__login:before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('header/nav-login.svg') center / 100% 100% no-repeat; }
.reorin-header__login img { width: 21px; height: 21px; }
.reorin-header__login:hover { filter: brightness(1.15) drop-shadow(0 0 6px rgba(255,206,111,.45)); }
.reorin-header__link:focus-visible, .reorin-header__login:focus-visible, .reorin-header__toggle:focus-visible { outline: 2px solid #ffe4a1; outline-offset: 4px; }
.reorin-header__toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 42px; border: 1px solid #dfba73; border-radius: 5px; background: rgba(3,39,83,.85); color: #fff; cursor: pointer; }
.reorin-header__toggle-bars, .reorin-header__toggle-bars::before, .reorin-header__toggle-bars::after { content: ''; display:block; width: 22px; height: 2px; background:#ffe5ab; position: relative; border-radius: 2px; }
.reorin-header__toggle-bars::before { position: absolute; top:-7px; }
.reorin-header__toggle-bars::after { position: absolute; top:7px; }
@media (max-width: 1150px) {
  .reorin-header__inner { grid-template-columns: minmax(150px,200px) 1fr 145px; gap: 8px; }
  .reorin-header__brand img { height: 42px; max-width: 190px; }
  .reorin-header__links { gap: 0; }
  .reorin-header__link { min-width: 90px; padding-inline: 10px; font-size: 15px; }
  .reorin-header__link.is-active { min-width: 116px; }
  .reorin-header__side-ornament { display: none; }
  .reorin-header__login { width: 142px; font-size: 15px; }
}
@media (max-width: 1000px) {
  :root { --reorin-header-height: 72px; }
  .reorin-header__inner { grid-template-columns: 1fr auto auto; gap: 8px; padding: 4px 14px; }
  .reorin-header__top-ornament { width: min(76vw,580px); height: 25px; opacity: .65; }
  .reorin-header__toggle { display: inline-flex; order: 3; }
  .reorin-header__brand img { height: 48px; }
  .reorin-header__login { width: 130px; height: 52px; gap: 6px; }
  .reorin-header__login img { width: 18px; height: 18px; }
  .reorin-header__navigation { display: none; position: absolute; top: var(--reorin-header-height); left: 0; right: 0; background: rgba(4,33,70,.98); padding: 15px 12px 20px; box-shadow: 0 14px 22px rgba(0,0,0,.22); }
  .reorin-header.is-open .reorin-header__navigation { display: flex; }
  .reorin-header__links { display: flex; width: min(100%, 380px); flex-direction: column; align-items: stretch; }
  .reorin-header__links li { width: 100%; }
  .reorin-header__link { width: 100%; height: 52px; font-size: 16px; }
  .reorin-header__link.is-active { width: 100%; }
}
@media (max-width: 480px) {
  .reorin-header__inner { padding-inline: 10px; }
  .reorin-header__brand img { height: 42px; max-width: 142px; }
  .reorin-header__login { width: 108px; font-size: 14px; }
  .reorin-header__login img { width: 17px; }
}
@media (prefers-reduced-motion: reduce) { .reorin-header, .reorin-header * { transition: none !important; animation: none !important; } }

/* Integrate with the existing logo and keep the hero untouched. */
.reorin-header__brand .brand-art{display:block;width:145px;filter:drop-shadow(0 1px 2px #ffffff90)}
.reorin-header__brand .brand-art .hero-logo{width:98.44%;height:auto;max-width:none}
.reorin-header__inner{grid-template-columns:165px minmax(0,1fr) 174px;gap:14px}
.reorin-header__link{font-size:14px;width:128px;min-width:128px;padding-inline:10px}
.reorin-header__link.is-active{min-width:128px}
.reorin-header__login{font-size:15px;transform:translateY(-4px)}
.reorin-header__link{text-shadow:0 2px 3px #041a31,0 0 8px #041a31,0 1px 2px #041a31}
.reorin-header::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#06295155,#06295118 75%,transparent)}
.reorin-header.is-scrolled::before{display:none}
@media(max-width:1150px) and (min-width:1001px){.reorin-header__inner{grid-template-columns:145px minmax(0,1fr) 132px;padding-inline:16px;gap:8px}.reorin-header__link{width:104px;min-width:104px;padding-inline:9px;font-size:13px}.reorin-header__link.is-active{min-width:104px}.reorin-header__login{width:132px}}
@media(max-width:1000px){.reorin-header__inner{grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.reorin-header__brand .brand-art{width:130px}.reorin-header__navigation{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}.reorin-header__link,.reorin-header__link.is-active{width:100%;min-width:0}.reorin-header__login{transform:translateY(-2px)}.reorin-header.is-open{background:rgba(5,32,65,.92);backdrop-filter:blur(12px)}}
@media(max-width:480px){.reorin-header__brand .brand-art{width:112px}.reorin-header__login{width:108px}}

/* On mobile, sign-in belongs to the drawer and the open header is one surface. */
@media(max-width:1000px){
 .reorin-header__inner{grid-template-columns:minmax(0,1fr) auto}
 .reorin-header__navigation{flex-direction:column;background:#0b2b50}
 .reorin-header__navigation>.reorin-header__login{flex-shrink:0;width:156px;height:58px;margin:16px auto 0;transform:none}
 .reorin-header.is-open,.reorin-header.is-open.is-scrolled{background:#0b2b50;transition:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
 .reorin-header.is-open::before{display:none}
 .reorin-header__brand{position:relative;isolation:isolate}

}

/* Silver wordmark on the dark header; the original blue crest keeps its colours. */
.reorin-header:is(.is-scrolled,.is-open) .brand-art::before { content:""; position:absolute; inset:0; z-index:1; background:#f4ead4; -webkit-mask:url('/prototype/assets/reorin-banner-logo.webp') left center/98.44% 100% no-repeat; mask:url('/prototype/assets/reorin-banner-logo.webp') left center/98.44% 100% no-repeat; clip-path:inset(0 0 0 34%); pointer-events:none; }
.reorin-header:is(.is-scrolled,.is-open) .brand-art::after { background:#f4ead4; z-index:2; }
.reorin-header__inner { grid-template-columns:165px minmax(0,1fr) 174px 84px; gap:12px; }
.footer .footer-brand-logo .brand-art { display:block; width:220px; }
.footer .footer-brand-logo .hero-logo { display:block; height:auto; }
@media(min-width:1001px) and (max-width:1150px) { .reorin-header__inner { grid-template-columns:145px minmax(0,1fr) 132px 80px; gap:8px; } }
@media(max-width:1000px) { .reorin-header__inner { grid-template-columns:minmax(0,1fr) auto auto; gap:8px; } }
@media(max-width:380px) { .reorin-header__inner { gap:5px; } .reorin-header__brand .brand-art { width:100px; } }

@media (min-width: 1001px) {
  .reorin-header--landing .reorin-header__inner { grid-template-columns: minmax(145px, 1fr) auto minmax(84px, 1fr); }
}
