/* ============================================
   nav.css — Universal Top Navigation
   Depends on global.css CSS variables
   ============================================ */

/* --- HEADER --- */
.site-header {
  position: sticky ;
  top: 0 ;
  z-index: 200 ;
  background: var(--navy, #0a1628);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5% ;
  height: 64px ;
  border-bottom: 1px solid rgba(200,150,62,0.2);
  box-shadow: 0 2px 16px rgba(10,22,40,0.25);
}
#top-nav-container {
  display: contents;
}
/* --- LOGO --- */
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img { height: 40px; display: block; }
.nav-logo-text {
  font-family: 'Sora', sans-serif; font-weight: 800;
  color: var(--gold-lt, #e8b86d); font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* --- NAV LINKS --- */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-item {
  color: rgba(255,255,255,0.68);
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 0.85rem; text-decoration: none;
  padding: 8px 16px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap; position: relative;
}
.nav-item:hover {
  color: var(--white, #fff);
  background: rgba(255,255,255,0.07);
}
/* Current page highlight */
.nav-item.active {
  color: var(--gold-lt, #e8b86d);
  background: rgba(200,150,62,0.1);
}
.nav-item.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 16px; right: 16px;
  height: 2px; background: var(--gold, #c8963e);
  border-radius: 2px 2px 0 0;
}

/* --- RIGHT SIDE --- */
.nav-right {
  display: flex; align-items: center; gap: 18px; flex-shrink: 0;
}
.nav-phone {
  color: rgba(255,255,255,0.65);
  font-family: 'Sora', sans-serif; font-weight: 500;
  font-size: 0.82rem; text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--gold-lt, #e8b86d); }
.nav-phone::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: nav-pulse 1.8s infinite;
}
@keyframes nav-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

.nav-cta-btn {
  background: var(--orange, #e8620a); color: #fff;
  padding: 8px 20px; border-radius: 6px; border: none;
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 0.82rem; cursor: pointer;
  letter-spacing: 0.04em; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta-btn:hover {
  background: var(--orange-h, #d4550a);
  transform: translateY(-1px);
}

/* --- HAMBURGER --- */
.nav-hamburger {
  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: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.75); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, width 0.25s;
  transform-origin: center;
}
/* Open state X icon */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- MOBILE DRAWER --- */
.nav-mobile-drawer {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  background: var(--navy, #0a1628);
  border-bottom: 2px solid rgba(200,150,62,0.25);
  box-shadow: 0 8px 32px rgba(10,22,40,0.4);
  display: flex; flex-direction: column;
  transform: translateY(-10px); opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile-drawer.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}

.nav-drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 5%;
  color: rgba(255,255,255,0.75);
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-drawer-item.active { color: var(--gold-lt, #e8b86d); }
.nav-drawer-item .material-symbols-outlined {
  font-size: 1.2rem; color: var(--gold, #c8963e);
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.nav-drawer-footer {
  padding: 16px 5%;
}
.nav-drawer-wa {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--orange, #e8620a); color: #fff;
  padding: 12px; border-radius: 7px; text-decoration: none;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-drawer-wa:hover { background: var(--orange-h, #d4550a); }
.nav-drawer-wa .material-symbols-outlined { font-size: 1.1rem; }

/* --- OVERLAY --- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 198;
  background: rgba(10,22,40,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-phone { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { gap: 10px; }
  .nav-cta-btn { font-size: 0.78rem; padding: 7px 14px; }
}
@media (max-width: 480px) {
  .nav-cta-btn { display: none; }
  .site-header { padding: 0 4%; }
}
