/* ═══════════════════════════════════════
   BENICAFEST — main.css
   Colours pulled from the official poster
   ═══════════════════════════════════════ */

:root {
  --olive:     #8a8a2a;
  --olive-dk:  #5a5a18;
  --orange:    #e85a1a;
  --orange-lt: #f0a060;
  --red-dk:    #8a1a2a;
  --pink:      #e87878;
  --pink-lt:   #f0b0b0;
  --purple:    #6a2a6a;
  --purple-lt: #c090c0;
  --lavender:  #c8b8d8;
  --navy:      #1a1a4a;
  --white:     #ffffff;
  --off-white: #f5f0e8;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--navy);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 2rem;
  background: rgba(26, 26, 74, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
nav.visible { transform: translateY(0); }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mountain-a-sm { width: 1.4rem; height: 1.6rem; }

nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
nav ul a:hover,
nav ul a:focus { opacity: 1; }

/* ── HERO MOSAIC ── */
.hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr auto 1fr 1fr;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.block {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: fadeUp 0.6s ease both;
}
.block:hover { transform: scale(1.05); z-index: 10; filter: brightness(1.1); }

/* Colour utilities */
.c-olive    { background: var(--olive); }
.c-olive-dk { background: var(--olive-dk); }
.c-orange   { background: var(--orange); }
.c-red      { background: var(--red-dk); }
.c-pink     { background: var(--pink); }
.c-pink-lt  { background: var(--pink-lt); }
.c-purple   { background: var(--purple); }
.c-lav      { background: var(--lavender); }
.c-navy     { background: var(--navy); }

/* Stagger animation */
.block:nth-child(1)  { animation-delay: .04s }
.block:nth-child(2)  { animation-delay: .08s }
.block:nth-child(3)  { animation-delay: .12s }
.block:nth-child(4)  { animation-delay: .16s }
.block:nth-child(5)  { animation-delay: .10s }
.block:nth-child(6)  { animation-delay: .18s }
.block:nth-child(7)  { animation-delay: .22s }
.block:nth-child(8)  { animation-delay: .26s }
.block:nth-child(9)  { animation-delay: .30s }
.block:nth-child(10) { animation-delay: .14s }
.block:nth-child(11) { animation-delay: .20s }
.block:nth-child(12) { animation-delay: .28s }

/* Date block */
.date-block {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  background: var(--olive);
  flex-direction: column;
  gap: 0.1em;
}
.date-block .block-primary {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, min(5vw, 7vh), 5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}
.date-block .sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.7rem, min(1.8vw, 2.5vh), 1.9rem);
  color: var(--white);
  letter-spacing: 0.15em;
}

/* Edition block */
.edition-block {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
  background: var(--olive-dk);
  flex-direction: column;
  gap: 0.2em;
}
.edition-block .ed-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.edition-block .ed-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, min(4vw, 6vh), 4.5rem);
  color: var(--white);
}
.ed-logo-svg {
  width: 100%;
  height: auto;
  max-height: clamp(1.5rem, min(4vw, 6vh), 4.5rem);
  object-fit: contain;
  object-position: center;
}

/* Icon blocks */
.icon-block { font-size: clamp(1.2rem, min(3.5vw, 5vh), 3rem); }

/* Title row */
.title-block {
  grid-column: 1 / 5;
  grid-row: 3 / 4;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5vh 1rem;
  animation: fadeUp 0.7s 0.28s ease both;
}
.festival-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, min(14vw, 18vh), 13rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: center;
}
.mountain-a {
  display: inline-block;
  width: clamp(2rem, min(11vw, 14vh), 10.5rem);
  height: clamp(2.2rem, min(12.5vw, 16vh), 11.5rem);
  position: relative;
  top: 0.04em;
}

/* Row 4 */
.row4 { grid-row: 4 / 5; }

/* Bottom strip */
.bottom-strip {
  grid-column: 1 / 5;
  grid-row: 5 / 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  animation: fadeUp 0.6s 0.5s ease both;
}
.bottom-strip .block { height: 100%; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s 1.2s infinite;
}
.scroll-cue svg { width: 1.4rem; opacity: 0.8; }

/* ── SECTION BASE ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-alt { background: var(--white); padding: 1px 0; }

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 2rem;
}
.section-label::after {
  content: '';
  display: block;
  height: 5px;
  background: var(--orange);
  margin-top: 0.15em;
}

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── LINEUP GRID ── */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.artist-card {
  padding: 1.6rem 1.4rem;
  cursor: default;
  transition: transform 0.25s ease;
}
.artist-card:hover { transform: translateY(-5px); }

/* Cycle through poster colours */
.artist-card:nth-child(5n+1) { background: var(--orange); color: var(--white); }
.artist-card:nth-child(5n+2) { background: var(--red-dk); color: var(--white); }
.artist-card:nth-child(5n+3) { background: var(--purple); color: var(--white); }
.artist-card:nth-child(5n+4) { background: var(--navy);   color: var(--white); }
.artist-card:nth-child(5n+0) { background: var(--olive);  color: var(--white); }

