/*
 * SAS Global Service — Option 3 / Cinematic header
 * A homepage overlay that becomes a solid sticky navy bar on scroll.
 * Works with the existing navigation, category and content CMS data.
 * Loaded after aviation-redesign.css to avoid changing other page styles.
 */
:root { --cinematic-header-height: 96px; }

.site-header--cinematic {
  position: sticky;
  inset: 0 auto auto;
  z-index: 100;
  width: 100%;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.17);
  box-shadow: none;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.has-hero-header .site-header--cinematic {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: transparent;
  border-bottom-color: rgba(255,255,255,.21);
}
.site-header--cinematic.is-sticky,
.has-hero-header .site-header--cinematic.is-sticky,
body.menu-open .site-header--cinematic,
.has-hero-header .site-header--cinematic:has(.nav-products.is-open) {
  background: var(--deep);
  border-bottom-color: rgba(255,255,255,.13);
  box-shadow: 0 12px 35px rgba(3,16,28,.18);
}
.site-header--cinematic .header-inner {
  min-height: var(--cinematic-header-height);
  gap: clamp(16px, 2vw, 34px);
  justify-content: space-between;
}
.site-header--cinematic .site-brand {
  display: inline-flex;
  gap: 14px;
  flex: 0 1 325px;
  min-width: 0;
  color: #fff;
}
.site-header--cinematic .brand-image {
  width: 54px;
  height: 56px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: rgba(255,255,255,.94);
  border-radius: 2px;
  box-shadow: 0 1px 12px rgba(6,20,33,.13);
}
.site-header--cinematic .brand-image img {
  width: 46px;
  height: 47px;
  object-fit: contain;
}
.site-header--cinematic .brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-content: center;
}
.site-header--cinematic .brand-name {
  color: #fff;
  max-width: 270px;
  font-size: 12px;
  line-height: 1.38;
  letter-spacing: .045em;
  font-weight: 800;
  text-transform: uppercase;
}
.site-header--cinematic .brand-subtitle {
  max-width: 275px;
  color: #e5c997;
  font-size: 8px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .145em;
  text-transform: uppercase;
}
.site-header--cinematic .main-nav {
  margin-left: auto;
  gap: clamp(17px, 2.2vw, 34px);
}
.site-header--cinematic .nav-link {
  min-height: var(--cinematic-header-height);
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .018em;
  transition: color .2s ease;
}
.site-header--cinematic .nav-link:hover,
.site-header--cinematic .nav-link:focus-visible,
.site-header--cinematic .nav-link.is-current {color:#fff}
.site-header--cinematic .nav-link:after {
  bottom: 0;
  height: 2px;
  background: var(--gold);
}
.site-header--cinematic .nav-link:hover:after,
.site-header--cinematic .nav-link:focus-visible:after,
.site-header--cinematic .nav-link.is-current:after {width:100%}
.site-header--cinematic .nav-group {gap: 2px;}
.site-header--cinematic .nav-submenu-toggle {
  width: 25px;
  height: 42px;
  color: rgba(255,255,255,.9);
  background: transparent;
  border: 0;
}
.site-header--cinematic .nav-submenu-toggle:hover,
.site-header--cinematic .nav-submenu-toggle:focus-visible {background:rgba(255,255,255,.13);color:#fff}
.site-header--cinematic .nav-submenu-toggle .icon {width: 14px;height: 14px;transform:rotate(90deg);transition:transform .2s ease}
.site-header--cinematic .nav-group.is-open .nav-submenu-toggle .icon {transform:rotate(-90deg)}

/* Light editorial category directory makes the large menu easy to scan. */
.site-header--cinematic .nav-dropdown {
  display: grid;
  grid-template-columns: 215px minmax(0,1fr);
  gap: 0;
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  width: 655px;
  max-width: calc(100vw - 48px);
  max-height: min(75vh, 610px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid #dce4e9;
  border-top: 2px solid var(--gold);
  border-radius: 0 0 3px 3px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 26px 60px rgba(3,19,35,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%,12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.site-header--cinematic .nav-group:hover .nav-dropdown,
.site-header--cinematic .nav-group:focus-within .nav-dropdown,
.site-header--cinematic .nav-group.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%,0);
}
.site-header--cinematic .nav-group.is-dismissed .nav-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-header--cinematic .dropdown-intro {
  display:flex;
  flex-direction:column;
  padding: 34px 26px 26px;
  background: #f0f3f4;
  border-right: 1px solid #e1e8eb;
  min-width: 0;
}
.site-header--cinematic .dropdown-intro-label {
  color:#737e84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing:.085em;
  line-height:1.7;
  text-transform:uppercase;
}
.site-header--cinematic .dropdown-intro-label span {color:var(--accent-ink);padding-inline:3px}
.site-header--cinematic .dropdown-intro strong {
  margin-top:26px;
  max-width:170px;
  color:var(--deep);
  font-size:27px;
  line-height:1.18;
  letter-spacing:-.045em;
  font-weight:800;
}
.site-header--cinematic .dropdown-intro p {
  margin:14px 0 auto;
  padding-bottom:28px;
  color:#60707c;
  font-size:12px;
  line-height:1.65;
}
.site-header--cinematic .dropdown-inquiry {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-block:13px 0;
  border-top:1px solid #cad4db;
  font-size:11px;
  font-weight:800;
  color:var(--deep);
}
.site-header--cinematic .dropdown-inquiry:hover {color:var(--accent-ink)}
.site-header--cinematic .dropdown-inquiry .icon {width:17px;height:17px}
.site-header--cinematic .dropdown-directory {min-width:0;padding:23px 24px 19px}
.site-header--cinematic .dropdown-directory-label {
  display:block;
  color:#697b88;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  padding-bottom:11px;
}
.site-header--cinematic .dropdown-category-list {max-height: min(51vh, 410px); overflow-y:auto; overscroll-behavior:contain}
.site-header--cinematic .dropdown-link {
  display:flex;
  align-items:center;
  gap:13px;
  border-radius:0;
  margin:0;
  padding:14px 5px;
  border-bottom:1px solid #e6eaed;
  font-size:12px;
  font-weight:700;
  color:#24394b;
  transition:color .2s ease,background .2s ease;
}
.site-header--cinematic .dropdown-link:hover,
.site-header--cinematic .dropdown-link:focus-visible {background:#f6f8f9;color:#082a45}
.site-header--cinematic .dropdown-category-index {font-size:10px;color:#9b865e;font-variant-numeric:tabular-nums;font-weight:800}
.site-header--cinematic .dropdown-category-name {flex:1;min-width:0;line-height:1.55}
.site-header--cinematic .dropdown-arrow {margin-left:auto;color:#7d8a95;line-height:1}
.site-header--cinematic .dropdown-arrow .icon {width:16px;height:16px}
.site-header--cinematic .dropdown-all {
  border:0;
  margin-top:5px;
  padding:14px 5px 5px;
  justify-content:space-between;
  color:var(--deep);
  font-size:11px;
  font-weight:850;
  letter-spacing:.045em;
}
.site-header--cinematic .dropdown-all .icon {width:17px;height:17px}

/* The request action stays deliberately light on top of the hero. */
.site-header--cinematic .header-cta {
  min-height:45px!important;
  padding:11px 15px!important;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:19px;
  flex:none;
  white-space:nowrap;
  background:rgba(255,255,255,.035);
  color:#fff;
  border:1px solid rgba(255,255,255,.68);
  border-radius:2px;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.012em;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.site-header--cinematic .header-cta:hover,
.site-header--cinematic .header-cta:focus-visible {background:#fff;color:var(--deep);border-color:#fff}
.site-header--cinematic .header-cta .icon {width:16px;height:16px}
.site-header--cinematic .menu-toggle {display:none}
.site-header--cinematic :where(a,button,summary):focus-visible {outline:2px solid var(--gold);outline-offset:4px}

/* Nav overlay belongs to the header, not the page, and is dark on mobile. */
.site-header--cinematic .mobile-nav {display:none}
@media (max-width:1200px) {
  .site-header--cinematic .site-brand {flex-basis:272px;gap:10px}
  .site-header--cinematic .brand-name {max-width:215px;font-size:11px}
  .site-header--cinematic .brand-subtitle {font-size:8px;letter-spacing:.09em}
  .site-header--cinematic .main-nav {gap:19px}
  .site-header--cinematic .header-inner {gap:15px}
}
@media (max-width:1100px) {
  :root {--cinematic-header-height:78px}
  .site-header--cinematic .main-nav,
  .site-header--cinematic .header-cta {display:none}
  .site-header--cinematic .site-brand {flex:1 1 auto}
  .site-header--cinematic .brand-image {width:49px;height:51px;flex-basis:49px;padding:5px}
  .site-header--cinematic .brand-image img {width:40px;height:42px}
  .site-header--cinematic .brand-name {max-width:290px;font-size:12px}
  .site-header--cinematic .brand-subtitle {font-size:8px}
  .site-header--cinematic .menu-toggle {
    display:flex;
    flex:0 0 43px;
    width:43px;
    height:43px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.55);
    border-radius:2px;
    gap:5px;
  }
  .site-header--cinematic .menu-toggle:hover {background:rgba(255,255,255,.17)}
  .site-header--cinematic .menu-toggle span {width:19px;height:1.5px;background:#fff}
  .site-header--cinematic .menu-toggle[aria-expanded=true] span:first-child {transform:translateY(6.5px) rotate(45deg)}
  .site-header--cinematic .menu-toggle[aria-expanded=true] span:last-child {transform:translateY(-6.5px) rotate(-45deg)}
  .site-header--cinematic .mobile-nav {
    display:grid;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    max-height:calc(100dvh - var(--cinematic-header-height));
    overflow:auto;
    overscroll-behavior:contain;
    padding:0;
    border:0;
    border-top:1px solid rgba(255,255,255,.14);
    background:var(--deep);
    color:#fff;
    box-shadow:0 32px 40px rgba(4,16,28,.25);
  }
  .site-header--cinematic .mobile-nav[hidden] {display:none!important}
  body.menu-open {overflow:hidden}
  .site-header--cinematic .mobile-nav-inner {width:min(620px,calc(100% - 48px));margin:0 auto;padding:29px 0 30px}
  .site-header--cinematic .mobile-nav-kicker {color:#e3cba1;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;margin:0 0 20px}
  .site-header--cinematic .mobile-main-link {
    display:flex;align-items:center;justify-content:space-between;
    min-height:61px;padding:13px 0;
    border-bottom:1px solid rgba(255,255,255,.17);
    font-size:20px;font-weight:750;line-height:1.3;letter-spacing:-.025em;color:#fff;
  }
  .site-header--cinematic .mobile-main-link .icon {width:19px;height:19px;color:#d7c19a}
  .site-header--cinematic .mobile-main-link:hover {color:#e3cba1}
  .site-header--cinematic .mobile-products-disclosure {border-bottom:1px solid rgba(255,255,255,.17)}
  .site-header--cinematic .mobile-products-disclosure summary {
    display:flex;align-items:center;justify-content:space-between;
    min-height:47px;padding:10px 0 10px 14px;
    list-style:none;cursor:pointer;color:#cbd6df;font-size:12px;font-weight:650;
  }
  .site-header--cinematic .mobile-products-disclosure summary::-webkit-details-marker {display:none}
  .site-header--cinematic .mobile-products-disclosure summary .icon {width:14px;height:14px;transition:transform .2s}
  .site-header--cinematic .mobile-products-disclosure[open] summary .icon {transform:rotate(90deg)}
  .site-header--cinematic .mobile-categories {display:grid;padding:4px 13px 13px;margin:0;background:transparent;border-left:2px solid var(--gold)}
  .site-header--cinematic .mobile-categories a {padding:9px 0;color:#e3eaf0;font-size:13px;font-weight:550;line-height:1.5}
  .site-header--cinematic .mobile-categories a:hover {color:#f0d498}
  .site-header--cinematic .mobile-nav-cta {
    display:flex;align-items:center;justify-content:space-between;
    min-height:52px;margin-top:29px;padding:13px 17px!important;
    background:var(--gold);color:var(--deep)!important;border-radius:2px;
    font-size:13px;font-weight:800;
  }
  .site-header--cinematic .mobile-nav-cta .icon {width:17px;height:17px}
  .site-header--cinematic .mobile-nav-footer {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 22px;padding-top:29px;color:#b4c3cc;font-size:10px;letter-spacing:.025em}
  .site-header--cinematic .mobile-nav-footer a:hover {color:#fff}
}
@media (max-width:560px) {
  :root {--cinematic-header-height:74px}
  .site-header--cinematic .header-inner {gap:12px}
  .site-header--cinematic .site-brand {gap:10px}
  .site-header--cinematic .brand-image {width:45px;height:46px;flex-basis:45px}
  .site-header--cinematic .brand-image img {width:36px;height:38px}
  .site-header--cinematic .brand-copy {gap:3px}
  .site-header--cinematic .brand-name {font-size:10px;max-width:220px;letter-spacing:.01em}
  .site-header--cinematic .brand-subtitle {font-size:7px;max-width:220px;letter-spacing:.07em}
  .site-header--cinematic .menu-toggle {width:42px;height:42px;flex-basis:42px}
  .site-header--cinematic .mobile-nav-inner {width:calc(100% - 36px);padding-top:26px}
  .site-header--cinematic .mobile-main-link {font-size:19px;min-height:58px}
}
@media (prefers-reduced-motion: reduce) {
  .site-header--cinematic,
  .site-header--cinematic .nav-dropdown,
  .site-header--cinematic .menu-toggle span {transition:none!important}
}
/* Keep the category directory entirely on-screen at narrow desktop sizes. */
@media (min-width:1101px) and (max-width:1300px) {
  .site-header--cinematic .nav-dropdown {left:auto;right:0;transform:translateY(12px)}
  .site-header--cinematic .nav-group:hover .nav-dropdown,
  .site-header--cinematic .nav-group:focus-within .nav-dropdown,
  .site-header--cinematic .nav-group.is-open .nav-dropdown {transform:translateY(0)}
}
