/*
Theme Name: Bio Filtros Landing Page
Theme URI: https://powderblue-dolphin-652842.hostingersite.com
Author: Antigravity AI
Description: Tema premium para a landing page da Bio Filtros com gerenciamento dinâmico.
Version: 1.0.0
Text Domain: biofiltros-theme
*/

/* --- ORIGINAL STYLES --- */

:root {
    --color-navy: #1A3A6C;
    --color-cyan: #0077C0;
    --color-green: #22B14C;
    --color-white: #FFFFFF;
    --color-light: #F1F5F9;
    --color-dark: #0F172A;
    --color-border: rgba(15, 23, 42, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-ui: 5px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

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

.section-padding {
    padding: 100px 0;
}

section:nth-of-type(even) {
    background-color: var(--color-light);
}

section:nth-of-type(odd) {
    background-color: var(--color-white);
}

#problemas {
    padding: 100px 0;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.text-cyan {
    color: var(--color-cyan);
}

.text-navy {
    color: var(--color-navy);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Hero */
.hero {
    padding: 170px 0 167px;
    min-height: 85vh;
    position: relative;
    background: white;
    display: block;
    text-align: left;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--color-navy);
    color: white;
    padding: 10px 18px;
    display: inline-block;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-ui);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    max-width: 550px;
    margin-bottom: 3.5rem;
    border-left: 4px solid var(--color-cyan);
    padding-left: 1.5rem;
    white-space: pre-line; /* Support for admin textareas */
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(1.02) contrast(1.05);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    padding: 20px 40px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: var(--radius-ui);
    border: none;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--color-cyan);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 119, 192, 0.39);
}

.btn-primary:hover {
    background: var(--color-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 58, 108, 0.2);
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 100;
}

.problem-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-ui);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.problem-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.problem-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-image-wrapper {
    height: 450px;
}

.comparison-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Section */
.form-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--color-navy);
    color: white;
    border-radius: var(--radius-ui);
    overflow: hidden;
}

.form-info {
    padding: 4rem;
}

.form-body {
    padding: 4rem;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #22B14C;
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 50% !important;
    text-decoration: none;
    box-shadow: none;
}

.whatsapp-float i {
    font-size: 35px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--color-dark);
    color: white;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1rem;
}

/* Results Carousel */
.results-carousel {
    padding: 20px 0 60px;
    overflow: hidden;
}

.result-slide {
    height: 450px;
    border-radius: var(--radius-ui);
    overflow: hidden;
    position: relative;
    background: var(--color-navy);
}

.result-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.result-slide:hover img {
    transform: scale(1.05);
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    color: white;
}

.client-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white !important;
    text-transform: none !important;
}

.result-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Logos Carousel */
.logos-carousel {
    padding: 20px 0;
}

.logos-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.logo-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-slide img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Reviews */
.google-review-card {
    background: var(--color-navy);
    border-radius: 12px;
    padding: 1.5rem;
    color: #FFFFFF;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #FABB05;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.verified-badge {
    color: #38BDF8;
    font-size: 0.8rem;
}

.review-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .hero-image {
        opacity: 0.15;
        clip-path: none;
    }
    .hero {
        min-height: auto;
        padding: 140px 0 100px;
    }
}

/* ============================================================
   MOBILE STYLES — max-width: 768px
   REGRA: Nenhuma alteração de lógica PHP. Nenhuma modificação
   no comportamento desktop. Apenas ajustes de apresentação
   mobile dentro deste bloco.
   ============================================================ */
