body.menu-open .site-header {
  opacity: 0;
  pointer-events: none;
}

/* hide hamburger */
body.menu-open .menu-toggle {
  opacity: 0;
  pointer-events: none;
}


/* =========================
   HEADER BASE
========================= */

.site-header {
  position: fixed; /* sticky → fixed (required for transform hide) */
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  font-family: Inter, system-ui, sans-serif;
  font-size: 32px;;
  background: transparent;
  color: #ffffff;

  will-change: transform, background-color, backdrop-filter;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* =========================
   STATES
========================= */

/* Overlay state (hero visible) */
.site-header--overlay {
  background: transparent;
  background: url('../images/navbar_bg.jpg');
}

/* Solid after scroll */
.site-header.is-solid {
  background: rgba(201, 59, 106, 0.85);
  backdrop-filter: blur(12px);
}

/* Hide on scroll down */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* =========================
   INNER
========================= */

.header-inner,
.site-header__inner {
  padding: 1.25rem 2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HEADER LAYOUT */
.header-inner {
  position: relative;

  display: flex;
  align-items: center;

  justify-content: space-between;
}

/* LEFT (optional, can stay empty) */
.desktop-nav {
  flex: 1;
}

/* RIGHT SIDE (search + burger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;

  flex: 1;
  justify-content: flex-end;
}

/* =========================
   TYPOGRAPHY
========================= */

.site-header,
.site-header a {
  color: inherit;
  text-decoration: none;

  text-transform: uppercase;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  font-family: 'Magilio', sans-serif;
}

/* =========================
   LOGO
========================= */

/* center logo absolutely */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* keep clickable area correct */
.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Magilio', sans-serif
}

/* Mobile: stacked */
@media (max-width: 767px) {
  .site-header a {
    color: inherit;
    text-decoration: none;

    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-family: 'Anton', sans-serif;
  }
}

/* =========================
   SCROLL PROGRESS
========================= */

.scroll-progress-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

#scroll-progress {
  height: 100%;
  width: 100%;
  background: rgba(255,255,255,0.8);

  transform: scaleX(0);
  transform-origin: left;

  will-change: transform;
}

/* =========================
   BURGER
========================= */

.menu-toggle,
.menu-close {
  width: 3rem;
  height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color:#ffffff;
    z-index: 1005;
}

.menu-close {
  position: fixed !important;
  width: 3rem;
  height: 3rem;
  top: 2.0rem !important;
  right: 2.6rem !important;
  left: auto !important;   /* CRITICAL FIX */
font-size: 4rem !important;
font-weight: 100 !important;
  z-index: 1005 !important;;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: white;

  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;

  transition: transform 0.4s ease, opacity 0.3s ease;
}

body.menu-open .search-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

body.menu-open .search-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}


/* =========================
   OVERLAY
========================= */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;

  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;
}

.overlay-bg {
  position: absolute;
  inset: 0;
background: linear-gradient(
  180deg,
  rgba(0, 120, 160, 0.92) 0%,
  rgba(0, 90, 130, 0.95) 100%
);
backdrop-filter: blur(10px);
  /*background: url('../images/navbar_bg.jpg') center / cover no-repeat;*/
  /*color: antiquewhite;*/
  color: antiquewhite;
  z-index: 0;

  transform: scale(1.1);
  will-change: transform;
}

.mobile-overlay > *:not(.overlay-bg) {
  position: relative;
  z-index: 2;
}

/* ACTIVE */
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-mobile {
  list-style: none;
  text-align: center;
  padding-inline-start: 0px !important;
}

.menu-mobile li {
  margin: 20px 0;
}

.menu-mobile a {
  font-size: clamp(6rem, 5vw, 3rem);
  color: #FFD400;
  font-family: "Rubik Dirt", system-ui, sans-serif;
  text-decoration: none;
}

.menu-mobile a:hover {
  color: #FFF;
}

@media (max-width: 767px) {
  .menu-mobile a {
      font-size: clamp(2.6rem, 3vw, 3rem);
  }
}



/* =========================
   CLOSE BUTTON
========================= */

.menu-close {
  opacity: 0;
  pointer-events: none;
}

.mobile-overlay.active .menu-close {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   SEARCH MODAL
========================= */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;

  background: rgba(201, 59, 106, 0.9);
  backdrop-filter: blur(20px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-inner {
  max-width: 600px;
  margin: auto;
}

.search-inner input {
  width: 100%;
  font-size: 2rem;

  background: transparent;
  border-bottom: 1px solid white;
  color: white;
}




