/* =============================================================
   GRUP DE VERSIONS — Rock o'Clock
   Archetype: Editorial Dark Warm · mobile-first
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:       #121212;
  --bg-2:     #181818;
  --bg-3:     #202020;
  --cream:    #F2F0EC;
  --cream-2:  #C4C2BD;
  --cream-3:  #8A8884;
  --accent:   #FF4326;   /* stage red-orange */
  --accent-2: #D9362A;
  --gold:     #E0A93C;
  --line:     rgba(242,240,236,.13);
  --line-2:   rgba(242,240,236,.06);

  --display: "Bebas Neue", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --nav-h: 72px;
}

@property --mesh-angle {
  syntax: "<angle>"; inherits: false; initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.0; letter-spacing: 0.01em; font-weight: 400; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-2); font-weight: 500;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
}
.section-title em { font-style: normal; color: var(--gold); }
.section-lead {
  color: var(--cream-2);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  max-width: 56ch;
  margin-top: 1.1rem;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s var(--ease-out);
  will-change: transform;
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,67,38,.6); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(255,67,38,.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { background: rgba(242,235,218,.06); transform: translateY(-3px); }
.btn-whatsapp { background: #25D366; color: #06311a; box-shadow: 0 10px 30px -12px rgba(37,211,102,.6); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-3px); }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(14,11,9,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.05; }
.nav-brand-mark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.nav-brand-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: none; gap: 1.7rem; }
.nav-links a { font-size: .9rem; color: var(--cream-2); position: relative; transition: color .3s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width .35s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: .6rem 1.15rem; font-size: .88rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img, .hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.hero-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 by width */
  min-height: 100%; min-width: 177.78vh;    /* 16:9 by height — guarantees cover */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,.55) 0%, rgba(14,11,9,.2) 35%, rgba(14,11,9,.82) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,11,9,.65) 0%, transparent 60%);
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(60% 50% at 78% 18%, rgba(255,67,38,.28), transparent 70%),
              radial-gradient(50% 40% at 18% 30%, rgba(217,164,65,.18), transparent 70%);
  animation: spotBreath 9s ease-in-out infinite alternate;
}
@keyframes spotBreath { from { opacity: .4; } to { opacity: .65; } }

.hero-inner { position: relative; max-width: 900px; }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 10vw, 6.6rem);
  line-height: 0.92; letter-spacing: 0.005em;
  margin: 1.1rem 0 1.3rem;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { color: var(--cream-2); font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { margin-top: 1.4rem; font-size: .86rem; color: var(--cream-3); letter-spacing: .02em; }
.hero-trust { color: var(--cream-2); }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: 1.3rem; color: var(--cream-2); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* =============================================================
   8. Stats
   ============================================================= */
.stats { background: var(--bg); border-bottom: 1px solid var(--line-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-2);
  border-block: 1px solid var(--line-2);
}
.stat { background: var(--bg); padding: clamp(1.6rem, 4vw, 2.6rem) 1rem; text-align: center; }
.stat-num {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.2rem); color: var(--cream); letter-spacing: -0.03em;
}
.stat-label { font-size: .82rem; color: var(--cream-3); letter-spacing: .04em; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   9. Sections common spacing
   ============================================================= */
section { position: relative; }
.video, .repertoire, .usos, .so, .testimonis, .passos, .faq, .contacte {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

/* Video */
.section-lead { margin-bottom: 0; }
.video .section-lead { margin-bottom: 2.4rem; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.video-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.video-frame.is-playing .video-play { display: none; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,67,38,.9); color: #fff;
  box-shadow: 0 0 0 0 rgba(255,67,38,.5);
  animation: pulse 2.4s ease-out infinite;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.video-play:hover { transform: scale(1.08); background: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,67,38,.5); } 100% { box-shadow: 0 0 0 26px rgba(255,67,38,0); } }

/* =============================================================
   10. Repertoire (horizontal scroll-snap)
   ============================================================= */
.repertoire-head {
  display: grid; gap: 1.2rem; margin-bottom: 2.4rem;
}
@media (min-width: 960px) {
  .repertoire-head { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; }
}
.repertoire-scroll {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem var(--gutter) 1.4rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.repertoire-scroll::-webkit-scrollbar { display: none; }
.rep-card {
  scroll-snap-align: start;
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  transform-style: preserve-3d; transition: border-color .4s var(--ease-out);
}
.rep-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s var(--ease-out); }
.rep-card:hover { border-color: rgba(255,67,38,.4); }
.rep-card:hover img { transform: scale(1.06); filter: saturate(1.15) brightness(1.05); }
.rep-body {
  position: absolute; inset: auto 0 0 0; padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(14,11,9,.92) 70%);
}
.rep-body h3 { font-family: var(--display); font-size: 1.4rem; }
.rep-body p { font-size: .92rem; color: var(--cream-2); margin-top: .25rem; }
.repertoire-hint { text-align: center; color: var(--cream-3); font-size: .82rem; letter-spacing: .08em; margin-top: .4rem; }
@media (min-width: 720px) { .repertoire-scroll { grid-auto-columns: 42%; } .repertoire-hint { display: none; } }
@media (min-width: 1100px) { .repertoire-scroll { grid-auto-columns: 27%; } }

