/* ============================================
   Teatro Miguel Falabella — Design System
   The Dramatic Maracanã
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --ruby-red: #a81e1e;
  --theatre-black: #0f0f0f;
  --spotlight-white: #ffffff;
  --velvet-gray: #333333;
  --ash-gray: #e5e5e5;
  --surface: #fff8f7;
  --surface-dim: #efd4d1;
  --surface-bright: #fff8f7;
  --surface-container: #ffe9e6;
  --surface-container-high: #fde2df;
  --surface-container-highest: #f7dcd9;
  --surface-variant: #f7dcd9;
  --on-surface: #261816;
  --on-surface-variant: #5a413e;
  --secondary: #5f5e5e;
  --on-secondary: #ffffff;
  --background: #fff8f7;
  --on-background: #261816;
  --on-primary: #ffffff;
  --primary-container: #a81e1e;
  --on-primary-container: #ffbbb4;
  --outline: #8e706d;
  --outline-variant: #e2beba;
  --error: #ba1a1a;
  --error-container: #ffdad6;

  /* Typography */
  --font-display: "Bodoni MT Condensed", "Libre Caslon Text", Georgia, serif;
  --font-body:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --space-unit: 8px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 80px;
  --max-width: 1600px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 0.75rem;

  /* Shadows */
  --stage-shadow: 0 20px 40px -10px rgba(15, 15, 15, 0.15);
  --stage-shadow-sm: 0 10px 30px -5px rgba(15, 15, 15, 0.15);
  --ruby-glow: 0 0 15px rgba(168, 30, 30, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

@font-face {
  font-family: "Bodoni MT Condensed";
  src: url("../assets/fonts/bodoni-mt-condensed.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: condensed;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--on-surface);
  background-color: var(--background);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Selection */
::selection {
  background: var(--ruby-red);
  color: var(--spotlight-white);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

/* --- Typography --- */
.display-lg {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
}

.headline-md {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--background);
}

.label-lg {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-md {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .display-lg {
    font-size: 64px;
    line-height: 72px;
  }
  .headline-lg {
    font-size: 48px;
    line-height: 56px;
  }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--theatre-black);
  border-bottom: 1px solid var(--velvet-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 80px;
  transition:
    height var(--transition-base),
    box-shadow var(--transition-base);
}

.header.scrolled {
  height: 64px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition:
    height var(--transition-base),
    filter var(--transition-base);
}

.header.scrolled .header-logo img {
  height: 50px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-primary);
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 4px;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--ruby-red);
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ruby-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: 2px solid transparent;
  color: var(--on-primary);
  cursor: pointer;
  padding: 4px;
  font-size: 28px;
  line-height: 1;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
}

.mobile-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--theatre-black);
  z-index: 70;
  padding: 32px 24px;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
}

.mobile-close-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--on-primary);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-size: 18px;
  color: var(--on-primary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition-base);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--ruby-red);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--ruby-red);
  color: var(--spotlight-white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--primary-container);
  box-shadow: var(--ruby-glow);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--spotlight-white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid var(--spotlight-white);
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.btn-secondary:hover {
  background: var(--spotlight-white);
  color: var(--theatre-black);
}

.btn-dark {
  background: var(--theatre-black);
  color: var(--spotlight-white);
  padding: 16px 40px;
  transition: background var(--transition-base);
}

.btn-dark:hover {
  background: var(--ruby-red);
}

