:root {
  --background: #01090f;
  --surface: #06131f;
  --primary-accent: #14b8a6;
  --secondary-accent: #e4576c;
  --text-light: #f5f7fa;
  --text-muted: #a2b0c6;

  /* Single source of truth for bar height */
  --nav-height: 84px;
}

/* Mobile bar height */
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }
}

/* Ensure [hidden] doesn't accidentally hide the nav */
[hidden]:not(.nav-links) {
  display: none !important;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  /* content offset below fixed nav */
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== NAVBAR (bar + row + logo only) ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: rgba(1, 9, 15, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.nav-container {
  width: 100%;
  max-width: none;
  margin: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 1rem;
}

/* Logo link: no padding, hugs left, fills bar height */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 0;
  padding: 0;
  margin-right: auto;
  position: relative;
  z-index: 1003;
  /* above dropdown */
}

/* Logo image: scale to bar height, keep aspect ratio, no inline-gap */
.logo-img {
  height: var(--nav-height);
  width: auto;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Links — desktop default (visible) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static;
  transform: none;
  pointer-events: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* Text logo (if used) */
.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-accent);
  white-space: nowrap;
}

/* Burger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: .5rem;
}

/* Hamburger bars */
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease, opacity .3s ease;
}

.nav-toggle .hamburger {
  position: relative;
}

.nav-toggle .hamburger::before {
  position: relative;
  top: -8px;
}

.nav-toggle .hamburger::after {
  position: relative;
  top: 8px;
}

.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Mobile overrides (≤768px) ===== */
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
  }

  /* Show burger on mobile */
  .nav-toggle {
    display: block;
  }

  /* Full-screen panel: hidden by default with transform */
  .nav-links {
    /* keep it in the DOM so transform animates */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 9, 15, 0.95);
    padding: 2rem 1rem;
    z-index: 1001;

    /* hidden state */
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, visibility 0s linear .3s;
  }

  /* Defensive: if someone leaves [hidden] on the UL, ignore it */
  .nav-links[hidden] {
    display: flex !important;
    /* so transform works */
  }

  /* open state */
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s ease;
  }

  .nav-links a {
    color: var(--text-light);
    font-size: 1.1rem;
  }

  .orb {
    display: none;
  }
}

/* Sections offset for anchor targets */
section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 9, 15, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.hero h1 {
  font-size: 3.5rem;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.countdown {
  font-size: 1.4rem;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background-color: var(--primary-accent);
  color: #0c222e;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--secondary-accent);
  color: var(--text-light);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6d6d, #b51e1e 70%);
  box-shadow: inset -12px -12px 25px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: float 12s ease-in-out infinite;
  overflow: visible;
}

.orb-a {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 5%;
}

.orb-b {
  width: 300px;
  height: 300px;
  bottom: 15%;
  right: 15%;
  animation-delay: 2s;
}

.orb::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 45%;
  width: 8px;
  height: 28px;
  background: #6d4c41;
  border-radius: 4px;
}

.orb::after {
  content: "";
  position: absolute;
  top: -32px;
  left: 35%;
  width: 45px;
  height: 25px;
  background: linear-gradient(to right, #6cc354, #369b36);
  border-radius: 50% 50% 0 50%;
  transform: rotate(-20deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-20px)
  }
}

/* Gallery */
.zoom-gallery {
  margin: 4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-zoom {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  margin: 2rem 0;
  opacity: 0;
  transform: scale(1.1) translateY(24px);
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(.2, .65, .2, 1);
}

.scroll-zoom.in-view {
  opacity: 1;
  transform: scale(1.1) translateY(0);
}

.scroll-zoom .overlay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.55);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  max-width: 90%;
}

/* Simple image zoom grid */
.zoom-panel {
  overflow: hidden;
  flex: 1 1 calc(33.333% - 1rem);
}

.zoom-panel img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.zoom-panel img:hover {
  transform: scale(1.1);
}