/* =============================================================
   11. Usos
   ============================================================= */
.usos-grid { display: grid; gap: 1px; background: var(--line-2); margin-top: 2.6rem; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.uso { background: var(--bg-2); padding: clamp(1.6rem, 4vw, 2.4rem); }
.uso-num { font-family: var(--display); font-style: normal; color: var(--accent); font-size: 1.6rem; letter-spacing: .03em; }
.uso h3 { font-family: var(--display); font-size: 1.45rem; margin: .6rem 0 .6rem; }
.uso p { color: var(--cream-2); font-size: .98rem; }
@media (min-width: 860px) { .usos-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   12. So i llum
   ============================================================= */
.so { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.so-inner { display: grid; gap: 2.4rem; align-items: center; }
.so-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transform-style: preserve-3d; }
.so-media img { width: 100%; aspect-ratio: 7/5; object-fit: cover; }
.so-list { display: grid; gap: .7rem; margin-top: 1.4rem; }
.so-list li { position: relative; padding-left: 1.6rem; color: var(--cream-2); }
.so-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.so-note { margin-top: 1.4rem; font-size: .9rem; color: var(--cream-3); }
.so-note a { color: var(--gold); border-bottom: 1px solid rgba(217,164,65,.4); }
.so-note a:hover { color: var(--cream); }
@media (min-width: 960px) { .so-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* =============================================================
   13. Testimonis
   ============================================================= */
.testimonis-grid { display: grid; gap: 1.1rem; margin-top: 2.8rem; }
.testimoni {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem; position: relative;
}
.testimoni::before { content: "“"; font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--accent); opacity: .35; position: absolute; top: .4rem; left: 1rem; }
.testimoni blockquote { font-family: var(--sans); font-size: 1.08rem; line-height: 1.5; color: var(--cream); margin: 1.2rem 0 1.2rem; }
.testimoni figcaption strong { display: block; font-size: .98rem; }
.testimoni figcaption span { font-size: .82rem; color: var(--cream-3); }
@media (min-width: 860px) { .testimonis-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   14. Passos
   ============================================================= */
.passos-grid { display: grid; gap: 1.1rem; margin-top: 2.8rem; list-style: none; padding: 0; }
.passos-grid > li { list-style: none; }
.pas { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; }
.pas-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,67,38,.12); color: var(--accent); font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  border: 1px solid rgba(255,67,38,.3); margin-bottom: 1rem;
}
.pas h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: .4rem; }
.pas p { color: var(--cream-2); font-size: .96rem; }
@media (min-width: 860px) { .passos-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq-inner { display: grid; gap: 2rem; }
.faq .section-title { margin-bottom: .4rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; transition: border-color .35s var(--ease-out); }
.faq-item[open] { border-color: rgba(255,67,38,.35); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem;
  font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.25rem; color: var(--cream-2); }
@media (min-width: 960px) { .faq-inner { grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; } }

/* =============================================================
   16. Contacte
   ============================================================= */
.contacte { background: var(--bg-2); overflow: hidden; }
.contacte-mesh {
  position: absolute; inset: 0; z-index: 0; opacity: .6; pointer-events: none;
  background:
    radial-gradient(40% 60% at 80% 10%, rgba(255,67,38,.22), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(217,164,65,.16), transparent 60%);
  animation: meshShift 12s ease-in-out infinite alternate;
}
@keyframes meshShift { from { transform: translateY(0) scale(1); } to { transform: translateY(-20px) scale(1.05); } }
.contacte-inner { position: relative; z-index: 1; display: grid; gap: 2.6rem; }
.contacte-direct { display: grid; gap: .6rem; margin-top: 1.6rem; }
.contacte-direct a { color: var(--cream); border-bottom: 1px solid var(--line); padding-bottom: .2rem; display: inline-block; transition: color .3s var(--ease-out), border-color .3s; }
.contacte-direct a:hover { color: var(--accent); border-color: var(--accent); }

.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -50px rgba(0,0,0,.9); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; letter-spacing: .04em; color: var(--cream-2); }
.field input, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--cream);
  font: inherit; transition: border-color .3s var(--ease-out), background .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: #120e0b; }
