/*
Theme Name: Anadem Theme
Author: Dubbox Tecnologia
Description: Tema Customizado para Anadem
Version: 1.1 (Refactored)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anademtheme
*/

/* ================================================== */
/* 1. VARIÁVEIS E RESET GLOBAL */
/* ================================================== */

:root {
    --color-primary: #103025;
    --color-primary-strong: #0b241c;
    --color-primary-light: #174634;
    --hero-bg-mobile: #0b3a2d; /* Fallback mobile */
}

html, body {
    font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    min-width: 100%;
}

h1, h2, h3, h4, h5, h6, .navbar, .btn {
    font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Container Customizado */
.container-1216 {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
    max-width: 1216px;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1216px !important;
    }
}

.privacy-link {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Utilitários de Texto e Espaçamento */
.letter-spacing-1 { letter-spacing: 0.08em; }
.texto-fundo-branco {
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 10px !important;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Paddings Helpers */
.padding-inferior-pequeno { padding-bottom: 15px !important; }
.padding-superior-pequeno { padding-top: 15px !important; }
.padding-superior-60 { padding-top: 60px !important; }
.padding-inferior-60 { padding-bottom: 60px !important; }
.padding-inferior-120 { padding-bottom: 120px !important; }

/* ================================================== */
/* 2. COMPONENTES GLOBAIS (Botões, Inputs, Cards) */
/* ================================================== */

/* Botão Outline Dark (Customizado Anadem) */
.btn-outline-dark:hover,
.home-blog .btn-outline-dark:hover,
.home-blog .btn-outline-dark:focus-visible {
    background-color: #003926 !important;
    border-color: #003926 !important;
    color: #ffffff !important;
}

/* Botão Success (Verde Anadem) */
.btn-success {
    background-color: var(--color-primary, #103025);
    border-color: var(--color-primary, #103025);
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s, background-image 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.btn-success:hover, .btn-success:focus {
    background-image: linear-gradient(135deg, #3d8063 0%, #295f4c 100%);
    border-color: #295f4c;
    background-color: transparent;
    color: #fff;
}

/* Indicadores de Carrossel (Bootstrap Override) */
.carousel-indicators {
    justify-content: center;
}

.carousel-indicators button.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 4px;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.carousel-indicators button.carousel-indicator.active {
    background-color: #ffffff;
}

/* Custom Dividers */
.vertical-divider-container {
    position: relative;
}

.vertical-divider {
    position: absolute;
    left: -12px;
    height: 100%;
    width: 1px;
    background-color: #CACACA;
}

@media (min-width: 768px) {
    .vertical-divider-container {
        padding-right: 40px !important;
    }
}

.custom-divider-wrapper {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    margin-top: 5px;
    margin-bottom: 15px;
    position: relative;
}

.custom-divider-1 {
    background-color: #112620;
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 31%;
}

.custom-divider-2 {
    background-color: #112620;
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 8%;
}

/* ================================================== */
/* 3. HEADER & NAVEGAÇÃO */
/* ================================================== */

/* Hover Effects Header */
.header-accessibility-btn:hover,
.header-denuncia-link:hover,
.header-social-link:hover {
    color: #103025 !important;
    transition: color 0.2s ease;
}

.btn-header-representante:hover,
.btn-mobile-representante:hover {
    background-image: linear-gradient(135deg, #3d8063 0%, #295f4c 100%) !important;
    background-color: transparent !important;
    border-color: #295f4c !important;
    color: #fff !important;
}

.site-header .navbar {
    background: #fff;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #111827;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #103025;
    text-decoration: underline;
    text-decoration-color: #103025;
    text-underline-offset: 4px;
}

/* Mega Menu (Desktop) */
.mega-menu {
    min-width: 100vw;
    border: none;
    border-radius: 0;
    padding: 40px 0;
    margin-top: 0;
    background: rgba(210, 218, 216, 0.9);
    box-shadow: none;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mega-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mega-card-img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mega-card-caption {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
}

.mega-links a {
    display: block;
    padding: 6px 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.mega-links a:hover { color: #0b3a2d; }

.anadem-mega-link {
    color: #6c757d;
    transition: color 0.2s ease;
}

.anadem-mega-link:hover {
    color: #0b3a2d !important;
    background-color: transparent !important;
    text-decoration: none;
    font-weight: 600;
}

/* Comportamento Desktop Hover */
@media (min-width: 992px) {
    .navbar .dropdown-menu { display: none; }
    
    .navbar .nav-item.mega-dropdown:hover>.dropdown-menu,
    .navbar .nav-item.mega-dropdown:focus-within>.dropdown-menu,
    .navbar .nav-item.mega-dropdown>.dropdown-menu:hover {
        display: block;
    }

    .navbar .nav-item.mega-dropdown { position: static; }
    
    .navbar .mega-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
    }

    .navbar .mega-menu .row {
        max-width: 1216px;
        margin: 0 auto;
        align-items: center;
    }
    
    .submenu-header { display: none !important; }
}

/* ================================================== */
/* 4. MENU MOBILE (Fullscreen & Slide) */
/* ================================================== */

@media (max-width: 991.98px) {
    .header-top-bar { display: none !important; }
    
    .site-header .navbar { padding: 0; }
    .site-header .navbar-brand img { height: 32px; }
    
    header .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Navbar Toggler (Hamburger & Close) */
    .site-header .navbar-toggler { border: none; padding: 0; z-index: 10001; }
    .site-header .navbar-toggler:focus { box-shadow: none; }
    
    .site-header .navbar-toggler-icon {
        width: 1.8rem;
        height: 1.25rem;
        background-image:
            linear-gradient(var(--color-primary) 0 0),
            linear-gradient(var(--color-primary) 0 0),
            linear-gradient(var(--color-primary) 0 0);
        background-size: 100% 2px, 100% 2px, 100% 2px;
        background-position: center calc(50% - 6px), center, center calc(50% + 6px);
        background-repeat: no-repeat;
    }

    /* Botão Fechar (X) quando aberto */
    .navbar-toggler[aria-expanded="true"] {
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        width: 1rem;
        height: 1rem;
        background-image: linear-gradient(transparent 0 0), linear-gradient(var(--color-primary) 0 0), linear-gradient(transparent 0 0);
        transform: rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        top: 50%;
        left: 0;
        transform: rotate(90deg);
    }

    /* Container Principal do Menu Mobile */
    #mainNavbar {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #e5e7eb;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 11rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #mainNavbar.show { transform: translateX(0); }

    /* Links do Menu Mobile */
    .site-header .navbar-nav { width: 100%; padding: 1rem 0; gap: 0.5rem; margin: 0; }
    .navbar-nav > .nav-item { border-bottom: 1px solid #e5e7eb; }
    
    .navbar-nav > .nav-item:first-child {
        padding-top: 3rem !important;
    }
    
    .navbar-nav > .nav-item > .nav-link {
        padding: 1rem 1.5rem;
        padding-left: 1.5rem;
        font-size: 16px;
        font-weight: 500;
        color: #111827;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Seta para Submenu */
    .navbar-nav > .nav-item.dropdown > .nav-link::after {
        content: '\F285'; /* Bootstrap Icons chevron-right */
        font-family: 'bootstrap-icons';
        border: none;
        margin-left: auto;
        font-size: 18px;
        color: #6b7280;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Submenu (Slide-in) */
    .navbar-nav .dropdown-menu {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #e5e7eb !important;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 10000;
    }

    .navbar-nav .dropdown-menu.show { display: block; transform: translateX(0); }

    /* Header Submenu (Voltar) */
    .submenu-header {
        position: sticky;
        top: 0;
        background: #e5e7eb;
        z-index: 10;
        border-bottom: 1px solid #d1d5db;
        margin-bottom: 1rem;
    }

    .submenu-back {
        display: flex;
        align-items: center;
        padding: 1.5rem;
        font-size: 18px;
        font-weight: 700;
        color: #003926;
        cursor: pointer;
    }
    
    /* Itens do Submenu */
    .dropdown-menu .dropdown-item,
    .dropdown-menu a.d-block {
        padding: 1rem 1.5rem;
        padding-left: 1rem;
        font-size: 16px;
        font-weight: 500;
        color: #111827;
        border-bottom: 1px solid #e5e7eb;
        white-space: normal;
        background-color: transparent !important;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    /* Reset Mega Menu para Mobile */
    .mega-menu {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100vh !important;
        min-width: 100% !important;
        background: #e5e7eb !important;
        padding-top: 0 !important; /* Ajuste para usar submenu-header */
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    .mega-menu.show { transform: translateX(0) !important; }

    /* Layout do Mega Menu Mobile */
    .dropdown-menu .row, .dropdown-menu .mega-links.row { display: block !important; margin: 0 !important; }
    .dropdown-menu [class*="col-"] { width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }
    
    /* Esconde banners desktop no mobile */
    .dropdown-menu .mega-card, .dropdown-menu .col-md-3:has(.mega-card) { display: none !important; }

    /* Extras do Menu Mobile */
    .mobile-menu-extras { margin-top: 2rem; padding: 0 1.5rem; }
    .mobile-menu-extras .btn { display: block !important; width: 100% !important; font-size: 14px; padding: 0.6rem 1rem; }
    .mobile-promo-card { display: block !important; width: 100% !important; }
    .mobile-promo-card .bg-dark { background-color: #003926 !important; }
    .mobile-social-icons a:hover { transform: scale(1.1); }
}

/* ================================================== */
/* 5. RODAPÉ (FOOTER) */
/* ================================================== */

footer {
    background: var(--color-primary);
    color: var(--color-primary);
}

.site-footer .footer-top {
    background-color: #f4f5f6;
    font-size: 13px;
}

.site-footer .footer-text { color: #555; line-height: 1.5; }
.site-footer .footer-top h6 { font-size: 13px; letter-spacing: .02em; text-transform: none; }
.site-footer .footer-list li { margin-bottom: 15px; color:#003926; }

.site-footer .footer-list a {
    color: #0b241c;
    text-decoration: none;
    font-size: 13px;
}

.site-footer .footer-list a:hover { text-decoration: underline; }
.setinha:hover { font-weight: bold!important; }

/* Faixa Inferior */
.site-footer .footer-bottom {
    background-color: var(--color-primary);
    color: #ffffff;
}

.footer-bottom-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom-link:hover { text-decoration: underline; }

.footer-bottom-icon {
    color: #ffffff;
    font-size: 16px;
}
.footer-bottom-icon:hover { opacity: 0.8; }

/* Accordion Footer Mobile */
.transition-icon { transition: transform 0.3s ease; }
[aria-expanded="true"] .transition-icon { transform: rotate(180deg); }

@media (min-width: 992px) {
    .margem-top-0-desktop { margin-top: 0px !important; }
    .padding-left-0-desktop { padding-left: 0px !important; }
}

@media (max-width: 991.98px) {
    .padding-left-10-mobile { padding-left: 10px !important; }
    .margem-lados-10-mobile { margin-left: 10px !important; margin-right: 10px !important; }
}

/* Responsividade Footer */
@media (max-width: 991.98px) {
    .footer-text.fw-semibold { font-size: 16px; }
    .footer-bottom .container { flex-direction: row !important; }
    .footer-bottom-link { font-size: 12px; white-space: nowrap; }
    .site-footer .col-lg-2 .gap-4 { gap: 1rem !important; }
    .site-footer div[style*="border-bottom"] { width: 100% !important; }
    .centralizar-mobile { justify-content: center !important; display: block; margin: 0 auto; }
    .margin-0-mobile { margin-top: 0px !important; }
}

@media (max-width: 767.98px) {
    .site-footer .col-md-4, .site-footer .col-md-3, .site-footer .col-md-2 { margin-bottom: 2rem; }
    .site-footer .row.g-4 > div:last-child { margin-bottom: 0; }
    
    /* Selos */
    .site-footer .col-md-2.text-md-end {
        text-align: left !important;
        display: flex; flex-wrap: wrap; gap: 1.5rem;
        align-items: center; justify-content: flex-start;
    }
    .site-footer .col-md-2 img { width: auto !important; max-width: 100px !important; height: auto !important; margin: 0 !important; }
    
    /* Redes Sociais */
    .site-footer .d-flex.gap-4 {
        gap: 1rem !important; flex-wrap: wrap !important;
        padding-top: 0 !important; margin-top: 1rem;
        justify-content: center !important;
    }
    
    .site-footer .row.pt-4 .col-md-10 { margin-bottom: 1rem; }
    .site-footer .row.pt-4 .col-md-2 { justify-content: flex-start !important; padding-left: 12px; }
    
    /* Faixa verde mobile */
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-bottom .flex-grow-1 { flex-direction: column; gap: 1rem !important; }

    .list-unstyled{
        margin-top: 1rem!important;
    }
}

/* ================================================== */
/* 6. HOME: HERO SECTION */
/* ================================================== */

.hero-lead {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 35%),
        linear-gradient(110deg, var(--color-primary-strong) 0%, var(--color-primary-strong) 55%, var(--color-primary) 100%);
    color: #fff;
    padding: 56px 0;
}

.hero-lead::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.hero-lead__eyebrow { font-size: 13px; letter-spacing: 0.02em; opacity: 0.85; }
.hero-lead__title { font-weight: 800; line-height: 1.2; }
.hero-lead__subtitle { font-size: 18px; font-weight: 600; }

/* Formulário Hero */
.hero-lead__form { border: 1px solid rgba(16, 48, 37, 0.12); border-radius: 10px; }
.hero-lead__form .form-select, .hero-lead__form .form-control { font-size: 14px; }
.hero-lead__form .btn { font-weight: 700; }
.hero-form-title { font-size: 24px; line-height: 1.1; }
.hero-form-subtitle { font-size: 16px; line-height: 1.2; color: #3C3C3C; }
.hero-form-icon { font-size: 2rem; color: #7EA88A; }

/* Borda lateral desktop */
.hero-lead .border-start-md { border-left: 1px solid #CACACA; }

/* Proteção Carreira Hero BG */
.hero-protecao-bg {
    background-size: 100% 100%, cover !important;
    background-position: left top, right top !important;
    background-repeat: no-repeat !important;
    transition: background-position 0.3s ease;
}

@media (max-width: 1400px) { .hero-protecao-bg { background-position: right top, 90% top !important; } }
@media (max-width: 1200px) { .hero-protecao-bg { background-position: right top, 85% top !important; } }
@media (max-width: 992px) { .hero-protecao-bg { background-position: right top, 75% top !important; } }

/* Responsividade Hero */
@media (max-width: 991.98px) {
    .hero-lead__title { font-size: 28px !important; }
    .hero-lead .h5 { font-size: 18px !important; }
    .hero-lead .bg-white { padding: 1.5rem !important; }
    .hero-form-title { font-size: 20px; }
    .hero-form-subtitle { font-size: 14px; }
    .hero-form-icon { font-size: 1.5rem; }

    /* Remove bordas/divisores em mobile */
    .hero-lead .border-start-md { border: none !important; padding: 0.5rem 0 0 0 !important; margin-top: 0.5rem; }
    .vertical-divider-container { border-left: none !important; padding-left: 0 !important; margin-top: 1rem; }

    /* Proteção BG Mobile */
    .hero-protecao-bg {
        background-image: linear-gradient(to top, #0b3a2d 0%, #0b3a2d 30%, rgba(11,58,45,0) 80%), var(--hero-bg-mobile) !important;
        background-position: center bottom, center top !important;
        background-size: 100% auto, 100% auto !important;
        background-color: #0b3a2d !important;
        padding-top: 40vw !important;
        padding-bottom: 2rem;
        height: auto !important;
    }
    .hero-protecao-bg .page-hero-title { width: 100%; font-size: 28px !important; margin-bottom: 1rem; }
    .hero-protecao-bg .page-hero-subtitle { font-size: 16px !important; }
}

@media (max-width: 575.98px) {
    .hero-lead__title { font-size: 24px !important; }
    .hero-form-title { font-size: 18px; }
}

/* ================================================== */
/* 7. HOME: CLIENTES E DEPOIMENTOS */
/* ================================================== */

.clients-section {
    background: radial-gradient(circle at top left, #1b5a45 0, var(--color-primary) 55%, var(--color-primary-strong) 100%);
    padding-bottom: 80px;
    overflow: hidden;
}

.clients-section h2 { font-size: 24px; }

/* Carrossel Splide Clientes */
.clients-carousel {
    position: relative;
    height: auto;
    min-height: 380px;
    margin-bottom: 2rem;
}

.clients-carousel .splide__track {
    height: 300px; /* Ajuste final */
    padding: 0 !important;
}

.clients-carousel .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: none;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Cards de Cliente */
.client-card {
    background-color: transparent;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 500px;
    min-height: 250px;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
}

.client-name { font-weight: 700; font-size: 18px; margin-bottom: 2px; }
.client-role { font-size: 18px; margin-bottom: 14px; opacity: 0.9; }
.quote-icon { width: 35px; height: auto; align-self: center; flex-shrink: 0; }

.client-box {
    background: #ffffff;
    color: #111827;
    border-radius: 12px;
    padding: 20px 22px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    align-self: center;
}

/* Navegação Splide Clientes */
.clients-carousel .splide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 20;
    padding: 0;
}

@media (max-width: 991.98px) {
    .clients-carousel .splide__arrows {
      top: 60% !important;;
    }
    .clients-carousel .splide__arrow {
      top: 60% !important;
    }
}

.clients-carousel .splide__arrow {
    background: none;
    border: none;
    opacity: 1;
    transform: translateY(-50%);
    position: absolute;
    width: 60px; height: 60px; top: 50%;
    margin: 0;
}

.clients-control span.clients-arrow {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 60px;
    color: #ffffff;
    font-size: 30px;
    font-family: "bootstrap-icons" !important;
    border: none !important;
    background-color: transparent !important;
}

@media (min-width: 768px) {
    .clients-carousel .splide__arrow--prev { left: calc(50% - 250px - 50px); }
    .clients-carousel .splide__arrow--next { right: calc(50% - 250px - 50px); }
}

@media (max-width: 991.98px) {
    .clients-section, .clients-carousel { padding-top: 40px !important; padding-bottom: 40px !important; height: auto !important; }
    .clients-section h2 { font-size: 24px !important; margin-bottom: 0 !important; }
    .client-card { padding: 1.5rem; height: auto !important; }
    .client-box { flex-direction: column; padding: 15px; }
    .quote-icon { margin-bottom: 1rem; align-self: flex-start !important; }
}

@media (max-width: 767.98px) {
    .clients-section { padding-bottom: 3rem; }
    .clients-carousel .splide__arrow--prev { left: 10px; }
    .clients-carousel .splide__arrow--next { right: 10px; }
}

@media (max-width: 575.98px) {
    .section-title-clients { font-size: 24px !important; margin-bottom: 2rem !important; }
    .clients-carousel { padding-bottom: 40px; }
    .splide__track, .splide__list, .splide__slide { height: auto !important; }
    .client-box { align-items: center; text-align: center; }
    .quote-icon { margin-right: 0 !important;}
    .clients-control { display: none !important; }
}

/* ================================================== */
/* 8. HOME: SERVIÇOS E FEATURES */
/* ================================================== */

.services-grid { padding: 48px 0 32px; }

.service-card-grid {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 20px;
    border: 1px solid #d7e0dc;
    border-radius: 8px; /* Ajuste final */
    background: #ffffff;
    text-align: left;
    transition: all 0.2s ease;
}

.service-card-grid:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card-grid .service-icon {
    width: 40px; height: 40px;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    font-size: 28px;
    color: var(--color-primary);
}

.service-card-grid .service-icon img {
    object-fit: contain !important;
    padding: 1px;
    width: 100%; height: 100%;
}

.service-title {
    font-weight: 700; font-size: 15px; margin-bottom: 8px;
    color: var(--color-primary); line-height: 1.2;
    min-height: 48px;
}

.service-desc {
    font-size: 13px; color: #4b5563; margin-bottom: 12px;
    flex-grow: 1; line-height: 1.4; min-height: 55px;
    max-height: none; overflow: visible; display: block;
}

.service-btn {
    background: var(--color-primary); color: #fff;
    border-radius: 6px; padding: 6px 12px;
}

/* Hover States */
.service-card-grid:hover .service-icon { background-color: #f7f7f7; box-shadow: none; color: #fff; } /* Correção: ícone vira branco ou bg muda? Mantido comportamento misto do original, priorizando visual limpo */
.service-card-grid:hover .service-icon i { color: var(--color-primary); } /* Caso seja ícone fonte */
.service-card-grid:hover .service-title,
.service-card-grid:hover .service-desc { color: #fff; }
.service-card-grid:hover .service-btn { background: #fff; color: var(--color-primary); border: 1px solid #fff; }

/* Feature Grid */
.feature-grid { background-color: #fff; padding: 24px 0 8px; }

.feature-card {
    position: relative;
    display: block; width: 100%; height: 100%;
    min-height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at center, transparent 0%, rgba(16, 48, 37, 0.05) 50%, rgba(16, 48, 37, 0.15) 100%),
                var(--bg-img) center/cover no-repeat;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16, 48, 37, 0.0) 0%, rgba(16, 48, 37, 0.4) 100%);
    opacity: 0.65;
}

.feature-card--large { min-height: 395px; }

/* Destaque (Cirurgia Segura) */
.feature-card.feature-card--accent::after {
    background: linear-gradient(180deg, rgba(16, 48, 37, 0.3) 0%, rgba(16, 48, 37, 0.9) 100%);
    opacity: 1;
}

.feature-card__content {
    position: absolute; inset: 0; z-index: 1;
    padding: 10px 20px 18px 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
}

.feature-card__eyebrow { font-size: 14px; letter-spacing: 0.02em; color: #fff; margin-bottom: 4px; }
.feature-card__title { font-weight: 700; line-height: 1.3; color: #fff; }
.feature-card__desc { font-size: 14px; margin: 0; color: #fff; }

.feature-card:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); z-index: 10; }

/* Stats Band */
.stats-band {
    height: auto; min-height: 300px;
    padding: 40px 0 28px;
    background: #f4f6f5 url('assets/img/icon2-anadem.png') top center no-repeat;
    background-size: 1000px auto;
}

.stats-band__title { color: var(--color-primary); font-weight: 700; }

.stats-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #d7e0dc; border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    position: relative; z-index: 1;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    height: auto; min-height: 145px;
    display: flex; flex-direction: column; justify-content: center;
}

.stats-card--highlight { box-shadow: 0 12px 32px rgba(16, 48, 37, 0.18); }
.stats-value { font-size: 40px; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.stats-label { font-size: 14px; color: #4b5563; margin-top: 4px; }

/* App CTA */
.app-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-strong) 60%, var(--color-primary-light) 100%);
    padding: 36px 0;
}

.app-cta::before, .app-cta::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.04), transparent 35%);
    pointer-events: none;
}

.app-cta__phones { position: relative; z-index: 1; max-width: 420px; }
.app-cta__phones img { display: block; width: 100%; height: 300px; }
.app-cta__content { z-index: 1; max-width: 560px; }
.app-cta__store img { display: block; height: 40px; width: auto; }

/* Responsividade Serviços/Stats */
@media (max-width: 991.98px) {
    .services-grid, .feature-grid, .stats-band { padding-top: 40px !important; padding-bottom: 40px !important; }
    .feature-card { min-height: 250px; }
    .feature-card__title { font-size: 20px; }
    
    .stats-band__row { margin-top: 2rem; }
    .stats-value { font-size: 32px; }
    
    .app-cta { text-align: center; padding: 3rem 0; }
    .app-cta__phones { justify-content: center; }
    .app-cta__content { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .app-cta__content .d-flex { justify-content: center; text-align: left; }
}

@media (max-width: 767.98px) {
    .stats-band { min-height: 100px; padding: 40px 0 40px; }
}

@media (max-width: 575.98px) {
    .services-grid .row-cols-2 { --bs-gutter-x: 1rem; }
    .service-card-grid { padding: 1rem; }
    .service-icon i { font-size: 1.5rem !important; }
    .service-desc { display: block !important; margin-bottom: 1rem; }
}

/* ================================================== */
/* 9. BLOG (Home & Single) */
/* ================================================== */

/* Home Blog */
.home-blog { padding: 64px 0; }
.home-blog__title { color: var(--color-primary); font-weight: 700; margin-bottom: 28px; }

.blog-card {
    border: 1px solid #d9d9d9; border-radius: 12px;
    overflow: hidden; background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    background: linear-gradient(to top, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-color: var(--color-primary-strong);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.blog-card__thumb img { width: 100%; height: 190px; object-fit: cover; }
.blog-card__body { padding: 14px 16px 16px; text-align: left; }

.blog-card__link {
    color: var(--color-primary); text-decoration: none; font-size: 14px;
}
.blog-card__link::after {
    content: "\F285"; font-family: "bootstrap-icons";
    font-weight: bold; margin-left: 8px;
    display: inline-block; transition: transform 0.2s ease; font-size: 11px;
}

/* Hover Texto Branco */
.blog-card:hover .blog-card__meta, .blog-card:hover .blog-card__meta i,
.blog-card:hover .blog-card__excerpt, .blog-card:hover .h6 a,
.blog-card:hover .blog-card__link { color: #ffffff !important; }
.blog-card:hover .blog-card__link::after { transform: translateX(4px); }
.blog-card:hover .blog-card__link { opacity: 1; text-decoration: underline; }

/* Blog Latest Section */
.blog-latest-section { background: #fdfdfd; }
.blog-section-title { color: var(--color-primary); font-weight: 700; }

/* Layout Customizado Blog Stack - Removed fixed widths to use Bootstrap grid */
/* @media (min-width: 992px) {
    .blog-col-stack { flex: 0 0 auto; width: 33.3333%; }
    .blog-col-featured { flex: 0 0 auto; width: 41.6667%; }
    .blog-col-popular { flex: 0 0 auto; width: 25%; }
} */

.blog-featured {
    border-radius: 18px; overflow: hidden; height: 100%; /* Changed to 100% to fill container */
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
}

.blog-stack { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); height: 100%; gap: 0; }
.blog-stack article { display: flex; align-items: center; padding-top: 12px; }
.blog-stack article:first-child { padding-top: 0; }


/* Single Post */
.single-post-section { background-color: #f9fafb; }
.single-post-article { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.single-post-featured-image { margin: 0; overflow: hidden; border-radius: 20px; }
.single-post-featured-image img { width: 100%; height: auto; display: block; }
.single-post-title { font-size: 32px; font-weight: 800; color: #111827; }
.single-post-content { font-size: 16px; line-height: 1.8; color: #374151; }
.single-post-content a { color: var(--color-primary); text-decoration: underline; }
.single-post-content blockquote { border-left: 4px solid var(--color-primary); padding-left: 1.5rem; font-style: italic; color: #6b7280; }

/* Sidebar Widgets */
/* Blog Popular (Mais Lidas) */

.blog-col-popular { 
    padding-left: 0;
}

.blog-ad-card__title {
    font-size: 1.5rem;
}

.blog-post-item {
    margin-top: 1rem;
}

.blog-popular {
    background: linear-gradient(to top, #0b3a2d 0%, #0f4b3b 50%, #1a6f5b 100%);
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}
.blog-popular .card-body { padding: 1.5rem; }
.blog-popular__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 0.75rem;
}
.blog-popular__list { counter-reset: popular-rank; }
.blog-popular__item {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ffffff;
    align-items: flex-start;
}
.blog-popular__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.blog-popular__rank {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    margin-right: 0.5rem;
    min-width: 30px;
}
.blog-popular__item a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}
.blog-popular__item a:hover { text-decoration: underline; opacity: 0.9; }

/* Blog Featured & Latest */
.blog-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #103025;
    position: relative;
    display: inline-block;
}
.custom-divider-wrapper { margin-bottom: 2rem; }
.custom-divider-1 {
    height: 4px;
    background-color: #103025;
    width: 100px; /* Adjust as needed */
    border-radius: 2px;
}

.blog-featured {
    border: none;
    box-shadow: none;
    background: transparent;
    transition: transform 0.3s ease;
}
.blog-featured:hover {
    transform: scale(1.02);
}
.blog-featured__thumb img {
    border-radius: 12px;
    height: 240px;
    object-fit: cover;
    width: 100%;
}
.blog-featured__body { padding: 1.5rem 0; }
.blog-featured .h4 { font-size: 1.25rem; line-height: 1.4; }

.blog-latest-card {
    align-items: flex-start;
    transition: transform 0.3s ease;
}
.blog-latest-card:hover {
    transform: scale(1.02);
}
.blog-latest-card:last-child { border-bottom: none; }
.blog-latest-card__thumb { width: 120px; height: 108px; }
.blog-latest-card__thumb img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 8px;
}
.blog-latest-card .h6 { font-size: 0.95rem; line-height: 1.4; font-weight: 700; }

/* Blog All Grid */
.blog-all-card {
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.blog-all-card:hover {
    transform: scale(1.02);
}

.blog-all-grid{
    padding-top: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .blog-all-grid::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        border-left: 1px solid #dee2e6;
        transform: translateX(-50%);
        margin-top: 3rem;
    }
}

/* Remove border from last 2 items on desktop (2 column grid) */
@media (min-width: 768px) {
    .blog-post-item:nth-last-child(-n+2) .blog-all-card {
        border-bottom: none !important;
    }
}

/* Remove border from last item on mobile (1 column grid) */
@media (max-width: 767.98px) {
    .blog-post-item:last-child .blog-all-card {
        border-bottom: none !important;
    }
}

a{
    color: var(--color-primary);
}

.blog-all-card__thumb {
    width: 120px;
    height: 100px;
}

.blog-all-card__thumb img {
    border-radius: 12px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin-bottom: 0;
}

.blog-all-card__body { padding: 0; }
.blog-all-card .h6 { font-size: 1rem; font-weight: 700; line-height: 1.4; }

/* Pagination */
.blog-all-header { margin-bottom: 2rem; }
.blog-all-pagination__btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd; border-radius: 4px;
    color: #103025; cursor: pointer;
}
.blog-all-pagination__btn.is-disabled { opacity: 0.5; cursor: default; }
.blog-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    display: block;
}
.blog-indicator.active { background-color: #103025; }

/* Sidebar Ads */
.blog-ad-card {
    background-color: #333333; border-radius: 20px; overflow: hidden;
    min-height: 400px; padding: 1rem 1.5rem 0.2rem; position: relative;
    transition: transform 0.3s ease;
}
.blog-ad-card:hover {
    transform: scale(1.02);
}
.blog-ad-card::before {
    content: ""; position: absolute; top: 70%; left: 0; right: 0; height: 30%;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(to bottom, rgba(57, 58, 65, 0.0) 0%, rgba(57, 58, 65, 0.5) 42%, rgba(33, 112, 88, 1) 100%);
    z-index: 0;
}
.blog-ad-card .btn { border: 1px solid #ffffff; color: #ffffff; background: transparent; z-index: 10; }
.blog-ad-card .btn:hover { background: #ffffff; color: #0f3f30; }

.blog-newsletter { background: linear-gradient(120deg, #0f3f30, #0b271d); border-radius: 28px; width: 100%; }
.blog-newsletter__form .form-control { background: #ffffff; border: none; color: #3E3E3E; }

/* Blog Responsivo */
@media (max-width: 992px) {
    .blog-latest-section { padding-bottom: 0px!important; }
    .blog-ad-card__thumb img { height: 100%!important; width: 300px!important; object-fit: contain!important; }
    .blog-featured { height: 100%; }
    
    .single-post-article { padding: 1.5rem; }
    .single-post-title { font-size: 26px; }
}

@media (max-width: 575.98px) {
    .blog-featured__body { padding-bottom: 3rem !important; }
    .home-blog { padding-top: 40px !important; padding-bottom: 40px !important; }
}

/* ================================================== */
/* 10. PÁGINAS INTERNAS GERAIS (Layout, Lead Form) */
/* ================================================== */

/* Page Hero (Topo Páginas Internas) */
.page-hero {
    height: 250px;
    background: linear-gradient(to right, #0b3a2d 0%, #0b3a2d 45%, rgba(11, 58, 45, 0) 70%);
    background-size: cover; background-position: center right; background-repeat: no-repeat;
    display: flex;
}

.page-hero-2 {
    height: 100%;
    background: linear-gradient(to top, #0b3a2d 0%, #0f4b3b 50%, #1a6f5b 100%);
    display: flex;
}

.page-hero-title { width: 50%; color: #ffffff; font-size: 35px; font-weight: 600; padding-top: 5px; }
.page-hero-subtitle { width: 35%; color: #ffffff; font-size: 18px; font-weight: 400; padding-top: 5px; }

/* Lead Form Section */
.lead-form-section { background-color: #eeeeee; }
.lead-form-title { font-size: 26px; font-weight: 700; color: #0b3a2d; }
.lead-form-wrapper { max-width: 750px; }
.lead-form-wrapper .btn-success { background-color: #0b3a2d; border-color: #0b3a2d; }
.lead-form-wrapper .btn-success:hover { background-color: #08503c; border-color: #08503c; }

/* Conteúdo de Página */
.page-content-section { background-color: #ffffff; }
.page-content-section .container { max-width: 940px; }
.page-content-section h2 { font-size: 24px; color: #0b3a2d; font-weight: 700; margin-top: 1.5rem; }
.page-content-section p, .page-content-section li { font-size: 15px; line-height: 1.7; color: #374151; }

/* Responsividade Páginas Internas */
@media (max-width: 991.98px) {
    .page-content-section .container { max-width: 720px!important; }
    .page-hero-title, .page-hero-subtitle { width: 100%; font-size: 22px !important; padding-top: 0; }
    .page-hero-2 .container { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}

@media (max-width: 767.98px) {
    .page-hero-title { font-size: 22px !important; }
    .page-hero-subtitle { font-size: 16px !important; }
    .page-content-section .container { max-width: 540px!important; }
}

@media (max-width: 575.98px) {
    .page-hero-title { font-size: 15px !important; width: 30%; }
    .page-content-section .container { max-width: 540px!important; }
}

/* ================================================== */
/* 11. CARREIRAS (JOBS) & ALIANÇAS */
/* ================================================== */

/* Jobs */
.jobs-section { background-color: #ffffff; }
.jobs-title { font-size: 24px; color: var(--color-primary); font-weight: 700; }
.job-card {
    border: 1px solid #cbd5f5; border-radius: 18px; background-color: #fefefe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09); }
.job-badge { background: rgba(16, 48, 37, 0.08); color: var(--color-primary); border-radius: 999px; padding: 4px 12px; }

.jobs-dynamic-section {
    position: relative; overflow: hidden;
    background: linear-gradient(110deg, #0a3c2f 0%, #0f4f3d 55%, #177156 100%);
}
.jobs-dynamic-section::after {
    content: ""; position: absolute; inset: 0;
    background-image: url('assets/img/bg-trabalhe-conosco.png');
    background-repeat: no-repeat; background-position: 100% 0%; background-size: 1000px auto;
    opacity: 0.8; pointer-events: none;
}
.jobs-dynamic-content { position: relative; z-index: 1; max-width: 900px; }

/* Talent File Upload */
.talent-file {
    opacity: 0;
    position: absolute;
    z-index: -1;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.talent-file-label {
    border: 2px dashed #a0b1a9;
    border-radius: 12px;
    padding: 2rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    height: 100%;
    min-height: 120px;
}

.talent-file-label i {
    font-size: 32px;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
    transition: color 0.3s ease;
}

.talent-file-label:hover {
    background-color: #eef5f2;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.talent-file-label:hover i {
    color: var(--color-primary);
}

.talent-file:focus + .talent-file-label {
    box-shadow: 0 0 0 4px rgba(16, 48, 37, 0.15);
    border-color: var(--color-primary);
}

/* Alianças / Parcerias */
/* Alianças / Parcerias */
.partner-card {
    border: 1px solid #111827;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.partner-card img {
    max-width: 80%;
    max-height: 80%;
    height: auto;
    object-fit: contain;
}
.partner-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10); transform: translateY(-2px); }

.partnerships-grid-section {
    background: linear-gradient(110deg, #0a3c2f 0%, #0f4e3b 60%, #1c6d56 100%);
    position: relative; overflow: hidden;
}
.partnerships-grid-section .container {
    position: relative;
    z-index: 2;
}
/* Fundo Parcerias Espelhado */
.partnerships-grid-section::after, .partnerships-grid-section::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('assets/img/fundo-sessao-parcerias.png');
    background-position: 100% -1100%; background-repeat: no-repeat; background-size: 1200px auto;
    opacity: 0.90; pointer-events: none;
    z-index: 1;
}
.partnerships-grid-section::before { transform: scaleX(-1) scaleY(-1); }

.partnership-card {
    background: #fefefe; border-radius: 16px; box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
    padding: 28px; max-width: 300px; width: 100%; margin: 0 auto;
}
.partnership-card__logo {
    min-height: 180px;
    border: 1px solid #0f4a38;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.partnership-card__logo img {
    max-width: 100%;
    max-height: 140px; /* Limit height to keep it contained */
    height: auto;
    object-fit: contain;
}
.partnership-card__btn {
    background-color: var(--color-primary); color: #fff;
    border-radius: 15px; font-weight: 600; width: 100%;
    display: flex; justify-content: center; align-items: center;
}
.partnership-card__btn:disabled,
.partnership-card__btn[disabled] {
    background-color: var(--color-primary);
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
    border: none;
    box-shadow: none;
}

.partnership-card__btn:hover:not(:disabled) {
    background-color: var(--color-primary-light); color: #0f4a38;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsividade Alianças */
@media (max-width: 991.98px) {
    .partners-section .container { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .partner-card { padding: 10px; }
    /* Removed restrictive max-height for images to allow scaling */
}

@media (max-width: 575.98px) {
    .partnership-card { padding: 12px !important; border-radius: 12px !important; }
    .partnership-card__logo {
        min-height: auto !important; /* Remove fixed min-height on mobile */
        padding: 10px !important;
        aspect-ratio: 2 / 1; /* More landscape/rectangular on mobile */
    }
    .partnership-card__logo img {
        max-height: 80px !important; /* Adjust max-height for mobile */
    }
}

/* ================================================== */
/* 12. EVENTOS & TIMELINE */
/* ================================================== */

.events-timeline-section { background: #ffffff; }
.events-months { width: 100%; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; }
.events-month-btn {
    border: 1px solid #0f4a38; border-radius: 8px; padding: 6px 16px;
    font-weight: 600; letter-spacing: 0.08em; color: #0f4a38; background: #ebf3ef;
    text-transform: uppercase; flex: 1 1 0; text-align: center;
}
.events-month-btn.active { background: #0f4a38; color: #ffffff; }

.event-card { padding: 20px 0; border-bottom: 1px solid #e5e7eb; }
.event-card__date { min-width: 110px; font-weight: 700; font-size: 20px; color: #0f4a38; text-transform: uppercase; }
.event-card__line { width: 3px; background: #0f4a38; display: block; border-radius: 999px; }

/* ================================================== */
/* 13. PRODUTOS E CARROSSEL ESPECÍFICO */
/* ================================================== */

.services-carousel-products { padding: 0 60px; position: relative; }
.services-carousel-products .splide__track { padding: 0 !important; overflow: hidden; }
.services-carousel-products .splide__slide {
    display: flex; justify-content: center; align-items: center;
    transition: none; transform: none !important; filter: none !important; opacity: 1 !important;
}

/* Setas Customizadas */
.services-arrow-box {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background-color: #ffffff !important;
    border: 1px solid var(--color-primary-strong, #0b241c) !important;
    border-radius: 8px;
    color: var(--color-primary-strong, #0b241c) !important;
    transition: all 0.2s ease;
}
.services-arrow-box:hover { background-color: var(--color-primary-strong, #0b241c) !important; color: #ffffff !important; cursor: pointer; }
.services-control .services-arrow { font-family: "bootstrap-icons" !important; font-weight: 900; font-size: 20px; }

.services-carousel-products .splide__arrows {
    position: absolute; top: 50%; transform: translateY(-50%); width: 100%; height: 0; z-index: 20; left: 0;
    pointer-events: none;
}
.services-carousel-products .splide__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; pointer-events: auto; background-color: transparent!important;
}
.services-carousel-products .splide__arrow--prev { left: 0; }
.services-carousel-products .splide__arrow--next { right: 0; }

@media (max-width: 991.98px) {
    .services-carousel-products { width: 100%; max-width: 100vw; padding: 0 0 40px 0; margin: 0; }
    .services-carousel-products .splide__track { padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; }
    .services-carousel-products .splide__arrows { display: none !important; }
    .services-grid h2 { padding: 0 15px; }
    
    .services-carousel-products .splide__pagination { bottom: 0; }
    .services-carousel-products .splide__pagination__page { background: #d1d5db; border: none; width: 12px; height: 12px; margin: 0 6px; }
    .services-carousel-products .splide__pagination__page.is-active { background: var(--color-primary-strong, #0b241c); transform: scale(1.1); }
}

/* ================================================== */
/* 14. BENEFÍCIOS, RISCOS E CONTATO */
/* ================================================== */

/* Benefícios */
#beneficios-voce {
    background: linear-gradient(110deg, #0a3c2f 0%, #0f4f3d 55%, #177156 100%);
    color: #ffffff; padding-top: 5rem; padding-bottom: 5rem;
}
.section-title { font-size: 26px; font-weight: bold; margin-bottom: 2rem; padding-left: 0 !important; padding-right: 0 !important; }

.benefit-card { display: flex; align-items: flex-start; gap: 15px; }
.benefit-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.benefit-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 1rem; color: #ffffff; }
.benefit-text { font-size: 0.9rem; line-height: 1.5; color: #d8d8d8; }

/* Compensação de Alinhamento (Grid Masonry-ish) */
@media (min-width: 992px) {
    .benefits-grid > .col-lg-4:nth-child(3n + 1) .benefit-card { margin-left: -10px; }
    .benefits-grid > .col-lg-4:nth-child(3n) { padding-right: 0 !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .benefits-grid > .col-md-6:nth-child(2n + 1) .benefit-card { margin-left: -10px; }
    .benefits-grid > .col-md-6:nth-child(2n) { padding-right: 0 !important; }
}
@media (max-width: 768px) {
    .section-title { text-align: left; }
}
.disclaimer-text { font-size: 12px; }

/* Grupos de Risco */
#grupos-de-risco { background-color: #ffffff; }
.section-risk-title { font-size: 26px; font-weight: bold; color: #003926; }
.risk-card {
    background-color: #ffffff; border: 1px solid #ced4da; border-radius: 5px;
    padding: 1rem; color: #111827; font-size: 0.90rem; text-align: center;
    line-height: 1.4; min-height: 5rem; max-height: 6rem;
    overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center;
}

/* Níveis (Representante) */
.levels-section { background: #fff; }
.levels-wrapper { display: flex; justify-content: space-between; align-items: stretch; flex-wrap: nowrap; gap: 18px; width: 100%; }

.level-badge {
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
    padding: 10px 18px; font-size: 13px; font-weight: 600; color: #fff;
    border-radius: 6px; position: relative; white-space: nowrap; letter-spacing: 0.02em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}
.level-badge::after {
    content: ""; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid rgba(0,0,0,0.15);
}
.level-badge:last-child::after { display: none; }

/* Cores Níveis */
.level-advisor { background: linear-gradient(90deg, #65b9aa, #2d897e); }
.level-specialist { background: linear-gradient(90deg, #008e73, #00624f); }
.level-expert { background: linear-gradient(90deg, #032c24, #0a493a); }
.level-senior { background: linear-gradient(90deg, #ff7a18, #b34300); }
.level-executive { background: linear-gradient(90deg, #d9dada, #6e6e6e); color: #0f172a; }
.level-senior-executive { background: linear-gradient(90deg, #ffd369, #c77d12); }

@media (max-width: 991.98px) {
    .levels-title{ text-align: center !important; }
    .levels-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .level-badge { width: 100%; max-width: 280px; margin-right: 0 !important; margin-bottom: 0 !important; }
    
    /* Seta para baixo mobile */
    /* Seta para baixo mobile */
    .level-badge::after {
        left: 50%; transform: translateX(-50%); top: 100%; right: auto; margin-top: 10px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid #e0e0e0;
        border-bottom: none;
    }
}

/* Canais de Contato */
#canais-contato { background-color: #ffffff; }
.contact-card {
    background: linear-gradient(to top, #10352b 0%, #174e3e 50%, #217058 100%);
    color: #ffffff; border-radius: 10px; padding: 25px; text-align: center;
    height: 100%; min-height: 302px; width: 100%; max-width: 350px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.contact-email { color: #ffffff; }
.contact-icon { font-size: 2.5rem; margin-bottom: 10px; color: #ffffff; }
.contact-title { font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; }
.contact-btn {
    background-color: #ffffff; color: #103025; border-radius: 5px;
    padding: 8px 30px; margin-top: auto; text-decoration: none; font-weight: bold;
    transition: background-color 0.3s;
}
.contact-btn:hover { background-color: #103025; color: #ffffff; }

/* ================================================== */
/* 15. PESQUISA (Search Results) */
/* ================================================== */

.search-results-section { background-color: #f9fafb; min-height: 60vh; }
.search-result-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;
}
.search-result-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.search-result-card__thumb { overflow: hidden; height: 200px; }
.search-result-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.search-result-card:hover .search-result-card__thumb img { transform: scale(1.1); }
.search-result-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.search-result-card__title a { color: #111827; font-weight: 700; transition: color 0.2s ease; }
.search-result-card__title a:hover { color: var(--color-primary); }

/* Form Pesquisa Custom */
.search-form-custom { max-width: 300px; width: 100%; }
.search-input-custom { background-color: #ffffff; border: 1px solid #ffffff; height: 45px; padding-left: 15px; box-shadow: none !important; }
.search-button-custom { background-color: #ffffff; border: 1px solid #ffffff; width: 45px; height: 45px; cursor: pointer; }
.search-button-custom:hover { background-color: #f0f0f0; }

@media (max-width: 767.98px) {
    .search-form-custom { width: auto !important; flex: 1; max-width: none; }
    .search-form-custom .input-group { flex-wrap: nowrap; width: 100%; }
}

/* ================================================== */
/* 16. IMAGENS E HELPERS FINAIS */
/* ================================================== */

.career-protector-img { width: 300px; }

@media (max-width: 991.98px) {
    .career-protector-img { width: 250px; }
    .padding-top-0-mobile { padding-top: 0px!important; }
    .padding-top-10-mobile { padding-top: 10px!important; }
    /* Botão Voltar Mobile */
   .btn-back-mobile {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border: 1px solid #0b241c; border-radius: 8px;
        color: #0b241c; font-size: 25px; transition: all 0.2s ease;
    }
    .btn-back-mobile:hover { background-color: #0b241c; color: #f3f4f6; }
}

@media (max-width: 767.98px) {
    .career-protector-img { width: 220px; }
    .width-menor-mobile { width: 50%!important; }
}

@media (max-width: 575.98px) {
   .padding-mobile-top { padding-top: 3.1rem; }
   .padding-mobile-top-10 { padding-top: 10px; }
   .padding-mobile-top-20 { padding-top: 20px; }
   .padding-mobile-top-30 { padding-top: 30px; }
   .padding-mobile-top-40 { padding-top: 40px; }
   .padding-mobile-top-50 { padding-top: 50px; }
   .padding-mobile-top-60 { padding-top: 60px; }
   .padding-mobile-top-70 { padding-top: 70px; }
   .padding-mobile-top-80 { padding-top: 80px; }
   .padding-mobile-top-90 { padding-top: 90px; }
   .padding-mobile-top-100 { padding-top: 100px; }
   .padding-mobile-top-maior { padding-top: 7rem; }
   .padding-mobile-top-menor { padding-top: 2.0rem; }
   .padding-mobile-top-menor-ainda { padding-top: 1.0rem; }
}

/* ================================================== */
/* 17. IMAGENS RESPONSIVAS/ Margem responsiva
/* ================================================== */

.img-responsivo { width: 80%; height: auto; object-fit: cover; }

@media (max-width: 991.98px) {
    .img-responsivo { width: 50%; height: auto; object-fit: cover; align-self: center; }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .margem-responsiva { margin-bottom: 10px; }
}

/* ================================================== */
/* 13. UTILITÁRIOS DE VISIBILIDADE CUSTOMIZADOS */
/* ================================================== */

.section-desktop-only {
    display: block;
}
.section-mobile-only {
    display: none;
}

@media (max-width: 991.98px) {
    .section-desktop-only {
        display: none !important;
    }
    .section-mobile-only {
        display: block !important;
    }
}


/* ================================================== */
/* 18. COOKIES MANAGER */
/* ================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1 1 500px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0b241c;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background-color: #0b241c;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie-accept:hover {
    background-color: #061913;
    color: #fff;
}

.btn-cookie-settings {
    background-color: transparent;
    color: #0b241c;
    border: 1px solid #0b241c;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    color: #0b241c !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-cookie-settings:hover {
    background-color: #f5f5f5;
}

/* Modal Settings */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0b241c;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.cookie-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

.cookie-option {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-info h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #333;
}

.cookie-option-info p {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch Design */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #0b241c; /* Brand color */
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #a0a0a0;
}

@media (max-width: 576px) {
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-switch {
        margin-top: 0.5rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie-accept, 
    .btn-cookie-accept, 
    .btn-cookie-settings {
        width: 100%;
        text-align: center;
    }
}


/* --- CONFIGURAÇÃO GERAL --- */
.clients-section-custom {
    background-color: #0f3d33;
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.section-title-clients {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 60px;
}

/* --- ESTRUTURA DO CARROSSEL --- */
.vanilla-carousel {
    position: relative;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    height: auto; /* Mantém altura para evitar layout shift */
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
    justify-self: center;
}

/* Em telas menores, a altura se ajusta */
@media (max-width: 991px) {
    .vanilla-carousel {
        height: auto;
        min-height: 500px;
    }
}

.carousel-track-container {
    width: 80%;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* Adiciona padding lateral para as setas não ficarem em cima do texto no tablet */
    padding: 0 0; 
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- O SLIDE --- */
.carousel-slide {
    /* IMPORTANTE: Larguras definidas aqui, não no JS */
    min-width: 33.333%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    
    /* Transições */
    transition: transform 0.5s, opacity 0.5s, filter 0.5s;
    
    /* Estado Inativo (Desktop) */
    opacity: 0.4;
    transform: scale(0.85);
    filter: blur(4px); 
    pointer-events: none;
}

/* Estado ATIVO */
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 10;
}

/* --- DESIGN DO CARD --- */
.testimonial-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-info {
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.author-role {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* --- BALÃO --- */
.speech-bubble {
    background: #fff;
    color: #333;
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #fff;
}

.quote-icon {
    display: block;
    width: 45px;
    height: auto;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (min-width: 1400px) {
    .speech-bubble {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }

    .quote-icon {
        margin-bottom: 0;
    }
}

.quote-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #555;
}

/* --- NAVEGAÇÃO / SETAS --- */
.carousel-btn {
    position: absolute;
    top: 55%; 
    transform: translateY(-50%);
    background: none;
    border: none;
    border-radius: 50%; /* Redondo */
    cursor: pointer;
    z-index: 100; /* Z-index alto para ficar sobre tudo */
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Posição Colada nas Bordas (Mais distante dos cards) */
.prev-btn { left: 60px; }
.next-btn { right: 60px; }

/* Em telas muito largas, puxa um pouco mais para dentro para não sumir */
@media (min-width: 1600px) {
    .prev-btn { left: 5%; }
    .next-btn { right: 5%; }
}

/* Ícones das setas */
.chevron-left::before, .chevron-right::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.chevron-left::before { transform: rotate(-135deg); margin-left: 5px; }
.chevron-right::before { transform: rotate(45deg); margin-right: 5px; }

/* --- RESPONSIVIDADE (MOBILE E TABLET) --- */
@media (max-width: 991px) {
    /* 1 Slide por vez - 100% de largura */
    .carousel-slide {
        min-width: 100%; 
        opacity: 1; /* Sem transparência no mobile */
        transform: scale(1); /* Sem escala reduzida no mobile */
        filter: none; /* Sem blur no mobile */
    }
    
    .carousel-slide.active {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Esconder setas no mobile para não tapar o texto */
    .carousel-btn {
        display: none; 
    }
    
    .testimonial-card {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* --- PAGINAÇÃO (DOTS) --- */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #ffffff;
}

@media (max-width: 991px) {
    .carousel-dots {
        display: flex;
    }
}