/* ============================================
   NAVBAR.CSS — Navigation Bar
   Wedding Wow Creations | Luxury Wedding Planning
   ============================================ */

#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1160px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(253, 248, 242, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(61, 43, 31, 0.10);
  border: 1px solid rgba(201, 168, 76, 0.18);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  will-change: transform;
  isolation: isolate;
}

#navbar.scrolled {
  background: rgba(253, 248, 242, 0.96);
  box-shadow: 0 4px 32px rgba(61, 43, 31, 0.14);
  padding: 10px 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.nav-logo-mark {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-logo-tagline {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rose);
}

.nav-links a:active {
  opacity: 0.6;
}

/* CTA */
.nav-cta {
  display: flex;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  /* above mobile-nav overlay */
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Animate hamburger → X when nav open */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE FULLSCREEN NAV
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1050;
  /* above navbar (1000) and hamburger (1100 only when needed) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  /* slide in from top */
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
  opacity: 0;
}

/* open state — triggered by JS adding .open */
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--text);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--rose);
}

/* Close button — top-right of overlay */
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 1060;
  transition: background 0.2s, transform 0.2s;
}

.mobile-nav-close:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

/* Prevent body scroll when nav open */
body.nav-open {
  overflow: hidden;
}