/* --- css/style.css --- */

/* --- VARIÁVEIS DO BRANDBOOK --- */
:root {
    --liquigas-green: #006F4D; /* Verde Médio Pantone 7727 C */
    --liquigas-light: #00887F; /* Verde Claro Pantone 353 C */
    --liquigas-orange: #E66000; /* Ajustado para aumentar o contraste para passar na validação do google */
    /*--liquigas-orange: #FF8931; /* Laranja Pantone 715 C - Ajustado para Web */
    --text-dark: #243834; /* Verde Escuro quase preto */
    --white: #ffffff;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

/* --- UTILITÁRIOS --- */
.text-primary-custom { color: var(--liquigas-green); }
/* --- AJUSTE DE CONTRASTE (Acessibilidade 100) --- */
/* Mantém botões #E66000 (Vibrantes), mas escurece textos para leitura */
.text-orange {
    color: #c25200 !important; /* Tom terracota aprovado pelo Google */
}
/* Garante legibilidade extra */
.text-orange.text-uppercase {
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
}
.bg-primary-custom { background-color: var(--liquigas-green); }
.bg-light-custom { background-color: #f8f9fa; }

/* Efeito de hover geral para cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* --- BOTÕES --- */
/* Botão Laranja (CTA Principal) */
.btn-cta {
    background-color: var(--liquigas-orange); 
    color: white;
	text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem !important;
    text-transform: none;
    letter-spacing: -0.5px;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 137, 49, 0.4);
}
.btn-cta:hover {
    background-color: #a35200;
    transform: translateY(-2px);
    color: white;
}

/* Botão Branco (Hero) */
.btn-white-custom {
    color: white;
    border: 2px solid white;
    background-color: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: -0.5px;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-white-custom:hover {
    background-color: white;
    color: var(--liquigas-green);
    border-color: white;
    transform: none;
}

/* Botão Outline Verde */
.btn-outline-custom {
    border: 2px solid var(--liquigas-green);
    color: var(--liquigas-green);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background-color: var(--liquigas-green);
    color: white;
}

/* Botão de Alerta (Venda no Local) */
.btn-alert-custom {
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: -0.5px;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}
.btn-alert-custom:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
    color: white;
    transform: translateY(-2px);
}

/* --- NAVBAR & TOPBAR --- */
.top-bar {
    background-color: var(--liquigas-green);
    color: white;
    font-size: 0.9rem;
    padding: 5px 0;
}
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}
.navbar-brand img {
    height: 70px;
}

/* --- COMPONENTES: CARDS DE PRODUTOS --- */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    padding: 10px;
}
.product-badge {
    background-color: var(--liquigas-green);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- COMPONENTES: FAQ / ACCORDION --- */
.custom-accordion .accordion-button {
    background-color: white;
    color: var(--text-dark);
    box-shadow: none;
}
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 111, 77, 0.05);
    color: var(--liquigas-green);
}
.custom-accordion .accordion-button:focus {
    border-color: rgba(0, 111, 77, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 111, 77, 0.25);
}
.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'viewBox='0 0 16 16'fill='%23243834'%3e%3cpath fill-rule='evenodd'd='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'viewBox='0 0 16 16'fill='%23006F4D'%3e%3cpath fill-rule='evenodd'd='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* --- FLOAT WHATSAPP --- */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.float-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
}
.pulse-animation {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    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); }
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--liquigas-green);
    color: white;
    padding: 60px 0 20px;
}
footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--liquigas-orange);
}
.liquigas-compliance {
    font-size: 0.8rem;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.navbar-nav .nav-link {
	letter-spacing: -1px;
}

/* --- AJUSTES GERAIS MOBILE --- */
@media (max-width: 768px) {
    .navbar-brand img { height: 40px; }
}

/* --- CO-BRANDING HEADER (Lucrigás | Liquigás) --- */

/* Altura padrão dos logos (Desktop) */
.brand-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

/* Barra vertical separadora */
.brand-separator {
    display: inline-block;
    width: 1px;
    height: 35px;
    background-color: #cbd5e1; /* Cinza claro elegante */
    margin: 0 15px; /* Espaço nas laterais */
}

/* Ajustes para Celular (Mobile) */
@media (max-width: 768px) {
    .brand-logo {
        height: 32px; /* Reduz um pouco para caber tudo */
    }
    .brand-separator {
        height: 25px;
        margin: 0 10px;
    }
    /* Ajuste fino para o botão do menu não colar nos logos */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem; 
    }
}

/* Ajuste para telas muito pequenas (ex: iPhone SE) */
@media (max-width: 380px) {
    .brand-logo {
        height: 28px;
    }
    .brand-separator {
        margin: 0 6px;
    }
}

/* --- MENU SUPERIOR: Efeito Hover "Pílula" (Ajustado) --- */

.navbar-nav .nav-link {
    color: var(--liquigas-green) !important;
    font-weight: 600;
    
    /* Aumentei a fonte de volta para o padrão */
    font-size: 1rem !important; 
    
    /* Reduzi o padding lateral (era 20px) para aproximar os botões visualmente */
    padding: 8px 15px !important; 
    
    border-radius: 50px;
    transition: all 0.3s ease;
    
    /* Espaço mínimo entre um botão e outro */
    margin: 0 1px; 
}

.navbar-nav .nav-link:hover {
    background-color: var(--liquigas-green);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 111, 77, 0.15);
    transform: translateY(-1px);
}

/* --- 1. CORREÇÃO DA ROLAGEM (SCROLL OFFSET) --- */
/* Como vamos fazer o menu flutuar, a altura agora é sempre fixa! */
html {
    scroll-padding-top: 30px; /* Garante que o scroll pare antes do topo */
}
section {
    scroll-margin-top: 30px; /* Margem de segurança extra */
}

/* --- 2. MENU MOBILE FLUTUANTE (OVERLAY) --- */
/* Isso impede que o menu empurre o site para baixo ao abrir */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%; /* Cola logo abaixo da barra branca */
        left: 0;
        right: 0;
        background-color: white;
        z-index: 9999; /* Garante que fique por cima de tudo */
        padding: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
        border-radius: 0 0 15px 15px; /* Arredonda as pontas de baixo */
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}