/* ═══════════════════════════════════════════════════════
   Companhia da Música — CSS Customizado
   Design: Concert Hall Elegance
   Paleta: Creme (#FAF7F0), Bordô (#6B1D1D), Dourado (#B8860B), Grafite (#2D2A26)
   Tipografia: Playfair Display (títulos), Source Sans 3 (corpo)
═══════════════════════════════════════════════════════ */

:root {
  --cream: #FAF7F0;
  --burgundy: #6B1D1D;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --graphite: #2D2A26;
  --graphite-light: #5A5550;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--graphite);
  background-color: var(--cream);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ═══ NAVBAR ═══ */
.navbar-custom {
  background-color: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.5s ease;
}
.navbar-custom .nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite);
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}
.navbar-custom .nav-link:hover {
  color: var(--burgundy);
}
.navbar-logo { height: 50px; width: auto; }

/* ═══ HERO ═══ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}
.hero-content { position: relative; z-index: 10; }
.hero-logo { max-width: 85vw; max-height: 200px; }
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ═══ SECTION TITLES ═══ */
.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 1rem;
}
.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 3rem;
}

/* ═══ BUTTONS ═══ */
.btn-burgundy {
  background-color: var(--burgundy);
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
  transition: all 0.3s;
}
.btn-burgundy:hover {
  background-color: #521515;
  color: var(--cream);
  transform: scale(1.03);
}
.btn-gold {
  background-color: var(--gold);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
  transition: all 0.3s;
}
.btn-gold:hover {
  background-color: var(--gold-light);
  color: white;
}
.btn-outline-burgundy {
  border: 2px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s;
}
.btn-outline-burgundy:hover {
  background-color: var(--burgundy);
  color: var(--cream);
}
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  transition: all 0.3s;
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  color: white;
  transform: scale(1.03);
}

/* ═══ BACKGROUNDS ═══ */
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: #ffffff; }
.bg-burgundy { background-color: var(--burgundy); }
.text-cream { color: var(--cream) !important; }
.text-burgundy { color: var(--burgundy) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-graphite { color: var(--graphite) !important; }
.text-graphite-light { color: var(--graphite-light) !important; }

/* ═══ PROMO SECTION ═══ */
.promo-section {
  position: relative;
  overflow: hidden;
}
.promo-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/promo-bg-instrumentos.webp');
  background-size: cover;
  background-position: center;
}
.promo-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(107, 29, 29, 0.85);
}

/* ═══ DIFERENCIAIS CARDS ═══ */
.diferencial-card {
  border: 1px solid rgba(184, 134, 11, 0.2);
  background-color: rgba(250, 247, 240, 0.5);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s;
  height: 100%;
}
.diferencial-card:hover {
  background-color: var(--cream);
  border-color: rgba(184, 134, 11, 0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.diferencial-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(107, 29, 29, 0.1);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.4s;
}
.diferencial-card:hover .diferencial-icon {
  background-color: var(--burgundy);
  color: var(--cream);
}

/* ═══ COURSE CARDS ═══ */
.course-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s;
  height: 100%;
  background: white;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ═══ PROFESSOR CARDS ═══ */
.professor-card {
  text-align: center;
  padding: 1.5rem;
}
.professor-card h5 {
  color: var(--burgundy);
  font-weight: 700;
}

/* ═══ INFRA GRID ═══ */
.infra-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.infra-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s;
}
.infra-item:hover img {
  transform: scale(1.05);
}
.infra-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.4s;
}
.infra-item:hover .infra-label {
  transform: translateY(0);
}

/* ═══ FOOTER ═══ */
.footer-custom {
  background-color: var(--burgundy);
  color: var(--cream);
}
.footer-custom a {
  color: rgba(250, 247, 240, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-custom a:hover {
  color: var(--gold);
}
.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(184, 134, 11, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.3s;
  margin-right: 0.75rem;
}
.footer-social a:hover {
  background-color: var(--gold);
  color: var(--burgundy);
}
.footer-social a.whatsapp-icon {
  border-color: rgba(37, 211, 102, 0.6);
  color: #25D366;
}
.footer-social a.whatsapp-icon:hover {
  background-color: #25D366;
  color: white;
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ═══ GOLD LINE ═══ */
.gold-line {
  height: 4px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ═══ VIDEO EMBED ═══ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ═══ MAP ═══ */
.map-section iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
  .hero-logo { max-height: 140px; }
  .navbar-logo { height: 40px; }
}
