/* Variáveis de Cores Premium (Baseadas na Logo Oficial) */
:root {
    --primary-dark: #2E75B6; /* Azul Folivance - Confiança e Autoridade */
    --accent: #70AD47; /* Verde Folivance - Ação, Crescimento e Produtividade */
    --accent-hover: #5c8f3a; /* Verde um pouco mais escuro para o hover dos botões */
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
}

/* --- COMPENSAÇÃO DE ROLAGEM PARA MENU FIXO --- */
section {
    scroll-margin-top: 104px; /* Cria um respiro perfeito entre o menu e o título ao clicar nas âncoras */
}

/* Tipografia e Utilidades Premium */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px; /* Deixa os títulos mais compactos e modernos */
}

.text-primary-dark { color: var(--primary-dark); }
.text-accent { color: var(--accent); }

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* --- Navbar Dinâmica e Elegante --- */
.transition-navbar {
    transition: all 0.4s ease-in-out;
    padding: 2.5rem 0; /* Um pouco mais de padding inicial para a logo maior */
    background: transparent;
}

.nav-scrolled {
    background: rgba(13, 59, 31, 0.85); /* Glassmorphism mais elegante */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* A MÁGICA NA LOGO: Sombra dinâmica para destacar em qualquer fundo */
.navbar-brand img {
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
}

.nav-link {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600 !important;
    position: relative;
    padding: 0.5rem 0 !important;
    margin: 0 1rem;
    transition: color 0.3s;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5); /* Garante a leitura do menu em fotos claras */
}

/* Tira a sombra do menu quando a rolagem desce e o fundo escuro aparece */
.nav-scrolled .nav-link {
    text-shadow: none; 
}

/* Efeito moderno de sublinhado animado no Menu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section & Sombras de Texto --- */
.hero-section {
    height: 100vh;
    position: relative;
}

/* A MÁGICA NO BANNER: Técnica do Scrim (Mais escuro no topo para ancorar a logo) */
.hero-section .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 20, 5, 0.85) 0%, rgba(13, 59, 31, 0.4) 30%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* Destaca o texto do Hero contra qualquer banner */
.hero-section h1.display-3 {
    text-shadow: 2px 4px 10px rgba(0,0,0,0.6);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-section p.lead {
    text-shadow: 1px 2px 5px rgba(0,0,0,0.7);
    font-weight: 500 !important;
    letter-spacing: 0.5px;
}

/* --- Botões Magnéticos (CTA Premium) --- */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 15px rgba(112, 173, 71, 0.3);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de brilho passando pelo botão principal */
.btn-accent::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
    z-index: -1;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #4a752e 100%);
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(112, 173, 71, 0.5) !important;
}

.btn-outline-accent {
    color: var(--accent);
    border: 2px solid var(--accent);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(112, 173, 71, 0.3);
}

/* --- Cards Hover Effects --- */
.hover-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-bottom: 4px solid var(--accent) !important;
}

/* Animações de Scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Seção de Produtos --- */
.product-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 59, 31, 0.08) !important;
    border-color: var(--accent) !important;
}

/* =========================================
   EFEITOS PARA A IMAGEM DO PRODUTO (FULL BLEED)
   ========================================= */
.product-img-container {
    height: 420px; /* Ajuste para melhor proporção vertical 4:5 (1080x1350px) */
    background-color: #ffffff !important;
    padding: 0; /* Removido o padding para preencher 100% do espaço */
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A MÁGICA: Faz a imagem preencher todo o quadrado sem deixar bordas brancas */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-img-container img {
    transform: scale(1.05); /* Zoom leve mantido para o efeito moderno */
}

/* --- Seção de Contato e Formulários --- */
#contato {
    background: url('../img/565.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.absolute-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13,59,31,0.95) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.glass-card-dark:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-control, .form-select {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(112, 173, 71, 0.25);
    background-color: #fff !important;
    border-color: var(--accent);
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse-green {
    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); }
}

/* --- Efeitos Especiais do Rodapé Corporativo --- */
.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

.footer-social {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.footer-social:hover {
    color: #fff !important;
    background: var(--accent);
    transform: translateY(-3px);
}

/* =========================================
   ESTILO FIGMA PARA O MODAL (APRESENTAÇÃO)
   ========================================= */
.figma-modal .modal-content {
    border-radius: 24px; /* Cantos bem arredondados premium */
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
}

/* Botão de fechar flutuante e elegante */
.figma-modal .modal-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    border: none;
    padding: 0;
}

.figma-modal .btn-close {
    background-color: #f1f3f5;
    border-radius: 50%;
    padding: 0.6rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.figma-modal .btn-close:hover {
    opacity: 1;
    background-color: #e9ecef;
    transform: rotate(90deg); /* Efeito tátil de clique */
}

/* Vitrine da Imagem (Showcase) com Soft Shadow 3D */
.modal-image-showcase {
    background: linear-gradient(135deg, #fdfbfb 0%, #f1f3f5 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-showcase img {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); /* Cria a ilusão de 3D e flutuação */
    transition: transform 0.4s ease;
    max-height: 350px;
    width: auto;
}

.modal-image-showcase:hover img {
    transform: scale(1.05) translateY(-5px);
}

/* Tipografia interna do Modal */
#modalTitle {
    letter-spacing: -1px;
    font-size: 2.2rem;
}

/* Marcadores personalizados para a lista de recomendações */
#modalRecomendacoes li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* =========================================
   AJUSTES MOBILE PREMIUM (RESPONSIVIDADE)
   ========================================= */
@media (max-width: 991.98px) {
    /* Menu branco com sombra elegante quando aberto no celular */
    .navbar-collapse {
        background-color: #ffffff;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 15px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    /* Força os links que eram brancos a ficarem azuis escuros para leitura */
    .navbar-collapse .nav-link {
        color: var(--primary-dark) !important;
        padding: 12px 15px !important;
        border-radius: 8px;
        text-shadow: none; /* Remove a sombra do texto no mobile */
    }
    
    /* Efeito de hover no mobile */
    .navbar-collapse .nav-link:hover {
        background-color: var(--light-bg);
        color: var(--accent) !important;
    }
    
    /* Fundo branco no botão "hamburguer" para ele não sumir na foto */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.9);
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
    }
}