/* ===== City Splash — Carnival Warm Up Party =====
   Brand palette per City Splash Brand Guidelines 2026
================================================== */

:root {
  --yellow: #FBBB0E;
  --green: #066037;
  --magenta: #5B0A37;
  --orange: #EE7337;
  --plum: #AB1861;
  --pink: #FBBB0E;
  --ink: #222121;
  --white: #FFFFFF;

  --bg: #121110;
  --bg-alt: #1b1a19;
  --text: #f5f1e8;
  --text-dim: rgba(245, 241, 232, 0.68);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* subtle grain overlay across whole page for texture, matches brand "grain & gradient overlay" guideline */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(251, 187, 14, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(251, 187, 14, 0.5);
}
.btn-ghost {
  border-color: rgba(245, 241, 232, 0.4);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(18, 17, 16, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(18, 17, 16, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.6rem;
  color: var(--yellow);
  transition: font-size 0.3s ease;
}
.brand-word-accent { color: var(--pink); }
.site-header.scrolled .brand-word { font-size: 1.35rem; }

.main-nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Covers the <video> until it's actually confirmed playing. iOS Low Power
   Mode shows a system-level "autoplay blocked" play icon on paused video
   that CSS cannot suppress — a plain <img> never gets that treatment, so
   we hide it underneath this until playback truly starts (see main.js). */
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: opacity 0.4s ease;
}
.hero-poster-fallback.is-hidden {
  opacity: 0;
  pointer-events: none;
}
/* hide Safari's built-in play button overlay on inline video (shows even without the controls attribute) */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none !important;
  pointer-events: none !important;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,17,16,0.55) 0%, rgba(18,17,16,0.35) 35%, rgba(18,17,16,0.85) 100%),
    linear-gradient(90deg, rgba(91,10,55,0.35), rgba(238,115,55,0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 40px;
}

.hero-logo {
  display: block;
  width: 90px;
  height: auto;
  margin: 16px auto 8px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.55));
}

.kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-title .line {
  display: block;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
}
.hero-title .line-1 {
  color: var(--pink);
  -webkit-text-stroke: 2px var(--green);
  text-shadow: 3px 3px 0 var(--green), 6px 6px 18px rgba(0,0,0,0.5);
}
.hero-title .line-2 {
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--green);
  text-shadow: 3px 3px 0 var(--green), 6px 6px 18px rgba(0,0,0,0.5);
}

.hero-tags-label {
  margin-top: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--orange);
}
.hero-tags {
  margin-top: 6px;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text);
  letter-spacing: 0.02em;
}
.hero-tags .dot { color: var(--orange); margin: 0 4px; }

.hero-meta {
  margin-top: 16px;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.hero-meta .sep { color: var(--orange); margin: 0 10px; }

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Marquee ---------- */
/* the strip inside is rotated/scaled, which pushes its true box past the
   viewport edges — this wrapper clips that overflow so it can't cause
   page-level horizontal scroll (very noticeable as sideways rubber-band
   bounce on iOS) */
.marquee-clip {
  overflow: hidden;
  width: 100%;
}
.marquee {
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  transform: rotate(-0.3deg) scale(1.02);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 0;
  animation: marquee 26s linear infinite;
}
.marquee-track span { padding: 0 2px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-12.5%); }
}

/* ---------- Section shared ---------- */
section { position: relative; }
.section-kicker {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-align: center;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--yellow);
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

/* ---------- Info band ---------- */
.info-band {
  background: var(--bg-alt);
  padding: 64px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--green);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card:nth-child(2) { border-left-color: var(--orange); }
.info-card:nth-child(3) { border-left-color: var(--pink); }
.info-card:nth-child(4) { border-left-color: var(--yellow); }
.info-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 700;
}
.info-value {
  font-size: 1.25rem;
  font-weight: 700;
}
.info-card-cta { justify-content: center; align-items: flex-start; gap: 14px; }
.info-card-cta .btn { align-self: flex-start; }

/* ---------- Venue ---------- */
.venue {
  padding: 36px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(6,96,55,0.7), transparent 65%),
    radial-gradient(ellipse at bottom, rgba(6,96,55,0.55), transparent 65%),
    var(--bg-alt);
}
.venue .section-title {
  margin-bottom: 14px;
}
.venue-text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}
.venue-address {
  margin-top: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.venue-link {
  margin-top: 24px;
}

/* ---------- Flyers ---------- */
.flyers {
  padding: 60px 0 60px;
  background:
    radial-gradient(ellipse at top, rgba(6,96,55,0.45), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(6,96,55,0.35), transparent 60%),
    var(--bg);
}
.flyer-grid {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.flyer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  background: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 3px solid var(--ink);
}
.flyer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flyer-card:nth-child(1) { transform: rotate(-1.5deg); }
.flyer-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 26px 60px rgba(251,187,14,0.3);
}

/* ---------- Lineup ---------- */
.lineup {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at top, rgba(6,96,55,0.35), transparent 60%),
    var(--bg);
}
.lineup-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.lineup-list li {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--green);
  -webkit-text-stroke: 1px rgba(6,96,55,0.4);
  position: relative;
  padding: 0 4px;
}
.lineup-list li:nth-child(odd) { color: var(--pink); }
.lineup-list li::after {
  content: '·';
  color: var(--orange);
  position: absolute;
  right: -16px;
}
.lineup-list li:last-child::after { content: ''; }

.lineup-note {
  text-align: center;
  margin-top: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 1rem;
}

/* ---------- Gallery ---------- */
.section-divider {
  width: 100%;
  height: 4px;
  margin: 0 0 40px;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(251, 187, 14, 0.6);
}
.section-divider.divider-bottom { margin: 30px 0 0; }

.gallery { padding: 100px 0 50px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-alt);
}
.gallery-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(6) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(7), .gallery-item:nth-child(8) { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(1.05);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--ink), var(--yellow) 55%, var(--orange));
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 28px;
}
.cta-band .btn-primary {
  background: var(--ink);
  color: var(--yellow);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-word {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 18px;
}
.footer-tagline {
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-bottom: 22px;
  font-weight: 700;
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy {
  color: rgba(245,241,232,0.4);
  font-size: 0.85rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,9,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  margin-top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-arrow:hover {
  background: var(--pink);
  color: var(--white);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 700px) {
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1.1rem; margin-top: -21px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Reveal animation ---------- */
/* only hide .reveal elements once JS has confirmed it can run (see inline script in <head>) —
   otherwise content would stay invisible forever if JS fails to load */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(7), .gallery-item:nth-child(8) { grid-row: span 1; }
  .flyer-grid { max-width: 380px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; z-index: 950; }
  .header-actions .btn-primary { padding: 10px 18px; font-size: 0.85rem; }

  #main-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 900;
  }
  #main-nav.open a {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 2.1rem;
    letter-spacing: 0.01em;
    color: var(--yellow);
  }
  #main-nav.open a:nth-child(2) { color: var(--pink); }
  #main-nav.open a:nth-child(3) { color: var(--orange); }
  #main-nav.open a:nth-child(4) {
    color: var(--green);
    -webkit-text-stroke: 1px rgba(245,241,232,0.4);
  }

  /* morph hamburger into an X while the takeover is open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .info-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}

body.nav-lock { overflow: hidden; }

@media (max-width: 480px) {
  .lineup-list li::after { display: none; }
}
