/*
Theme Name: ABH
Description: Tema customizado do site institucional da ABH — Soluções para Controle de Contaminação.
Author: ABH
Version: 1.0.0
*/

:root {
    --abh-azul: #66CCFF;
    --abh-azul-escuro: #2C8FC9;
    --abh-azul-claro: #EAF7FE;
    --abh-preto: #181818;
    --abh-cinza: #404040;
    --abh-cinza-claro: #F4F6F8;
    --abh-branco: #FFFFFF;
    --abh-whatsapp: #25D366;
    --abh-radius: 10px;
    --abh-sombra: 0 4px 20px rgba(20, 22, 26, 0.08);
    --abh-font-titulo: 'Poppins', sans-serif;
    --abh-font-corpo: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--abh-cinza);
    background: var(--abh-branco);
    line-height: 1.5;
    font-family: var(--abh-font-corpo);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.abh-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--abh-font-titulo); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 51px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; color: var(--abh-cinza); }

.abh-btn {
    display: inline-block;
    padding: 10.8px 40px;
    border-radius: 120px;
    background: var(--abh-azul);
    color: #fff;
    text-decoration: none;
    font-family: var(--abh-font-titulo);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.abh-btn:hover { background: var(--abh-azul-escuro); transform: translateY(-1px); }
.abh-btn.secundario { background: transparent; border: 2px solid #fff; color: #fff; }
.abh-btn.escuro { background: var(--abh-preto); }

/* ---------- Header ---------- */
.abh-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--abh-branco);
    box-shadow: var(--abh-sombra);
    transition: background .25s, box-shadow .25s;
}
.abh-header .abh-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}
.abh-header img.abh-logo { height: 34px; width: auto; }
.abh-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.abh-menu a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--abh-preto); }
.abh-menu a:hover { color: var(--abh-azul); }
.abh-header-cta { display: flex; align-items: center; gap: 16px; }
.abh-header-cta .abh-btn { padding: 10px 22px; font-size: 14px; }
.abh-area-admin-label {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--abh-cinza);
    text-transform: uppercase;
}

