/* ==========================================================================
   PALETA OFICIAL 
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    /* Paleta Extraída do Logótipo Romelina Market & Documentos B2B */
    --brand-navy: #0a192f;        /* Azul Escuro Profundo (Textos principais e fundos escuros) */
    --brand-blue: #0052cc;        /* Azul Primário (Acentos, botões principais) */
    --brand-light-blue: #0080ff;  /* Azul Vibrante para gradientes e destaques */
    --brand-ice: #f0f4f9;         /* Fundo Claro e Caixas Secundárias */
    --brand-ice-card: #e1ebf7;    /* Fundo de Destaques e Tabelas */
    
    --text-dark: #0a192f;
    --text-muted: #4a5568;
    --bg-white: #ffffff;
    
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(10, 25, 47, 0.08);
    width: 100%;
}


/* Ajuste da Navbar para alinhar o logo verticalmente */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

/* Regras de limitação para o Logo */
#romelina-logo {
    height: 48px;            /* Altura ideal para barras de navegação */
    width: auto;             /* Mantém a proporção quadrada sem esticar */
    max-height: 100%;
    object-fit: contain;     /* Evita distorções de imagem */
    display: block;
}

/* Ajuste de responsividade para telas pequenas (Mobile) */
@media (max-width: 768px) {
    #romelina-logo {
        height: 38px;        /* Reduz ligeiramente a altura em dispositivos móveis */
    }
}


.logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--brand-navy);
    letter-spacing: 0.5px;
}

.logo .sub-logo {
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-top: -4px;
}


.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

.btn-portal {
    background-color: var(--brand-blue);
    color: var(--bg-white);
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-portal:hover {
    background-color: var(--brand-navy);
}

.btn-portal-mobile { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--brand-navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 5rem 1.5rem 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-ice) 0%, var(--bg-white) 100%);
}

.badge {
    display: inline-block;
    background-color: var(--brand-ice-card);
    color: var(--brand-blue);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    color: var(--brand-navy);
    line-height: 1.25;
}

.hero .highlight {
    color: var(--brand-blue);
}

.hero .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--bg-white);
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: var(--brand-navy);
    color: var(--bg-white);
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==========================================================================
   TRÍADE DE ATUAÇÃO
   ========================================================================== */
.pillars-section {
    padding: 3rem 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background-color: var(--brand-ice);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
}

.pillar-card .icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.pillar-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--brand-navy);
    font-size: 1.2rem;
}

.pillar-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   CIRCUITO B2B
   ========================================================================== */
.b2b-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--brand-navy);
    margin-bottom: 3rem;
}

.b2b-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-top: 0.2rem;
}

.benefit-item h4 {
    margin: 0 0 0.2rem 0;
    color: var(--brand-navy);
    font-size: 1.1rem;
}

.benefit-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.conditions-card {
    background-color: var(--brand-navy);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
}

.conditions-card h3 {
    color: var(--brand-light-blue);
    margin-top: 0;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 1px;
}

.conditions-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
    text-align: center;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-light-blue);
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.payment-details {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.payment-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--brand-light-blue);
    font-size: 0.95rem;
}

.payment-details p {
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.payment-info {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.payment-info li {
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.payment-note {
    font-size: 0.75rem !important;
    opacity: 0.8;
}

.commitments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.commitment-card {
    background-color: var(--brand-ice);
    padding: 1.8rem;
    border-radius: 12px;
}

.commitment-card h4 {
    margin: 0 0 0.8rem 0;
    color: var(--brand-navy);
    font-size: 1rem;
}

.commitment-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.notice-box {
    background-color: #fff9e6;
    border: 1px solid #ffe58f;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #873800;
}

.notice-box.info-blue {
    background-color: var(--brand-ice);
    border-color: var(--brand-ice-card);
    color: var(--brand-navy);
}

/* ==========================================================================
   RECRUTAMENTO CANDIDATOS
   ========================================================================== */
.candidates-section {
    padding: 5rem 0;
    background-color: var(--brand-ice);
}

.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.badge-dark {
    display: inline-block;
    background-color: var(--brand-navy);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.section-header-center h2 {
    font-size: 2rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.subsection-title {
    font-size: 1.3rem;
    color: var(--brand-navy);
    margin: 3rem 0 1.5rem 0;
    text-align: center;
}

.pains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.pain-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.pain-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--brand-blue);
    font-size: 1rem;
}

.pain-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 2.5rem;
}

.support-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.support-table th, .support-table td {
    padding: 1rem 1.2rem;
    text-align: left;
}

.support-table th {
    background-color: var(--brand-navy);
    color: var(--bg-white);
    font-size: 0.85rem;
}

.support-table td {
    border-bottom: 1px solid var(--brand-ice);
    font-size: 0.9rem;
}

.step-badge {
    background-color: var(--brand-blue);
    color: var(--bg-white);
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 50%;
    font-size: 0.85rem;
}

.candidate-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cand-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
}

.cand-card h3 {
    margin-top: 0;
    color: var(--brand-navy);
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-list i {
    color: var(--brand-blue);
    font-weight: bold;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.contact-container {
    background-color: var(--brand-ice);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.8rem;
}

.contact-info .tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--brand-blue);
}

.contact-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form h3 {
    margin: 0 0 0.5rem 0;
    color: var(--brand-navy);
    font-size: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group input, .form-group textarea, .form-select {
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}

.btn-submit {
    background-color: var(--brand-blue);
    color: var(--bg-white);
    border: none;
    padding: 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}


/* ESTILOS DO FOOTER */
.footer {
    background-color: var(--brand-dark-blue, #0a192f);
    color: #ffffff;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--brand-blue, #003366);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-footer {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links h4, 
.footer-legal h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ==========================================================================
   MEDIA QUERIES (MOBILE / RESPONSIVO COMPLETO)
   ========================================================================== */
@media (max-width: 992px) {
    .pillars-grid, .pains-grid { grid-template-columns: repeat(2, 1fr); }
    .b2b-grid, .commitments-grid, .candidate-info-grid, .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 2000;
    }

    .nav-links.active { right: 0; }
    .nav-links a { margin: 0; width: 100%; padding-bottom: 0.6rem; border-bottom: 1px solid var(--brand-ice); }

    .navbar > .btn-portal { display: none; }
    .btn-portal-mobile {
        display: block !important;
        background-color: var(--brand-blue);
        color: var(--bg-white) !important;
        text-align: center;
        padding: 0.8rem;
        border-radius: 6px;
        font-weight: 700;
        width: 100%;
        margin-top: 1rem;
    }

    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.75rem; }

    .pillars-grid, .pains-grid { grid-template-columns: 1fr; }
    .conditions-stats { grid-template-columns: 1fr; }
    .contact-container { padding: 1.5rem; }
}