@media (max-width: 768px) {

    /* ----------------------------------------------------------
       1. LAYOUT GERAL
    ---------------------------------------------------------- */
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    #problemas {
        padding: 60px 0;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    h2 {
        font-size: clamp(1.55rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }

    /* Previne que animações AOS causem scroll horizontal */
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        opacity: 0; /* AOS controla; só garantimos sem overflow */
    }

    /* ----------------------------------------------------------
       2. MENU HAMBURGER
    ---------------------------------------------------------- */

    /* Mostrar o botão toggle no mobile */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        flex-shrink: 0;
        /* Área de toque confortável (44×44px) via padding invisível */
        position: relative;
    }

    .menu-toggle::before {
        content: '';
        position: absolute;
        top: -11px;
        left: -7px;
        right: -7px;
        bottom: -11px;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-navy);
        border-radius: 2px;
        transition: transform 0.35s ease, opacity 0.25s ease;
        transform-origin: center;
    }

    /* Animação do X quando o menu está aberto */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Substituir display:none por slide animado */
    .nav-menu {
        display: flex !important; /* sobrescreve o display:none do desktop */
        flex-direction: column;
        position: fixed;
        top: 90px; /* altura do header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 0.5rem 1.25rem 1.5rem;
        gap: 0;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
        list-style: none;
        /* Estado fechado: escondido para cima, invisível */
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease;
        z-index: 999;
    }

    /* Estado aberto (classe .active adicionada pelo JS do index.php) */
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 0.75rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
    }

    /* Botão CTA dentro do menu mobile */
    .nav-menu .btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    /* Travar scroll do body quando o menu estiver aberto */
    body.overflow-hidden {
        overflow: hidden;
    }

    /* ----------------------------------------------------------
       3. HERO
    ---------------------------------------------------------- */
    .hero {
        padding: 110px 0 55px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        opacity: 0.12;
        clip-path: none !important;
    }

    /* Botões do hero: empilhados, largura total */
    .hero-btns-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .hero-btns-container .btn {
        width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* ----------------------------------------------------------
       4. PROBLEM GRID (sobrescreve inline style com !important)
    ---------------------------------------------------------- */
    #bf-problem-grid,
    .problem-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* ----------------------------------------------------------
       5. SOLUTION GRID
    ---------------------------------------------------------- */
    #bf-solution-grid,
    .solution-grid-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Imagem sobe acima do texto em mobile */
    .solution-image-container {
        order: -1;
    }

    /* ----------------------------------------------------------
       6. BENEFITS GRID
    ---------------------------------------------------------- */
    #bf-benefits-grid,
    .benefits-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* ----------------------------------------------------------
       7. PROCESS GRID
    ---------------------------------------------------------- */
    #bf-process-grid,
    .process-grid-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* ----------------------------------------------------------
       8. WHY GRID
    ---------------------------------------------------------- */
    #bf-why-grid,
    .why-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 3rem !important;
    }

    /* ----------------------------------------------------------
       9. COMPARISON (antes e depois)
    ---------------------------------------------------------- */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-image-wrapper {
        height: 260px;
    }

    .comparison-label {
        font-size: 0.6rem !important;
        padding: 7px 12px !important;
    }

    /* ----------------------------------------------------------
       10. CARROSSÉIS (Swiper)
       Os breakpoints do JS já definem slidesPerView:1 em mobile.
       Aqui garantimos que os containers não causem overflow.
    ---------------------------------------------------------- */
    .results-carousel,
    .testimonials-carousel,
    .logos-carousel {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .result-slide {
        height: 300px;
    }

    /* ----------------------------------------------------------
       11. FORMULÁRIO DE CONTATO
    ---------------------------------------------------------- */

    /* Card do form: uma coluna */
    #bf-form-card,
    .form-card {
        grid-template-columns: 1fr !important;
    }

    .form-info {
        padding: 2.5rem 1.5rem 0rem 1.5rem !important;
    }

    .form-body {
        padding: 2rem 1.5rem 2.5rem !important;
    }

    /* Linhas do form: empilhadas */
    .bf-form-row,
    .form-row-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* font-size: 16px evita o zoom automático do iOS */
    #bf-contact-form input,
    #bf-contact-form select,
    #bf-contact-form textarea {
        font-size: 16px !important;
        padding: 14px !important;
    }

    /* ----------------------------------------------------------
       12. BOTÕES — área de toque mínima 44×44px
    ---------------------------------------------------------- */
    .btn {
        min-height: 44px;
        padding: 14px 22px;
        font-size: 0.8rem;
    }

    /* ----------------------------------------------------------
       13. RODAPÉ — empilhado e centralizado
    ---------------------------------------------------------- */
    #bf-footer-grid,
    .footer-grid-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: left;
    }

    /* Logo do footer centralizada */
    .footer-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Ícones sociais centralizados */
    #bf-footer-grid > div:first-child > div[style*="display: flex"] {
        justify-content: center !important;
    }

    /* Itens de lista (contatos) centralizados */
    #bf-footer-grid li {
        justify-content: center !important;
    }

    /* Mapa com altura reduzida */
    #bf-footer-grid > div:last-child {
        height: 200px !important;
    }

    .footer {
        padding: 50px 0 25px;
    }

    /* ----------------------------------------------------------
       14. WHATSAPP FLUTUANTE
    ---------------------------------------------------------- */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float i {
        font-size: 27px;
    }

    /* ----------------------------------------------------------
       15. HEADER — logo à esquerda, hamburger à direita
    ---------------------------------------------------------- */
    .nav-container {
        height: 75px;
    }

    .logo img {
        height: 52px;
    }

    /* Empurra o botão hamburger à extrema direita sem tocar no <nav>.
       display:none no <nav> ocultaria também o #nav-menu (position:fixed
       herda visibilidade do pai), por isso usamos apenas margin-left:auto. */
    .menu-toggle {
        margin-left: auto;
    }

} /* fim @media (max-width: 768px) */
/* Contatos e endereço: alinhados à esquerda, títulos permanecem centralizados */
#bf-footer-grid > div:nth-child(2) ul {
    text-align: left;
}

#bf-footer-grid > div:nth-child(2) li {
    justify-content: flex-start !important;
}

#bf-footer-grid > div:nth-child(2) > div {
    text-align: left;
    justify-content: flex-start !important;
}