/* --- Badges --- */
.badge {
  display: inline-block;
  border: 1px solid var(--ruby-red);
  color: var(--ruby-red);
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bg-black .badge,
.hero-section .badge,
.page-banner .badge {
  background: var(--ruby-red);
  color: var(--spotlight-white);
  border-color: var(--ruby-red);
}

.badge-filled {
  background: var(--ruby-red);
  color: var(--spotlight-white);
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Cards --- */
.card {
  background: var(--velvet-gray);
  color: var(--spotlight-white);
  transition: transform var(--transition-base);
  box-shadow: var(--stage-shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
}

.card-image {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image .hero-bg-image {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.card-body {
  padding: 24px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

/* --- Info Strip --- */
.info-strip {
  background: var(--velvet-gray);
  padding: 24px 0;
}

.info-strip .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-strip-icon {
  color: var(--ruby-red);
  font-size: 24px;
  flex-shrink: 0;
}

.info-strip-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.info-strip-value {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-primary);
}

@media (min-width: 768px) {
  .info-strip .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Section Padding --- */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}

/* --- Grid Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Hero Section (shared) --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--theatre-black);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--theatre-black),
    transparent,
    rgba(15, 15, 15, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--margin-mobile);
  max-width: 900px;
  margin: 0 auto;
  color: var(--spotlight-white);
}

.hero-subtitle {
  display: inline-block;
  background: var(--ruby-red);
  color: var(--spotlight-white);
  border: 1px solid var(--ruby-red);
  padding: 4px 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-title-sub {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: -12px;
}

.hero-title-large {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 56px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-description {
  font-size: 18px;
  line-height: 28px;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description strong {
  color: #ff6b6b;
  text-shadow:
    0 2px 12px rgba(15, 15, 15, 0.7),
    0 0 4px rgba(15, 15, 15, 0.5);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hero-content-left {
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.hero-content-left .hero-title {
  align-items: center;
}

.hero-content-left .hero-actions {
  align-items: center;
}

.hero-content-left .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.container .hero-content-left {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .hero-title-main {
    font-size: 120px;
  }
  .hero-title-sub {
    font-size: 28px;
    margin-top: -24px;
  }
  .hero-title-large {
    font-size: 100px;
    line-height: 90px;
  }
}

@media (min-width: 768px) {
  .hero-title-main {
    font-size: 200px;
  }
  .hero-title-sub {
    font-size: 40px;
    margin-top: -40px;
  }
  .hero-title-large {
    font-size: 170px;
    line-height: 140px;
    margin-bottom: 48px;
  }
  .hero-content-left {
    text-align: left;
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
  .hero-content-left .hero-title {
    align-items: flex-start;
  }
  .hero-content-left .hero-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .hero-content-left .hero-description {
    margin-left: 0;
    margin-right: auto;
  }
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  position: relative;
  background: var(--theatre-black);
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--theatre-black), transparent);
}

.page-banner .container {
  position: relative;
  z-index: 10;
  color: var(--spotlight-white);
}

/* --- Mobile Center Button --- */
.btn-mobile-center {
  text-align: left;
}

@media (max-width: 767px) {
  .btn-mobile-center {
    text-align: center;
  }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator .arrow {
  font-size: 28px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* --- Footer --- */
.footer {
  background: var(--theatre-black);
  color: var(--on-primary);
  border-top: 1px solid var(--velvet-gray);
}

.footer-main {
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 22px;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--on-primary);
  transition:
    border-color var(--transition-base),
    color var(--transition-base);
  font-size: 18px;
}

.footer-social a:hover {
  border-color: var(--ruby-red);
  color: var(--ruby-red);
}

.footer-title {
  color: var(--ruby-red);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--ruby-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  transition: opacity var(--transition-base);
}

.footer-bottom-links a:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- FAB Mobile --- */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 40;
  background: var(--ruby-red);
  color: var(--spotlight-white);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(168, 30, 30, 0.3);
  transition: transform var(--transition-fast);
}

.fab:hover {
  transform: scale(1.1);
}

.fab:active {
  transform: scale(0.95);
}

@media (max-width: 767px) {
  .fab {
    display: flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
}

/* --- Filter Bar --- */
.filter-bar {
  padding: 32px 0;
  background: var(--spotlight-white);
}

.filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ash-gray);
}

.filter-btn {
  padding: 8px 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base);
  font-family: var(--font-body);
}

.filter-btn.active {
  background: var(--theatre-black);
  color: var(--on-primary);
}

.filter-btn:not(.active) {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--ash-gray);
}

.filter-btn:not(.active):hover {
  border-color: var(--ruby-red);
}

/* --- Input Styles --- */
.form-group {
  margin-bottom: 16px;
}

.event-form-card {
  background: var(--spotlight-white);
  padding: 24px;
  border-top: 4px solid var(--ruby-red);
  box-shadow: var(--stage-shadow);
}

@media (min-width: 768px) {
  .event-form-card {
    padding: 48px;
  }
}

.form-label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ash-gray);
  background: var(--spotlight-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ruby-red);
  box-shadow: 0 0 0 2px rgba(168, 30, 30, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

/* --- Section backgrounds --- */
.bg-black {
  background: var(--theatre-black);
}
.bg-white {
  background: var(--spotlight-white);
}
.bg-surface {
  background: var(--surface);
}
.bg-ruby {
  background: var(--ruby-red);
}
.bg-velvet {
  background: var(--velvet-gray);
}

.text-white {
  color: var(--spotlight-white);
}
.text-ruby {
  color: var(--ruby-red);
}
.text-dark {
  color: var(--theatre-black);
}
.text-secondary {
  color: var(--secondary);
}
.text-muted {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Misc Utilities --- */
.text-center {
  text-align: center;
}
.text-uppercase {
  text-transform: uppercase;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.font-bold {
  font-weight: 700;
}
.relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

/* Material Symbols fallback */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

/* Icon fallback for when Material Symbols CDN fails */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-lg {
  font-size: 32px;
}
.icon-xl {
  font-size: 48px;
}
.icon-2xl {
  font-size: 64px;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Bento grid for espetaculos */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.bento-col-8 {
  grid-column: span 1;
}
.bento-col-7 {
  grid-column: span 1;
}
.bento-col-6 {
  grid-column: span 1;
}
.bento-col-5 {
  grid-column: span 1;
}
.bento-col-4 {
  grid-column: span 1;
}
.bento-col-3 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-col-8 {
    grid-column: span 8;
  }
  .bento-col-7 {
    grid-column: span 7;
  }
  .bento-col-6 {
    grid-column: span 6;
  }
  .bento-col-5 {
    grid-column: span 5;
  }
  .bento-col-4 {
    grid-column: span 4;
  }
  .bento-col-3 {
    grid-column: span 3;
  }
  .bento-col-12 {
    grid-column: span 12;
  }
}

/* Schedule grid */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.schedule-card {
  background: var(--spotlight-white);
  padding: 24px;
  border: 1px solid var(--ash-gray);
  transition: border-color var(--transition-base);
  box-shadow: var(--stage-shadow-sm);
}

.schedule-card:hover {
  border-color: var(--ruby-red);
}

.schedule-day-header {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ruby-red);
  border-bottom: 2px solid var(--ruby-red);
  padding-bottom: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 150px;
  }
  .gallery-item-featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--spotlight-white);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ============================================
   Tema Claro — Header e Footer em Off-white
   ============================================ */

/* --- Header Light --- */
.header--light {
  background: #faf9f6 !important;
  border-bottom: 1px solid var(--ash-gray) !important;
}

.header--light .header-nav a {
  color: var(--theatre-black) !important;
}

.header--light .header-nav a:hover,
.header--light .header-nav a.active {
  color: var(--ruby-red) !important;
}

.header--light .header-nav a.active::after {
  background: var(--ruby-red) !important;
}

.header--light .header-logo img {
  filter: none !important;
}

.header--light .mobile-menu-btn {
  color: var(--theatre-black) !important;
}

.header--light .header-actions .btn-primary {
  background: var(--theatre-black) !important;
}

.header--light .header-actions .btn-primary:hover {
  background: var(--ruby-red) !important;
}

/* --- Footer Light --- */
.footer--light {
  background: #faf9f6 !important;
  border-top: 1px solid var(--ash-gray) !important;
}

.footer--light .footer-brand p {
  color: var(--secondary) !important;
}

.footer--light .footer-brand img {
  filter: none !important;
}

.footer--light .footer-title {
  color: var(--ruby-red) !important;
}

.footer--light .footer-links a {
  color: var(--secondary) !important;
}

.footer--light .footer-links a:hover {
  color: var(--ruby-red) !important;
}

.footer--light .footer-main p {
  color: var(--secondary) !important;
}

.footer--light .footer-bottom {
  border-top-color: var(--ash-gray) !important;
}

.footer--light .footer-bottom p,
.footer--light .footer-bottom-links a {
  color: var(--secondary) !important;
}

.footer--light .footer-bottom-links a:hover {
  color: var(--ruby-red) !important;
}

.footer--light .footer-social a {
  color: var(--theatre-black) !important;
}

.footer--light .footer-social a:hover {
  border-color: var(--ruby-red) !important;
  color: var(--ruby-red) !important;
}

/* --- FAB Light --- */
.fab--light {
  background: var(--theatre-black) !important;
}

/* --- Partners Carousel --- */
@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.partners-track {
  display: flex;
  gap: 48px;
  animation: partners-scroll 30s linear infinite;
  width: max-content;
}
.partners-track:hover {
  animation-play-state: paused;
}
.partners-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--spotlight-white);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
  z-index: 2100;
}

