/* ==========================================================================
   Header, navigation, footer, page banner
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the header itself would become the containing block of the
   position:fixed mobile menu, which would then be sized by the 76px header instead of the screen (menu cut off / collapsed). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.is-scrolled .site-header { box-shadow: 0 4px 18px rgba(14, 42, 82, .08); border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; flex-direction: column; gap: 2px; flex: none; }
.brand img { width: 150px; height: auto; }
.brand-sub { font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.brand-invert img { filter: brightness(0) invert(1); }
.brand-invert .brand-sub { color: rgba(255, 255, 255, .8); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 3px; padding: 26px 8px;
  font-size: .88rem; font-weight: 600; color: var(--ink); position: relative; white-space: nowrap;
}
.nav-link .caret { opacity: .7; transition: transform .2s; }
.nav-item.active > .nav-link::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 18px; height: 2.5px; border-radius: 2px; background: var(--red);
}
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--red); }
.nav-item:hover > .nav-link .caret { transform: rotate(180deg); }
.submenu-toggle { display: none; }

.dropdown {
  position: absolute; top: calc(100% - 8px); left: 50%; transform: translate(-50%, 8px);
  min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown ul { list-style: none; }
.dropdown a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.dropdown a:hover { background: var(--bg-soft); color: var(--red); }
.dd-label { font-weight: 600; font-size: .9rem; }
.dd-desc { font-size: .78rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.burger, .mobile-only { display: none !important; }

.search-bar { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; box-shadow: 0 10px 20px rgba(14, 42, 82, .06); }
.search-form { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.search-form input { flex: 1; border: 0; font-size: 1.05rem; padding: 8px 0; outline: none; color: var(--ink); background: transparent; }

/* ---------- page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #dbe5f3;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(212, 146, 31, .18), transparent 60%),
              linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 44px 0 52px;
}
.page-banner::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .04);
}
.page-banner h1 { color: #fff; margin: 0 0 .35em; max-width: 900px; position: relative; z-index: 1; }
.banner-lead { font-size: 1.08rem; max-width: 760px; margin: 0; position: relative; z-index: 1; }
.page-banner .container { position: relative; z-index: 1; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; margin-bottom: 18px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: rgba(255, 255, 255, .45); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--gold-300); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #c6d2e3; margin-top: 0; }
.footer-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; padding-top: 36px; padding-bottom: 32px; }
.footer-cta-text h2 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.footer-cta-text p { margin: 0; font-size: .92rem; color: #b9c6d9; }
.footer-mid { border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-mid-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a, .footer-contact a { color: #dbe5f3; font-size: .82rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .85rem; }
.fc-item { display: inline-flex; align-items: center; gap: 8px; }
.fc-item .sep { color: rgba(255, 255, 255, .35); }
.footer-social { display: inline-flex; gap: 8px; }
.footer-social a { width: 30px; height: 30px; border-radius: 6px; background: #fff; color: var(--navy-900); display: grid; place-items: center; }
.footer-social a:hover { background: var(--gold-300); color: var(--navy-900); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 22px; font-size: .78rem; color: #9fb0c8; flex-wrap: wrap; }
.footer-tagline { display: inline-flex; align-items: center; gap: 14px; color: #dbe5f3; }
.footer-tagline::before { content: ""; width: 80px; height: 1px; background: var(--gold); }

/* ---------- responsive header ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 26px 7px; font-size: .84rem; }
  .brand img { width: 132px; }
}
@media (max-width: 1279px) {
  .burger { display: inline-grid !important; }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .header-row { justify-content: space-between; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; justify-content: flex-start;
    padding: 12px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform .25s ease, visibility 0s linear .25s; visibility: hidden; z-index: 1;
  }
  .menu-open .main-nav { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
  .nav-link { padding: 16px 4px; font-size: 1rem; }
  .nav-link .caret { display: none; }
  .nav-item.active > .nav-link::after { display: none; }
  .nav-item.active > .nav-link { color: var(--red); }
  .submenu-toggle { display: grid; place-items: center; width: 48px; background: none; border: 0; color: var(--ink); cursor: pointer; }
  .nav-item.open .submenu-toggle .ico { transform: rotate(180deg); }
  .dropdown {
    position: static; grid-column: 1 / -1; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    padding: 0 0 12px 8px; display: none; min-width: 0;
  }
  .nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { transform: none; }
  .nav-item.open > .dropdown { display: block; }
  .nav-contact { margin-top: 24px; align-self: flex-start; }
  .footer-cta { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { width: 120px; }
  .brand-sub { font-size: .5rem; }
  .page-banner { padding: 32px 0 40px; }
  .footer-mid-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- page loading ---------- */
/* Keeps the footer from jumping up while a page is still loading its data. */
main { min-height: 60vh; }

/* Thin progress bar at the top of the screen while the site navigates or a page loads its data (see site.js, rv.nav). */
.rv-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .25s ease .05s; }
.rv-progress span { display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--red), var(--gold)); box-shadow: 0 0 8px rgba(200, 22, 30, .45); }
.rv-progress.on { opacity: 1; transition-delay: 0s; }
.rv-progress.run span { width: 82%; transition: width 8s cubic-bezier(.1, .6, .2, 1); }
.rv-progress.done span { width: 100%; transition: width .2s ease-out; }
.rv-busy, .rv-busy a { cursor: progress; }
.rv-busy #main { opacity: .6; transition: opacity .2s ease .15s; }
#main { transition: opacity .15s ease; }

/* Navigation placeholders while the site settings (menu) are loading. */
.nav-skel span {
  display: block; width: 62px; height: 12px; margin: 0 12px; border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7, #dde5ef, #eef2f7); background-size: 200% 100%; animation: rv-shimmer 1.2s linear infinite;
}
@keyframes rv-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 1279px) { .nav-skel { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv-progress.run span { transition: none; width: 60%; }
  .nav-skel span { animation: none; }
}

/* ---------- header icons that swap without a re-render (menu <-> close, search <-> close) ---------- */
.icon-btn .ico-alt { display: none; }
.menu-open .burger .ico-main, .search-open [data-search-toggle] .ico-main { display: none; }
.menu-open .burger .ico-alt, .search-open [data-search-toggle] .ico-alt { display: inline-block; }
.newsletter-slot { min-width: 0; }
