:root {
  --bg: #120a0e;
  --bg-alt: #1d1117;
  --bg-card: #241620;
  --cream-bg: #f3e9da;
  --cream-bg-text: #2a151c;
  --burgundy: #7a1f3d;
  --burgundy-light: #a8294f;
  --cherry: #c81e3a;
  --gold: #d4a857;
  --cream: #f4ece1;
  --text: #f4ece1;
  --text-dim: #c2b3a3;
  --radius: 16px;
  --heading-font-family: 'Archivo Black', 'Anton', sans-serif;
  --body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Single source of truth for the "pink rim + drop shadow" treatment used
     on the gallery cards and reused via .rim-shadow below — every element
     using this pulls from here instead of duplicating the values. */
  --rim-shadow:
    0 0 0 1px color-mix(in srgb, var(--burgundy-light) 35%, transparent),
    0 6px 24px rgba(0, 0, 0, 0.5);
  --rim-shadow-hover:
    0 0 0 1px color-mix(in srgb, var(--burgundy-light) 70%, transparent),
    0 0 28px color-mix(in srgb, var(--burgundy-light) 40%, transparent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font-family);
  line-height: 1.5;
  opacity: 0;
}

/* Keeps the page hidden until the admin-saved theme/fonts/copy/images have
   been fetched and applied (see script.js) — the HTML/CSS ship with
   hardcoded defaults as a fallback, so without this, visitors briefly see
   that default version before it's swapped for the real, customized one. */
html.content-ready body {
  opacity: 1;
  transition: opacity 0.25s ease;
}

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

/* Shared "pink rim + drop shadow" resting treatment (see --rim-shadow in
   :root) — reused on non-interactive boxes across the site (DJ photos,
   community cards, about photo, next-event card) so they don't blend into
   the dark background. Box-shadow only, so it never shifts layout and
   automatically follows whatever border-radius the element already has. */
.rim-shadow { box-shadow: var(--rim-shadow); }

h1, h2, h3, .display {
  font-family: var(--heading-font-family);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

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

/* texture: grainy gradient used behind hero + CTA sections */
.grain-bg {
  position: relative;
}

.grain-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(18, 10, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 236, 225, 0.08);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-header .logo img { width: 52px; height: 52px; border-radius: 50%; }
.site-header .logo span { font-family: var(--logo-font-family, var(--heading-font-family)); font-size: 1.05rem; letter-spacing: 0.02em; }

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header nav a.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-header nav a.nav-link:hover { color: var(--gold); }

.social-icons { display: flex; gap: 0.6rem; align-items: center; }

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 236, 225, 0.08);
  transition: background 0.15s ease;
}

.social-icons a:hover { background: var(--burgundy); }
.social-icons svg { width: 17px; height: 17px; fill: var(--cream); }

#lang-toggle {
  background: none;
  border: 1px solid rgba(244, 236, 225, 0.25);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cherry), var(--burgundy));
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(122, 31, 61, 0.45);
}

.btn-primary:hover { filter: brightness(1.1); }

/* Interactive version of the pink rim treatment (see --rim-shadow/
   --rim-shadow-hover in :root) for specific primary CTA buttons — resting
   rim + shadow, brightening to a glow on hover since these are real
   clickable buttons (unlike the resting-only .rim-shadow elements
   elsewhere). Layered alongside .btn-primary's own existing colored
   shadow (not replacing it) so the established button look is kept, just
   wrapped in the rim. Must come after .btn-primary above to win the
   box-shadow property (same specificity, last one in source wins). */
