/*
 * Shared opening composition for every primary navigation page.
 * The compact photographic hero and matching blue introduction field
 * reproduce the visual logic of the approved Korowa page transition.
 */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  transition:
    background-color 320ms ease-out,
    box-shadow 320ms ease-out,
    opacity 220ms ease-out,
    transform 220ms ease-out;
}

.site-header.is-immersed {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header.nav-scroll-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header .brand,
.site-header .main-nav > a:not(.button) {
  color: var(--white);
}

.site-header .brand::before {
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(7, 23, 95, 0.08);
}

.site-header.is-scrolled .brand {
  color: var(--blue-dark);
}

.site-header.is-scrolled .brand::before {
  filter: none;
}


.about-header,
.join-hero,
.comm-hero,
.news-header,
.galas-hero,
.contact-header {
  min-height: clamp(480px, 62svh, 680px);
}

.about-header-inner,
.join-hero-inner,
.comm-hero-inner,
.news-header-inner,
.galas-hero-inner,
.contact-header-inner {
  padding: 40px 20px 46px;
}

.about-header-inner {
  display: block;
}

.about-header h1,
.join-hero h1,
.comm-hero h1,
.news-header h1,
.galas-hero h1,
.contact-header h1 {
  max-width: 980px;
  font-size: clamp(38px, 9.6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: none;
  text-wrap: balance;
}

.about-header h1 em,
.join-hero h1 em,
.comm-hero h1 em,
.news-header h1 em,
.galas-hero h1 em,
.contact-header h1 em {
  color: var(--aqua);
}

.about-header-overlay,
.join-hero-overlay,
.comm-hero-overlay,
.news-header-overlay,
.galas-hero-overlay,
.contact-header-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(7, 23, 95, 0.3) 0%,
      rgba(7, 23, 95, 0.08) 42%,
      rgba(7, 23, 95, 0.44) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 23, 95, 0.44) 0%,
      rgba(7, 23, 95, 0.18) 48%,
      rgba(7, 23, 95, 0.02) 78%
    );
}

.nav-page-intro {
  display: flex;
  min-height: max(300px, 38svh);
  align-items: center;
  color: var(--white);
  background: var(--blue);
}

.nav-page-intro-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 58px 20px 68px;
}

.nav-page-intro--split .nav-page-intro-inner {
  display: grid;
  gap: 38px;
}

.nav-page-intro .about-header-sub,
.nav-page-intro .join-hero-sub,
.nav-page-intro .comm-hero-sub,
.nav-page-intro .news-header-sub,
.nav-page-intro .galas-hero-sub,
.nav-page-intro .contact-header-sub {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 3vw, 27px);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.nav-page-intro .about-header-quote {
  max-width: 620px;
  margin: 0;
  padding: 4px 0 4px 28px;
  border-left-color: var(--aqua);
  background: transparent;
}

.nav-page-intro .about-header-quote p {
  margin-bottom: 12px;
  font-size: clamp(19px, 2.6vw, 27px);
}

.nav-page-intro .about-header-quote cite,
.nav-page-intro .comm-hero-charity,
.nav-page-intro .join-trust-list,
.nav-page-intro .galas-trust-strip {
  color: rgba(255, 255, 255, 0.82);
}

.nav-page-intro .comm-hero-charity {
  margin-top: 18px;
}

.nav-page-intro .join-trust-list,
.nav-page-intro .galas-trust-strip {
  margin-top: 28px;
}

.nav-page-intro .comm-hero-actions {
  margin-top: 30px;
}

@media (min-width: 720px) {
  .about-header,
  .join-hero,
  .comm-hero,
  .news-header,
  .galas-hero,
  .contact-header {
    min-height: clamp(520px, 62svh, 720px);
  }

  .about-header-inner,
  .join-hero-inner,
  .comm-hero-inner,
  .news-header-inner,
  .galas-hero-inner,
  .contact-header-inner {
    padding: 46px 64px 54px;
  }

  .nav-page-intro-inner {
    padding: 68px 64px 78px;
  }
}

@media (min-width: 1100px) {
  .about-header,
  .join-hero,
  .comm-hero,
  .news-header,
  .galas-hero,
  .contact-header {
    min-height: clamp(540px, 62svh, 740px);
  }

  .about-header-inner,
  .join-hero-inner,
  .comm-hero-inner,
  .news-header-inner,
  .galas-hero-inner,
  .contact-header-inner {
    padding: 52px 64px 58px;
  }

  .about-header h1,
  .join-hero h1,
  .comm-hero h1,
  .news-header h1,
  .galas-hero h1,
  .contact-header h1 {
    font-size: clamp(54px, 4.7vw, 72px);
  }

  .nav-page-intro-inner {
    padding: 72px 64px 84px;
  }

  .nav-page-intro--split .nav-page-intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(64px, 8vw, 132px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }

  .site-header.is-immersed {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-page-intro {
    scroll-behavior: auto;
  }
}
