/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --primary: #E35DB5;
  --primary-dark: #C1449A;
  --primary-rgb: 227, 93, 181;
  --purple: #4A0A5E;
  --purple-rgb: 74, 10, 94;
  --purple-deep: #2A0637;
  --night: #0D0014;
  --white: #FFFFFF;
  --dark-card: rgba(255, 255, 255, 0.06);
  --dark-border: rgba(255, 255, 255, 0.12);
  --text-muted: #D9C6E0;
  --text-subtle: #BFA8C9;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--night); color: var(--white); font-family: var(--font-body); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
section[id] { scroll-margin-top: 80px; }

h1 { font-size: clamp(2rem, 5vw, 3.75rem);   font-weight: 700; line-height: 1.1;  letter-spacing: -0.01em; font-family: var(--font-heading); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-family: var(--font-heading); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem);  font-weight: 600; line-height: 1.25; font-family: var(--font-heading); }
p  { font-size: clamp(1rem, 1.5vw, 1.1rem);   line-height: 1.65; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-muted); margin-top: 1rem; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600;
  padding: 0.85rem 2.1rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--purple); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
/* Floats over the hero at the top of the page (no background, no line);
   JS adds .is-scrolled once the page moves, fading in the frosted bar. */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 0, 20, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--dark-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.nav-logo img { height: 42px; width: auto; }
/* Home page logo handoff: the nav logo stays hidden while the hero logo is the
   logo; once the header docks (first scroll), the hero logo flies into the bar. */
