/* nav.css — header, navigation, mobile menu */

header {
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-mark {
  /* min-width + padding so "FAST" fits inside the square instead of spilling out */
  min-width: 40px;
  padding: 0 6px;
  height: 40px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: white;
  letter-spacing: -0.5px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  letter-spacing: 0.3px;
}

.nav-logo-text span {
  color: var(--teal-light);
}

/* ── DESKTOP LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-size: 14px !important;
}

.nav-cta:hover {
  background: #e8971a !important;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 99;
  padding: 16px 5vw 24px;
  border-bottom: 3px solid var(--teal);
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  cursor: pointer;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ── RESPONSIVE ── */

/* Shrink link padding and CTA at intermediate widths */
@media (max-width: 900px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

/* Switch to hamburger before overflow can occur.
   Only when JS is running (site.js adds .js) — without it the links stay visible and wrap. */
@media (max-width: 768px) {
  .js .nav-links {
    display: none;
  }

  .js .hamburger {
    display: flex;
  }

  html:not(.js) #main-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding-block: 10px;
    gap: 8px;
  }

  html:not(.js) .nav-links {
    flex-wrap: wrap;
  }
}