/* ==================================================
   Clube Síndicos Coworking — ajustes da landing page
   (overrides próprios, carregados depois do template)
   ================================================== */

/* ---------- HEADER escuro (logo tem texto branco) ---------- */
header,
header.transparent,
header.smaller,
header.header-light,
header.scroll-light {
    background: #0D0D0D !important;
}

/* Logo do header */
#logo img.logo,
#logo img.logo-2 {
    height: 70px !important;
    width: auto !important;
    max-width: 100%;
}

/* Menu: texto claro e fonte maior */
#mainmenu > li > a {
    color: #fff !important;
    font-size: 16px !important;
    letter-spacing: .3px;
}
#mainmenu > li > a:hover,
#mainmenu > li:hover > a {
    color: var(--primary-color) !important;
}

/* Garante que o hero não fique escondido atrás do header */
#section-hero { padding-top: 120px; }

@media only screen and (max-width: 992px) {
    #logo img.logo,
    #logo img.logo-2 { height: 54px !important; }
    #section-hero { padding-top: 100px; }
}

/* ---------- HEADER fixo com auto-hide (esconde ao descer, mostra ao subir) ---------- */
header.transparent,
header.header-light,
header.scroll-light {
    position: fixed !important;
    top: 0;
    left: 0;
    transition: transform .35s ease;
}
header.nav-hidden {
    transform: translateY(-100%);
}

/* ---------- BOTÕES CTA maiores ---------- */
.btn-main {
    font-size: 16px !important;
    padding: 15px 34px !important;
    line-height: 1.2 !important;
}

/* CTA do header: dourado pra destacar no fundo preto */
.menu_side_area .btn-main {
    background: var(--primary-color) !important;
    color: #0D0D0D !important;
    border-color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 18px 40px !important;
}
.menu_side_area .btn-main:hover {
    background: #fff !important;
    color: #0D0D0D !important;
    border-color: #fff !important;
}

/* CTA em seções de fundo preto: botão branco pra destacar */
section.bg-color-secondary .btn-main {
    background: #fff !important;
    color: #0D0D0D !important;
}
section.bg-color-secondary .btn-main:hover {
    background: var(--primary-color) !important;
    color: #0D0D0D !important;
}

/* CTA final (fundo dourado): botão preto pra destacar */
section.call-to-action .btn-main {
    background: #0D0D0D !important;
    color: #fff !important;
}
section.call-to-action .btn-main:hover {
    background: #fff !important;
    color: #0D0D0D !important;
}

/* ---------- CARDS de altura igual ---------- */
#dores .row,
#numeros .row {
    display: flex;
    flex-wrap: wrap;
}
#dores [class*="col-"],
#numeros [class*="col-"] {
    display: flex;
}
#dores .feature-box-type-2 {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 34px 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
}

/* Estrutura completa — cards maiores */
#numeros .de_count {
    width: 100%;
    height: 100%;
    min-height: 210px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 46px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#numeros .de_count h3,
#numeros .de_count h3 span {
    font-size: 46px !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
    color: var(--primary-color);
}
#numeros .de_count h5 { font-size: 15px; line-height: 1.4; }

/* ---------- PACOTE DO AUDITÓRIO — conteúdo centralizado ---------- */
#preco .pricing-s1 { text-align: center; }
#preco .pricing-s1 .bottom ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
}
#preco .pricing-s1 .bottom li { text-align: center; }

/* ---------- AVALIAÇÕES (carrossel próprio, scroll-snap) ---------- */
#avaliacoes .reviews-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#avaliacoes .reviews-track::-webkit-scrollbar { display: none; }
#avaliacoes .reviews-track > .item {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 16px);
    display: flex;
}
#avaliacoes .review-card {
    width: 100%;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}
@media (max-width: 992px) { #avaliacoes .reviews-track > .item { flex-basis: calc(50% - 12px); } }
@media (max-width: 600px) { #avaliacoes .reviews-track > .item { flex-basis: 100%; } }
#avaliacoes .review-stars { color: var(--primary-color); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
#avaliacoes .review-text { font-style: italic; color: #e6e6e6; line-height: 1.6; flex-grow: 1; margin-bottom: 22px; }
#avaliacoes .review-author { display: flex; align-items: center; }
#avaliacoes .review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-color); color: #0D0D0D;
    font-weight: 700; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px; flex-shrink: 0;
}
#avaliacoes .review-name { font-weight: 700; color: #fff; line-height: 1.2; }
#avaliacoes .review-role { font-size: 13px; color: #9a9a9a; }
#avaliacoes .reviews-nav { text-align: center; margin-top: 26px; }
#avaliacoes .rev-arrow {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: transparent; color: var(--primary-color);
    font-size: 20px; margin: 0 8px; cursor: pointer; transition: all .25s;
}
#avaliacoes .rev-arrow:hover { background: var(--primary-color); color: #0D0D0D; }

