:root {
    --primary: #008f39;
    /* Verde do Logo */
    --primary-dark: #006400;
    --gold: #00A844;
    --gold-dark: #008234;
    --bg-light: #fdfdfd;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 30px 0;
    text-align: center;
    background: #fff;
    border-bottom: 2px solid var(--gold);
}

.logo {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000;
}

.logo span {
    color: var(--gold);
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
    color: #000;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    margin: 60px 0 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 {
    font-size: 24px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title div {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* Grid Patrocinadores */
.grid-patrocinadores {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 colunas fixas no PC */
    gap: 20px;
}

.card-vip {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    /* Reduzido de 30px */
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Centralizado como o simples */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 420px;
}

.card-vip:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 168, 68, 0.15);
}

.card-vip::before {
    content: 'MASTER';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 10;
}

.company-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 900;
    margin: 0 auto 15px;
    border: 4px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    color: var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-vip h3 {
    font-size: 18px;
    /* Reduzido de 22px */
    margin-bottom: 5px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    /* Trava altura do título */
    overflow: hidden;
}

.card-vip .category {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    height: 35px;
    /* Trava altura da categoria */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botões */
.btn-group {
    display: grid;
    grid-template-columns: 1fr;
    /* Colocando um em cima do outro para caber melhor no card menor */
    gap: 8px;
    margin-top: auto;
    /* Empurra os botões para o final do card */
}

.btn {
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.btn-site {
    background: #fff;
    color: #000;
    border: 1px solid var(--border);
}

.btn-site:hover {
    background: #f9f9f9;
    border-color: var(--gold);
}

.btn-zap {
    background: #25D366;
    color: #fff;
}

.btn-zap:hover {
    background: #1eb954;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Grid Parceiros */
.grid-parceiros {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 colunas fixas no PC */
    gap: 20px;
}

.card-simple {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-simple:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 68, 0.1);
}

.card-simple .company-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border: 3px solid #eee;
    font-size: 32px;
}

.card-simple h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    overflow: hidden;
}

.card-simple .btn-zap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    margin-top: auto;
}

/* Novo Hero do Portal */
.portal-hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 50, 20, 0.7)), url('../uploads/ribeirao-real.jpg?v=3');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-bottom: 4px solid var(--gold);
}

.portal-hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portal-hero-content p {
    font-size: 0.95rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 168, 68, 0.3);
    border: 1px solid rgba(0, 168, 68, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 15px;
}

/* Seção Sobre/Autoridade */
.authority-section {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.authority-img {
    height: 550px;
    background: #000;
    border-radius: 30px;
    border: 3px solid var(--gold);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.authority-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.authority-text h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.authority-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* Call to Action Final */
.cta-final {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    color: #fff;
    margin-top: 100px;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-final .btn-zap {
    display: inline-block;
    padding: 20px 60px;
    font-size: 20px;
}

/* Barra Minimalista de Serviços no Portal */
.services-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 45px;
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 68, 0.2);
    margin: -40px 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.service-item-min {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-item-min span {
    font-size: 28px;
    background: linear-gradient(135deg, var(--gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-item-min h4 {
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

.btn-saiba-mais {
    padding: 12px 30px;
    border-radius: 50px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-saiba-mais:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* Seção Final de Chamada */
.cta-final {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid #eee;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1a1a1a;
}


/* Estilos para a Landing Page de Serviços */
.agency-hero {
    padding: 120px 0;
    text-align: center;
    background: #fdfdfd;
}

.agency-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.servico-destaque {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.servico-img {
    height: 400px;
    background: #f9f9f9;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.servico-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.servico-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    #header-container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 20px 0 !important;
    }

    .logo img {
        height: 45px !important;
    }

    header .container {
        gap: 15px;
    }

    .logo {
        font-size: 28px;
    }

    .logo img {
        height: 40px !important;
    }

    .portal-hero {
        height: 70vh;
        /* Reduzido para não esconder o conteúdo */
        background-attachment: scroll;
        /* Melhora performance no celular */
    }

    .grid-patrocinadores,
    .grid-parceiros {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Sempre 2 por linha no Celular */
        gap: 12px !important;
    }

    .card-vip,
    .card-simple {
        min-height: auto !important;
        padding: 15px !important;
    }

    .company-logo {
        width: 80px !important;
        height: 80px !important;
        font-size: 32px !important;
        margin: -5px auto 15px !important;
    }

    .card-vip h3,
    .card-simple h3 {
        font-size: 14px !important;
        height: auto !important;
    }

    .portal-hero-content {
        margin-top: 60px;
        /* Afasta o texto do cabeçalho absoluto */
    }

    .portal-hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
        margin-bottom: 20px;
        /* Mais espaço entre o título e a descrição */
    }

    .portal-hero-content p {
        font-size: 0.8rem !important;
        letter-spacing: 2px !important;
        padding: 8px 18px !important;
        line-height: 1.4 !important;
        display: inline-block !important;
    }

    .services-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: -20px 20px 50px;
    }

    .authority-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 0;
    }

    .authority-img {
        height: 380px;
    }

    .authority-img img {
        object-position: top center;
    }

    .servico-destaque {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .agency-hero h1 {
        font-size: 2.5rem;
    }

    .cta-final h2 {
        font-size: 28px;
        padding: 0 20px;
    }
}

/* Exit Intent Popup Modal */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.exit-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-modal-content {
    background: #111;
    border: 2px solid rgba(0, 168, 68, 0.3);
    border-radius: 25px;
    width: 90%;
    max-width: 750px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 168, 68, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    text-align: center;
}

.exit-modal.active .exit-modal-content {
    transform: scale(1);
}

.exit-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.exit-modal-close:hover {
    color: #ff6b6b;
}

.exit-modal h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.exit-modal h2 span {
    color: var(--gold);
}

.exit-modal p.subtitle {
    color: #888;
    font-size: 15px;
    margin-bottom: 30px;
}

.exit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.exit-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.exit-col:hover {
    border-color: rgba(0, 168, 68, 0.5);
    background: rgba(0, 168, 68, 0.02);
    transform: translateY(-5px);
}

.exit-col-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.exit-col h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.exit-col p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.exit-col .btn {
    width: 100%;
    font-size: 13px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .exit-modal-content {
        padding: 30px 20px;
    }
    .exit-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .exit-modal h2 {
        font-size: 22px;
    }
    .exit-col {
        padding: 20px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 168, 68, 0.2);
    z-index: 99998;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner p a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner p a:hover {
    color: #fff;
}

.cookie-banner-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background: #1eb954;
    box-shadow: 0 5px 15px rgba(0, 168, 68, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner {
        padding: 25px 0;
    }
}

/* Links Sociais no Rodapé */
.social-links a {
    color: #00A844 !important; /* Verde oficial */
    font-size: 18px;
    background: transparent;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #00A844 !important; /* Círculo verde fino em volta */
    text-decoration: none;
}

.social-links a:hover {
    color: #fff !important; /* Fica branco no hover */
    background: #00A844; /* Preenchido com o verde oficial */
    border-color: #00A844 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 68, 0.4);
}