/* --- VARIÁVEIS INSTITUCIONAIS --- */
:root {
    --deep-green: #062c25;
    --vibrant-green: #0a5c4a;
    --accent-gold: #c5a059;
    --off-white: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1140px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--off-white);
    color: var(--deep-green);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- ESTRUTURA DE CONTAINER --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px; /* Garante que nada grude na lateral */
}

/* --- HEADER DINÂMICO --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(6, 44, 37, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container que une a imagem e o texto */
.logo-container {
    display: flex;
    align-items: center; /* Alinha a imagem verticalmente com o centro do texto */
    gap: 12px;           /* Controla o espaço exato entre a imagem e as letras */
    text-decoration: none;
}

.img-logo img {
    width: 55px;         /* Aumentei levemente para equilibrar com o texto */
    height: 55px;
    object-fit: contain;
    display: block;      /* Remove espaços fantasmas abaixo da imagem */
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo .sigla {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;   /* Ajustado para não ficar desproporcional à imagem */
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 0.9;    /* "Cola" a sigla na tagline abaixo */
    margin: 0;
}

.logo .tagline {
    font-size: 0.55rem;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;     /* Espaço mínimo entre Sigla e Tagline */
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-menu a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.nav-menu a.active {
    color: var(--accent-gold);
    opacity: 1;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 4px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(6, 44, 37, 0.712), rgba(6, 44, 37, 0.7)), 
                url('../images/hero_index.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 750px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero-content span {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 20px 0;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 550px;
}

.hero-btns { display: flex; gap: 15px; }

.btn-primary, .btn-outline {
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary { background: var(--accent-gold); color: var(--deep-green); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--deep-green); border-color: var(--white); }

/* --- SEÇÃO DE IMPACTO --- */
.impact-section {
    padding: 80px 0;
    background: var(--off-white);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.impact-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-bottom: 4px solid var(--accent-gold);
    transition: var(--transition);
}

.impact-item:hover { transform: translateY(-10px); }

.impact-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--vibrant-green);
    font-weight: 700;
    display: block;
}

.impact-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #777;
    margin-top: 10px;
}

/* --- COUNTDOWN (GLASS CARD) --- */
.countdown-modern {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--white);
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 5px solid var(--accent-gold);
}

#days {
    font-size: 5rem;
    font-weight: 800;
    color: var(--vibrant-green);
    line-height: 1;
    display: block;
}

/* --- HISTÓRIA --- */
.history-modern { padding: 100px 0; }
.history-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.history-text label { color: var(--accent-gold); font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; }
.history-text h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin: 15px 0; }
.image-frame {
    width: 100%; height: 600px;
    background: url('../images/fotos/eurico_nelson.png') center/cover;
    border-radius: 15px;
    box-shadow: 15px 15px 0 var(--accent-gold);
}

/* --- TIMELINE --- */
.timeline-section { padding: 100px 0; background: #f9fbfb; }
.text-center-modern { text-align: center; margin-bottom: 60px; }
.text-center-modern h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; }

.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line {
    position: absolute; left: 50%; width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item { width: 50%; padding: 20px 40px; position: relative; }
.timeline-item:nth-child(even) { margin-left: 50%; }
.timeline-dot {
    position: absolute; top: 25px; width: 14px; height: 14px;
    background: var(--accent-gold); border-radius: 50%; z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }

.timeline-content {
    background: var(--white); padding: 25px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.timeline-item.highlight .timeline-content {
    background: var(--deep-green); color: white; border: 1px solid var(--accent-gold);
}

/* --- GALERIA MASONRY --- */
.gallery-section { padding: 100px 0; }
.masonry-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px; gap: 20px;
}
.masonry-item { border-radius: 12px; overflow: hidden; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.masonry-item:hover img { transform: scale(1.1); }
.masonry-item.tall { grid-row: span 2; }

/* --- FOOTER --- */
/* --- FOOTER COMPLETO --- */
.main-footer {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 80px 0 0; /* Espaço superior maior */
    position: relative;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Coluna da marca é maior */
    gap: 60px;
    padding-bottom: 60px;
}

.footer-column h4 {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-column p {
    margin: 20px 0;
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--deep-green);
}

.links-column ul {
    list-style: none;
}

.links-column ul li {
    margin-bottom: 12px;
}

.links-column ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.9rem;
}

.links-column ul li a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 5px;
}

.contact-column p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-phone {
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 15px;
}

/* FAIXA FINAL */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 5px 0;
}

/* Estilos do Pop-up de Vídeo */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 44, 37, 0.95); /* Verde escuro da CBA com transparência */
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.video-overlay.active {
    display: flex;
}

.video-container {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-video {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.close-video:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

/* Classe para travar o scroll de forma global */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100%;
    position: fixed; /* Garante que a página não se mova em iPhones/Safari */
}