.lightbox-close span {
  font-size: 36px;
}

.lightbox-close:hover {
  color: var(--ruby-red);
  transform: scale(1.1);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox-modal.open .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  color: var(--spotlight-white);
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* --- Library Grid (Sobre) --- */
.library-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .library-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  .library-grid > div:nth-child(1) {
    grid-column: span 7;
  }
  .library-grid > div:nth-child(2) {
    grid-column: span 5;
  }
  .library-grid > div:nth-child(3) {
    grid-column: span 12;
  }
}

.festival-card-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .festival-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .specs-row {
    justify-content: flex-start;
  }
}

/* --- Transição de Cortina Teatral --- */
.theater-curtain-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
  transition: visibility 0.8s ease-in-out;
}

.theater-curtain-transition.opened {
  visibility: hidden;
}

.curtain-half {
  flex: 1;
  height: 100%;
  background: #a81e1e; /* Vermelho rubi do teatro */
  /* Degradê simulando dobras tridimensionais de veludo */
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.1) 8%,
    rgba(255, 255, 255, 0.15) 15%,
    rgba(0, 0, 0, 0.35) 25%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.1) 65%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(0, 0, 0, 0.45) 90%,
    rgba(0, 0, 0, 0.2) 100%
  );
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
}

.curtain-left {
  transform: translateX(0);
  border-right: 2px solid rgba(0, 0, 0, 0.4);
}

.curtain-right {
  transform: translateX(0);
  border-left: 2px solid rgba(0, 0, 0, 0.4);
}

/* Estado Aberto (Dividido) */
.theater-curtain-transition.opened .curtain-left {
  transform: translateX(-100%);
}

.theater-curtain-transition.opened .curtain-right {
  transform: translateX(100%);
}