.artist-card .time {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.3rem;
}
.artist-card .name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.artist-card .genre {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.artist-card .bio {
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 0.7rem;
  opacity: 0.85;
}
.artist-card .bio p { margin-bottom: 0.5em; }


.artist-links {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Icon links — all social platforms */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.social-link:hover { opacity: 1; transform: translateY(-2px); }
.social-link svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Web link keeps a text label */
.social-web {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.social-web svg { width: 0.95rem; height: 0.95rem; }

/* Screen-reader only text for icon-only links */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SCHEDULE ── */
.schedule {
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.s-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.s-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  min-width: 4.5rem;
  color: var(--orange);
}
.s-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.s-note {
  font-size: 0.78rem;
  opacity: 0.5;
  font-style: italic;
}
.s-doors .s-time  { color: var(--olive-dk); }
.s-doors .s-name  { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500; opacity: 0.65; }

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.info-card {
  padding: 1.8rem;
  background: var(--white);
  border-left: 5px solid var(--orange);
}
.info-card:nth-child(2) { border-color: var(--purple); }
.info-card:nth-child(3) { border-color: var(--olive);  }
.info-card:nth-child(4) { border-color: var(--navy);   }
.info-card .info-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.info-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.info-card p { font-size: 0.9rem; line-height: 1.65; opacity: 0.75; }

/* ── FREE ENTRY BAND ── */
.free-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}
.free-band h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 7vw, 5.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.free-band p { margin-top: 0.7rem; font-size: 1rem; opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.foot-logo { display: flex; align-items: center; gap: 0.6rem; }
.foot-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}
.foot-org { font-size: 0.8rem; opacity: 0.55; margin-top: 0.2rem; }
.copy { font-size: 0.78rem; opacity: 0.45; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav ul { gap: 1rem; }
  nav ul a { font-size: 0.65rem; }
  .section { padding: 3rem 1.2rem; }
  .lineup-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .lineup-grid { grid-template-columns: 1fr; }
}

/* ── POSTER ── */
.poster-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: var(--off-white);
}
.poster-img {
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15),
    0 20px 60px rgba(0,0,0,0.2);
  display: block;
}

/* ── SPECIAL ACT CARD ── */
.artist-card--special {
  background:
    linear-gradient(
      -45deg,
      #fff 0%,
      #fff 58%,
      #000 58%,
      #000 72%,
      #fff 72%,
      #fff 100%
    ) !important;
  color: #000 !important;
  position: relative;
}
/* Tinted overlay so text stays readable over the stripes */
.artist-card--special::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  pointer-events: none;
}
/* Ensure content sits above the overlay */
.artist-card--special > * {
  position: relative;
  z-index: 1;
}
.special-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  border: 1.5px solid rgba(0,0,0,0.5);
  display: inline-block;
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.6);
}

/* Social links on the striped special card */
.artist-card--special .social-link {
  color: #000;
  opacity: 0.7;
}
.artist-card--special .social-link:hover {
  opacity: 1;
}

/* ── ARTIST AVATAR ── */
.artist-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 3px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-card--special .artist-avatar {
  border-color: rgba(0,0,0,0.25);
}

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

/* ── 404 PAGE ── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--navy);
  color: var(--white);
}
.error-mountain {
  width: 120px;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.error-mountain svg { width: 100%; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--orange);
}
.error-msg {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}
.error-back {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.error-back:hover { opacity: 0.85; }

/* ── HERO SVG LOGO ── */
.festival-logo-svg {
  height: clamp(3.7rem, min(13.3vw, 17.1vh), 11.1rem);
  width: auto;
  max-width: 90%;
  display: block;
}

/* ── DATE BLOCK: PROMINENT GAIANES ── */
.location-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  margin-top: 0.15rem;
  text-transform: uppercase;
}



/* ── MAP CARD ── */
.info-card--map { padding-bottom: 1.8rem; }
.map-link {
  display: block;
  margin-top: 1rem;
  position: relative;
  text-decoration: none;
}
.map-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}
.map-link:hover .map-img { opacity: 0.85; }
.map-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 1.5rem 1rem 0.7rem;
  text-align: center;
}

/* ── ESCUT GAIANES ── */
.escut-logo {
  display: block;
  height: 5rem;
  width: auto;
  margin-top: 1.2rem;
  opacity: 0.85;
}

/* ── ORGANISER AJUNTAMENT ── */
.organiser-ajuntament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
}
.organiser-escut {
  height: 3.5rem;
  width: auto;
  display: block;
}
.organiser-ajuntament-text {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
  text-align: center;
}

/* ── Tagline ── */
.tagline-strip {
  display: none; /* no longer used as standalone */
}
.tagline-text {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.2vw, 1.15rem);
  letter-spacing: 0.1em;
  color: var(--white);
  margin: 0;
  opacity: 1;
  text-align: center;
}
