/* Site nav — logo on the left; call icon + "Plan my party" + hamburger on the right.
   Every link lives in the drawer, which slides in from the RIGHT (500ms) at every
   breakpoint: a side panel on desktop, full-width on phones. */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  font-family: "Fredoka", "Poppins", sans-serif;
  border-bottom: 3px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
/* top-down scrim keeps the logo/buttons legible over any hero photo */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--pink);
}
.nav.is-scrolled::before { opacity: 0; }

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.8rem 5vw;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.nav-brand .brand-logo {
  height: 30px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.nav-brand:hover .brand-logo { transform: scale(1.04); }

/* ---- call icon → straight to the dialer ---- */
.nav-call {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--cyan);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-call svg { width: 19px; height: 19px; }
.nav-call:hover { background: var(--cyan); color: var(--ink); transform: translateY(-2px); }

.nav-cta {
  padding: 0.6rem 1.3rem;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--cyan);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(238, 42, 123, 0.55); }
.nav-cta::after { content: "→"; transition: transform 0.18s ease; }
.nav-cta:hover::after { transform: translateX(3px); }

/* ---- hamburger — shown at every breakpoint now ---- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  min-height: 42px;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 260; /* above the open drawer so it stays tappable */
  transition: background 0.22s ease, transform 0.18s ease;
}
.nav-toggle.open { background: #fff; color: var(--ink); border-color: var(--pink); }
.nav-toggle .bars { width: 16px; height: 12px; position: relative; flex-shrink: 0; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars > span {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease, width 0.32s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars > span { top: 5px; display: block; width: 11px; }
.nav-toggle .bars::after { bottom: 0; width: 14px; }
.nav-toggle.open .bars::before { transform: translateY(5px) rotate(45deg); width: 16px; }
.nav-toggle.open .bars::after { transform: translateY(-5px) rotate(-45deg); width: 16px; }
.nav-toggle.open .bars > span { opacity: 0; transform: translateX(-10px); }

.nav-toggle .lbl-menu,
.nav-toggle .lbl-close { transition: opacity 0.18s ease, transform 0.22s ease; }
.nav-toggle .lbl-close { position: absolute; right: 15px; opacity: 0; transform: translateY(4px); }
.nav-toggle.open .lbl-menu { opacity: 0; transform: translateY(-4px); }
.nav-toggle.open .lbl-close { opacity: 1; transform: translateY(0); }

/* ---- dimmer behind the drawer; click to close ---- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 240;
}
body.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ============================================================
   DRAWER — slides in from the right at every breakpoint
   ============================================================ */
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(238, 42, 123, 0.30), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 222, 89, 0.20), transparent 60%),
    radial-gradient(ellipse at 45% 55%, rgba(0, 172, 220, 0.16), transparent 70%),
    var(--ink);
  padding: calc(76px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  z-index: 250;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* 500ms slide-in */
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5);
}
.nav-links.open { transform: translateX(0); }

/* halftone dot texture */
.nav-links::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.6;
}

/* round close button, top-right of the panel */
.nav-menu-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.nav-menu-close svg { width: 20px; height: 20px; }

/* eyebrow line */
.nav-links .menu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.nav-links.open .menu-eyebrow { opacity: 1; transform: translateY(0); }
.nav-links .menu-eyebrow .dot { width: 7px; height: 7px; background: var(--pink); border-radius: 50%; }

/* character peek, behind the links */
.nav-links .menu-peek {
  position: absolute;
  top: calc(40px + env(safe-area-inset-top));
  right: -46px;
  width: 180px;
  height: auto;
  z-index: 0;
  opacity: 0;
  transform: translateX(40px) translateY(-10px) rotate(6deg);
  transition: opacity 0.6s ease 0.25s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.nav-links.open .menu-peek { opacity: 0.95; transform: translateX(0) translateY(0) rotate(6deg); }

/* numbered package links */
.nav-links .menu-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 2;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}
.nav-links.open .menu-link { opacity: 1; transform: translateY(0); }
.nav-links.open .menu-link:nth-of-type(1) { transition-delay: 0.20s, 0.20s, 0s; }
.nav-links.open .menu-link:nth-of-type(2) { transition-delay: 0.27s, 0.27s, 0s; }
.nav-links.open .menu-link:nth-of-type(3) { transition-delay: 0.34s, 0.34s, 0s; }
.nav-links.open .menu-link:nth-of-type(4) { transition-delay: 0.41s, 0.41s, 0s; }
.nav-links.open .menu-link:nth-of-type(5) { transition-delay: 0.48s, 0.48s, 0s; }

.nav-links .menu-link .num {
  font-family: "Poppins", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.14em;
  transition: color 0.18s ease, transform 0.22s ease;
}
.nav-links .menu-link .title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.01em;
}
.nav-links .menu-link .sub {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  color: var(--cyan);
  line-height: 1;
}
.nav-links .menu-link:hover .num,
.nav-links .menu-link:active .num { color: var(--pink); transform: translateX(2px); }
.nav-links .menu-link:hover .title,
.nav-links .menu-link:active .title { color: var(--yellow); }

/* bottom block: CTA + call number + socials */
.nav-links .menu-bottom {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.nav-links .menu-cta {
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  padding: 15px 26px;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(238, 42, 123, 0.5);
  transition: background 0.18s ease, transform 0.22s ease;
}
.nav-links .menu-cta:hover { transform: translateY(-2px); }

.nav-links .menu-call {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links .menu-call span { color: var(--yellow); }

.nav-links .menu-social { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.nav-links .menu-social .ms {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.22s ease, border-color 0.18s ease;
}
.nav-links .menu-social .ms svg { width: 18px; height: 18px; }
.nav-links .menu-social .ms:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }

.nav-links .menu-foot {
  font-family: "Poppins", sans-serif;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}
.nav-links .menu-foot em { font-style: normal; color: #fff; font-weight: 600; text-transform: none; }

/* ---- phones: tighten the bar so logo + call + CTA + burger still fit ---- */
@media (max-width: 720px) {
  .nav-inner { padding: 0.7rem 5vw; gap: 0.5rem; }
  .nav-brand .brand-logo { height: 26px; }
  .nav-links { width: 100vw; }
}

/* phones: shrink everything just enough that logo + call + CTA + burger all fit */
@media (max-width: 560px) {
  .nav-inner { padding: 0.7rem 4vw; gap: 0.4rem; }
  .nav-brand .brand-logo { height: 21px; }
  .nav-call { width: 36px; height: 36px; }
  .nav-call svg { width: 17px; height: 17px; }
  .nav-cta { padding: 0.45rem 0.8rem; font-size: 0.72rem; }
  .nav-cta::after { display: none; } /* drop the arrow to buy width */
  .nav-toggle { padding: 8px 11px; gap: 0; font-size: 0.68rem; }
  .nav-toggle .lbl-menu, .nav-toggle .lbl-close { display: none; } /* icon-only burger */
}
