/* ============================================================
   RAMBA S.S. — Happy Metal since 1999
   Modern responsive redesign
   ============================================================ */

:root {
  --bg: #0a0807;
  --bg-elev: #14100e;
  --bg-card: #1a1513;
  --line: #2a221e;
  --primary: #e63946;
  --primary-hot: #ff4d5b;
  --gold: #f4c542;
  --text: #f4ece4;
  --muted: #9a8d83;
  --max: 1240px;
  --radius: 14px;
  --shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.7);
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-grunge: "Rye", "Bebas Neue", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(230, 57, 70, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(244, 197, 66, 0.04), transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hot); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 .6em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }

p { margin: 0 0 1em; }

::selection { background: var(--primary); color: #fff; }

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 8, 7, 0.7);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(10, 8, 7, 0.92);
  border-bottom-color: var(--line);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand span {
  color: var(--primary);
}
.nav__brand::before {
  content: "★";
  color: var(--primary);
  font-size: 1rem;
  transform: translateY(-2px);
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 56px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 8, 7, 0.98);
    backdrop-filter: blur(14px);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 14px 24px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 16, 14, 0.4), rgba(10, 8, 7, 0.95) 80%),
    url("../img/hero.jpg") center/cover no-repeat;
  z-index: -2;
  filter: saturate(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: -1;
  opacity: .6;
}
.hero__sup {
  font-family: var(--font-grunge);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: clamp(.8rem, 1.4vw, 1rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(3.8rem, 14vw, 11rem);
  margin: 0;
  line-height: .9;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}
.hero__title .ss {
  color: var(--text);
  display: inline-block;
}
.hero__tag {
  margin-top: 1.2rem;
  font-family: var(--font-grunge);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__tag em {
  color: var(--primary);
  font-style: normal;
}
.hero__quote {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--muted);
  max-width: 540px;
  font-size: 1rem;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2.4s infinite;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: .6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-hot);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--ghost:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ---------- Section base ---------- */

.section {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 40px);
  position: relative;
}
.section--alt { background: var(--bg-elev); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section__sup {
  display: inline-block;
  font-family: var(--font-grunge);
  color: var(--primary);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.section__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 12px auto 0;
}

/* ---------- Albums (Spotify) ---------- */

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.album {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.album:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.album::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(230, 57, 70, 0.08), transparent 60%);
  pointer-events: none;
}
.album__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  position: relative;
}
.album__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .04em;
  margin: 0;
  text-transform: uppercase;
}
.album__year {
  color: var(--gold);
  font-family: var(--font-grunge);
  letter-spacing: .15em;
  font-size: .9rem;
}
.album__embed {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  min-height: 352px;
}
.album__embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}
.album__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.album__cta:hover { color: var(--primary); }
.album__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-self: flex-start;
}

/* ---------- Members ---------- */

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.member {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.member:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.member__icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  display: block;
}
.member__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .03em;
  margin: 0 0 6px;
  color: var(--text);
}
.member__role {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  columns: 4 240px;
  column-gap: 16px;
}
.gallery-grid figure {
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid figure:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform .4s, filter .25s;
  filter: saturate(0.9);
}
.gallery-grid figure:hover img {
  transform: scale(1.04);
  filter: saturate(1.1);
}
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: .85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

.gallery-events {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.gallery-events button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.gallery-events button:hover { border-color: var(--text); color: var(--text); }
.gallery-events button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--primary); transform: scale(1.05); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .15em;
}

/* ---------- Story ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.story__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.story__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.story__text p { color: var(--text); font-size: 1.05rem; }
.story__text p + p { margin-top: 1em; }
.story__text strong { color: var(--gold); font-weight: 700; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
}

/* ---------- Video ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.video-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.video-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.video-item__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-item__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-item__meta {
  padding: 16px 18px 18px;
}
.video-item__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}
.video-item__date {
  font-family: var(--font-grunge);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(230, 57, 70, 0.18), transparent 60%),
    linear-gradient(135deg, #1a0f0d, #0a0807 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--text);
}
.video-card__inner {
  text-align: center;
  padding: 24px;
}
.video-card__play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform .2s, background .2s;
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.35);
}
.video-card:hover .video-card__play {
  background: var(--primary-hot);
  transform: scale(1.06);
}
.video-card__play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.video-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 .3em;
  text-transform: uppercase;
}
.video-card__sub {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--text);
  letter-spacing: .02em;
  margin: 14px 0 24px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}
.contact__email:hover { color: var(--primary); }
.contact__note {
  color: var(--muted);
  font-style: italic;
  font-size: .98rem;
  max-width: 540px;
  margin: 0 auto;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: all .2s;
}
.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  background: var(--bg-elev);
}
.footer p { margin: 0; }
.footer p + p { margin-top: 6px; }
.footer .joke {
  font-family: var(--font-grunge);
  color: var(--gold);
  letter-spacing: .15em;
  font-size: .8rem;
  text-transform: uppercase;
}

/* ---------- Utility / reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s, transform .7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page-specific (gallery / story / musica) ---------- */

.page-hero {
  padding: 160px 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(230, 57, 70, 0.12), transparent 60%),
    var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: 0 0 .3em;
}
.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}
.prose p { color: var(--text); }
.prose h2 {
  margin-top: 2.4em;
  color: var(--primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.prose h3 {
  margin-top: 1.8em;
  color: var(--gold);
  font-size: 1.3rem;
}
.prose blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.4em 0;
  padding: .2em 0 .2em 1.2em;
  font-style: italic;
  color: var(--muted);
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }

.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tracklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist li:hover { background: rgba(230, 57, 70, 0.06); }
.tracklist__num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  width: 32px;
  flex-shrink: 0;
}
.tracklist__title {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}
.tracklist__title a { color: var(--text); }
.tracklist__title a:hover { color: var(--primary); }
.tracklist__note {
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .tracklist li { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .tracklist__note { width: 100%; padding-left: 48px; }
}