/* Reveal */
.reveal-up {
  list-style: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Key Info */
.key-info {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tickets .cta-btn {
  margin-top: 1.5rem;
}

/* Location images */
.location-images {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.location-images img {
  max-width: 20%;
  max-height: 50%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#location-text {
  margin-bottom: 0;
}

.location-images {
  margin-top: 0;
}

/* Lineup video */
.lineup-video {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.lineup-video video {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Apples */
.apple {
  position: absolute;
  width: clamp(120px, 16vw, 320px);
  aspect-ratio: 1 / 1;
  --apple-light: #ff7a7a;
  --apple-red: #e63a3a;
  --apple-dark: #a81b1b;
  --apple-blush: #ffb347;
  border-radius: 46% 54% 48% 52% / 54% 58% 42% 46%;
  background:
    radial-gradient(50% 50% at 70% 50%, var(--apple-blush) 0%, transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 25%) no-repeat,
    radial-gradient(120% 120% at 72% 28%, rgba(255, 255, 255, .75) 0 8%, rgba(255, 255, 255, 0) 10%) no-repeat,
    radial-gradient(100% 100% at 15% 85%, rgba(255, 255, 255, .12) 0 35%, transparent 45%) no-repeat,
    radial-gradient(60% 30% at 50% 6%, rgba(0, 0, 0, .28) 0 18%, transparent 30%) no-repeat,
    radial-gradient(120% 120% at 40% 60%, var(--apple-light) 0%, var(--apple-red) 44%, var(--apple-dark) 90%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 -14px 24px rgba(0, 0, 0, .35);
  pointer-events: none;
  z-index: 0;
  animation: appleBob 3s ease-in-out infinite, appleDrift 48s linear infinite;
}

.apple::before {
  content: "";
  position: absolute;
  width: 12%;
  height: 22%;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  top: -6%;
  background: linear-gradient(#6e4527, #3d2414);
  border-radius: 40% 40% 60% 60% / 80% 80% 20% 20%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  z-index: 1;
}

.apple::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 26%;
  left: 50%;
  top: -6%;
  background: radial-gradient(120% 140% at 30% 30%, #a7e07c 0%, #57bd57 40%, #2f7f2e 100%);
  border-radius: 10% 80% 60% 80% / 60% 90% 40% 90%;
  transform: rotate(-20deg);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .25);
  z-index: 1;
}

.apple .bottom-dimple {
  content: "";
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 5%;
  height: 2%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .35) 0%, transparent 80%);
  border-radius: 50%;
  z-index: 1;
}

.apple--left {
  left: max(-6vw, -40px);
  top: 12vh;
  transform: rotate(-2deg);
}

.apple--right {
  right: max(-8vw, -60px);
  bottom: -6vh;
  transform: scale(1.25) rotate(3deg);
  --apple-light: #ff8b7d;
  --apple-red: #e24a3a;
  --apple-dark: #8f1a16;
  --apple-blush: #ffd27f;
}

@keyframes appleBob {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg))
  }

  50% {
    transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + .5deg))
  }
}

@keyframes appleDrift {
  0% {
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .35))
  }

  50% {
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .4))
  }

  100% {
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .35))
  }
}

@media (prefers-reduced-motion: reduce) {
  .apple {
    animation: none;
  }
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--surface);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: .75rem 1.5rem;
  background: var(--primary-accent);
  color: #0c222e;
  border-radius: 8px;
  z-index: 9999;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 9, 15, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 2000;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-light);
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--primary-accent);
}

/* Extra helpers for smooth anchor offset */
#location {
  min-height: 30vh;
}

html {
  scroll-behavior: smooth;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 2vw, 20px);
}

.photo-card {
  grid-column: span 4;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (max-width: 1024px) {
  .photo-card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .photo-card {
    grid-column: span 12;
  }
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.photo-card figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 10px 12px 12px;
  color: #e9f2ee;
  opacity: .9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 10px;
  color: #e9f2ee;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

#photos-subtitle {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}