/* Reset e Variáveis */
:root {
    --primary-color: #101025; 
    --secondary-color: #1a1a3a;
    --accent-color: #25D366; 
    --accent-hover: #1da851;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f6f9;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografia e Textos */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight {
    color: var(--accent-color);
}

/* Header & Nav */
header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    max-height: 65px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

.btn-whatsapp-nav {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp-nav:hover {
    background-color: var(--accent-hover);
}

.mobile-menu-icon {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section (Atualizado para Vídeo) */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 90px;
    overflow: hidden; /* Corta as sobras do vídeo para não criar barra de rolagem */
    background-color: var(--primary-color); /* Cor de fundo caso o vídeo demore a carregar */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo preencher toda a tela sem esticar/distorcer */
    z-index: 0; /* Fica na camada mais funda */
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Deixei o fundo um pouco mais transparente (0.75) para o vídeo aparecer bem */
    background: rgba(16, 16, 37, 0.75); 
    z-index: 1; /* Fica entre o vídeo e o texto */
}

.hero-content {
    position: relative;
    z-index: 2; /* Texto e botões na camada mais alta */
    color: var(--text-light);
    max-width: 700px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Botões Gerais */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Sections Reusáveis */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* Cards (O Kit) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 25px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.card p {
    color: #666;
    padding: 0 20px;
}

/* Como Funciona */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-item {
    text-align: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px auto;
}

.step-item h4 { font-size: 1.2rem; }
.step-item p { font-size: 0.95rem; color: #666; }

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* === NOVA SEÇÃO: GALERIA E CARROSSEL === */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5%;
    scroll-behavior: auto; /* Controlado via JS para não travar a animação */
    /* Ocultar barra de rolagem */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 320px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

/* === LIGHTBOX MODAL === */
.lightbox {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(16, 16, 37, 0.95); /* Cor primária com transparência */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color); 
    color: #fff;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    max-width: 300px;
}

.footer-links h4 { color: #fff; margin-bottom: 20px; }
.footer-links p { color: #aaa; margin-bottom: 10px; }
.footer-links i { color: var(--accent-color); margin-right: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Botão Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

/* Responsividade de Acordo com sua Estrutura HTML */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsividade Mobile (Atualizada com Logo Centralizado) */
@media (max-width: 768px) {
    /* Ajusta o header para permitir o logo flutuante no centro */
    header .container {
        position: relative;
        justify-content: flex-end; /* Empurra o ícone do menu para a direita */
    }

    /* Centraliza o logo matematicamente */
    header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001; /* Garante que fique acima de outros elementos */
    }

    /* Reduz levemente o logo no mobile para dar respiro */
    header .logo img {
        max-height: 50px; 
    }

    .mobile-menu-icon { 
        display: block; 
        z-index: 1005; /* Fica acima do menu dropdown quando aberto */
    }
    
    nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.05); /* Linha sutil separando o menu do header */
    }
    
    nav.active { display: block; }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn-whatsapp-nav { display: none; }
    
    .grid-3, .steps-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 30px; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-outline { margin-left: 0; }
    
    /* Responsividade Galeria */
    .carousel-item { width: 260px; }
    .close-lightbox { right: 20px; top: 15px; font-size: 40px; }
    .nav-arrow { font-size: 30px; padding: 10px; }
    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
}

/* --- NAVEGAÇÃO LIGHTBOX (Setas) --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: color 0.3s;
    z-index: 10000;
}

.nav-arrow:hover {
    color: var(--accent-color);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Adicionando transição de opacidade na imagem do lightbox */
.lightbox img {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    .nav-arrow { font-size: 30px; padding: 10px; }
    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
}

/* --- Link Instagram Rodapé --- */
.insta-link {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.insta-link:hover {
    color: var(--accent-color);
}