.logo-handoff .nav-logo img { opacity: 0; }
.logo-handoff .nav-logo { pointer-events: none; }
.logo-handoff.logo-docked .nav-logo img { opacity: 1; }
.logo-handoff.logo-docked .nav-logo { pointer-events: auto; }
.logo-handoff.logo-docked .hero-logo,
.logo-flying .hero-logo,
.logo-flying .nav-logo img { visibility: hidden; }
.logo-flyer {
  position: fixed; left: 0; top: 0; z-index: 1001;
  max-width: none; pointer-events: none; transform-origin: 0 0; will-change: transform;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 1rem; font-weight: 700; color: #E6D6EC; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta { padding: 0.55rem 1.4rem; font-size: 1rem; }
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--primary); color: white;
  transition: background 0.2s; flex-shrink: 0;
}
.nav-social:hover { background: var(--primary-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.65, 0, .35, 1), opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu: a dropdown panel anchored under the sticky header (top: 100%). */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  max-height: calc(100svh - 72px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1rem 1.25rem 1.5rem;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(var(--primary-rgb), 0.22), transparent 60%),
    linear-gradient(to bottom, var(--purple-deep) 0%, var(--purple) 100%);
  border-bottom: 3px solid var(--primary);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  visibility: hidden;
  clip-path: inset(0 0 100% 0 round 0 0 24px 24px);
  transition: clip-path 0.45s cubic-bezier(.65, 0, .35, 1), visibility 0s linear 0.45s;
}
.mobile-menu.open {
  visibility: visible;
  clip-path: inset(0 0 0 0 round 0 0 24px 24px);
  transition: clip-path 0.5s cubic-bezier(.65, 0, .35, 1), visibility 0s;
}
.mobile-menu a {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem; color: var(--white);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
/* candy-colored dot per link */
.mobile-menu a::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--dot, var(--primary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--primary)) 25%, transparent);
}
.mobile-menu a:nth-child(5n+2) { --dot: #4FB8F0; }
.mobile-menu a:nth-child(5n+3) { --dot: #FF8A3D; }
.mobile-menu a:nth-child(5n+4) { --dot: #5DD39E; }
.mobile-menu a:nth-child(5n+5) { --dot: #F7B731; }
/* chevron */
.mobile-menu a::after {
  content: ''; margin-left: auto; width: 9px; height: 9px;
  border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.5;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--primary); }
/* last link (Order Now) becomes the big pink button */
.mobile-menu a:last-child {
  justify-content: center; margin-top: 0.75rem;
  background: var(--primary); color: var(--white); border-radius: 999px;
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.45);
}
.mobile-menu a:last-child::before, .mobile-menu a:last-child::after { display: none; }
.mobile-menu a:last-child:hover { background: var(--primary-dark); color: var(--white); }
/* links drop in one after another on open, all leave together on close */
.mobile-menu.open a { opacity: 1; transform: none; transition-duration: 0.4s; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.17s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.27s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.37s; }
.mobile-menu.open a:hover { transition-delay: 0s; }
/* dims the page behind the open menu */
.menu-scrim {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(13, 0, 20, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.menu-scrim.open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, var(--night) 0%, var(--purple) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-candy-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ============================================================
   FALLING CANDY (fixed layer, loops down the whole site)
   ============================================================ */
.candy-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.candy-layer.back  { z-index: 1; }   /* between section backgrounds and content */
.candy-layer.front { z-index: 900; } /* over content, under the nav */
.candy-layer.back .candy img { opacity: 0.8; }

/* Drag & toss */
.candy-layer .candy { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.candy-layer .candy img { transition: transform 0.15s ease; -webkit-user-drag: none; }
.candy-layer .candy.grabbed { cursor: grabbing; }
.candy-layer .candy.grabbed img { transform: scale(1.12); }

/* Content sits above the back candy layer */
.container, .gallery-marquee, .trust-track, .marquee-track { position: relative; z-index: 2; }
.candy { position: absolute; left: 0; top: 0; will-change: transform; }
.candy img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}
.hero-candy-layer .candy { left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r)); }

@keyframes candy-float {
  0%   { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-22px) rotate(5deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; min-width: 0; width: 100%; }
.hero h1 { margin: 0 auto; }
/* The logo glow is baked into sugar-shack-queen-glow.png (1023x479: the 799x255
   logo plus 112px of glow room) -- a CSS drop-shadow showed a square edge on mobile.
   --logo-w is the visible logo width; the image is scaled up so the logo part matches,
   negative margins cancel the glow room, and translate keeps it centered. */
.hero-logo {
  --logo-w: min(640px, 88vw);
  width: calc(var(--logo-w) * 1023 / 799); max-width: none; height: auto;
  margin: calc(var(--logo-w) * -112 / 799) 0 calc(var(--logo-w) * -112 / 799) 50%;
  translate: -50% 0;
  pointer-events: none;
  animation: logo-in 1.2s ease 0.4s both;
}
@keyframes logo-in { from { opacity: 0; } to { opacity: 1; } }

.hero-tagline {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: #F6D9EE;
  margin-top: 1.25rem;
  animation: logo-in 1.2s ease 0.9s both;
}
.hero-sub {
  color: var(--text-muted); max-width: 520px; margin: 0.75rem auto 0;
  animation: logo-in 1.2s ease 1.1s both;
}
.hero-buttons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem;
  margin-top: 2.25rem;
  animation: logo-in 1.2s ease 1.3s both;
}
.hero-buttons .btn { min-width: 190px; }

/* ============================================================
   MENU
   ============================================================ */
.menu {
  background: linear-gradient(to bottom, var(--purple) 0%, var(--purple-deep) 100%);
  padding: 5rem 0 6rem;
}
/* Menu cards are styled as candy wrappers: a colored band with crimped
   edges top and bottom, the candy popping out of the top, and a price sticker.
   Each card sets --c (accent color) and --band (wrapper band fill). */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4.5rem 2rem; padding-top: 3.5rem; align-items: start;
}
.menu-item { --c: var(--primary); --band: linear-gradient(var(--c), var(--c)); }
.menu-item.is-blue { --c: #4FB8F0; --band: linear-gradient(var(--c), var(--c)); }
.menu-item.is-orange { --c: #FF8A3D; --band: linear-gradient(var(--c), var(--c)); }
.menu-item.is-mint { --c: #5DD39E; --band: linear-gradient(var(--c), var(--c)); }
.menu-item.is-rainbow {
  --c: #F7B731;
  --band: linear-gradient(90deg, #E35DB5, #FF8A3D, #F7B731, #5DD39E, #4FB8F0, #9B6BE3);
}
.menu-card {
  position: relative;
  padding: 3.5rem 1.75rem 2.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.28) 0 6px, transparent 6px 14px) top / 100% 16px no-repeat,
    var(--band) top / 100% 16px no-repeat,
    repeating-linear-gradient(45deg, rgba(255,255,255,0.28) 0 6px, transparent 6px 14px) bottom / 100% 16px no-repeat,
    var(--band) bottom / 100% 16px no-repeat,
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%),
    var(--purple-deep);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
  display: flex; flex-direction: column; align-items: center;
}
/* crimped wrapper edges */
.menu-card::before, .menu-card::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background: var(--band);
}
.menu-card::before {
  top: -10px;
  -webkit-mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 16px 100%;
          mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 16px 100%;
}
.menu-card::after {
  bottom: -10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 16px 100%;
}
.menu-card:hover { box-shadow: 0 26px 60px color-mix(in srgb, var(--c) 40%, transparent); }
.menu-card-icon { margin: -7.5rem 0 0.75rem; }
.menu-card-icon img {
  width: 120px; height: 120px; object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.menu-card:hover .menu-card-icon img { transform: rotate(-12deg) scale(1.1); }
.menu-card h3 { margin-bottom: 0.6rem; }
.menu-card p { color: var(--text-muted); }
/* price sticker */
.menu-price {
  position: absolute; top: -1.75rem; right: -0.75rem;
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--c); color: var(--night);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.05;
  box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 6px rgba(13, 0, 20, 0.35), 0 8px 18px rgba(0, 0, 0, 0.4);
  transform: rotate(12deg);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.menu-price.is-text { font-size: 0.85rem; padding: 0 0.8rem; }
.menu-card:hover .menu-price { transform: rotate(-6deg) scale(1.08); }
.menu-card .badge {
  position: absolute; top: 1.5rem; left: -0.6rem;
  background: var(--white); color: var(--purple);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.menu-card .flavor-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem;
  width: 100%; border-top: 2px dashed color-mix(in srgb, var(--c) 45%, transparent);
}
.menu-card .flavor-list li {
  font-size: 0.9rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
}
.menu-card .flavor-list li::before { background: var(--c); width: 6px; height: 6px; }

/* desktop: tossed-on-the-counter tilt, straightens up on hover */
@media (min-width: 961px) {
  .menu-grid .menu-item:nth-child(1) .menu-card { transform: rotate(-2.5deg); }
  .menu-grid .menu-item:nth-child(2) .menu-card { transform: rotate(1.5deg) translateY(2.5rem); }
  .menu-grid .menu-item:nth-child(3) .menu-card { transform: rotate(-1deg) translateY(0.75rem); }
  .menu-grid .menu-item .menu-card:hover { transform: rotate(0) translateY(-10px) scale(1.03); }
  .menu .menu-extras { margin-top: 5.5rem; }
}

.menu-extras { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; margin-top: 2.5rem; }
.menu-extra {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--dark-border);
  border-radius: 16px; padding: 2rem;
}
.menu-extra h3 { margin-bottom: 1rem; }
.menu-extra p { color: var(--text-muted); }
.fruit-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.flavor-list { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--dark-border); display: grid; gap: 0.45rem; }
.flavor-list li { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1rem; }
.flavor-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.fruit-chips li {
  font-size: 1rem; font-weight: 700;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { overflow: hidden; padding: 1.5rem 0; background: var(--primary); }
.trust-track { display: flex; width: max-content; animation: trust-scroll 24s linear infinite; }
.trust-set { display: flex; }
.trust-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 2.5rem; white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white); flex-shrink: 0;
}
.trust-item svg { width: 28px; height: 28px; flex-shrink: 0; }
.trust-item-text strong { display: block; font-family: var(--font-heading); font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600; line-height: 1.2; }
.trust-item-text span { font-size: 1rem; opacity: 0.9; }
@keyframes trust-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   HOW TO ORDER
   ============================================================ */
