/* ==========================================================================
   TEATRO TRANCOSO — DESIGN OFICIAL (VERSÃO ESTÁTICA SEGURA)
   Aesthetic: Theatrical Dark Blue-Black, Warm Gold & Orange Accents, Serif Headings
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores de Fundo */
  --bg-deep: #07090e;
  --bg-main: #0b0e14;
  --bg-card: #121620;
  --bg-card-alt: #161b26;
  --bg-header: rgba(11, 14, 20, 0.95);
  
  /* Cores de Acento */
  --orange-primary: #e65100;
  --orange-hover: #f57c00;
  --gold-accent: #d4a017;
  --gold-hover: #e5b324;
  --emerald: #10b981;
  
  /* Cores de Texto */
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold-subtle: rgba(212, 160, 23, 0.25);
  --border-gold-pill: rgba(212, 160, 23, 0.45);
  
  /* Fontes */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-pill: 50px;
  --radius-card: 12px;
  --radius-img: 10px;
  
  --container-width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Tipografia
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-white);
  line-height: 1.25;
}

.heading-hero {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 16px 0;
}

.heading-section {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 14px 0;
}

.heading-card {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Pílulas / Badges */
.pill-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid var(--border-gold-pill);
  color: #f1c40f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Linha decorativa */
.gold-divider {
  width: 50px;
  height: 2px;
  background-color: var(--gold-accent);
  margin: 14px auto 20px auto;
}

.gold-divider-left {
  width: 50px;
  height: 2px;
  background-color: var(--gold-accent);
  margin: 14px 0 20px 0;
}

/* ==========================================================================
   Header & Navegação
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-brand img {
  height: 48px;
  width: auto;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* Botões */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-orange {
  background-color: var(--orange-primary);
  color: #ffffff;
}

.btn-orange:hover {
  background-color: var(--orange-hover);
  color: #ffffff;
}

.btn-gold {
  background-color: var(--gold-accent);
  color: #0b0e14;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #000;
}

.btn-dark {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 110px 0 90px 0;
  background-size: cover;
  background-position: center top;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 30%, rgba(230, 81, 0, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.75) 0%, rgba(11, 14, 20, 0.95) 75%, var(--bg-deep) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 20px auto 35px auto;
  max-width: 760px;
  font-weight: 400;
}

.hero-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Seções Gerais & Cards
   ========================================================================== */
.content-section {
  padding: 85px 0;
  position: relative;
}

.content-section.darker {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Imagem em Moldura com Legenda */
.media-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.media-caption {
  padding: 12px 18px;
  background: rgba(11, 14, 20, 0.9);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* Card Teatral */
.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-subtle);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-accent);
}

.card-link:hover {
  color: #fff;
}

/* Banner de Citação / Pilares */
.statement-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.statement-box h2 {
  color: var(--gold-accent);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.statement-box p {
  font-size: 1.12rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Destaque Entrada Gratuita */
.free-admission-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left-width: 4px;
  padding: 20px 24px;
  border-radius: 6px;
  margin: 24px 0;
}

.free-admission-box h4 {
  color: #34d399;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ==========================================================================
   Tabela Orçamentária
   ========================================================================== */
.budget-table-wrap {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow-x: auto;
  margin: 30px 0;
}

.budget-table-official {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.budget-table-official th,
.budget-table-official td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.budget-table-official th {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--gold-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.budget-table-official tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

.budget-table-official .subtotal-row td {
  background-color: rgba(212, 160, 23, 0.06);
  font-weight: 700;
  color: var(--gold-accent);
}

.budget-table-official .total-row td {
  background-color: rgba(230, 81, 0, 0.12);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  border-top: 2px solid var(--orange-primary);
}

/* ==========================================================================
   Galeria & Mídia
   ========================================================================== */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.photo-gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  aspect-ratio: 4/3;
}

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

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

/* ==========================================================================
   Formulário de Contato
   ========================================================================== */
.contact-form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 36px 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  font-size: 0.92rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.8fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 868px) {
  .site-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .grid-2col, .grid-3col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-section {
    padding: 70px 0 60px 0;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