/* Header transparente sobre o hero (home) */
.abh-header--transparente {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
    box-shadow: none;
}
.abh-header--transparente .abh-menu a { color: #fff; }
.abh-header--transparente .abh-menu a:hover { color: var(--abh-azul-claro); }
.abh-header--transparente .abh-logo--escura { display: none; }
.abh-header--transparente .abh-logo--clara { display: block; }
.abh-header--transparente.abh-header--rolado {
    position: sticky;
    background: var(--abh-branco);
    box-shadow: var(--abh-sombra);
}
.abh-header--transparente.abh-header--rolado .abh-menu a { color: var(--abh-preto); }
.abh-header--transparente.abh-header--rolado .abh-logo--escura { display: block; }
.abh-header--transparente.abh-header--rolado .abh-logo--clara { display: none; }

/* Menu mobile: some no desktop, só aparece <=900px (ver breakpoint responsivo) */
.abh-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.abh-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--abh-preto);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.abh-header--transparente:not(.abh-header--rolado):not(.abh-menu-mobile-aberto) .abh-menu-toggle span { background: #fff; }
.abh-header.abh-menu-mobile-aberto .abh-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.abh-header.abh-menu-mobile-aberto .abh-menu-toggle span:nth-child(2) { opacity: 0; }
.abh-header.abh-menu-mobile-aberto .abh-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.abh-menu-mobile { display: none; }

/* Enquanto o painel mobile está aberto, o header transparente vira sólido
   (mesmo tratamento visual de quando rola a página) pra manter contraste
   com o botão/menu, mesmo ainda no topo da hero. */
.abh-header--transparente.abh-menu-mobile-aberto {
    position: sticky;
    background: var(--abh-branco);
    box-shadow: var(--abh-sombra);
}
.abh-header--transparente.abh-menu-mobile-aberto .abh-logo--escura { display: block; }
.abh-header--transparente.abh-menu-mobile-aberto .abh-logo--clara { display: none; }

/* ---------- Hero / Carrossel ---------- */
.abh-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 110px 0;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.abh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,111,168,.5), rgba(102,204,255,.35));
}
.abh-hero .abh-container { position: relative; max-width: 720px; }
.abh-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 51.2px); }
.abh-hero p { color: rgba(255,255,255,.92); font-size: 18px; }
.abh-hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.abh-hero-carrossel { width: 100%; }
.abh-hero-carrossel .swiper-pagination-bullet { background: #fff; opacity: .6; }
.abh-hero-carrossel .swiper-pagination-bullet-active { opacity: 1; background: var(--abh-azul); }
.abh-hero-carrossel .swiper-button-prev, .abh-hero-carrossel .swiper-button-next { color: #fff; }
.abh-hero-carrossel .swiper-button-prev:after, .abh-hero-carrossel .swiper-button-next:after { font-size: 22px; }

/* ---------- Seções ---------- */
.abh-section { padding: 44px 0; }
.abh-section.escuro { background: var(--abh-preto); color: #fff; }
.abh-section.escuro h2, .abh-section.escuro p { color: #fff; }
.abh-section.claro { background: var(--abh-cinza-claro); }
.abh-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.abh-eyebrow {
    text-align: center;
    font-family: var(--abh-font-titulo);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--abh-preto);
    margin-bottom: 24px;
}

/* ---------- Intro "Somos a ABH" ---------- */
.abh-intro-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.abh-intro-inner h2 { font-size: 24px; }
.abh-divisor { width: 90px; border: none; border-top: 2px solid var(--abh-preto); margin: 20px auto; }
.abh-divisor-degrade { border: none; height: 4px; background: linear-gradient(90deg, var(--abh-azul), #4CD787); margin: 24px 0; }
.abh-intro-inner p { font-size: 15px; }

/* ---------- Mercados Atendidos (carrossel de ícones) ---------- */
.abh-mercados-carrossel { padding-bottom: 4px; }
.abh-mercado-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.abh-mercado-item img { width: 92px; height: 92px; object-fit: contain; display: block; margin: 0 auto; }
.abh-mercado-item span { font-family: var(--abh-font-titulo); font-weight: 700; font-size: 13px; letter-spacing: .03em; }

/* ---------- Sabemos interpretar ---------- */
.abh-sabemos-destaque { color: var(--abh-azul-escuro); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.abh-sabemos .abh-hero-cta .abh-btn { background: var(--abh-azul); }

/* ---------- Blog (cards estilo real) ---------- */
.abh-grid-blog { grid-template-columns: repeat(3, 1fr); }
.abh-blog-card { background: #fff; border-radius: var(--abh-radius); box-shadow: var(--abh-sombra); padding: 20px; }
.abh-blog-card img { border-radius: 8px; aspect-ratio: 16/10; object-fit: contain; object-position: center; background: var(--abh-cinza-claro); width: 100%; }
.abh-blog-card-body { padding-top: 18px; }
.abh-blog-categoria { font-size: 12px; color: var(--abh-cinza); margin-bottom: 6px; display: inline-block; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.abh-blog-categoria:hover { color: var(--abh-azul-escuro); }
.abh-blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.abh-blog-card h3 a { text-decoration: none; color: var(--abh-preto); }
.abh-saiba-mais { color: var(--abh-azul-escuro); font-weight: 700; text-decoration: none; font-size: 14px; }

/* ---------- Clientes (carrossel de logos) ---------- */
/* ---------- Hero estático (páginas internas) ---------- */
.abh-hero-estatico {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.abh-hero-estatico::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--abh-azul), #4CD787);
}

/* ---------- Famílias de produtos ---------- */
.abh-grid-familias { grid-template-columns: repeat(3, 1fr); }
.abh-familia-card {
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.abh-familia-card img { aspect-ratio: 4/3; object-fit: cover; background: #e5e5e5; }
.abh-familia-card span {
    display: block;
    padding: 18px 16px;
    text-align: center;
    font-family: var(--abh-font-titulo);
    font-weight: 700;
    font-size: 13px;
    color: var(--abh-preto);
}
.abh-familia-card:hover span { color: var(--abh-azul-escuro); }

/* ---------- Marcas representadas ---------- */
.abh-marcas-box { border: 1px solid #ddd; padding: 40px; text-align: center; }
.abh-marcas-carrossel { padding: 0 20px; }
.abh-marca-item { display: flex; align-items: center; justify-content: center; height: 130px; }
.abh-marca-item img { max-height: 110px; max-width: 100%; object-fit: contain; }

.abh-cliente-item { display: flex; align-items: center; justify-content: center; height: 110px; }
.abh-cliente-item img { max-height: 100px; max-width: 100%; object-fit: contain; }

/* ---------- Grid de cards ---------- */
.abh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.abh-card {
    background: #fff;
    border-radius: var(--abh-radius);
    box-shadow: var(--abh-sombra);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s;
}
.abh-card:hover { transform: translateY(-4px); }
.abh-card img { aspect-ratio: 4/3; object-fit: cover; background: var(--abh-cinza-claro); }
.abh-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.abh-card-body h3 { margin-bottom: 8px; }
.abh-card-body p { flex: 1; font-size: 14px; }
.abh-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--abh-azul-escuro);
    background: var(--abh-azul-claro);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* ---------- Produto destaque (Heute ProfilGate) ---------- */
.abh-destaque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.abh-destaque img { border-radius: var(--abh-radius); box-shadow: var(--abh-sombra); }
.abh-destaque .abh-card-tag { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Página de produto individual ---------- */
.abh-produto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.abh-produto-foto-principal img { border-radius: var(--abh-radius); border: 1px solid #eee; width: 100%; cursor: zoom-in; }
.abh-produto-miniaturas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.abh-produto-miniaturas img { border-radius: 6px; border: 2px solid #eee; aspect-ratio: 1; object-fit: contain; object-position: center; background: #fff; padding: 4px; cursor: pointer; transition: border-color .15s; }
.abh-produto-miniaturas img:hover { border-color: var(--abh-azul); }
.abh-produto-miniaturas img.ativa { border-color: var(--abh-azul-escuro); }

.abh-profilgate-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px 24px;
    background: var(--abh-azul-claro);
    border-radius: var(--abh-radius);
    padding: 12px 18px;
    margin: 12px 0 20px;
    font-size: 13px;
    color: var(--abh-cinza);
}
.abh-profilgate-stats strong {
    color: var(--abh-azul-escuro);
    font-size: 17px;
    font-family: var(--abh-font-titulo);
    margin-right: 4px;
}

.abh-produto-cta-profilgate {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--abh-azul-claro);
    border-radius: var(--abh-radius);
    text-align: center;
}
.abh-produto-cta-profilgate p {
    font-size: 13px;
    color: var(--abh-cinza);
    margin: 0 0 14px;
}
.abh-produto-cta-profilgate .abh-btn {
    margin: 0;
}

.abh-lightbox {
    position: fixed; inset: 0; background: rgba(20,20,20,.92); z-index: 1000;
    align-items: center; justify-content: center; cursor: zoom-out;
    display: flex;
}
.abh-lightbox[hidden] { display: none; }
.abh-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.abh-lightbox-fechar { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }
.abh-produto-box { border: 1px solid #ddd; border-radius: 6px; padding: 16px 22px; margin-top: 20px; }
.abh-produto-box summary {
    font-family: var(--abh-font-titulo); font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--abh-azul-escuro); cursor: pointer; list-style: none;
}
.abh-produto-box summary::-webkit-details-marker { display: none; }
.abh-produto-box summary::after { content: '+'; float: right; font-size: 18px; }
.abh-produto-box[open] summary::after { content: '−'; }
.abh-produto-box-conteudo { margin-top: 14px; }
.abh-produto-box ul { margin: 0; padding-left: 20px; }
.abh-produto-box li { margin-bottom: 6px; font-size: 14px; color: var(--abh-cinza); }

/* ---------- Footer ---------- */
.abh-footer { background: var(--abh-cinza-claro); color: var(--abh-preto); padding: 56px 0 0; }
.abh-footer a { color: var(--abh-cinza); text-decoration: none; font-size: 14px; }
.abh-footer a:hover { color: var(--abh-azul-escuro); }
.abh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .8fr; gap: 32px; margin-bottom: 40px; }
.abh-footer-col-social { display: flex; flex-direction: column; align-items: center; }
.abh-footer img.abh-logo { height: 34px; margin-bottom: 18px; }
.abh-footer h4 { color: var(--abh-preto); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.abh-footer-links { list-style: none; margin: 0; padding: 0; }
.abh-footer-links li { margin-bottom: 10px; font-size: 14px; color: var(--abh-cinza); }
.abh-footer-simbolo { width: 48px; height: auto; margin-top: 12px; opacity: .85; }
.abh-footer-social { display: flex; gap: 14px; margin-top: 18px; }
.abh-footer-social a { color: var(--abh-preto); display: inline-flex; }
.abh-footer-social a:hover { color: var(--abh-azul); }
.abh-footer-faixa { height: 4px; background: linear-gradient(90deg, var(--abh-azul), #4CD787); }
.abh-footer-base { background: var(--abh-preto); }
.abh-footer-base-inner {
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- WhatsApp flutuante ---------- */
.abh-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--abh-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    z-index: 200;
}
.abh-whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Conteúdo padrão (páginas/posts) ---------- */
.abh-conteudo { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.abh-conteudo h1 { margin-bottom: 24px; }

/* ---------- Contato ---------- */
.abh-contato-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.abh-contato-form { display: flex; flex-direction: column; gap: 10px; }
.abh-contato-form label { display: block; font-size: 13px; font-weight: 600; color: var(--abh-preto); }
.abh-contato-form input[type="text"],
.abh-contato-form input[type="email"],
.abh-contato-form textarea {
    width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid #d5d5d5; border-radius: 6px;
    font-family: inherit; font-size: 14px; font-weight: 400; color: var(--abh-preto);
}
.abh-contato-form textarea { resize: vertical; }
.abh-contato-form fieldset { border: none; padding: 0; margin: 6px 0; }
.abh-contato-form legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.abh-contato-form .abh-check {
    display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 400;
    margin-bottom: 6px; cursor: pointer;
}
.abh-contato-form .abh-check input { margin-top: 3px; flex-shrink: 0; }
.abh-contato-form button {
    align-self: flex-start; margin-top: 8px; padding: 12px 32px; background: var(--abh-azul); color: #fff;
    border: none; border-radius: 6px; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: .03em;
}
.abh-contato-form button:hover { background: var(--abh-azul-escuro); }
.abh-orcamento-ok { font-size: 16px; }

/* ---------- Sobre ---------- */
.abh-sobre-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.abh-sobre-manifesto-wrap { position: relative; overflow: hidden; }
.abh-sobre-dna { position: absolute; right: -60px; top: -190px; width: 520px; max-width: 45vw; opacity: 1; pointer-events: none; z-index: 0; }
.abh-tabs-nav { display: flex; justify-content: center; gap: 32px; border-bottom: 1px solid #e0e0e0; margin-bottom: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.abh-tab-btn {
    background: none; border: none; border-bottom: 2px solid transparent; padding: 0 0 12px;
    font-family: var(--abh-font-corpo); font-size: 14px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; color: var(--abh-cinza); cursor: pointer;
}
.abh-tab-btn.ativo { color: var(--abh-azul-escuro); border-bottom-color: var(--abh-azul-escuro); }
.abh-tab-content { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.abh-tab-content p { margin-bottom: 16px; }
.abh-frase-destaque {
    font-family: var(--abh-font-titulo); font-size: 22px; font-weight: 600; color: var(--abh-preto);
    max-width: 800px; margin: 0 auto; padding: 32px 0; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .abh-nav-desktop, .abh-header .abh-header-cta { display: none; }
    .abh-menu-toggle { display: flex; }

    .abh-menu-mobile {
        flex-direction: column;
        background: var(--abh-branco);
        padding: 4px 24px 24px;
        box-shadow: var(--abh-sombra);
    }
    .abh-header.abh-menu-mobile-aberto .abh-menu-mobile { display: flex; }
    .abh-menu-mobile .abh-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .abh-menu-mobile .abh-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--abh-cinza-claro);
        color: var(--abh-preto) !important;
    }
    .abh-menu-mobile .abh-btn {
        margin: 18px 0 0;
        text-align: center;
    }

    .abh-grid, .abh-grid-blog { grid-template-columns: repeat(2, 1fr); }
    .abh-destaque { grid-template-columns: 1fr; }
    .abh-footer-grid { grid-template-columns: 1fr; }
    .abh-contato-layout { grid-template-columns: 1fr; gap: 40px; }
    .abh-sobre-intro { grid-template-columns: 1fr; }
    .abh-sobre-dna { display: none; }
}
@media (max-width: 560px) {
    .abh-grid, .abh-grid-blog { grid-template-columns: 1fr; }
    .abh-hero { padding: 60px 0; }
    .abh-hero .abh-container { text-align: center; }
    .abh-hero-cta { justify-content: center; }
}
