/* ============================================================
   TEATRO AZTECA — PAGE STYLES
   Extends Maya Event Center global styles
   ============================================================ */

/* ── Active nav link ── */
.nav-active {
  color: var(--gold) !important;
  font-weight: 600 !important;
}
.nav-active-mobile {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* ============================================================
   HERO
   ============================================================ */
.teatro-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark);
  overflow: hidden;
}

.teatro-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/teatro-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.teatro-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.42) 30%,
    rgba(0,0,0,0.60) 68%,
    rgba(0,0,0,0.80) 100%
  );
}

.teatro-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 120px 24px 80px;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Teatro Logo ── */
.teatro-hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0 8px;
}
.teatro-hero-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  /* Neutral shadow only — no color filters so original red stays exact */
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.90))
    drop-shadow(0 4px 18px rgba(0, 0, 0, 0.65));
  opacity: 1;
}

/* Keep h1 styles in case ever needed but logo replaces it */
.teatro-hero-content h1 {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 9vw, 7rem);
  color: var(--gold-lt);
  text-shadow: 0 0 60px rgba(184,150,74,0.7), 0 2px 20px rgba(0,0,0,0.95), 0 4px 40px rgba(0,0,0,0.75);
  line-height: 1.05;
  margin: 16px 0 24px;
}

.teatro-hero-sub {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 2px 16px rgba(0,0,0,0.75);
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}

/* Decorative gold dots framing the hero title */
.teatro-hero-content::before,
.teatro-hero-content::after {
  content: '✦  ✦  ✦';
  display: block;
  font-size: 0.65rem;
  letter-spacing: 12px;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 4px;
}
.teatro-hero-content::after {
  margin-top: 28px;
  margin-bottom: 0;
}

/* ============================================================
   ABOUT THE VENUE
   ============================================================ */
.teatro-about {
  padding: 88px 0;
  background: var(--cream);
}

.teatro-about-inner {
  max-width: 800px;
}

.teatro-about-text {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.9;
  margin-top: 8px;
}

/* ============================================================
   TYPES OF EVENTS
   ============================================================ */
.teatro-events {
  padding: 88px 0;
  background: var(--warm);
}

.teatro-events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.teatro-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}

.teatro-event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Image container — fixed height, no crop distortion */
.teatro-event-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.teatro-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.teatro-event-card:hover .teatro-event-img img {
  transform: scale(1.07);
}

.teatro-event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 18px 24px 8px;
  letter-spacing: 0.3px;
}

.teatro-event-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.75;
  padding: 0 20px 24px;
  margin: 0;
}

/* ============================================================
   MUSIC STYLES
   ============================================================ */
.teatro-music {
  padding: 88px 0;
  background: var(--dark);
}

.teatro-music .section-head h2 {
  color: var(--gold-lt);
}
.teatro-music .section-head p {
  color: rgba(255,255,255,0.6);
}
.teatro-music .eyebrow {
  color: var(--gold);
}
.teatro-music .gold-rule {
  background: var(--gold);
}

.teatro-music-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.teatro-music-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1.5px solid rgba(184,150,74,0.45);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-lt);
  background: rgba(184,150,74,0.08);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}

.teatro-music-tag:hover {
  background: rgba(184,150,74,0.20);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   GALLERY PLACEHOLDER
   ============================================================ */
/* ============================================================
   CONCERT GALLERY — Moments & Memories
   ============================================================ */
.teatro-gallery {
  padding: 88px 0;
  background: var(--dark);
}

.teatro-gallery .section-head h2 { color: var(--gold-lt); }
.teatro-gallery .section-head p  { color: rgba(255,255,255,0.55); }
.teatro-gallery .eyebrow          { color: var(--gold); }
.teatro-gallery .gold-rule        { background: var(--gold); margin: 18px auto 0; }

/* ── Shared item styles ── */
.cg-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mid);
  cursor: pointer;
}
.cg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cg-item:hover img {
  transform: scale(1.06);
}

/* Overlay on hover */
.cg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}
.cg-overlay span {
  color: var(--gold-lt);
  font-size: 1.8rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0 0 20px rgba(240,223,184,0.8);
}
.cg-item:hover .cg-overlay {
  background: rgba(0,0,0,0.38);
}
.cg-item:hover .cg-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* ── 6-photo grid: 2 tall cols left + 2x2 right ──
   Layout:
   [ tall ] [ tall ] [ sm ] [ sm ]
                     [ sm ] [ sm ]
*/
.cg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
}

/* First two items span both rows (tall) */
.cg-tall {
  grid-row: span 2;
}

/* All items same base style */
.cg-grid .cg-item {
  height: 100%;
  min-height: 0;
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.teatro-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.teatro-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/teatro-hero.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

.teatro-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,3,1,0.82), rgba(20,10,2,0.75));
}

.teatro-cta-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 72px 28px;
  max-width: 680px;
}

.teatro-cta-content h2 {
  font-family: var(--font-script);
  color: var(--gold-lt);
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.teatro-cta-content p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .teatro-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 1024px: collapse to 2 tall + 2x2 but shorter rows */
  .cg-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 220px 220px;
  }
}

@media (max-width: 768px) {
  /* 768px: 2 columns, tall items still span 2 rows */
  .cg-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  /* Re-flow: first two tall, then 4 in the remaining rows */
  .cg-tall { grid-row: span 2; }

  .teatro-hero-content {
    padding: 100px 20px 60px;
  }
  .teatro-about-inner {
    max-width: 100%;
  }
  .teatro-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .teatro-music-grid {
    gap: 10px;
  }
  .teatro-music-tag {
    padding: 10px 20px;
    font-size: 0.82rem;
  }
}

@media (max-width: 540px) {
  /* 540px: single column, all equal height */
  .cg-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 180px);
  }
  .cg-tall { grid-row: span 2; }

  .teatro-hero-bg {
    background-position: 60% 20%;
  }
  .teatro-hero-logo {
    max-width: 160px;
  }
  .teatro-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.50) 30%,
      rgba(0,0,0,0.65) 68%,
      rgba(0,0,0,0.85) 100%
    );
  }
  .teatro-cta-bg {
    background-position: center 50%;
  }
  .teatro-hero-content {
    padding: 90px 18px 50px;
  }
  .teatro-hero-content h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }
  .teatro-hero-sub {
    font-size: 0.92rem;
  }
  .teatro-events-grid {
    grid-template-columns: 1fr;
  }
  .teatro-event-card {
    padding: 28px 20px;
  }
  .teatro-music-tag {
    padding: 10px 18px;
    font-size: 0.8rem;
  }
  .teatro-gallery-placeholder {
    padding: 48px 18px;
  }
  .teatro-cta-content {
    padding: 56px 18px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .cta-btns .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