/* ---------- CTA final: título menor ---------- */
section.call-to-action h1 {
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 0;
}
@media only screen and (max-width: 768px) {
    section.call-to-action h1 { font-size: 22px; }
}

/* ---------- RODAPÉ preto e centralizado ---------- */
footer,
footer.footer-light { background: #0D0D0D !important; }
footer .widget { text-align: center; }
footer h5 { color: #fff; }
footer .widget p,
footer .widget a,
footer .footer-tagline { color: #d4d4d4; font-size: 15.5px; line-height: 1.7; }
footer .widget a:hover { color: var(--primary-color); }
footer .widget .social-icons { text-align: center; margin-top: 12px; }
footer .f-logo-main { height: 88px; width: auto; margin-bottom: 18px; }

/* Subrodapé preto, centralizado, 3 linhas */
footer .subfooter { background: #000 !important; border-top: 1px solid #222; }
footer .subfooter .sub-center { text-align: center; width: 100%; }
footer .subfooter .sub-center p { margin: 6px 0; color: #d4d4d4; font-size: 15px; }
footer .subfooter .sub-center a { color: var(--primary-color); }
footer .subfooter .sub-center a:hover { text-decoration: underline; }

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px 22px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
#cookie-banner.show { display: flex; }
#cookie-banner p { color: #e6e6e6; margin: 0; font-size: 14.5px; line-height: 1.5; }
#cookie-banner p a { color: var(--primary-color); }
#cookie-banner .cookie-actions { flex-shrink: 0; }
#cookie-banner .btn-cookie {
    background: var(--primary-color);
    color: #0D0D0D;
    border: none;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 8px;
    cursor: pointer;
}
#cookie-banner .btn-cookie:hover { opacity: .9; }
@media only screen and (max-width: 768px) {
    #cookie-banner { flex-direction: column; text-align: center; }
}

/* ---------- GALERIA ---------- */
#galeria .gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
#galeria .gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .4s ease;
}
#galeria .gallery-item:hover img { transform: scale(1.07); }
#galeria .gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,13,13,.55);
    color: var(--primary-color);
    font-size: 28px;
    opacity: 0;
    transition: opacity .3s ease;
}
#galeria .gallery-item:hover .gallery-zoom { opacity: 1; }

/* Remove a seta "voltar ao topo" (conflita com o WhatsApp flutuante) */
#back-to-top { display: none !important; }

/* ---------- WHATSAPP FLUTUANTE ---------- */
#wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    transition: transform .2s;
    animation: wa-pulse 2.2s infinite;
}
#wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
    0%   { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 768px) { #wa-float { width: 54px; height: 54px; font-size: 28px; } }

/* Sobe o WhatsApp flutuante quando o banner de cookies está visível */
#cookie-banner.show ~ #wa-float { bottom: 110px; }
@media (max-width: 768px) { #cookie-banner.show ~ #wa-float { bottom: 170px; } }

/* ---------- POPUP (modal) WHATSAPP ---------- */
#waModal .modal-dialog { max-width: 440px; }
#waModal .modal-content {
    position: relative;
    background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
    color: #fff;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    padding: 8px 10px 14px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    overflow: hidden;
}
#waModal .modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #25D366);
}
#waModal .wa-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    color: #888; font-size: 26px; line-height: 1;
    cursor: pointer; z-index: 2;
}
#waModal .wa-close:hover { color: #fff; }
#waModal .wa-head { text-align: center; padding: 26px 24px 6px; }
#waModal .wa-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #25D366; color: #fff;
    font-size: 34px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 22px rgba(37,211,102,.35);
}
#waModal .wa-head h5 { color: #fff; font-weight: 700; font-size: 21px; margin-bottom: 8px; }
#waModal .wa-head p { color: #b9b9b9; font-size: 14px; margin: 0; line-height: 1.5; }
#waModal form { padding: 18px 28px 26px; }
#waModal label { font-size: 13px; color: #cfcfcf; margin-bottom: 5px; display: block; font-weight: 600; }
#waModal .form-control {
    background: #0d0d0d;
    border: 1px solid #333;
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
#waModal .form-control::placeholder { color: #6f6f6f; }
#waModal .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
#waModal .btn-wa-send {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    transition: all .2s;
}
#waModal .btn-wa-send:hover { background: #1eb858; transform: translateY(-1px); }

/* Elementos do drawer só existem no mobile — escondidos por padrão (desktop) */
#mainmenu .m-drawer-head,
#mainmenu .m-drawer-cta { display: none; }

/* ==================================================
   MOBILE (<= 992px) — drawer lateral + ajustes
   ================================================== */
