/* ══════════════════════════════════════════════════════════════════════
   ERRAND RUNNER SL — PUBLIC NAV CSS (nav.css)
   teal-900 (#134e4a) is the primary brand colour.
   Lighter teals used only for hover accents and subtle glows.
══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Root tokens ─────────────────────────────────────────────────── */
:root {
  --nav-bg          : #0a1412;          /* near-black with teal tint */
  --nav-bg-scroll   : rgba(8,18,16,.98);
  --nav-teal-900    : #134e4a;          /* PRIMARY brand colour */
  --nav-teal-700    : #0f766e;          /* hover / active only */
  --nav-teal-500    : #0d9488;          /* gradient end only */
  --nav-accent      : rgba(94,234,212,.75); /* subtle glow/underline — not bright */
  --nav-text        : rgba(255,255,255,.78);
  --nav-text-hover  : #ffffff;
  --nav-height      : 72px;
  --nav-height-mob  : 60px;
  --sans            : 'Outfit', sans-serif;
  --mono            : 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════════════
   NAVBAR WRAPPER — dark teal-900 background
══════════════════════════════════════════════════════════════════ */
#mainNavbar {
  position       : fixed;
  top            : 0;
  left           : 0;
  width          : 100%;
  z-index        : 1000;
  height         : var(--nav-height);
  background     : black;   /* teal-900 as nav bg */
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 0 40px;
  gap            : 24px;
  border-bottom  : 1px solid rgba(0,0,0,.25);
  box-shadow     : 0 4px 24px rgba(0,0,0,.35);
  transition     : background .3s, box-shadow .3s;
}

#mainNavbar.scrolled {
  background : #0d3d3a;
  box-shadow : 0 6px 32px rgba(0,0,0,.5);
}

/* ── Logo ────────────────────────────────────────────────────────── */
.nav-logo {
  display        : flex;
  align-items    : center;
  gap            : 10px;
  text-decoration: none;
  flex-shrink    : 0;
}
.nav-logo-icon {
  width          : 36px;
  height         : 36px;
  display        : flex;
  align-items    : center;
  justify-content: center;
  font-size      : 1.1rem;
  color          : #fff;
  flex-shrink    : 0;
}
.nav-logo-text {
  font-family   : var(--sans);
  font-size     : 1.18rem;
  font-weight   : 700;
  color         : #ffffff;
  letter-spacing: -.2px;
  line-height   : 1.1;
}
.nav-logo-text span {
  display       : block;
  font-size     : .55rem;
  font-weight   : 500;
  color         : rgba(255,255,255,.6);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-family   : var(--mono);
  margin-top    : 1px;
}

/* ── Desktop nav links ───────────────────────────────────────────── */
.nav-links {
  display        : flex;
  align-items    : center;
  gap            : 4px;
  list-style     : none;
  margin         : 0;
  padding        : 0;
  flex           : 1;
  justify-content: center;
}
.nav-links li { list-style: none; }
.nav-links a {
  position       : relative;
  display        : inline-block;
  padding        : 7px 13px;
  color          : rgba(255,255,255,.78);
  font-family    : var(--sans);
  font-size      : .87rem;
  font-weight    : 500;
  text-decoration: none;
  border-radius  : 7px;
  transition     : color .18s, background .18s;
  white-space    : nowrap;
  letter-spacing : .1px;
}
/* Subtle white underline on hover/active — not bright teal */
.nav-links a::after {
  content         : '';
  position        : absolute;
  bottom          : 4px;
  left            : 13px;
  right           : 13px;
  height          : 2px;
  background      : var(--nav-teal-900);
  border-radius   : 99px;
  transform       : scaleX(0);
  transform-origin: left;
  transition      : transform .22s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover {
  color     : #ffffff;
  background: rgba(255,255,255,.08);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active {
  color     : #ffffff;
  background: rgba(0,0,0,.2);
}

/* ── CTA — Sign Up / Login button ───────────────────────────────── */
/* Solid dark background so it stands out on the teal-900 nav */
.nav-cta {
  display        : inline-flex;
  align-items    : center;
  gap            : 6px;
  padding        : 8px 20px;
  background     : #0a1f1e;
  border         : 1.5px solid rgba(255,255,255,.18);
  color          : #ffffff !important;
  font-family    : var(--sans);
  font-size      : .85rem;
  font-weight    : 600;
  border-radius  : 8px;
  text-decoration: none;
  white-space    : nowrap;
  flex-shrink    : 0;
  transition     : background .15s, border-color .15s, transform .15s, box-shadow .15s;
  box-shadow     : 0 2px 12px rgba(0,0,0,.3);
  letter-spacing : .15px;
}
.nav-cta:hover {
  background  : #061413;
  border-color: rgba(255,255,255,.3);
  transform   : translateY(-1px);
  box-shadow  : 0 4px 18px rgba(0,0,0,.45);
}
.nav-cta::after { display: none !important; }

/* ── Track Booking pill ──────────────────────────────────────────── */
.nav-track {
  display        : inline-flex;
  align-items    : center;
  gap            : 5px;
  padding        : 7px 16px;
  background     : rgba(255,255,255,.1);
  border         : 1.5px solid rgba(255,255,255,.2);
  color          : #ffffff !important;
  font-family    : var(--sans);
  font-size      : .82rem;
  font-weight    : 600;
  border-radius  : 8px;
  text-decoration: none;
  white-space    : nowrap;
  flex-shrink    : 0;
  transition     : background .18s, border-color .18s;
  letter-spacing : .1px;
}
.nav-track:hover {
  background  : rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.35);
}
.nav-track::after { display: none !important; }

/* ── Social icons ────────────────────────────────────────────────── */
.nav-socials {
  display    : flex;
  align-items: center;
  gap        : 14px;
  flex-shrink: 0;
}
.nav-socials a {
  color      : rgba(255,255,255,.5);
  font-size  : 1.05rem;
  transition : color .15s, transform .15s;
  line-height: 1;
}
.nav-socials a:hover {
  color    : #ffffff;
  transform: translateY(-2px);
}

/* ── Vertical divider ────────────────────────────────────────────── */
.nav-divider {
  width      : 1px;
  height     : 28px;
  background : rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ── Hamburger ───────────────────────────────────────────────────── */
#navHamburger {
  display        : none;
  flex-direction : column;
  justify-content: center;
  align-items    : center;
  gap            : 5px;
  width          : 40px;
  height         : 40px;
  background     : none;
  border         : none;
  cursor         : pointer;
  padding        : 6px;
  border-radius  : 8px;
  flex-shrink    : 0;
  transition     : background .15s;
}
#navHamburger:hover { background: rgba(0,0,0,.2); }
#navHamburger span {
  display         : block;
  width           : 22px;
  height          : 2px;
  background      : #ffffff;
  border-radius   : 99px;
  transform-origin: center;
  transition      : transform .3s, opacity .3s, width .3s;
}
#navHamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navHamburger.open span:nth-child(2) { opacity: 0; width: 0; }
#navHamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════════════
   MOBILE DRAWER — same teal-900 as nav
