/* ============================================================
   SHARED SITE HEADER — 2026
   Replaces header.css (interior pages) and the .navbar/.logo--container
   block in style.css (home). One header for every page.

   Keeps the existing class contract so /scripts/main.js and the
   Umbraco-driven menu markup keep working:
     .btn--menu  .hamburger  .header--links  .header--link  .currentPage
   ============================================================ */

.site-header { position: relative; }

/* --- photographic band; its bottom sits level with the nav bar --- */
.header-band {
  position: relative;
  height: 64px;
  overflow: hidden;
  background: var(--veil-solid);
}
.header-band__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* No filter. The band photos are already graded high-key at source —
     a CSS filter on top bleaches them to flat grey. */
}
@media screen and (min-width: 1280px) {
  .header-band { height: 72px; }
}

/* --- translucent white bar over the photo --- */
.navbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 3;
  background: var(--veil);
}
.navbar__inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
@media screen and (min-width: 768px)  { .navbar__inner { padding-inline: 40px; } }
@media screen and (min-width: 1280px) { .navbar__inner { min-height: 72px; } }

/* --- horizontal logo lockup --- */
.brand {
  display: flex; align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 4;
}
.brand__logo { height: 40px; width: auto; display: block; }
@media screen and (min-width: 768px)  { .brand__logo { height: 42px; } }
@media screen and (min-width: 1280px) { .brand__logo { height: 46px; } }

/* --- nav links (existing class names) --- */
.header--links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.header--link { font-size: 14px; }
.header--link > a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bar-ink);
  text-decoration: none;
  display: block;
  padding: 10px 0;
}
.header--link > a:hover { color: var(--dark-purple); text-decoration: underline; }
.header--link > a.currentPage { color: var(--dark-green); font-weight: 600; }
@media screen and (min-width: 1280px) {
  .header--link > a { letter-spacing: 6px; }
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--dark-purple);
  outline-offset: 3px;
}

/* --- hamburger --- */
.btn--menu {
  display: block;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  padding: 0; cursor: pointer;
  position: relative;
  z-index: 30;              /* must stay above the open nav panel */
}
.hamburger,
.hamburger::before,
.hamburger::after {
  position: absolute; left: 10px;
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--bar-ink);
  transition: transform 0.4s, background 0.4s;
}
.hamburger { top: 21px; }
.hamburger::before,
.hamburger::after { content: ""; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.btn--menu.active .hamburger { background: transparent; }
.btn--menu.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.btn--menu.active .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- mobile nav panel --- */
@media screen and (max-width: 767px) {
  .header--links {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 300px;
    flex-direction: column; justify-content: center;
    gap: var(--s-6);
    background: #fff;
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.10);
    transform: translateY(-110vh);
    transition: transform 0.6s;
    visibility: hidden;
    z-index: 20;
  }
  .header--links.active {
    transform: translateY(0);
    visibility: visible;
  }
}
@media screen and (min-width: 768px) {
  .btn--menu { display: none; }
  .header--links { visibility: visible; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