.field input::placeholder { color: var(--cream-3); }
.form-submit { width: 100%; margin-top: .4rem; position: relative; }
.form-check { display: none; }
.form.is-sent .form-submit-label { opacity: 0; }
.form.is-sent .form-check { display: block; position: absolute; }
.form.is-sent .form-submit { background: #1f8f4d; box-shadow: none; }
.form-status { font-size: .9rem; color: var(--gold); min-height: 1.1em; text-align: center; }
.form-mini { font-size: .8rem; color: var(--cream-3); text-align: center; }
@media (min-width: 960px) { .contacte-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; } }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 6vw, 4rem) 1.6rem; }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-2); }
.footer-mark { font-family: var(--display); font-weight: 600; font-size: 1.4rem; }
.footer-brand p { color: var(--cream-3); font-size: .92rem; max-width: 42ch; margin-top: .6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-content: start; }
.footer-nav a { color: var(--cream-2); font-size: .92rem; transition: color .3s var(--ease-out); }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.4rem; color: var(--cream-3); font-size: .82rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }

/* =============================================================
   17b. Logo + Cançoner (repertori complet)
   ============================================================= */
.hero-logo {
  width: clamp(72px, 12vw, 104px); height: auto; aspect-ratio: 1/1;
  border-radius: 16px; border: 1px solid var(--line);
  margin-bottom: 1.2rem; box-shadow: 0 18px 40px -20px rgba(0,0,0,.8);
  object-fit: cover;
}
.footer-brand { display: grid; gap: .5rem; }
.footer-logo { width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }
.footer-mark { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }

.canconer { padding-block: clamp(3.5rem, 9vw, 7rem); background: var(--bg-2); border-block: 1px solid var(--line-2); }
.canconer .section-lead { margin-bottom: 2.6rem; }
.bandes-list {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .35rem 1.4rem;
  list-style: none; padding: 0;
}
.bandes-list li {
  position: relative;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  letter-spacing: .02em; line-height: 1.1;
  color: var(--cream);
  transition: color .3s var(--ease-out);
}
.bandes-list li::after {
  content: "·"; color: var(--accent); margin-left: 1.4rem;
  position: absolute; right: -1.4rem;
}
.bandes-list li:last-child::after { content: ""; }
.bandes-list li:hover { color: var(--gold); }
.canconer-foot { margin-top: 2.6rem; color: var(--cream-3); font-size: .95rem; max-width: 60ch; }

/* =============================================================
   18. Reveal animations (defensive)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split elements must never stay invisible (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }

.split-word { display: inline-block; }
[data-split] .split-word { opacity: 0; transform: translateY(40%); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-split].is-visible .split-word { opacity: 1; transform: none; }

/* When JS is off, show everything */
.no-js .reveal, html:not(.is-ready) .reveal { }

/* =============================================================
   19. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-spot, .contacte-mesh, .video-play, .hero-scroll, .splash-mark { animation: none; }
  .hero-yt { display: none; }
  .splash { animation-delay: .2s; }
}