══════════════════════════════════════════════════════════════════ */
#mobileDrawer {
  position    : fixed;
  top         : var(--nav-height);
  left        : 0;
  width       : 100%;
  background  : black;             /* slightly lighter than nav for depth */
  border-bottom: 1px solid rgba(0,0,0,.3);
  box-shadow  : 0 12px 40px rgba(0,0,0,.45);
  z-index     : 999;
  overflow    : hidden;
  max-height  : 0;
  transition  : max-height .38s cubic-bezier(.4,0,.2,1);
}
#mobileDrawer.open { max-height: 640px; }

.mobile-drawer-inner {
  padding       : 16px 20px 28px;
  display       : flex;
  flex-direction: column;
  gap           : 3px;
}

/* Drawer links */
.mobile-drawer-inner a {
  display        : flex;
  align-items    : center;
  gap            : 12px;
  padding        : 13px 16px;
  color          : rgba(255,255,255,.78);
  font-family    : var(--sans);
  font-size      : .92rem;
  font-weight    : 500;
  text-decoration: none;
  border-radius  : 9px;
  transition     : background .15s, color .15s;
  border         : 1px solid transparent;
}
.mobile-drawer-inner a:hover {
  background  : rgba(0,0,0,.2);
  color       : #ffffff;
  border-color: rgba(255,255,255,.08);
}
.mobile-drawer-inner a.active {
  background  : rgba(0,0,0,.25);
  color       : #ffffff;
  border-color: rgba(255,255,255,.12);
}
.mobile-drawer-inner a i {
  font-size  : 1rem;
  width      : 20px;
  text-align : center;
  color      : rgba(255,255,255,.65);
  flex-shrink: 0;
}

/* Drawer divider */
.mobile-drawer-divider {
  height    : 1px;
  background: rgba(255,255,255,.1);
  margin    : 8px 0;
}

/* CTA row */
.mobile-cta-row {
  display   : flex;
  gap       : 10px;
  margin-top: 6px;
  flex-wrap : wrap;
}
.mobile-cta-row a {
  flex           : 1;
  min-width      : 120px;
  text-align     : center;
  justify-content: center;
  border-radius  : 9px;
}

/* Social icons */
.mobile-socials {
  display    : flex;
  gap        : 18px;
  padding    : 14px 16px 4px;
  align-items: center;
}
.mobile-socials a {
  color        : rgba(255,255,255,.45);
  font-size    : 1.1rem;
  transition   : color .15s;
  border       : none !important;
  background   : none !important;
  padding      : 0 !important;
  border-radius: 0 !important;
}
.mobile-socials a:hover { color: #ffffff; }


/* ══════════════════════════════════════════════════════════════════
   PAGE OFFSET
══════════════════════════════════════════════════════════════════ */
.nav-offset { height: var(--nav-height); }


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  #mainNavbar  { padding: 0 24px; gap: 16px; }
  .nav-links a { padding: 7px 10px; font-size: .83rem; }
  .nav-socials { display: none; }
  .nav-divider { display: none; }
}
@media (max-width: 900px) {
  .nav-track { display: none; }
}
@media (max-width: 768px) {
  #mainNavbar {
    height : var(--nav-height-mob);
    padding: 0 18px;
    gap    : 12px;
  }
  .nav-offset   { height: var(--nav-height-mob); }
  #mobileDrawer { top: var(--nav-height-mob); }
  .nav-links    { display: none; }
  .nav-cta      { display: none; }
  .nav-track    { display: none; }
  .nav-socials  { display: none; }
  .nav-divider  { display: none; }
  #navHamburger { display: flex; }
}