/* =================================
   Fontes
   ================================= */
@font-face {
    font-family: 'rawengulkdemibold';
    src: url('../fonts/rawengulkdemibold-webfont.woff2') format('woff2'),
         url('../fonts/rawengulkdemibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* =================================
   :ROOT - Variáveis Globais
   ================================= */
:root {
    --primary-color: #9fab26;
    --secondary-color: #d79518;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition-speed: 0.4s;
    --header-height: 90px;
}

/* =================================
   Reset e Estilos Base
   ================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'rawengulkdemibold', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline-offset 0.1s ease;
}

/* =================================
   Header e Navegação
   ================================= */
.main-header {
    position: fixed; width: 100%; top: 0; z-index: 1000; padding: 15px 0;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.main-header.scrolled {
    background-color: transparent;
    box-shadow: none;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    height: 85px;
    z-index: 1002;
    transition: all var(--transition-speed) ease;
    filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.9));
}
.main-header.scrolled .logo { height: 65px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1002; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-light); margin: 5px 0; transition: all 0.3s; border-radius: 3px; filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5)); }
.menu-toggle.active span { background-color: var(--text-light); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--text-light); font-size: 1rem; padding: 8px 10px; transition: color var(--transition-speed); position: relative; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary-color); }
.dropdown { position: relative; }
.dropdown > a { cursor: default; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: rgba(255,255,255,0.95); backdrop-filter: blur(5px); min-width: 180px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; border-radius: 8px; opacity: 0; transform: translateY(10px); transition: all 0.2s ease; z-index: 10; pointer-events: none; }
.dropdown-menu a { color: var(--text-dark) !important; padding: 10px 20px; display: block; text-shadow: none; }
.dropdown-menu a:hover { background-color: #f0f0f0; color: var(--primary-color) !important; }
.dropdown:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; }
.has-dropdown::after { content: '▼'; font-size: 0.6em; margin-left: 5px; }

/* =================================================================== */
/* Layout de Seção e Efeito "Overlay Brilhoso Escuro"                   */
/* =================================================================== */
.fullscreen-section {
    min-height: 100vh; width: 100%; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-size: cover; background-position: center; background-attachment: fixed;
    color: var(--text-light);
    padding: calc(var(--header-height) + 40px) 0;
}
main { padding-bottom: 0; } 
.fullscreen-section .content { z-index: 2; width: 100%; }
.section-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* EFEITO DE VIDRO BRILHOSO ESCURO (PARA TODAS AS SEÇÕES) */
.section-overlay.dark.glass,
.section-overlay.light.glass,
.section-overlay.legible.glass { 
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.5); /* Sombra interna para escurecer bordas */
}
/* Adiciona um brilho sutil por cima do gradiente escuro */
.section-overlay.dark.glass::before,
.section-overlay.light.glass::before,
.section-overlay.legible.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.content > *, .gas-gallery > *, .hero-cards > *, .contact-grid > * {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}
.fullscreen-section.visible .content > *,
.fullscreen-section.visible .gas-gallery > *,
.fullscreen-section.visible .hero-cards > *,
.fullscreen-section.visible .contact-grid > * {
    opacity: 1; transform: translateY(0);
}
.fullscreen-section.visible .hero-cards > *:nth-child(2) { transition-delay: 0.3s; }
.fullscreen-section.visible .hero-cards > *:nth-child(3) { transition-delay: 0.4s; }
.fullscreen-section.visible .hero-cards > *:nth-child(4) { transition-delay: 0.5s; }

/* =================================
   Estilos das Seções
   ================================= */
