/* =========================================
   HOMEPAGE
========================================= */

.home-page {
  width: 100%;
}



/* =========================================
   BRAND STATEMENT
========================================= */

.home-brand {
  background: var(--color-background);
}

.home-brand__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-brand__inner h2 {
  color: var(--color-secondary);
}

.home-brand__inner p {
  margin-top: var(--space-2);
  color: var(--color-text-primary);
}



/* =========================================
   SPLIT SECTION (FESTIVALS / PROGRAMS)
========================================= */

.home-split {
  background: var(--salsa-gradient-6);
  color: #fff;
}

.home-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.home-split__card {
  display: block;
  padding: var(--space-4);
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-split__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-split__card h3 {
  color: #fff;
}

.home-split__card p {
  margin-top: var(--space-2);
  color: rgba(255,255,255,0.85);
}



/* =========================================
   SECTION HEADER
========================================= */
.section-header {
    width: fit-content;
    margin: auto;
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header p {
    text-align: center;
}


/* =========================================
   FEATURED FESTIVALS — PREMIUM CAROUSEL
========================================= */

.home-festivals {
  overflow: hidden;
}

.home-festivals__grid {
  position: relative;
  height: 30vw;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Base card */
.festival-card {
  position: absolute;
  width: 60%;
  max-width: 720px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.6s cubic-bezier(.16,.84,.44,1);
  cursor: pointer;
}

/* Image */
.festival-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.festival-card:hover img {
  transform: scale(1.06);
}

/* Overlay */
.festival-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2),
    rgba(0,0,0,0)
  );
}

.festival-card__overlay h3 {
  color: #fff;
  margin: 0;
}

/* =========================================
   CAROUSEL STATES
========================================= */

.festival-card.is-active {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
}

.festival-card.is-left {
  transform: translateX(-60%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
}

.festival-card.is-right {
  transform: translateX(60%) scale(0.85);
  z-index: 2;
  opacity: 0.6;
}

.festival-card.is-hidden {
  transform: scale(0.7);
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (min-width: 1320px) {
  .home-festivals__grid {
      height: 480px;
  }
}
@media (max-width: 768px) {
  .home-festivals__grid {
    height: 43vw;
  }

  .festival-card {
    width: 85%;
  }

  .festival-card.is-left {
    transform: translateX(-40%) scale(0.85);
  }

  .festival-card.is-right {
    transform: translateX(40%) scale(0.85);
  }
}


/* =========================================
   SALSA INSIDER
========================================= */

.home-insider {
  background: var(--salsa-gradient-6);
  color: #fff;
  text-align: center;
}

.home-insider__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-insider__inner h2 {
  color: #fff;
}

.home-insider__inner p {
  color: var(--color-text-secondary);
}



/* =========================================
   INSTAGRAM
========================================= */

.home-instagram {
  background: var(--color-background);
}

.home-instagram .instagram-frame {
  margin-top: var(--space-3);
}



/* =========================================
   SHOP SECTION
========================================= */

.home-shop {
  background: var(--purple-800);
  color: #fff;
}

.home-shop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.home-shop__text .header-title {
    text-align: left;
}

.home-shop__text p {
  color: white
}

.home-shop__image {
  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 22px;
  padding: var(--space-4);
  box-shadow: var(--shadow-md);

}

.home-shop__image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}



/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

/* ---------- 1100px ---------- */
@media (max-width: 1100px) {

  .home-festivals__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-shop__image img {
      max-width: 200px;
  }

}


/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .home-split__grid {
    grid-template-columns: 1fr;
  }
  .home-shop__grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-shop__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .home-shop__text .header-title, .home-shop__text p {
    text-align: center;
  }
  .home-shop__image {
    display: none;
  }

}


/* ---------- 580px ---------- */
@media (max-width: 580px) {
  .home-split__card {
      padding: var(--space-2) var(--space-4);
  }
  .home-festivals__grid {
    grid-template-columns: 1fr;
  }


}