.btn-rim-glow {
  box-shadow: var(--rim-shadow), 0 8px 24px rgba(122, 31, 61, 0.45);
  transition: box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn-rim-glow:hover {
    box-shadow: var(--rim-shadow-hover), 0 8px 24px rgba(122, 31, 61, 0.45);
  }
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover { background: rgba(212, 168, 87, 0.1); }

.btn-outline.on-cream { border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline.on-cream:hover { background: rgba(122,31,61,0.08); }

/* "Add to Calendar" button + its Google/Apple/Outlook popover, shown next
   to the WhatsApp CTA in the next-event card. Positioned relative so the
   menu can anchor directly under the button; tap-to-open (not hover), so
   it behaves the same on mobile and desktop. */
.calendar-cta { position: relative; }

/* Fixed (not absolute) and positioned via JS from the button's viewport
   rect — the card this sits in uses overflow:hidden to round its own
   corners, which would otherwise clip an absolutely-positioned dropdown. */
.calendar-menu {
  position: fixed;
  z-index: 300;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--rim-shadow), 0 12px 32px rgba(0, 0, 0, 0.55);
}

.calendar-menu-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212, 168, 87, 0.15);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.calendar-menu-item:last-child { border-bottom: none; }
.calendar-menu-item:hover { background: rgba(212, 168, 87, 0.12); }

/* Independent color for the hero "Join the group" button — not tied to the
   shared --gold used by eyebrows and other outline buttons elsewhere. */
#hero-cta-secondary {
  border-color: var(--join-group-color, var(--gold));
  color: var(--join-group-color, var(--gold));
}
#hero-cta-secondary:hover {
  background: color-mix(in srgb, var(--join-group-color, var(--gold)) 10%, transparent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 10%, rgba(200, 30, 58, 0.35), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(212, 168, 87, 0.2), transparent 45%),
    var(--hero-bg-image, url('assets/img/sample-worldcup-2.jpg'));
  background-size: cover;
  background-position: center 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,10,14,0.5) 0%, rgba(18,10,14,0.55) 30%, rgba(18,10,14,0.97) 92%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.6rem 1.5rem 0;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.6vw, 4.8rem);
  line-height: 0.96;
  max-width: 850px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero h1 .accent { color: var(--gold); }

/* Reserves a little more than one line (in em, so it scales with the h1's
   own clamp()-based font-size) so the typewriter effect below doesn't
   noticeably shift the subhead as its text grows/shrinks/empties between
   phrases. Both phrases fit on one line on most screens, so this is kept
   close to single-line height rather than reserving a full 2nd line, which
   left a large empty gap above the subhead. */
.typewriter-heading { min-height: 1.1em; }

.typewriter-cursor {
  display: inline-block;
  width: 0.05em;
  height: 0.85em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.05em;
  animation: typewriter-blink 1s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { display: none; }
}

.hero p.lede {
  margin: 1.2rem 0 1.6rem;
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

/* Next-event strip, sits right under hero — visible without extra scroll */
.next-strip {
  position: relative;
  z-index: 2;
  margin-top: 1.8rem;
  background: rgba(36, 22, 32, 0.9);
  border-top: 1px solid rgba(244,236,225,0.1);
  backdrop-filter: blur(6px);
}

.next-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.next-strip .badge {
  background: var(--cherry);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  margin-right: 0.6rem;
}

.next-strip .countdown-inline {
  display: flex;
  gap: 0.5rem;
  font-family: var(--heading-font-family);
  color: var(--gold);
  font-size: 0.95rem;
}

/* Sections */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }

.section-head { margin-bottom: 2.2rem; max-width: 640px; }
.section-head .eyebrow { margin-bottom: 0.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--text-dim); margin-top: 0.7rem; }

/* Cream contrast section */
.cream-section {
  background: var(--cream-bg);
  color: var(--cream-bg-text);
}

.cream-section .eyebrow { color: var(--burgundy); }
.cream-section .section-head p { color: #5c4a3f; }
.cream-section .stats .stat .label { color: #5c4a3f; }
.cream-section .stats .stat .num { color: var(--burgundy); }

/* Next event card */
.next-event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244,236,225,0.08);
}

.next-event-card .photo {
  min-height: 280px;
  background-image: url('assets/img/sample-easter-1.jpg');
  background-size: cover;
  background-position: center;
}