@media only screen and (max-width: 992px) {

    /* Barra do topo fixa, preta, baixa (só logo + hambúrguer) */
    header.transparent,
    header.header-light,
    header.scroll-light,
    header.header-mobile {
        position: fixed !important;
        height: 70px !important;
        padding-top: 0 !important;
        background: #0D0D0D !important;
    }
    /* no mobile o header não some no scroll (menu sempre acessível) */
    header.nav-hidden { transform: none !important; }

    /* com o drawer aberto, header acima do overlay e sem clipar o drawer */
    body.menu-open header,
    body.menu-open header.header-mobile {
        z-index: 2100 !important;
        overflow: visible !important;
    }

    /* Esconde o CTA da barra do topo (vai pro rodapé do drawer) */
    .menu_side_area .btn-main { display: none !important; }
    /* Esconde o WhatsApp flutuante no mobile */
    #wa-float { display: none !important; }

    #menu-btn { display: block; }

    /* ---------- DRAWER lateral (constrói a partir do #mainmenu) ---------- */
    header #mainmenu,
    header.header-mobile #mainmenu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 82% !important;
        max-width: 340px !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #0D0D0D !important;
        box-shadow: -8px 0 30px rgba(0,0,0,.5);
        transform: translateX(100%) !important;
        transition: transform .3s ease !important;
        z-index: 2000 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        text-align: center !important;
    }
    body.menu-open header #mainmenu,
    body.menu-open header.header-mobile #mainmenu {
        transform: translateX(0) !important;
    }

    /* Cabeçalho do drawer (logo + X) — injetado via JS */
    #mainmenu .m-drawer-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255,255,255,.12) !important;
        list-style: none;
        width: 100%;
    }
    #mainmenu .m-drawer-brand { display: flex; align-items: center; gap: 10px; }
    #mainmenu .m-drawer-head img { height: 42px; width: auto; }
    #mainmenu .m-drawer-title { color: #fff; font-weight: 600; font-size: 17px; }
    #mainmenu .m-drawer-close {
        font-size: 26px; line-height: 1; color: #fff;
        width: 40px; height: 40px;
        border: 1px solid var(--primary-color); border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
    }

    /* Itens do menu */
    header #mainmenu > li,
    header.header-mobile #mainmenu > li {
        width: 100% !important;
        display: block !important;
        float: none !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }
    header #mainmenu > li > a,
    header.header-mobile #mainmenu > li > a {
        display: block !important;
        padding: 17px 20px !important;
        color: #fff !important;
        font-size: 16px !important;
        text-align: center !important;
    }
    #mainmenu > li > a span { display: none !important; }

    /* CTA no rodapé do drawer — injetado via JS */
    #mainmenu .m-drawer-cta {
        display: block !important;
        margin-top: auto !important;
        padding: 20px 18px 28px !important;
        border: none !important;
        width: 100%;
    }
    #mainmenu .m-drawer-cta a {
        display: block;
        width: 100%;
        background: var(--primary-color);
        color: #0D0D0D !important;
        font-weight: 700;
        padding: 16px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 16px;
    }

    /* Overlay escuro atrás do drawer */
    #m-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,.55);
        opacity: 0; visibility: hidden;
        transition: opacity .3s; z-index: 1900;
    }
    body.menu-open #m-overlay { opacity: 1; visibility: visible; }
    body.menu-open { overflow: hidden; }

    /* Popup WhatsApp sempre acima do drawer */
    #waModal { z-index: 3000 !important; }
    .modal-backdrop { z-index: 2990 !important; }

    /* ---------- Conteúdo centralizado ---------- */
    #section-hero .col-md-6,
    #sobre .col-md-6,
    section .col-md-6,
    section .col-md-8 { text-align: center !important; }
    #section-hero .lead,
    #sobre p { text-align: center !important; }
    #sobre ul.ul-style-2 {
        display: inline-block;
        text-align: left;
        margin-left: auto; margin-right: auto;
    }

    /* ---------- Hero: fonte menor ---------- */
    #section-hero h1 { font-size: 30px !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
    #section-hero h6 { font-size: 12px !important; }
    #section-hero p.lead { font-size: 15px !important; }
    h2 { font-size: 26px !important; }
    section.call-to-action h1 { font-size: 23px !important; line-height: 1.3 !important; }

    /* ---------- Botões CTA: sem sobreposição ---------- */
    section .btn-main,
    .call-to-action .btn-main {
        display: inline-block !important;
        float: none !important;
        position: static !important;
        white-space: normal !important;
        max-width: 92%;
        margin: 10px auto !important;
        line-height: 1.3 !important;
    }

    /* ---------- Espaçamento das seções menor (corta vão grande) ---------- */
    section { padding-top: 45px !important; padding-bottom: 45px !important; }
    #section-hero { padding-top: 90px !important; padding-bottom: 20px !important; }
    .spacer-single { height: 24px !important; }

    /* ---------- Card do plano: largura total, sem espremer ---------- */
    #preco .item.pricing .container { padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important; }
    #preco .item.pricing .row > div,
    #preco .item.pricing .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    #preco .pricing-s1 { width: 100% !important; }
    #preco .pricing-s1 .bottom ul { padding-left: 0 !important; }
}
