/* ==========================================================
   Navigation header - responsive version of the Anima export
   Every rule is scoped under ".box .navbar" so it will not
   clash with the page CSS (which also uses .rectangle, .div,
   .text-wrapper ...).
   Link it AFTER globals.css:
   <link rel="stylesheet" href="header.css">
   ========================================================== */

:root {
  --nav-blue: #252dad;
  --nav-navy: #213972;
  --nav-white: #ffffff;
  --nav-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.box {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--nav-blue);
}

.box .navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 48px);
}

/* Decorative blue block from Figma: the bar already has the colour */
.box .navbar .rectangle { display: none; }

/* Optional logo link (add it as the first item inside <nav>) */
.box .navbar .navbar-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.box .navbar .navbar-logo img {
  display: block;
  height: 32px;
  width: auto;
}

/* ---------- Menu links ---------- */
.box .navbar a:not(.navbar-logo) {
  position: static;
  color: var(--nav-white);
  font-family: var(--nav-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 0;
}

.box .navbar a:not(.navbar-logo):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Current page */
.box .navbar a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* CONTACT US pill */
.box .navbar a.text-wrapper-6 {
  padding: 10px 20px;
  border-radius: 999px;
  background-color: var(--nav-white);
  color: var(--nav-navy);
}
.box .navbar a.text-wrapper-6:hover {
  text-decoration: none;
  filter: brightness(0.94);
}

.box .navbar a:focus-visible {
  outline: 3px solid var(--nav-white);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Small screens: centre and wrap the links ---------- */
@media (max-width: 768px) {
  .box { position: static; }

  .box .navbar {
    justify-content: center;
    gap: 6px 18px;
    padding: 12px 16px;
  }

  .box .navbar .navbar-logo {
    width: 100%;
    margin-right: 0;
    justify-content: center;
  }
}