.next-event-card .info { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.next-event-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

.countdown {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.countdown .unit {
  background: rgba(244, 236, 225, 0.06);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-align: center;
  min-width: 64px;
}

.countdown .unit .num {
  font-family: var(--heading-font-family);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
}

.countdown .unit .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* .btn's own `display` would otherwise beat the browser's default
   `[hidden] { display: none }` rule since both come from author/UA
   stylesheets at the same specificity — this isn't needed for other
   .btn elements in this file since none of them combine a `.btn`-family
   class with the `hidden` attribute. */
#ticket-cta[hidden] { display: none; }

.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--burgundy-light);
  background: rgba(122,31,61,0.18);
  border: 1px dashed rgba(168,41,79,0.6);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.6rem;
}

.tbd-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tbd-label[hidden] { display: none; }

.countdown[hidden],
.countdown-inline[hidden] { display: none; }

.placeholder-tag[hidden] { display: none; }

.cream-section .placeholder-tag {
  background: rgba(122,31,61,0.08);
}

/* Past events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.event-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  display: block;
  /* transform stays at 150ms (tuned for the tilt-on-hover effect below,
     which updates it continuously on mousemove — 250ms there would feel
     laggy); box-shadow gets its own, slower 250ms for the hover glow. */
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: var(--rim-shadow);
}

.event-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.event-card:hover img { transform: scale(1.07); }

/* Hover glow — gated to real hover-capable pointers and non-reduced-motion,
   matching the same conditions the JS tilt effect already gates on (see
   supportsCardTilt in script.js), so touch devices and reduced-motion
   visitors keep the resting rim + shadow with no hover effect layered on.
   The lift itself (translateY) is baked into the tilt effect's own
   transform in script.js rather than set here, since the tilt JS sets
   `transform` inline on every mousemove — a separate :hover transform rule
   here would just get silently overridden and never actually show. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .event-card:hover {
    box-shadow: var(--rim-shadow-hover);
  }
}

.event-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,10,14,0) 30%, rgba(18,10,14,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}

.event-card .overlay .name { font-family: var(--heading-font-family); font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.event-card .overlay .count { color: var(--text-dim); font-size: 0.8rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.event-card .new-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--cherry);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  text-transform: uppercase;
}

/* Gallery preview strip */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 1.6rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--rim-shadow);
}

/* Gallery section layout: content on the left (takes priority — it's the
   main focus of this section, so it isn't sized down for the decoration),
   the two playing cards on the right — stacks to content-then-cards on
   narrower screens (see the 860px breakpoint below), cards always staying
   side by side either way. */
.gallery-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Deliberately NOT wider than the standard .container (1180px) — an
     earlier attempt widened just this section to make room for bigger
     cards, but that broke its left/right alignment with every other
     section (e.g. Past Events right above it). Keeping the same width as
     everything else takes priority; card size is what flexes instead. */
}

.gallery-main { flex: 1; min-width: 0; }

