.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  animation: navFadeDown 0.8s both;
  /* GPU layer — prevents full-page repaint on every scroll frame */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#navbar {
  height: 80px;
  background: linear-gradient(135deg, #021B1A 0%, #021B1A 100%);
  border-bottom: 1px solid rgba(0,245,196,0.08);
  padding: 0 2rem;
  /* Contain stacking context */
  isolation: isolate;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.nav-logo-img {
  height: 55px;
  max-height: 55px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0,245,196,0.15));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(0,245,196,0.3));
  transform: scale(1.03);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,245,196,0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-main {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(248,248,244,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(248,248,244,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link.active {
  color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-whatsapp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,245,196,0.04);
  border: 1px solid rgba(0,245,196,0.08);
  color: rgba(248,248,244,0.45);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-whatsapp-nav:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--deep-navy);
  box-shadow: 0 0 20px rgba(0,245,196,0.2);
}

.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 1;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  opacity: 0.6;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open { overflow: hidden; }

/* ── Mobile overlay (hidden on desktop, shown in responsive.css) ── */
.nav-overlay {
  display: none;
}

.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: rgba(0,245,196,0.06);
  border: 1px solid rgba(0,245,196,0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(248,248,244,0.5);
  transition: background 0.2s, color 0.2s;
}
.nav-overlay-close:hover { background: rgba(0,245,196,0.12); color: #fff; }

@keyframes navFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
