/**
 * Shared header chrome: same structure as homepage (logo + full-screen menu).
 * Use body.page-site on inner pages; homepage keeps .page-home only (home-hero.css owns it).
 */

.page-site:not(.page-home) {
  padding-top: 76px;
  /* Avoid a bright “blank” band under the fixed header before the first section paints */
  background: var(--km-ceo-bg);
}

/*
 * Cause of the “black gap” under the navbar:
 * style.css gives .hero_area { min-height: 100vh }. On inner pages the bar is position:fixed,
 * so that wrapper still reserves a full viewport of height with almost no in-flow content —
 * you only see body’s CEO blue wash until .km-page-hero / .km-subpage-hero.
 * Collapse the wrapper; the real hero is the next section.
 */
.page-site:not(.page-home) .hero_area {
  min-height: 0 !important;
  height: auto;
  display: block;
  background: transparent;
}

.page-site:not(.page-home) .header_section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 40, 90, 0.92) 48%,
    rgba(14, 29, 66, 0.88) 100%
  ) !important;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-site:not(.page-home) .header_top {
  display: none;
}

.page-site:not(.page-home) .header_section .header_bottom {
  padding: 0.85rem 0;
  border: none;
}

.page-site:not(.page-home) .header_section .container-fluid {
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.page-site:not(.page-home) .km-hero-nav-brand {
  gap: 0.65rem;
  max-width: calc(100% - 11.5rem);
  min-width: 0;
}

.page-site:not(.page-home) .km-hero-nav-logo {
  height: clamp(36px, 7.5vw, 48px);
  width: auto;
  max-width: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.page-site:not(.page-home) .navbar-brand,
.page-site:not(.page-home) .navbar-brand:hover {
  color: #fff !important;
}

.page-site:not(.page-home) .navbar-brand span {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.page-site:not(.page-home) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

/* One control: global style.css turns every .navbar-toggler span into bar + pseudo-lines — reset for our trigger */
.page-site:not(.page-home) .km-nav-menu-trigger.navbar-toggler {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem;
  width: auto !important;
  height: auto !important;
  padding: 0.55rem 0.75rem !important;
}

.page-site:not(.page-home) .km-nav-menu-trigger .km-nav-menu-label,
.page-site:not(.page-home) .km-nav-menu-trigger .navbar-toggler-icon {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: relative !important;
  background-color: transparent !important;
}

.page-site:not(.page-home) .km-nav-menu-trigger .km-nav-menu-label::before,
.page-site:not(.page-home) .km-nav-menu-trigger .km-nav-menu-label::after,
.page-site:not(.page-home) .km-nav-menu-trigger .navbar-toggler-icon::before,
.page-site:not(.page-home) .km-nav-menu-trigger .navbar-toggler-icon::after {
  content: none !important;
  display: none !important;
}

.page-site:not(.page-home) .km-nav-menu-trigger .km-nav-menu-label {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1;
  text-shadow: 0 0 22px rgba(14, 29, 66, 0.5);
}

.page-site:not(.page-home) .km-nav-menu-trigger .navbar-toggler-icon {
  flex-shrink: 0;
  width: clamp(1.65rem, 4.5vw, 2.15rem) !important;
  height: clamp(1.35rem, 3.6vw, 1.75rem) !important;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.25' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.page-site:not(.page-home) .km-nav-menu-trigger.navbar-toggler[aria-expanded="true"] {
  transform: none !important;
}

.page-site:not(.page-home) .km-nav-menu-trigger .km-nav-menu-label,
.page-site:not(.page-home) .km-nav-menu-trigger .navbar-toggler-icon {
  transform: none !important;
}

/* Pull first editorial hero under the fixed header so the offset area shows dark gradient, not white */
.page-site:not(.page-home) .km-page-hero {
  margin-top: -76px;
  padding-top: calc(76px + clamp(4rem, 11vw, 6.5rem)) !important;
}

/* Short hero strip for pages that don’t use .km-page-hero */
.page-site:not(.page-home) .km-subpage-hero {
  position: relative;
  margin-top: -76px;
  padding: calc(76px + clamp(3rem, 8vw, 5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--km-ceo-bg);
  color: #fff;
  overflow: hidden;
}

.page-site:not(.page-home) .km-subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 20% 30%, rgba(14, 29, 66, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 80%, rgba(14, 29, 66, 0.08), transparent 50%);
}

.page-site:not(.page-home) .km-subpage-hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.page-site:not(.page-home) .km-subpage-hero .md-kicker {
  color: var(--color-blue-400);
}

.page-site:not(.page-home) .km-subpage-hero .md-section-title {
  color: #fff;
}

.page-site:not(.page-home) .km-subpage-hero .md-section-title .md-section-title__accent {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-blue-400);
}

.page-site:not(.page-home) .km-subpage-hero__lead {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38rem;
  margin: 1.25rem 0 0;
}

/* Materials: copy band matches subpage hero (no separate drift photo) */
.page-supply .km-subpage-hero--tail {
  position: relative;
  margin-top: 0;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  background: var(--km-ceo-bg);
  color: #fff;
  overflow: hidden;
}

.page-supply .km-subpage-hero--tail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 20% 30%, rgba(14, 29, 66, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 80%, rgba(14, 29, 66, 0.08), transparent 50%);
}

.page-supply .km-subpage-hero--tail .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.page-supply .km-subpage-hero--tail__lead {
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.page-supply .km-subpage-hero--tail__cta {
  border-radius: 50px;
  background-color: var(--color-blue-800, #0e1d42);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-privacy main.container {
  background-color: #fafbfc;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Above-the-fold heroes must not use scroll-reveal opacity:0 (reads as empty black band) */
.page-site .km-page-hero.reveal,
.page-site .km-subpage-hero.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.page-site .km-page-hero .reveal,
.page-site .km-page-hero .reveal-right,
.page-site .km-page-hero .container.reveal,
.page-site .km-page-hero .container.reveal-right,
.page-site .km-page-hero .container.reveal-rise-slow,
.page-site .km-page-hero .container.reveal-tilt,
.page-site .km-subpage-hero .reveal,
.page-site .km-subpage-hero .reveal-right,
.page-site .km-subpage-hero .reveal-rise-slow,
.page-site .km-subpage-hero .reveal-tilt,
.page-site .km-subpage-hero .container.reveal,
.page-site .km-subpage-hero .container.reveal-right,
.page-site .km-subpage-hero .container.reveal-rise-slow,
.page-site .km-subpage-hero .container.reveal-tilt {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Main contact strip is above the fold — don’t hide it behind scroll-reveal */
.page-contact .km-contact-wrap.reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Same-origin navigation — soft fade */
html.km-transition-enabled body {
  transition:
    opacity 0.28s ease,
    filter 0.28s ease;
}

html.km-transition-enabled body.km-page-exit {
  opacity: 0;
  filter: blur(5px);
}