.gallery-cards {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Sized so 3 cards + 2 gaps (1rem each) + the .gallery-layout gap (2rem)
   fit exactly within the standard 1132px container content width even at
   max size: 3*220 + 2*16 + 32 = 724px, leaving 408px for .gallery-main —
   no overflow, and the gallery content keeps a real, usable width.
   aspect-ratio matches the card art's own real proportions (1537x2274) so
   the box is exactly the card's shape — no cropped-off edges, no padded
   letterboxing bars, it just looks like an actual playing card. */
.playing-card {
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 1537 / 2274;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease;
  box-shadow: var(--rim-shadow);
}

/* cover is safe here (no cropping, no letterboxing) since the box's own
   aspect-ratio above already matches the image exactly. */
.playing-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Phone only (matches the other phone-specific, sub-tablet breakpoints in
   this file, e.g. .dj-photos/.promoter-photos above) — side by side at this
   width leaves each of the 3 cards too narrow to read, so stack them
   instead. Desktop and the 860px tablet breakpoint (which only stacks
   content-above-cards, not the cards themselves) are untouched. */
@media (max-width: 640px) {
  /* .gallery-layout sets align-items:flex-start at 860px (so .gallery-main's
     text hugs the left edge, not stretched full-width) — that same
     shrink-to-fit sizing left .gallery-cards sitting at the left edge too,
     since centering its own children only centers within its own
     (content-sized) box. align-self:stretch makes the box itself span the
     full content width first, so centering its children actually lands
     them in the middle of the screen. */
  .gallery-cards { flex-direction: column; align-items: center; align-self: stretch; }
  .playing-card { width: clamp(180px, 60vw, 260px); }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-grid img { border-radius: var(--radius); }

.stats { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.stats .stat .num { font-family: var(--heading-font-family); font-size: 1.8rem; color: var(--gold); display: block; }
.stats .stat .label { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Community */
.community { background: var(--bg-alt); }

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.community-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(244,236,225,0.08);
}

.community-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.community-card p { color: var(--text-dim); margin-bottom: 1.3rem; }

.song-form input {
  flex: 1;
  min-width: 180px;
  background: rgba(244,236,225,0.06);
  border: 1px solid rgba(244,236,225,0.18);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
}

.song-form input::placeholder { color: var(--text-dim); }

.song-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Shared by the song/DJ/promoter forms' GDPR notice line just below each form. */
.form-privacy-note { margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-dim); }
.form-privacy-note a { color: var(--text-dim); text-decoration: underline; }
.form-privacy-note a:hover { color: var(--cream); }

.song-feedback { margin-top: 0.8rem; font-size: 0.88rem; font-weight: 600; }
.song-feedback.ok { color: #59c97a; }
.song-feedback.error { color: var(--cherry); }
.song-feedback[hidden] { display: none; }

/* DJs section */
.dj-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.6rem 0;
}

.dj-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.dj-form-heading { font-size: 1.3rem; margin-bottom: 1rem; }

.dj-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 520px;
}

.dj-form input,
.dj-form textarea {
  background: rgba(244,236,225,0.06);
  border: 1px solid rgba(244,236,225,0.18);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}

.dj-form textarea { min-height: 100px; resize: vertical; }

.dj-form input::placeholder,
.dj-form textarea::placeholder { color: var(--text-dim); }

.dj-form button { align-self: flex-start; }

.dj-feedback { margin-top: 0.8rem; font-size: 0.88rem; font-weight: 600; }
.dj-feedback.ok { color: #59c97a; }
.dj-feedback.error { color: var(--cherry); }
.dj-feedback[hidden] { display: none; }

@media (max-width: 640px) {
  .dj-photos { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* Promoters section (mirrors the DJs section above) */
.promoter-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.6rem 0;
}

.promoter-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.promoter-form-heading { font-size: 1.3rem; margin-bottom: 1rem; }

.promoter-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 520px;
}

.promoter-form input,
.promoter-form textarea {
  background: rgba(244,236,225,0.06);
  border: 1px solid rgba(244,236,225,0.18);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}

.promoter-form textarea { min-height: 100px; resize: vertical; }

.promoter-form input::placeholder,
.promoter-form textarea::placeholder { color: var(--text-dim); }

.promoter-form button { align-self: flex-start; }

.promoter-feedback { margin-top: 0.8rem; font-size: 0.88rem; font-weight: 600; }
.promoter-feedback.ok { color: #59c97a; }
.promoter-feedback.error { color: var(--cherry); }
.promoter-feedback[hidden] { display: none; }

@media (max-width: 640px) {
  .promoter-photos { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(18, 10, 14, 0.96);
  border-top: 1px solid rgba(244,236,225,0.12);
  backdrop-filter: blur(10px);
}

.mobile-cta-bar .btn { width: 100%; justify-content: center; }

/* Footer */
footer { border-top: 1px solid rgba(244,236,225,0.08); padding: 3rem 0 2rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 0.8rem; }
.footer-grid p, .footer-grid a { color: var(--text-dim); font-size: 0.92rem; text-decoration: none; display: block; margin-bottom: 0.4rem; }
.footer-grid a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,236,225,0.06);
}

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer-legal-links a { color: var(--text-dim); text-decoration: underline; }
.footer-legal-links a:hover { color: var(--cream); }
.footer-legal-links button {
  font: inherit; color: var(--text-dim); background: none; border: none; padding: 0;
  text-decoration: underline; cursor: pointer;
}
.footer-legal-links button:hover { color: var(--cream); }

[data-en] { display: none; }
html[data-lang="en"] [data-es] { display: none; }
html[data-lang="en"] [data-en] { display: inline; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(244,236,225,0.1);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .site-header nav.open { transform: translateY(0); }
  .next-event-card, .about-grid, .community-grid { grid-template-columns: 1fr; }
  .next-event-card .photo { min-height: 200px; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-layout { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 70px; }
}

/* Draggable logo widgets — decorative, movable anywhere on the page */
.draggable-widget {
  position: absolute;
  z-index: 90;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.draggable-widget:active,
.draggable-widget.is-dragging {
  cursor: grabbing;
  z-index: 250;
}

.draggable-widget-spinner { display: block; width: 100%; }

.draggable-widget img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Sizing is set inline per-widget (from admin-configured widthPx) since it's
   dynamic, not fixed like the rest of this file's classes. */

@keyframes widget-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Lives on .draggable-widget-spinner (the img's wrapper), not the outer
   .draggable-widget, so the drag hint below doesn't spin along with it. */
.draggable-widget--spin { animation: widget-spin 16s linear infinite; }

/* Admin widget-preview mode only: highlights the widget currently being
   repositioned and dims the others (which are also made non-interactive
   there, see script.js) so dragging can't hit the wrong one by accident. */
.draggable-widget--editing { outline: 3px dashed var(--gold, #d4a857); outline-offset: 6px; }
.draggable-widget--dimmed { opacity: 0.35; }

/* Tells first-time visitors a widget can be dragged; removed the moment
   they touch/click it (see the pointerdown handler in makeDraggable). */
.widget-drag-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(18, 10, 14, 0.75);
  color: var(--cream, #f4ece1);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Vinyl music player — draggable like the widgets, defaults to the hero's
   top-right corner. Spins while playing, stands still while paused. */
.vinyl-player {
  position: absolute;
  z-index: 5;
  width: clamp(110px, 14vw, 220px);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
}

.vinyl-player:active,
.vinyl-player.is-dragging {
  cursor: grabbing;
  z-index: 250;
}

.vinyl-player-img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.4s ease;
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-player.is-playing .vinyl-player-img {
  animation: vinyl-spin 3.5s linear infinite;
}

/* Decorative full-bleed "Vida Events" strip between sections */
.vida-strip {
  width: 100%;
  height: clamp(48px, 6vw, 90px);
  background-image: url('assets/img/vida-strip.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* Static legal pages (aviso-legal.html, politica-de-privacidad.html,
   politica-de-cookies.html) — simple readable article layout, reusing the
   site's header/footer/colors but none of the marketing-page CSS. */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.legal-page .legal-updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 2.2rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; color: var(--gold); }
.legal-page p, .legal-page li { color: var(--text-dim); line-height: 1.7; margin-bottom: 0.9rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-page a { color: var(--cream); }
.legal-page strong { color: var(--text); }
.legal-page .legal-placeholder {
  background: rgba(212,168,87,0.12);
  border: 1px dashed var(--gold);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--gold);
  font-style: normal;
}
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.88rem; }
.legal-page th, .legal-page td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(244,236,225,0.1); color: var(--text-dim); vertical-align: top; }
.legal-page th { color: var(--text); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
