/* ============================================================
   NAVBAR — GLOBAL SHARED FILE (STRICT COLOUR GOVERNANCE)
   Uses ONLY tokens from global.css
   ============================================================ */

/* ============================================================
   HEADER — PREMIUM WHITE, STICKY
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header, 200);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-header);
}

/* NAVY STRIP BELOW HEADER */
.header-divider {
  height: 1.25rem;
  background: var(--boulevard-deep-blue);
}

/* INNER WRAPPER */
.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;

  height: var(--header-height);
  padding: 1rem var(--gutter);  /* 1rem = 10px on your 62.5% root */

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

/* ============================================================
   BRAND TEXT
   ============================================================ */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  line-height: 1.3;
}

.title .accent {
  color: var(--boulevard-aqua-green); /* Accent on “Boulevard” */
}

/* ============================================================
   NAVIGATION LINKS (DESKTOP)
   ============================================================ */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links a {
  display: block;
  padding: .55rem 1rem;
  font-size: var(--font-size-nav-link);
  font-weight: 600;
  text-decoration: none;
  color: var(--black);
  border-radius: 6px;
  transition: var(--motion-normal);
  font-family: var(--font-body);
  line-height: 1.3;
}

/* Hover (desktop only) */
.nav-links a:hover {
  background: var(--hover-wash-blue);
  color: var(--boulevard-primary-blue);
}

/* Active link — premium gradient underline */
.nav-links a.active {
  color: var(--boulevard-aqua-green);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: -2px;
  width: 70%;
  height: 3px;
  border-radius: 50px;
  background: var(--accent-gradient);
}

/* ============================================================
   MOBILE NAVIGATION SYSTEM
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

/* MOBILE MENU */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: calc(var(--header-height, 76px));
    right: -100%;
    width: 240px;
    height: calc(100vh - var(--header-height, 76px));
    flex-direction: column;
    padding: 2rem;
    background: var(--boulevard-deep-blue);
    border-left: 3px solid var(--boulevard-aqua-green);
    transition: right 0.45s ease-in-out; /* smoother open + close */
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    color: var(--white);
    font-size: var(--font-size-nav-link);
    width: 100%;
  }

/* MOBILE HOVER — match desktop logic (blue text), keep mobile-friendly light wash */
  .nav-links a:hover {
    background: var(--hover-wash-light);
    color: var(--boulevard-warm-gold);
  }

  /* MOBILE ACTIVE – colour only, no underline, no left bar */
  .nav-links a.active {
    border-left: none !important;
    padding-left: 1rem !important;
    color: var(--boulevard-aqua-green);
  }

  /* OVERRIDE DESKTOP UNDERLINE ON MOBILE */
  .nav-links a.active::after {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }
}
