/* =================================================
   1. DEFINIÇÃO DA FONTE LOCAL
   =================================================
*/

@font-face {
  font-family: 'Branding SF Narrow';
  src: url('fonts/BrandingSFNarrow-Light.woff2') format('woff2'),
       url('fonts/BrandingSFNarrow-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Branding SF Narrow';
  src: url('fonts/BrandingSFNarrow-Regular.woff2') format('woff2'),
       url('fonts/BrandingSFNarrow-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Branding SF Narrow';
  src: url('fonts/BrandingSFNarrow-Medium.woff2') format('woff2'),
       url('fonts/BrandingSFNarrow-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Branding SF Narrow';
  src: url('fonts/BrandingSFNarrow-Bold.woff2') format('woff2'),
       url('fonts/BrandingSFNarrow-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* =================================================
   2. VARIÁVEIS DE CORES E FONTES
   =================================================
*/
:root {
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #f0f0f0;
    --white: #ffffff;
    --gold-desaturated: #c9ae7c;
    --gold-hover: #b89d6c;
    --font-primary: 'Branding SF Narrow', sans-serif;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--light-gray);
    background-color: var(--dark-gray);
    overflow-x: hidden; 
   
}
a { color: var(--gold-desaturated); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-hover); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =================================================
   ANIMAÇÃO DE BOTÃO
   =================================================
*/
@keyframes light-beam {
  0% { transform: translateX(-150%) skewX(-25deg); }
  100% { transform: translateX(350%) skewX(-25deg); }
}
.btn-primary, .btn-secondary, .btn-join {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::after, .btn-secondary::after, .btn-join::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    
    /* === CORREÇÃO APLICADA AQUI === */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    
    filter: blur(5px);
    animation: light-beam 4s linear infinite;
    animation-delay: var(--animation-delay, 0s);
}
.btn-secondary::after { animation-delay: 0.5s; }
.btn-primary::after { animation-delay: 1s; }

/* =================================================
   BOTÕES
   =================================================
*/
.btn-primary, .btn-secondary, .btn-join {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
}
.btn-primary { background-color: var(--gold-desaturated); color: var(--dark-gray); border: 1px solid var(--gold-desaturated); }
.btn-primary:hover { background-color: var(--gold-hover); border-color: var(--gold-hover); color: var(--dark-gray); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--gold-desaturated); border: 1px solid var(--gold-desaturated); padding: 8px 18px; font-size: 0.8em; }
.btn-secondary:hover { background-color: var(--gold-desaturated); color: var(--dark-gray); transform: translateY(-1px); }
.btn-join { background-color: var(--gold-desaturated); color: var(--dark-gray); border: 1px solid var(--gold-desaturated); font-weight: 600; }
.btn-join:hover { background-color: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-2px); color: var(--dark-gray); }
.btn-primary.large { padding: 15px 40px; font-size: 1.1em; }

/* =================================================
   HEADER (Glassmorphism)
   =================================================
*/
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 10px;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 174, 124, 0.2);
    border-radius: 10px;
    padding: 10px 25px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { border-radius: 50%; width: 40px; height: 40px; }
.logo h1 { font-size: 1.6em; color: var(--white); font-weight: 700; }
.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--light-gray); font-weight: 400; font-size: 1.05em; position: relative; padding-bottom: 5px; }
.main-nav a:hover { color: var(--gold-desaturated); }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--gold-desaturated); transition: width 0.3s ease-out; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.hamburger-menu { display: none; background: none; border: none; color: var(--white); font-size: 1.8em; cursor: pointer; }

/* =================================================
   MENU MOBILE
   =================================================
*/
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-bottom: 20px; border-bottom: 1px solid rgba(201, 174, 124, 0.2); }
.close-menu { background: none; border: none; color: var(--white); font-size: 2em; cursor: pointer; }
.mobile-nav { margin-top: 40px; text-align: center; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 30px; }
.mobile-nav a { font-size: 1.8em; font-weight: 500; color: var(--white); }
.mobile-btn-join { margin-top: 40px; text-align: center; font-size: 1.1em; padding: 15px 30px; width: 100%; max-width: 300px; align-self: center; }

