/**
 * Shared header stack: utility bar + nav.
 * Used by index.html, panhandle-region.html, and other region pages.
 * Requires :root { --navy, --gold, --coral, --white } to be defined on the page.
 *
 * Canonical values (change here only; keeps all pages in sync):
 * - Utility bar height: 40px
 * - Nav height: 64px
 * - scroll-padding-top: 104px (40 + 64) — both bars live inside one sticky wrapper.
 *
 * Sticky behavior: The entire header (utility bar + nav) is wrapped in
 * .header-sticky-wrapper, which is position: sticky. Both bars stay visible
 * at the top, so anchor links always offset by 104px. No 64 vs 104 trade-off.
 */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

/* ── STICKY WRAPPER (utility bar + nav stick together) ── */
.header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ── HEADER STACK (utility bar) ── */
.header-stack {}

.utility-bar {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  overflow: hidden;
  background: #0A2540;
  color: rgba(255,255,255,.6);
  font-size: .76rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.25rem;
  letter-spacing: .01em;
}

.utility-bar a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s;
}

.utility-bar a:hover {
  color: #fff;
}

/* ── NAV ── */
nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,82,136,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: .01em;
  text-decoration: none;
}

.nav-brand span {
  color: var(--gold);
}

.nav-right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-right a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}

.nav-right a:hover {
  color: var(--white);
}

.nav-right .nav-btn {
  background: var(--coral);
  color: white;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
}

.nav-right .nav-btn:hover {
  background: #d4503c;
  color: white;
}