.how { background: var(--purple-deep); padding: 5rem 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step {
  text-align: center; padding: 2rem 1.25rem;
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.2);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); }
.how-note { text-align: center; color: var(--text-muted); max-width: 640px; margin: 2.5rem auto 0; }

/* ============================================================
   EVENTS & CATERING
   ============================================================ */
.events {
  position: relative; overflow: hidden; padding: 8rem 0;
  background: var(--purple-deep);
}
/* Photo layer: taller than the section so parallax never runs out of image,
   tint baked in, and a mask that fades its top and bottom into --purple-deep
   (the section background, which matches How to Order and About), so no photo
   edge is ever visible no matter how far it shifts. */
.events-photo {
  position: absolute; left: 0; right: 0; top: -20%; bottom: -20%; z-index: 0;
  background:
    linear-gradient(to right, rgba(13, 0, 20, 0.82) 0%, rgba(13, 0, 20, 0.5) 45%, rgba(var(--purple-rgb), 0.2) 100%),
    url('../assets/sugar-shack-prod6-1800.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 17%, #000 30%, #000 70%, transparent 83%);
          mask-image: linear-gradient(to bottom, transparent 17%, #000 30%, #000 70%, transparent 83%);
  will-change: transform;
}
.events-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.events-copy p { color: rgba(255, 255, 255, 0.9); margin-top: 1rem; }
.events-copy .btn { margin-top: 2rem; }
.event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.event-list li {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; padding: 1rem 1.15rem;
  font-weight: 700; font-size: 1.05rem;
}
.event-list svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(to bottom, var(--purple-deep) 0%, var(--purple) 100%); padding: 6rem 0; }
.about-inner { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.about-photo .about-candy { position: absolute; width: 120px; height: auto; right: -30px; bottom: -30px; aspect-ratio: auto; box-shadow: none; border-radius: 0; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4)); animation: candy-float 3.4s ease-in-out infinite alternate; }
.about-copy p { color: rgba(255, 255, 255, 0.9); margin-top: 1rem; }
.about-checks { margin-top: 1.75rem; display: grid; gap: 0.85rem; }
.about-checks li { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.05rem; }
.about-checks svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.about-copy .btn { margin-top: 2rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: linear-gradient(to bottom, var(--purple) 0%, var(--purple-deep) 100%); padding: 5rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: 14px; height: 300px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-marquee { display: none; }
.gallery-marquee-track { display: flex; width: max-content; animation: gallery-scroll 24s linear infinite; }
.gallery-marquee-set { display: flex; }
.gallery-marquee-item {
  width: 75vw; height: 56vw; max-width: 320px; max-height: 240px;
  flex-shrink: 0; margin-right: 0.75rem; border-radius: 12px; overflow: hidden;
}
.gallery-marquee-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes gallery-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.service-area { background: var(--primary); overflow: hidden; padding: 1.25rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 40s linear infinite; }
.marquee-set { display: flex; }
.marquee-item {
  padding: 0 2.5rem; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   ORDER CTA
   ============================================================ */
.order {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(to bottom, var(--purple-deep) 0%, var(--night) 100%);
  padding: 6rem 0;
}
.order-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.order p { color: var(--text-muted); margin-top: 1rem; }
.order-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.order-details li {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1rem;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  padding: 0.6rem 1.1rem; border-radius: 999px;
}
.order-details svg { width: 20px; height: 20px; color: var(--primary); }
.order-candy { position: absolute; z-index: 1; width: 140px; opacity: 0.85; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4)); animation: candy-float 3.8s ease-in-out infinite alternate; }
.order-candy.left { left: 6%; top: 18%; }
.order-candy.right { right: 6%; bottom: 14%; animation-duration: 4.4s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #08000C; border-top: 1px solid #22102A; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-subtle); max-width: 320px; }
.footer h4 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer ul { display: grid; gap: 0.6rem; }
.footer a, .footer address { color: var(--text-subtle); font-size: 1rem; font-style: normal; transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer address { display: grid; gap: 0.6rem; }
.footer-bottom {
  border-top: 1px solid #22102A; margin-top: 3rem; padding: 1.5rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: var(--text-subtle); font-size: 1rem;
}
.footer-bottom a { color: var(--white); }

/* ============================================================
   MOBILE FLOATING MESSAGE BUTTON
   ============================================================ */
.mobile-msg-btn {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: white;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-msg-btn:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.mobile-msg-btn svg { width: 28px; height: 28px; }

/* ============================================================
   CANDY MUNCHER (feed him candy, bottom-right)
   ============================================================ */
.muncher {
  position: fixed; right: 1.25rem; bottom: 0.75rem; z-index: 899;
  width: 92px; pointer-events: none;
}
.m-grow {
  transform: scale(var(--grow, 1));
  transform-origin: 85% 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.muncher svg {
  width: 100%; height: auto; overflow: visible; display: block;
  transform-origin: 50% 100%;
  animation: m-breathe 2.6s ease-in-out infinite;
}
.muncher.chomp svg { animation: m-chomp 0.6s ease; }
.m-eyes { transform-box: fill-box; transform-origin: center; animation: m-blink 4.5s infinite; }
.m-mouth-closed, .m-mouth-open { transform-box: fill-box; transform-origin: center; transition: opacity 0.15s, transform 0.15s; }
.m-mouth-open { opacity: 0; transform: scale(0.3); }
.muncher.hungry .m-mouth-open { opacity: 1; transform: scale(1); }
.muncher.hungry .m-mouth-closed { opacity: 0; }
.m-pupils { transition: transform 0.12s ease-out; }

.muncher-bubble {
  position: absolute; bottom: calc(100% * var(--grow, 1) + 0.25rem); right: 40%;
  transition: opacity 0.2s, transform 0.2s, bottom 0.6s ease;
  background: var(--white); color: var(--purple);
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: 0.4rem 0.85rem; border-radius: 14px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(6px);
}
.muncher-bubble::after {
  content: ''; position: absolute; top: 100%; right: 1rem;
  border: 7px solid transparent; border-top-color: var(--white);
}
.muncher-bubble.show { opacity: 1; transform: none; }

@keyframes m-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes m-chomp {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.15, 0.86); }
  50%  { transform: scale(0.94, 1.08); }
  75%  { transform: scale(1.06, 0.95); }
  100% { transform: scale(1, 1); }
}

/* ============================================================
   INNER PAGE HERO + ACTIVE NAV LINK (menu.html)
   ============================================================ */
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--primary); }
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(to bottom, var(--night) 0%, var(--purple) 100%);
  padding: 6rem 1.5rem 3rem;
}
.page-hero .hero-content { margin: 0 auto; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-hero + .menu { padding-top: 2rem; }
.menu-card[id] { scroll-margin-top: 180px; }
.menu-extra[id] { scroll-margin-top: 100px; }

/* ============================================================
   FULL MENU PAGE -- photo + wrapper card per item
   ============================================================ */
.menu-card:not([data-scroll]) { cursor: auto; }
.menu-page { padding-bottom: 6rem; }
.feature {
  display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center;
  padding-top: 5rem; margin-bottom: 3rem; scroll-margin-top: 60px;
}
.feature.is-flipped .feature-photo { order: 2; }
.feature-photo {
  position: relative; z-index: 2; margin: 0;
  width: 100%; max-width: 440px; justify-self: center;
  background: var(--white); padding: 12px 12px 0; border-radius: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.feature.is-flipped .feature-photo { transform: rotate(3deg); }
.feature-photo:hover { transform: rotate(0) scale(1.02); }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.feature-photo img.crop-right { object-position: 85% 50%; }
.feature-photo figcaption {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  color: var(--purple); text-align: center; padding: 0.7rem 0 0.9rem;
}
/* tape strip on the photo */
.feature-photo::before {
  content: ''; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 255, 255, 0.55); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.feature-card { padding: 4rem 2.5rem 2.75rem; }
.feature-card h2 { margin-bottom: 0.6rem; }
.menu-duo h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 0.6rem; }
.flavor-count {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c);
}
.feature-card .flavor-list { margin-top: 0.75rem; }
.menu-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem 2.5rem;
  align-items: start; padding-top: 10rem;
}
.menu-duo .menu-item { scroll-margin-top: 140px; }
@media (min-width: 961px) {
  .menu-page .menu-card:hover { transform: translateY(-6px); }
}
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 9rem; padding-top: 3rem; }
  .feature.is-flipped .feature-photo { order: 0; }
  .feature-photo { max-width: 380px; width: 100%; margin: 0 auto; }
  .menu-duo { grid-template-columns: 1fr; padding-top: 9rem; gap: 9rem; }
}
@media (max-width: 480px) {
  .feature-card { padding: 4rem 1.25rem 2.5rem; }
}

