/* === GLOBAIS E VARIÁVEIS === */
:root {
    --primary-color: #0056b3; /* Azul */
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --medium-color: #495057;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 60px; /* MODIFICAÇÃO FINAL: Altura do menu definida para 60px */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-primary);
    color: var(--medium-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #004494; }
ul { list-style: none; }

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; }

/* === HEADER === */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ESSENCIAL: Alinha todos os itens verticalmente ao centro */
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-color);
}
.logo-img {
    height: 60px; /* MODIFICAÇÃO FINAL: Logo com a mesma altura do header */
    padding: 5px 0; /* Adiciona um respiro vertical sutil */
}
.logo-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}
.nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white-color);
    transition: left 0.3s ease-in-out;
    display: flex;
    justify-content: center;
}
.nav.active { left: 0; }
.nav-list { display: flex; flex-direction: column; padding-top: 3rem; text-align: center; gap: 2rem; }
.nav-link { font-family: var(--font-secondary); font-weight: 600; font-size: 1.2rem; color: var(--dark-color); position: relative; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.whatsapp-btn { display: none; }
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    height: 100%;
    padding: 0 10px;
}
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--dark-color); transition: all 0.3s ease-in-out; border-radius: 2px; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === HERO SECTION === */
.hero {
    position: relative;
    padding-top: var(--header-height);
    height: 100vh;
    min-height: 600px;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-align: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-family: var(--font-secondary); font-size: clamp(2.5rem, 6vw, 4rem); text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.2rem; max-width: 800px; margin: 1rem auto 2rem auto; opacity: 0.9; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 700; font-family: var(--font-secondary); transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-primary:hover { background-color: #004494; transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: var(--white-color); border-color: var(--white-color); }
.btn-secondary:hover { background-color: var(--white-color); color: var(--dark-color); transform: translateY(-3px); }
.btn i { margin-right: 0.5rem; }

/* === SECTIONS GERAL === */
section { padding: 4rem 0; }
.sobre { background-color: var(--light-color); }
.sobre-content { max-width: 800px; margin: 0 auto; text-align: center; }
.diferenciais { padding-bottom: 2rem; }
.diferenciais-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.diferencial-card { text-align: center; padding: 2rem; background-color: var(--light-color); border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.diferencial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.diferencial-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.diferencial-card h3 { font-family: var(--font-secondary); margin-bottom: 0.5rem; color: var(--dark-color); }

/* PRODUTOS */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}
.produto-card { background-color: var(--white-color); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.produto-card:hover { transform: translateY(-5px); }
.produto-img img { width: 100%; height: 220px; object-fit: cover; }
.produto-info { padding: 1.5rem; }
.produto-info h3 { font-family: var(--font-secondary); color: var(--dark-color); }

/* === GALERIA === */
.galeria-completa { padding-bottom: 0; }
.gallery-tabs { display: flex; justify-content: center; gap: 0.5rem 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn { background: none; border: 2px solid var(--border-color); padding: 0.5rem 1.5rem; border-radius: 50px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.tab-btn:hover { background-color: var(--border-color); }
.tab-btn.active { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    transition: all 0.4s ease;
}
.gallery-item.hidden {
    transform: scale(0.8);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.1); }
.gallery-item.video-item::after {
    content: '\f04b'; /* Ícone de Play do Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gallery-item.video-item:hover::after { opacity: 0; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: var(--white-color); }
.gallery-overlay h4 { font-family: var(--font-secondary); font-size: 1rem; }

/* === SEÇÃO DE VÍDEO DESTAQUE === */
.video-destaque {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.video-wrapper:hover {
    transform: translateY(-5px);
}
.video-wrapper video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* === CONTATO E LOCALIZAÇÃO === */
.contato { padding-bottom: 0; }
.contato-content { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 3rem; }
.contato-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contato-item i { font-size: 1.5rem; color: var(--primary-color); margin-top: 5px; width: 25px; text-align: center; }
.contato-item h4 { font-family: var(--font-secondary); color: var(--dark-color); }
.contato-form .btn { width: 100%; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; background-color: var(--light-color); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25); }
.localizacao { padding-top: 4rem; }
.map-container { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 450px; border: none; display: block; }

/* === FOOTER === */
.footer { background-color: var(--dark-color); color: var(--light-color); padding: 3rem 0 1rem 0; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; margin-bottom: 2rem; }
.footer-section h3, .footer-section h4 { font-family: var(--font-secondary); color: var(--white-color); margin-bottom: 1rem; }
.footer-section ul { padding: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--light-color); opacity: 0.8; }
.footer-section a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--medium-color); padding-top: 1rem; text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* === WHATSAPP FLOAT BUTTON === */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: #25d366; color: var(--white-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }

/* === MEDIA QUERIES (OTIMIZAÇÃO) === */
@media (min-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .contato-content { grid-template-columns: 1fr 1.2fr; }
    .footer-content { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .nav { position: static; width: auto; height: auto; background: none; left: auto; display: block; }
    .nav-list { flex-direction: row; padding: 0; gap: 2rem; }
    .nav-link { font-size: 1rem; }
    .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%; transform: translateX(-50%); background-color: var(--primary-color); transition: width 0.3s ease; }
    .nav-link:hover::after { width: 100%; }
    .whatsapp-btn { 
        display: inline-flex; align-items: center; gap: 0.5rem; 
        background-color: #25d366; color: var(--white-color); 
        padding: 0.5rem 1rem;
        border-radius: 50px; 
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }
    .whatsapp-btn:hover { background-color: #1ebe57; }
    .diferenciais-grid { grid-template-columns: repeat(4, 1fr); }
    
    .produtos-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 produtos em linha no desktop */
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 itens na galeria no desktop */
    }
}