/* ===== Shared site header =====
   The one stylesheet of the header partial (Views/Shared/_Header.cshtml). Every layout that draws that partial links THIS file
   (_MarketingLayout and _PublicLayout, which also serves the /onboard wizard), so the header looks the same on every page and a
   layout can no longer draw the markup without its rules (ONB-FIX-4: the wizard pages showed an unstyled 420px logo and widened
   to 432px on a 390px phone). Written for RTL pages; uses logical properties where a side matters. */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20,42,100,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.site-header .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-header .brand img { height: 44px; width: auto; max-width: 100%; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #0f172a; font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: #1e3a8a; }
/* The registration button of the header. Dark label on gold = 7.5:1 (the old white label was 2.4:1, below the 4.5:1 floor). 44px high at every width.
   States: default, hover (lift + lighter gold), focus-visible (ring below), active (pressed). It is a link: no disabled or loading state. */
.site-nav .cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap;
    background: #c9a14a; color: #1d1503; padding: 0 22px; border-radius: 999px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(201,161,74,0.35);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.site-nav .cta:hover { transform: translateY(-2px); background: #d3ab55; box-shadow: 0 8px 22px rgba(201,161,74,0.45); color: #1d1503; }
.site-nav .cta:active { transform: none; filter: brightness(.94); }
/* A visible keyboard focus on every header control (brand blue on white = 10:1). */
.site-nav a:focus-visible, .nav-toggle:focus-visible, .site-header .brand:focus-visible { outline: 3px solid #1e3a8a; outline-offset: 3px; border-radius: 8px; }
.site-nav .cta:focus-visible { border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; line-height: 1; color: #1e3a8a; cursor: pointer; padding: 0; width: 44px; height: 44px; place-items: center; }
@media (max-width: 992px) {
    .site-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; padding: 12px 24px 18px; flex-direction: column; align-items: flex-start; gap: 4px; box-shadow: 0 14px 36px rgba(20,42,100,0.12); }
    .site-nav.open { display: flex; }
    .site-nav a:not(.cta) { display: flex; align-items: center; min-height: 44px; width: 100%; }
    .site-nav .cta { margin-top: 8px; }
    .nav-toggle { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    .site-nav a, .site-nav .cta { transition: none; }
    .site-nav .cta:hover { transform: none; }
}
