/* =========================================================
   RCMA Valet - Global Navbar (Enhanced, 1200px breakpoint)
   ========================================================= */

:root {
  --bg: #000;
  --gold: #ffd700;
  --gold-2: #ffea70;
  --line: rgba(255,215,0,0.15);
  --border: rgba(255,215,0,0.25);
  --glass: rgba(15,15,15,0.42);
  --glass-strong: rgba(15,15,15,0.72);
  --blur: 12px;
  --text-light: #fff;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
  --nav-h: 72px; /* slightly taller for bigger logo */
}

/* ---------- Navbar Container ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 36px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 1500;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Stronger background once page is scrolled (hook if you add the class) */
.navbar.scrolled {
  background: var(--glass-strong);
  border-bottom-color: rgba(255,215,0,0.32);
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
}

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw, 2.4rem);
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  user-select: none;
  transition: transform .2s ease;
}
.logo span { color: var(--text-light); }
.logo:where(:hover,:focus-visible) { transform: scale(1.05); outline: none; }

/* ---------- Nav Links ---------- */
.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(28px, 3.8vw, 44px);
  margin: 0;
  padding: 0;
  align-items: center;
}

/* link base */
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding-inline: 4px;
  font-family: var(--font-body);
  color: #eaeaea;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.6px;
  transition: color .25s ease, transform .15s ease;
}

/* gold underline "pill" marker */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  margin-inline: auto;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transition: width .22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  transform: translateY(-1px);
  outline: none;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

/* active page */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* ---------- CTA Button ---------- */
.cta-btn {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  color: #000;
  border: none;
  cursor: pointer;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(255,215,0,0.45);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
/* pulsing glow */
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(255,215,0,0.55);
  opacity: 0;
  animation: pulseGold 3s ease-in-out infinite;
}
@keyframes pulseGold {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
/* Hover/focus: brighter & lifted */
.cta-btn:hover,
.cta-btn:focus-visible {
  background: linear-gradient(90deg, var(--gold-2), #fff380);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255,215,0,0.7);
  outline: none;
}

/* ---------- Hamburger (Mobile) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.hamburger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Mobile Panel + Responsive Scaling ---------- */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(0,0,0,0.92);
    border-bottom: 1px solid var(--border);
    padding: 24px 0 32px;
    animation: fadeInNav 0.25s ease forwards;
    z-index: 1499;
  }

  /* keep same layout, scale logo & CTA fluidly */
  .logo {
    font-size: clamp(1.2rem, 3.2vw, 2.2rem);
    letter-spacing: 1px;
    transform-origin: left center;
  }

  .cta-btn {
    padding: clamp(6px, 1.5vw, 14px) clamp(16px, 3vw, 28px);
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    border-radius: 12px;
    transform-origin: right center;
  }

  /* make sure the navbar height shrinks proportionally */
  .navbar {
    height: auto;
    min-height: 58px;
    padding: 10px clamp(12px, 2vw, 24px);
  }
}
