:root {
    --bg-deep: #0A0D14; 
    --accent-blue: #1E90FF; 
    --text-main: #FFFFFF; 
    --text-muted: #8E9AAF; 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

section {
    scroll-margin-top: 95px; 
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-decoration: none;
    color: #FFFFFF;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo span {
    color: #1E90FF;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0px;
}

.logo:hover {
    opacity: 0.8;
}

/* =========================================
   CONTROLE DA IMAGEM DO LOGO
========================================= */
.logo-img {
    height: 45px; /* Altura ideal matemática para o cabeçalho desktop */
    width: auto;
    display: block;
    object-fit: contain; /* Impede que a imagem estique ou amasse */
    transition: transform 0.3s ease;
}

/* O rodapé tem mais espaço, então podemos deixar a logo ligeiramente maior lá */
.footer-brand .logo-img {
    height: 60px; 
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.cta-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-deep);
}

.hero {
    min-height: 85vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 8%;
    padding-right: 8%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    font-style: italic;
    color: var(--accent-blue);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-btn-main {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.2);
}

.cta-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.4);
}

.partners-section {
    padding: 2.5rem 0 3.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.marquee-content {
    display: flex;
    gap: 5rem;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    width: 100%;
}

.partner-logo {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #A0AEC0;
    transition: color 0.4s ease, transform 0.4s ease;
    cursor: default;
}

.partner-logo:hover {
    color: #FFFFFF;
    transform: scale(1.02);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about-section {
    padding: 1.5rem 8% 6rem 8%;
    background-color: var(--bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text h2 span {
    font-style: italic;
    color: var(--accent-blue);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-differentials {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diff-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-blue);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.diff-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.04);
}

.diff-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.diff-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.casting-section {
    padding: 1.5rem 8% 8rem 8%;
    max-width: 1300px;
    margin: 0 auto;
}

.casting-header {
    text-align: center;
    margin-bottom: 3rem;
}

.casting-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
}

.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-blue);
    color: #FFF;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.casting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem;
}

.influencer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.4s ease;
    position: relative;
    overflow: hidden;
    
    /* ADICIONE ESTAS 3 LINHAS: Transforma o card em uma coluna flexível */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.influencer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 144, 255, 0.3);
}

.profile-pic {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    display: block;
}

.influencer-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    
    /* Regras de blindagem contra textos muito longos */
    word-break: break-all; /* Força a quebra no meio da palavra se necessário */
    overflow-wrap: break-word; /* Suporte secundário para quebra */
    white-space: normal; /* Garante que o texto possa ter múltiplas linhas */
    max-width: 100%; /* Impede que o texto ultrapasse as margens internas do cartão */
}

.verified-badge {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.niche-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    
    /* ADICIONE ESTA LINHA: Empurra a caixa para o rodapé do card */
    margin-top: auto; 
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hide-card {
    display: none !important;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
    display: none; /* Controlado pelo JavaScript */
}

#load-more-btn {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
}

.footer-section {
    background-color: #05070A;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 8% 2rem 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    max-width: 500px;
}

.footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.contact-link.whatsapp:hover {
    border-color: #25D366; 
}

.contact-link.email:hover {
    border-color: var(--accent-blue); 
}

.contact-link.instagram:hover {
    border-color: #E1306C; 
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-link:hover .contact-icon {
    color: var(--text-main);
}

.contact-link.whatsapp:hover .contact-icon {
    color: #25D366; 
}

.contact-link.instagram:hover .contact-icon {
    color: #E1306C; 
}

.contact-link.email:hover .contact-icon {
    color: var(--accent-blue); 
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .about-container, .footer-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 3rem;
    }
    .hero h1 { font-size: 3rem; }
}

/* =========================================
   RESPONSIVIDADE (TABLETS E CELULARES)
========================================= */

@media (max-width: 768px) {
    /* --- INÍCIO DA SOLUÇÃO INSERIDA: Ajustes do Cabeçalho e Contato --- */
    
    /* 1. Ajuste do Cabeçalho: Empilha Logo, Links e Botão */
    header {
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem 1rem;
        gap: 1.2rem;
        height: auto; 
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* 2. Ajuste do E-mail: Força a quebra do texto */
    .contact-link {
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-value {
        display: block;
        word-break: break-all;
        overflow-wrap: break-word;
        white-space: normal;
        font-size: 0.9rem; 
        margin-top: 0.2rem;
    }
    
    /* --- FIM DA SOLUÇÃO INSERIDA --- */

    /* Reduz o tamanho do título para caber na tela */
    .casting-header h2 {
        font-size: 2rem;
    }
    
    .casting-header p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Transforma a linha de botões em um carrossel rolável ou bloco quebrado */
    .filter-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 calc(33% - 1rem); /* Coloca até 3 botões por linha no mobile */
        min-width: 110px;
    }

    /* Ajusta a grade para garantir que não encoste nas bordas do celular */
    .casting-grid {
        padding: 0 1rem;
        gap: 1rem;
        /* No celular, garante no mínimo 1 por linha, mas permite 2 se a tela for larga o suficiente */
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Reduz levemente o tamanho interno do cartão para celulares */
    .influencer-card {
        padding: 1rem 0.5rem;
    }

    .profile-pic {
        width: 65px;
        height: 65px;
    }

    .stat-number {
        font-size: 1rem;
    }

    /* Ajusta a margem do topo para compensar o cabeçalho mais alto no celular */
    .hero {
        padding-top: 240px; 
    }

    /* =========================================
       SINTONIA FINA DAS ÂNCORAS NO MOBILE
    ========================================= */
    
    /* 1. A Agência: Ajusta a faixa de parceiros */
    #sobre {
        scroll-margin-top: 200px; 
    }

    /* 2. Casting: Faz o título subir eliminando o espaço extra */
    #casting {
        scroll-margin-top: 190px; 
    }

    /* 3. Contato (Footer): Aplica a margem para revelar a logo da G1 Digital */
    #contato {
        scroll-margin-top: 140px; 
    }
    
    /* Ajustes da Imagem do Logo para Celulares */
    .logo-img {
        height: 38px; /* Reduz a logo no cabeçalho para otimizar espaço vertical */
        max-width: 100%;
    }

    .footer-brand .logo-img {
        height: 50px; /* Reduz a logo do rodapé proporcionalmente no mobile */
    }
    
}

/* =========================================
   RESPONSIVIDADE EXTREMA (TELAS MUITO PEQUENAS)
========================================= */
@media (max-width: 480px) {
    .filter-btn {
        flex: 1 1 calc(50% - 0.5rem); /* Coloca 2 botões por linha em telas muito pequenas */
    }
}

/* =========================================
   ALINHAMENTO ABSOLUTO DO MENU (DESKTOP APENAS)
========================================= */
@media (min-width: 769px) {
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}