/* =================================================
   SEÇÕES (Comuns)
   =================================================
*/
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h3 { font-size: 2.5em; font-weight: 700; color: var(--white); margin-bottom: 15px; position: relative; display: inline-block; }
.section-header h3::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -10px; width: 60px; height: 3px; background-color: var(--gold-desaturated); }
.section-header p { font-size: 1.1em; color: var(--light-gray); font-weight: 300; }

/* =================================================
   HERO SECTION (R2 - Vídeo)
   =================================================
*/
.hero-section {
    /* Removido o background-image */
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Importante para conter o vídeo */
    padding-top: 140px;
}
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Atrás do overlay */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.671));
    z-index: 2; /* Na frente do vídeo */
}
.hero-section .container {
    position: relative;
    z-index: 3; /* Na frente do overlay */
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h2 { font-size: 3.5em; font-weight: 700; color: var(--white); margin-bottom: 25px; line-height: 1.2; }
.hero-content p { font-size: 1.25em; color: var(--light-gray); margin-bottom: 40px; font-weight: 300; }

/* =================================================
   Outras Seções (About, Loader, CTA, Footer)
   =================================================
*/
.about-section { background-color: var(--medium-gray); }
.about-content { display: flex; flex-direction: column; gap: 25px; font-size: 1.1em; line-height: 1.8; max-width: 800px; margin: 0 auto; text-align: center; }

/* ARQUIVO: style.css */

/* Caixa de destaque para a seção 'Sobre' */
.highlight-box {
    display: inline-block; /* Faz a caixa se ajustar ao tamanho do texto */
    border: 1px solid var(--gold-desaturated); /* Borda com a cor dourada */
    border-radius: 8px; /* Cantos arredondados */
    padding: 15px 25px; /* Espaçamento interno (dentro da borda) */
    background: none; /* Sem preenchimento */
    margin-top: 10px; /* Um respiro do parágrafo de cima */
}

.loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-gray); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }
.loader { border: 5px solid var(--medium-gray); border-top: 5px solid var(--gold-desaturated); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* =================================================
   EVENTOS
   =================================================
*/

/* REMOVIDO: Animação de scroll que não será usada */
/*
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-350px * 3)); }
}
*/

.events-section {
    background-color: var(--dark-gray);
    overflow: hidden;
}

/* MUDANÇA: Container agora é visível e não tem mais máscara */
.carousel-container {
    /* max-width: 600px; (REMOVIDO) */
    /* margin: 0 auto; (REMOVIDO) */
    overflow: visible; /* MUDANÇA: de hidden para visible */
    position: relative;
    /* -webkit-mask-image: (REMOVIDO) */
    /* mask-image: (REMOVIDO) */
}

/* MUDANÇA: Track agora é um grid estático e centralizado */
.carousel-track {
    display: flex;
    flex-wrap: wrap; /* ADICIONADO: para quebrar a linha */
    justify-content: center; /* ADICIONADO: para centralizar os cards */
    /* width: calc(350px * 6); (REMOVIDO) */
    /* animation: scroll 25s linear infinite; (REMOVIDO) */
    gap: 30px;
}

/* REMOVIDO: Regra de hover que pausava a animação */
/*
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}
*/

.event-card {
    background-color: var(--medium-gray);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 320px; 
    flex-shrink: 0;
    /* margin-right: 30px; (Removido em favor do 'gap') */
}
.event-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.event-date { background-color: var(--gold-desaturated); color: var(--dark-gray); padding: 15px; text-align: center; font-weight: 700; font-size: 1.8em; line-height: 1; border-bottom: 2px solid var(--gold-hover); border-radius: 5px 5px 0 0}
.event-date .day { display: block; font-size: 1.5em; line-height: 1; }
.event-date .month { display: block; font-size: 0.6em; text-transform: uppercase; letter-spacing: 1px; }
.event-details { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.event-details h4 { font-size: 1.4em; color: var(--white); margin-bottom: 15px; font-weight: 600; line-height: 1.3; }
.event-info { font-size: 0.95em; color: var(--light-gray); margin-bottom: 20px; font-weight: 300; }
.event-info .icon { margin-right: 8px; color: var(--gold-desaturated); font-size: 1.1em; width: 1.2em; text-align: center; }
.event-card .btn-secondary { align-self: flex-start; margin-top: auto; }

/* Botão do card dourado (da mudança anterior) */
.events-section .event-card .btn-secondary {
    background-color: var(--gold-desaturated);
    color: var(--dark-gray);
    border-color: var(--gold-desaturated);
}
.events-section .event-card .btn-secondary:hover {
    background-color: var(--gold-hover);
    color: var(--dark-gray);
    border-color: var(--gold-hover);
    transform: translateY(-1px); /* Garante a consistência */
}


/* CTA Section */
.cta-section { background-color: var(--medium-gray); text-align: center; padding: 100px 0; }
.cta-section h3 { font-size: 2.8em; color: var(--white); margin-bottom: 20px; font-weight: 700; }
.cta-section p { font-size: 1.2em; color: var(--light-gray); margin-bottom: 40px; font-weight: 300; }

/* Footer */
.main-footer { background-color: var(--medium-gray); padding: 40px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.main-footer .container { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { border-radius: 50%; width: 35px; height: 35px;  }
.footer-logo p { font-size: 1.4em; font-weight: 600; color: var(--white); }
.footer-links ul { display: flex; gap: 30px; }
.footer-links a { color: var(--light-gray); font-size: 0.95em; }
.footer-links a:hover { color: var(--gold-desaturated); }
.footer-social { display: flex; gap: 15px; }
.footer-social .icon { font-size: 28px; color: var(--light-gray); transition: color 0.3s ease, transform 0.3s ease; }
.footer-social .icon:hover { color: var(--gold-desaturated); transform: translateY(-3px); }
.copyright { font-size: 0.85em; color: rgba(255, 255, 255, 0.5); margin-top: 15px; }

/* =================================================
   RESPONSIVIDADE
   =================================================
*/
@media (max-width: 992px) {
    .main-header .container { padding: 10px 15px; }
    .main-nav { display: none; }
    .hamburger-menu { display: block; }
    .header-actions .btn-join { padding: 8px 15px; font-size: 0.8em; }
    .logo h1 { font-size: 1.2em; }
    .logo img { width: 35px; height: 35px; }
    .hero-content h2 { font-size: 2.8em; }
    .hero-content p { font-size: 1.1em; }
    .section-header h3 { font-size: 2em; }
    .cta-section h3 { font-size: 2.2em; }
}
@media (max-width: 768px) {
    .main-header { top: 10px; }
    .section-padding { padding: 60px 0; }
    .hero-section { min-height: 60vh; }
    .hero-content h2 { font-size: 2.2em; }
    .hero-content p { font-size: 1em; }
    .footer-links ul { flex-direction: column; gap: 10px; }
    .footer-social { margin-top: 15px; }
    
    /* REMOVIDO: Keyframe de scroll duplicado */
    
    /* ESTA PARTE (MOBILE) JÁ ESTÁ CORRETA E NÃO MUDA */
    .event-card { 
        width: 300px; 
        margin-right: 0; 
        flex-shrink: 1;
    }
    .carousel-track { 
        flex-direction: column; /* Empilha */
        align-items: center; /* Centraliza */
        width: auto; 
        animation: none; /* Garante que não há animação */
        gap: 30px; 
        flex-wrap: nowrap; /* Garante que não vai quebrar linha no mobile */
        justify-content: flex-start; /* Reseta a justificativa do desktop */
    }
    
    .carousel-container { 
        max-width: 100%; 
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
@media (max-width: 576px) {
    .logo h1 { display: none; }
    .header-actions .btn-join { font-size: 0.7em; padding: 6px 10px; }
    .hero-content h2 { font-size: 2.3em; }
    .hero-content p { font-size: 0.9em; }
    .btn-primary, .btn-secondary, .btn-join { padding: 10px 20px; font-size: 0.85em; }
    .btn-primary.large { padding: 12px 30px; font-size: 1em; }
    .section-header h3 { font-size: 1.8em; }
    .about-content { font-size: 0.95em; }
    .event-details h4 { font-size: 1.2em; }
    .event-date { font-size: 1.5em; }
    .cta-section h3 { font-size: 1.8em; }
    .cta-section p { font-size: 1em; }
}
