/* ============================================================
   The Spinnaker — canonical site navigation
   Single source of truth — loaded by every page including homepage.
   Mobile-first; burger ≤ 720px, inline links ≥ 720px.
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(7,19,31,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: -apple-system, "Inter", system-ui, sans-serif;
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  gap: 8px;
}

.nav-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo b { color: #f0a830; font-weight: 600; }

.nav-links {
  display: none;
  list-style: none;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: #f0a830; }
.nav-links a.cur { color: #f0a830; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #d4880e;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 44px;
}

.nav-phone:hover, .nav-phone:active { background: #f0a830; color: #07131f; }
.nav-phone svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,.85);
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger:hover { background: rgba(255,255,255,.08); }
.nav-burger svg { width: 22px; height: 22px; }

.nav-mob {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(5,12,22,.99);
  z-index: 9997;
  flex-direction: column;
  padding: 8px 20px 40px;
  overflow-y: auto;
}

/* When drawer is open, hide the AI chat fab so it doesn't sit on top */
body.nav-open #spin-fab { display: none !important; }

.nav-mob.open { display: flex; }

.nav-mob a {
  display: block;
  padding: 18px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-mob a:hover { color: #f0a830; }

.nav-mob-call {
  border: none !important;
  margin-top: 20px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #d4880e !important;
  padding: 18px !important;
  border-radius: 12px;
  font-size: 20px !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  color: #fff !important;
}

/* Body offset so fixed nav doesn't cover content.
   Scoped to pages that opt-in via class — homepage uses its own hero offset. */
body.has-fixed-nav { padding-top: 60px; }

@media (min-width: 720px) {
  .nav-burger { display: none; }
  .nav-links { display: flex; }
  .nav-mob { display: none !important; }
}

/* Mobile-first safety: the burger button MUST be tappable.
   Guarantee tap area + that nothing covers it. */
.nav-burger {
  -webkit-tap-highlight-color: rgba(255,255,255,.1);
  touch-action: manipulation;
  position: relative;
  z-index: 9999;
}
.nav-mob {
  -webkit-overflow-scrolling: touch;
}
.nav-mob a {
  touch-action: manipulation;
}
html { overflow-x: hidden; }
body { overflow-x: hidden; }
