/* Reset Básico e Variáveis Globais */
:root {
    --primary-color: #007a9d;
    --secondary-color: #4DB6AC;
    --text-color: #34495E;
    --background-color: #ffffff;
    --light-gray-color: #F5F7FA;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

/* =========================================
   CABEÇALHO MODERNIZADO (Desktop)
========================================= */

.main-header {
    background: rgba(255, 255, 255, 0.95); /* Branco com leve transparência */
    height: 80px; /* Altura inicial */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px); /* Efeito vidro */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Otimizado */
.main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.logo-image {
    max-height: 50px; /* Controla pela altura para não estourar */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Navegação Desktop */
.main-header .main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-header .main-nav a {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

/* Efeito Hover Moderno (Barra inferior) */
.main-header .main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-header .main-nav a:hover {
    color: var(--secondary-color);
}

.main-header .main-nav a:hover::after {
    width: 100%;
}

/* Botão WhatsApp no Header */
.header-whatsapp {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-whatsapp:hover {
    background-color: #c42f14;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* =========================================
   MENU MOBILE (ESTILO LATERAL MODERNO)
========================================= */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Acima do menu */
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

@media (max-width: 992px) {
    /* Mostra o botão hambúrguer */
    .hamburger-menu {
        display: flex;
    }

    /* Esconde botão whats do header (já tem o flutuante) */
    .header-whatsapp {
        display: none;
    }

    /* --- Container do Menu Mobile --- */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff; /* Fundo sólido limpo */
        padding: 100px 30px 40px 30px; /* Espaço no topo */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Alinha ao topo */
        align-items: flex-start;     /* Alinha à esquerda */
        
        /* Estado inicial invisível */
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1050;
    }

    .main-nav.active {
        visibility: visible;
        opacity: 1;
    }

    /* --- Lista de Itens --- */
    .main-nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
    }

    /* Item individual com borda inferior */
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Linha divisória fina */
        
        /* Preparação para animação */
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Animação em Cascata (Delay progressivo) */
    .main-nav.active li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
    .main-nav.active li:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
    .main-nav.active li:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
    .main-nav.active li:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
    .main-nav.active li:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
    .main-nav.active li:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateX(0); }

    /* --- Links do Menu Mobile --- */
    .main-nav a {
        display: flex;
        justify-content: space-between; /* Texto na esq, seta na dir */
        align-items: center;
        padding: 20px 5px; /* Área de toque maior */
        font-family: var(--font-secondary);
        font-size: 1.1rem;
        font-weight: 600;
        color: #333; /* Cor neutra moderna */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
    }

    /* Remove a linha de hover do desktop */
    .main-header .main-nav a::after {
        display: none; 
    }

    /* Adiciona a seta (Chevron) à direita */
    .main-nav a::after {
        content: '\f105'; /* Ícone FontAwesome */
        font-family: FontAwesome;
        font-size: 1.2rem;
        color: #ddd;
        display: block;
        position: static;
        width: auto;
        height: auto;
        background: none;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* Hover no Mobile */
    .main-nav a:hover {
        color: var(--primary-color);
        padding-left: 10px; /* Movimento sutil */
    }

    .main-nav a:hover::after {
        color: var(--secondary-color);
        transform: translateX(5px);
    }

    /* --- Animação do Botão X (Fechar) --- */
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
        background-color: var(--secondary-color);
    }
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
        background-color: var(--secondary-color);
    }
}

/* =========================================
   AJUSTES GERAIS PARA CELULARES (Clean Design)
========================================= */

@media (max-width: 768px) {
    /* Tipografia reduzida e limpa */
    body {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem; /* Títulos menores */
        margin-bottom: 30px;
    }

    /* Hero e Banner */
    .hero-section {
        height: 35vh; /* Ocupa menos tela */
    }

    .message-strip-section {
        padding: 40px 20px;
    }

    .message-strip-section h1 {
        font-size: 1.8rem;
    }

    /* Espaçamentos reduzidos (menos rolagem) */
    .products-section,
    .clients-section,
    .gallery-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    /* Grid de Clientes (2 Colunas) */
    .clients-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .clients-grid img {
        max-width: 100%;
        max-height: 60px; /* Logos menores */
    }

    /* Footer e Botões */
    .footer-grid {
        text-align: center;
        gap: 30px;
    }

    .whatsapp-float-right {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float-right img {
        height: 50px;
        width: 50px;
    }
}

/* =========================================
   ESTILOS GERAIS DO SITE (Mantidos)
========================================= */

/* Seção Herói (Apenas Carrossel) */
.hero-section {
    position: relative;
    background-color: #333;
    overflow: hidden;
    /* Height definido na media query ou padrão 55vh */
    min-height: 35vh; 
}

@media (min-width: 769px) {
    .hero-section {
        height: 55vh;
    }
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Seção da Faixa de Mensagem */
.message-strip-section {
    background-color: var(--light-gray-color);
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.message-strip-section h1 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.message-strip-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Botões */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-weight: 700;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Seção de Produtos */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--background-color);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card a {
    display: block;
    padding-bottom: 25px;
    color: var(--text-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card p {
    padding: 0 20px;
    margin-bottom: 20px;
    min-height: 50px;
}

/* Seções de Galeria, Clientes, CTA, Rodapé e WhatsApp */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-gray-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 50px;
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.clients-section {
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    align-items: center;
}

.clients-grid img {
    max-width: 180px;
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.center-button {
    text-align: center;
    margin-top: 50px;
}

.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h4 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.cta-section p {
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.1rem;
}

.main-footer-bottom {
    background-color: var(--primary-color);
    color: #ccc;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: var(--font-secondary);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.address-list,
.footer-nav {
    list-style: none;
}

.address-list li,
.footer-nav li {
    margin-bottom: 10px;
}

.address-list a,
.footer-nav a {
    color: #ccc;
}

.address-list a:hover,
.footer-nav a:hover {
    color: #fff;
}

.social-links a {
    color: #ccc;
    font-size: 2rem;
    margin-right: 15px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.whatsapp-float-right {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}

.whatsapp-float-right img {
    height: 60px;
    width: 60px;
    transition: transform 0.3s ease;
}

.whatsapp-float-right:hover img {
    transform: scale(1.1);
}