.align-left { text-align: left; margin-left: 0; margin-right: auto; }
.slogan { text-align: left; }
.slogan h1 { font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.2; text-shadow: 0 2px 15px rgba(0,0,0,0.8); }
.slogan p { font-size: clamp(1.1rem, 3vw, 1.25rem); margin-top: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.7); max-width: 600px; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: clamp(30px, 5vh, 50px); }
.card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px; padding: 20px; text-decoration: none; text-align: left;
    display: flex; align-items: center;
    transition: all var(--transition-speed);
}
.card:hover, .card:focus-visible { transform: translateY(-10px); background: rgba(255,255,255,0.2); }
.card-image { flex-shrink: 0; margin-right: 15px; }
.card-image img { height: 70px; object-fit: contain; }
.card-text h2 { color: var(--text-light); font-size: clamp(1rem, 2.5vw, 1.1rem); margin-bottom: 5px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.card-text p { color: rgba(255,255,255,0.8); font-size: clamp(0.8rem, 2vw, 0.85rem); line-height: 1.4; margin: 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.ideal-container { max-width: 800px; margin: 0; text-align: left; color: var(--text-light); }
.ideal-text p { font-size: clamp(1rem, 2.5vw, 1.1rem); margin-bottom: 1.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.ideal-text .text-medium { font-size: clamp(1.2rem, 3vw, 1.4rem); color: var(--text-light); font-weight: bold; text-align: left; margin-top: 2rem; }

.ideal-certifications { margin-top: clamp(40px, 6vh, 60px); padding-top: clamp(25px, 4vh, 40px); border-top: 1px solid rgba(255,255,255,0.2); text-align: left; }
.ideal-certifications h4 { margin-bottom: 25px; font-size: 1rem; color: var(--text-light); }
.certifications-wrapper { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}
.certification-logos { display: flex; justify-content: flex-start; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #eee; transition: color 0.3s; cursor: default; width: 90px; text-align: center; }
.cert-item i { font-size: 40px; color: var(--primary-color); text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.cert-item span { font-size: 0.8rem; }
.cert-item:hover { color: var(--text-light); }
.footer-links-sobre { text-align: right; display: flex; gap: 25px; }
.footer-links-sobre a { color: #eee; text-shadow: none; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; display: flex; align-items: center; gap: 8px;}
.footer-links-sobre a:hover { color: var(--primary-color); }

.section-header { margin-bottom: 50px; }
.section-header h2, .section-header p { color: var(--text-light); }
.section-header .text-alt { color: var(--secondary-color); }
.section-header h2 { font-size: clamp(2.2rem, 5vw, 3rem); text-shadow: 0 2px 15px rgba(0,0,0,0.7); }
.section-header p { font-size: clamp(1rem, 2.5vw, 1.1rem); max-width: 700px; margin-top: 1rem; opacity: 0.9; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.section-header p.description { font-size: clamp(0.9rem, 2.2vw, 1rem); max-width: 600px; }

/* GALERIA DE GASES */
.gas-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 60%; margin-left: 0; margin-right: auto;}
.gas-gallery.wide { grid-template-columns: repeat(7, 1fr); max-width: 100%; gap: 15px; grid-auto-rows: 1fr;}

.gas-card {
    background: rgba(128, 128, 128, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
    text-align: center; transition: all var(--transition-speed) ease; cursor: pointer;
    overflow: hidden; position: relative; 
    aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 15px;
}
.gas-card:hover, .gas-card:focus-visible { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 5; }
.gas-card-content { display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all var(--transition-speed) ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; padding: 0 10px;}
.gas-card img { height: clamp(40px, 5vw, 60px); max-width: 80%; object-fit: contain; margin-bottom: 10px; position: relative; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.gas-card h4 { font-size: clamp(0.8rem, 1.8vw, 1rem); color: var(--text-light); text-shadow: 1px 1px 5px rgba(0,0,0,0.9); transition: all var(--transition-speed) ease; }
.gas-card p {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem); color: var(--text-light); text-shadow: 1px 1px 5px rgba(0,0,0,0.9); line-height: 1.4;
    opacity: 0; position: absolute; left: 15px; right: 15px; top: 50%; transform: translateY(-50%);
    transition: opacity var(--transition-speed) ease;
}
.gas-card.hover .gas-card-content { opacity: 0; transform: translate(-50%, -80%) scale(0.9); }
.gas-card.hover p { opacity: 1; }
.gas-card.simple:hover .gas-card-content { opacity: 1; transform: translate(-50%, -50%); }
.gas-card.simple p { display: none; }

.cta-section { text-align: left; }
.cta-section p { max-width: 600px; margin: 0 0 2rem 0; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.cta-button {
    display: inline-block; background-color: var(--primary-color); color: var(--text-light) !important; text-shadow: none !important;
    padding: 12px 30px; text-decoration: none; border-radius: 50px;
    font-size: 1.05rem; transition: all var(--transition-speed);
}
.cta-button:hover, .cta-button:focus-visible { background-color: var(--secondary-color); transform: translateY(-3px); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; align-items: stretch; }
.contact-info, .contact-cta-wrapper { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); padding: clamp(20px, 4vw, 30px); border-radius: 12px; color: var(--text-dark); display: flex; flex-direction: column; min-height: 450px; }
.contact-info h2 { color: var(--primary-color); margin-bottom: 1rem; text-align: center; }
.contact-info address { font-style: normal; line-height: 1.8; text-align: center; margin-top: 1rem; color: #666; font-size: 0.9rem;}
#map { min-height: 250px; width: 100%; border-radius: 8px; margin-top: 1.5rem; background-color: #e9e9e9; flex-grow: 1; }
#map .gm-style .gm-style-iw-c { background-color: #f0f0f0 !important; }

.contact-cta-wrapper { justify-content: center; }
.contact-cta-wrapper h3 { color: var(--primary-color); font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; text-align: center;}
.contact-cta-wrapper p { font-size: clamp(0.9rem, 2.2vw, 1.1rem); max-width: 400px; margin: 0 auto 1.5rem; color: #555; text-align: center;}
.contact-channels { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.whatsapp-contact-button {
    display: inline-flex; align-items: center; justify-content: center; background-color: #25D366; color: white; padding: 15px 30px; border-radius: 50px;
    text-decoration: none; font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: bold; margin: 0 auto 1rem;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.whatsapp-contact-button:hover, .whatsapp-contact-button:focus-visible { background-color: #128C7E; transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.whatsapp-contact-button i { margin-right: 10px; font-size: 1.2em; }
.other-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.other-contacts a { color: var(--text-dark); text-decoration: none; font-size: 1rem; transition: color 0.3s; text-align: center; }
.other-contacts a:hover { color: var(--primary-color); }
.other-contacts a i { margin-right: 10px; width: 20px; text-align: center; color: var(--primary-color); }
.social-links-contact { display: flex; justify-content: center; gap: 20px; }
.social-links-contact a { color: var(--text-dark); font-size: 28px; transition: color 0.3s, transform 0.3s; }
.social-links-contact a:hover { color: var(--primary-color); transform: scale(1.1); }

/* =================================
   Botão Flutuante WhatsApp
   ================================= */
.whatsapp-float {
    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 10px rgba(0,0,0,0.2); z-index: 100;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }

/* =================================
   Responsividade
   ================================= */
@media (max-width: 1024px) {
    .gas-gallery { max-width: 100%; }
    .gas-gallery.wide { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { order: 2; }
    .contact-cta-wrapper { order: 1; }
    .hero-cards { grid-template-columns: 1fr 1fr; }
    .gas-gallery.wide { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 768px) {
    .fullscreen-section { padding: 100px 20px; background-attachment: scroll; background-position: 70% center; }
    .slogan, .section-header, .ideal-text, .cta-section, .align-left { text-align: center; }
    .section-header p, .ideal-text p, .cta-section p { margin-left: auto; margin-right: auto; }
    .ideal-text, .ideal-certifications, .footer-links-sobre, .gas-gallery { text-align: left; margin-left:auto; margin-right:auto; }
    .certifications-wrapper { justify-content: center; }
    .footer-links-sobre { justify-content: center; padding-top: 20px; }

    .main-header { background-color: transparent !important; }
    .main-header.scrolled .logo { height: 50px; }
    .menu-toggle { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(var(--header-height) - 10px);
        right: 20px;
        width: 250px;
        background: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { text-align: left; width: 100%; }
    .nav-menu a { color: var(--text-light) !important; font-size: 1.2rem; padding: 10px 15px; width: 100%; display: block; text-shadow: none; }
    .dropdown > a { cursor: pointer; }
    .dropdown-menu { display: none; position: static; background: transparent; box-shadow: none; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; width: 100%; }
    .dropdown.open .dropdown-menu { display: block; max-height: 300px; }
    .dropdown-menu a { color: rgba(255,255,255,0.8) !important; font-size: 1rem; padding-left: 30px; }
    
    .hero-cards { grid-template-columns: 1fr 1fr; }
    
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
    
    .gas-gallery, .gas-gallery.wide { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
        display: grid; 
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gas-gallery.wide .gas-card:last-child {
        grid-column: auto / auto;
        justify-self: auto;
        width: auto;
    }
    
    .gas-card { min-height: auto; }
}

@media (max-width: 520px) {
    .hero-cards { grid-template-columns: 1fr; }
    .gas-gallery, .gas-gallery.wide {
        grid-template-columns: 1fr 1fr;
    }
}

/* Adicionado do style inline do index.php */
@media (min-width: 992px) {
    #sobre-nos .ideal-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 50px;
        align-items: center;
        max-width: 1100px;
    }
    #sobre-nos .ideal-certifications {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #sobre-nos .certifications-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    #sobre-nos .certification-logos {
        gap: 20px;
        justify-content: center;
    }
     #sobre-nos .footer-links-sobre {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
}
#contato .contact-cta-wrapper .contact-title {
    color: var(--primary-color); 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    margin-bottom: 1rem; 
    text-align: center;
}
#contato .contact-cta-wrapper .contact-description {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem); 
    max-width: 400px; 
    margin: 0 auto 1.5rem; 
    color: #555; 
    text-align: center;
}

/* =================================
   Animação Sutil para Certificações
   ================================= */
.cert-item {
    transition: transform 0.3s ease-out;
}

.cert-item i, .cert-item span {
    transition: all 0.3s ease-out;
}

.cert-item:hover {
    transform: translateY(-8px); /* Efeito de "elevar" o ícone */
}

.cert-item:hover i {
    color: #e0f062; /* Deixa o ícone com um tom mais brilhante */
    text-shadow: 0 0 15px rgba(159, 171, 38, 0.7); /* Adiciona um brilho sutil da cor primária */
}

.cert-item:hover span {
    color: var(--text-light); /* Deixa o texto branco para maior destaque */
}

/* Ajuste para imagens de selos misturadas com ícones */
.cert-item img {
    transition: transform 0.3s ease-out;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Sombra leve para destacar do fundo */
}

.cert-item:hover img {
    transform: translateY(-8px); /* Mesmo efeito de pulo dos ícones */
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

/* =================================
   Assinatura Agência Libre (Rodapé)
   ================================= */
.libre-signature {
    position: fixed;
    bottom: 15px; /* Distância do fundo */
    left: 15px;   /* Distância da lateral esquerda */
    z-index: 100; /* Fica acima dos outros elementos */
}

.libre-signature a {
    display: block;
    opacity: 0.4; /* Fica semitransparente por padrão */
    transition: opacity var(--transition-speed) ease, transform 0.3s ease;
}

.libre-signature a:hover {
    opacity: 0.9; /* Fica mais visível ao passar o mouse */
    transform: scale(1.05); /* Dá um leve zoom */
}

.libre-signature img {
    max-width: 80px; /* Mantém o logo em um tamanho discreto */
    height: auto;
    filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.5)); /* Garante leitura sobre fundos escuros */
}

/* Esconder ou diminuir em telas muito pequenas, se necessário */
@media (max-width: 768px) {
    .libre-signature {
        bottom: 10px;
        left: 10px;
    }
    .libre-signature img {
        max-width: 60px;
    }
}