/* ============================================================
   SPLASH SCREEN -- logo, then the three treat types, then fades
   out to the hero. Only rendered when <html> has .show-splash.
   ============================================================ */
.splash { display: none; }
.show-splash .splash {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s;
}
/* backdrop lives on ::before so it can fade while the logo keeps flying */
.show-splash .splash::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(var(--primary-rgb), 0.28), transparent 70%),
    linear-gradient(to bottom, var(--night) 0%, var(--purple) 100%);
  transition: opacity 0.9s ease;
}
.splash-inner { position: relative; }
.show-splash .splash.is-done { opacity: 0; visibility: hidden; }
/* fly-to-hero handoff: backdrop and treat line fade, logo glides into place */
.splash.is-flying { pointer-events: none; }
.splash.is-flying::before { opacity: 0; }
.splash.is-flying .splash-line { opacity: 0; transition: opacity 0.3s ease; }
.splash-logo img {
  --logo-w: min(560px, 82vw);
  width: calc(var(--logo-w) * 1023 / 799); max-width: none; height: auto;
  margin: calc(var(--logo-w) * -112 / 799) auto;
}
.splash-logo.is-flying { transition: transform 1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.show-splash:not(.splash-lifted) body { overflow: hidden; }
.splash-logo {
  animation: splash-pop 0.9s cubic-bezier(.34,1.56,.64,1) 0.15s both;
}
.splash-line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem;
  max-width: calc(100vw - 3rem); margin: 1.5rem auto 0;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem); color: #F6D9EE;
}
.splash-line span { animation: splash-rise 0.6s ease both; }
.splash-line span:nth-child(1) { animation-delay: 0.9s; }
.splash-line span:nth-child(2) { animation-delay: 1.2s; }
.splash-line span:nth-child(3) { animation-delay: 1.5s; }
@keyframes splash-pop {
  from { opacity: 0; transform: scale(0.6) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes splash-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* the splash logo becomes the hero logo, so the hero logo skips its own
   fade and appears the instant the flying logo lands on it */
.show-splash .hero-logo { animation: none; opacity: 0; }
.show-splash.logo-landed .hero-logo { opacity: 1; }
/* hold the rest of the hero's fade-in until the splash lifts */
.show-splash:not(.splash-lifted) .hero-tagline,
.show-splash:not(.splash-lifted) .hero-sub,
.show-splash:not(.splash-lifted) .hero-buttons { animation-play-state: paused; }

/* ============================================================
   SCROLL FADE-IN-UP -- only hidden once JS adds .fade-ready,
   so content still shows if scripts fail. Uses the standalone
   `translate` property so it never fights an element's own transform.
   ============================================================ */
.fade-ready .fade-in {
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(.22, .8, .3, 1);
}
.fade-ready .feature-photo.fade-in {
  transition: opacity 0.7s ease, translate 0.8s cubic-bezier(.22, .8, .3, 1), transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.fade-ready .fade-in:not(.is-visible) { opacity: 0; translate: 0 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .events-inner, .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .events-photo {
    background:
      linear-gradient(rgba(13, 0, 20, 0.55), rgba(13, 0, 20, 0.55)),
      url('../assets/sugar-shack-prod4-1200.webp') center / cover no-repeat; /* tall shot suits a tall phone layout */
  }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { height: 34px; }

  .hero { padding: 4rem 1.25rem 5rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }

  .menu-extras { grid-template-columns: 1fr; }
  .menu-price { right: 0.5rem; top: -2.25rem; width: 80px; height: 80px; font-size: 1.3rem; }
  .menu-price.is-text { font-size: 0.75rem; }
  .event-list { grid-template-columns: 1fr; }

  .gallery-grid { display: none; }
  .gallery-marquee {
    display: block; width: 100vw; position: relative;
    left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    overflow: hidden;
  }

  .order-candy { width: 90px; opacity: 0.5; }
  .order-candy.left { left: -10px; top: 6%; }
  .order-candy.right { right: -10px; bottom: 6%; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .mobile-msg-btn { display: flex; right: auto; left: 1.25rem; }
  .muncher { width: 70px; right: 0.75rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .muncher { display: none; }
  .fade-ready .fade-in:not(.is-visible) { translate: none; }
  .mobile-menu, .mobile-menu a, .menu-scrim, .hamburger span { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .splash-logo, .splash-line span { animation: none; }
  .menu-card, .menu-card img, .menu-price { transition: none; }
  .candy, .candy img, .hero-logo, .hero-tagline, .hero-sub, .hero-buttons, .about-candy, .order-candy { animation: none; }
  .trust-track, .marquee-track, .gallery-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; padding: 0 1rem; }
  .trust-set[aria-hidden], .marquee-set[aria-hidden], .gallery-marquee-set[aria-hidden] { display: none; }
}
