/* ==========================================================================
   DESIGN SYSTEM - MODERNIST EMPLOYER BRAND
   ========================================================================== */

:root {
    --color-bg-light: #F9FAF3; 
    --color-primary-dark: #2d2e32;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-text: #666666;
    --color-gray-line: #d1d1d1;
    --color-footer-bg: #090909;

    --font-heading: 'Comfortaa', cursive, sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --container-width: 1240px;
    --border-radius-card: 20px;
    --border-radius-btn: 50px;
}

/* ==========================================================================
   1. RESET GLOBAL
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-primary-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .title-large, .title-medium, .title-small { 
    font-family: var(--font-heading); 
    color: var(--color-primary-dark); 
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* ==========================================================================
   2. BOTÕES
   ========================================================================== */
.btn-black, .btn-white, .btn-white-box, .btn-dark-gray {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}
.btn-black { background-color: var(--color-black); color: var(--color-white); }
.btn-dark-gray { background-color: #333; color: var(--color-white); padding: 10px 24px; margin-top: 1rem;}
.btn-white { background-color: var(--color-white); color: var(--color-primary-dark); }
.btn-white-box { background-color: var(--color-white); color: var(--color-black); padding: 10px 40px; border-radius: 6px;}
.btn-black:hover, .btn-white:hover { transform: translateY(-3px); }

/* ==========================================================================
   3. CABEÇALHO (HEADER)
   ========================================================================== */
.header { 
    background-color: var(--color-bg-light); 
    padding: 1.5rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.menu-toggle { background: transparent; border: none; cursor: pointer; padding: 5px;}
.menu-toggle svg { fill: var(--color-primary-dark); }

/* ==========================================================================
   4. SEÇÕES BASE E GRIDS
   ========================================================================== */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-text h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-text .divider { width: 50px; border: 0; border-top: 2px solid var(--color-gray-line); margin: 2rem 0; }
.hero-text h2 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 600;}
.hero-text p { font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 90%; }
.hero-image img { width: 100%; max-width: 600px; display: block; margin: 0 auto;}

.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bento-col-left { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bento-card {
    border-radius: var(--border-radius-card);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.bento-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
    z-index: 1; border-radius: inherit;
}
.bento-content { position: relative; z-index: 2; color: var(--color-white); }
.bento-content h3 { color: var(--color-white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.bento-content p { font-size: 0.85rem; font-weight: 300;}
.bento-col-right { min-height: 100%; }
.title-large { font-size: 3rem !important; line-height: 1.1; margin-bottom: 1rem;}

.title-medium { font-size: 2.2rem; margin-bottom: 1rem; }
.subtitle { font-size: 1.1rem; margin-bottom: 3rem; }
.image-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    height: 350px;
}
.image-mosaic img { width: 100%; height: 100%; object-fit: cover; }

.accordion-container { display: flex; flex-direction: column; }
details.accordion {
    border-bottom: 1px solid var(--color-gray-line);
    padding: 1.5rem 0;
    cursor: pointer;
}
details.accordion summary {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary-dark);
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: '+'; font-size: 1.5rem; font-weight: 300;}
details[open] summary::after { content: '-'; }
.accordion-content { padding-top: 1rem; color: var(--color-gray-text); font-size: 0.95rem; }
.accordion-content p { margin-bottom: 0.8rem; }
.accordion-content strong { color: var(--color-primary-dark); font-family: var(--font-heading);}

.tagline { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--color-gray-text); margin-bottom: 1rem;}

.title-small { font-size: 1.5rem; margin-bottom: 3rem; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; }
.partners-logos img { height: 35px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: 0.3s;}
.partners-logos img:hover { filter: grayscale(0%); opacity: 1; }
.badge-border { border: 1px solid #000; border-radius: 6px; padding: 2px;}

.cta-banner { 
    position: relative; 
    border-radius: var(--border-radius-card); 
    text-align: left; 
    color: white; 
    background-size: cover; 
    background-position: center; 
    overflow: hidden;
    padding: 5rem 4rem;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.cta-content { position: relative; z-index: 2; max-width: 500px;}
.cta-content h2 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ==========================================================================
   5. RODAPÉ (FOOTER)
   ========================================================================== */
.footer { background-color: var(--color-footer-bg); color: #FFF; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer h4 { color: #666; font-size: 0.75rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;}
.footer ul li { margin-bottom: 1rem; }
.footer ul a { color: #FFF; font-size: 0.85rem; font-family: var(--font-heading);}
.app-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem;}
.app-buttons img { height: 40px; object-fit: contain; object-position: left;}
.stripe-logo { height: 30px; filter: invert(1); margin-bottom: 1.5rem; display: block;}
.footer-bottom { text-align: center; border-top: 1px solid #222; margin-top: 4rem; padding-top: 2rem; font-size: 0.8rem; color: #666; }

/* ==========================================================================
   6. PÁGINA SOBRE & TEAM GRIDS
   ========================================================================== */
.grid-about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1.05rem; color: var(--color-gray-text); }
.team-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 4rem; align-items: center; }
.team-image img { width: 100%; border-radius: var(--border-radius-card); object-fit: cover; }
.team-text p, .team-text li { font-size: 1.05rem; color: var(--color-gray-text); margin-bottom: 1rem;}

/* ==========================================================================
   7. MENU LATERAL (SIDEBAR)
   ========================================================================== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -500px;
    width: 380px;
    max-width: 85vw;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.6);
}
.sidebar-menu.active {
    right: 0;
}
.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}
.close-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.close-menu:hover {
    transform: scale(1.1);
}
.close-menu svg {
    transition: stroke 0.3s ease;
}
.close-menu:hover svg {
    stroke: #FFF;
}
.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.sidebar-nav ul {
    display: flex;
    flex-direction: column;
}
.sidebar-nav ul li a {
    color: #FFF;
    font-size: 1.05rem;
    font-family: var(--font-body);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}
.sidebar-nav ul li:first-child a {
    padding-top: 0;
}
.arrow-down {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #FFF;
    border-bottom: 1.5px solid #FFF;
    transform: rotate(45deg);
    margin-bottom: 2px;
    margin-left: 8px;
}
.btn-login-sidebar {
    display: inline-block;
    text-align: center;
    width: 140px;
    padding: 12px 0;
    background-color: #FFF;
    color: #1a1a1a;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 2rem;
    transition: transform 0.2s ease;
}
.btn-login-sidebar:hover {
    transform: translateY(-2px);
}
.sidebar-footer {
    margin-top: auto;
    text-align: left;
}
.sidebar-footer img {
    opacity: 0.9;
}
.menu-overlay-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.menu-overlay-bg.active {
    opacity: 1;
    pointer-events: all;
}

/* Submenu Lateral */
.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.submenu-header a {
    border-bottom: none !important;
    flex-grow: 1;
}
.submenu-toggle {
    background: transparent;
    border: none;
    padding: 1rem 0 1rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.submenu-toggle .arrow-down {
    margin: 0;
    transition: transform 0.3s ease;
}
.submenu-toggle.open .arrow-down {
    transform: rotate(-135deg);
    margin-top: 5px;
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 1rem;
}
.submenu.open {
    max-height: 800px;
}
.submenu li a {
    font-size: 0.95rem !important;
    color: #a0a0a0 !important;
    padding: 0.8rem 0 !important;
}
.submenu li a:hover {
    color: #FFF !important;
}

/* ==========================================================================
   8. FORMULÁRIOS E PÁGINA DE CONTATO
   ========================================================================== */
.contact-grid {
    align-items: start;
}
.form-group {
    margin-bottom: 2.2rem;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-gray-line);
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary-dark);
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
    font-weight: 300;
}
.form-group input:focus,
.form-group textarea:focus {
    border-bottom: 1px solid var(--color-primary-dark);
}
.form-group textarea {
    resize: vertical;
    min-height: 40px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 3rem;
    margin-top: 1rem;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    transform: scale(1.1);
}
.checkbox-group label {
    font-size: 0.95rem;
    color: var(--color-gray-text);
    line-height: 1.4;
    cursor: pointer;
}
.checkbox-group a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.contact-mosaic {
    height: 650px; 
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-mosaic { height: 380px; }
}

/* ==========================================================================
   9. PÁGINA PRINCIPAL DE FUNCIONALIDADES
   ========================================================================== */
.features-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}
.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.feature-icon-box {
    width: 80px;
    height: 80px;
    background-color: #2d2e32;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon-box svg {
    width: 42px;
    height: 42px;
    fill: #FFFFFF;
}
.feature-content h4 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}
.feature-content p {
    font-size: 0.95rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.6rem;
    font-weight: 400;
}
.feature-content a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    text-decoration: underline;
    transition: opacity 0.3s;
}

@media (max-width: 900px) {
    .features-list-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   10. PÁGINAS INTERNAS DE FUNCIONALIDADES (Bento 5 e Feature Split)
   ========================================================================== */

.hero-split {
    align-items: center;
}
.text-large {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.feature-img-container {
    width: 100%;
}
.radius-img {
    width: 100%;
    border-radius: var(--border-radius-card);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bento-grid-5 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.bento-grid-5 .bento-card {
    min-height: 280px;
    padding: 1.5rem;
}

.bento-grid-5 .bento-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

@media (max-width: 900px) {
    .bento-grid-5 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-grid-5 .bento-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   11. COMPONENTES INTERATIVOS SAAS (MÉTRICAS E CARDS)
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.metric-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.metric-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card-interactive {
    background: #ffffff;
    border-left: 4px solid #000000;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.feature-card-interactive:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.feature-card-interactive h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-card-interactive p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* ==========================================================================
   12. WIDGET DE WHATSAPP FLUTUANTE E FORMULÁRIOS
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-fab {
    background-color: var(--color-black); /* Cor alterada para preto */
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.whatsapp-popup {
    background-color: var(--color-white);
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 320px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.whatsapp-popup.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
    position: absolute;
    bottom: 60px;
}

.whatsapp-header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--color-white); /* Garantia extra para forçar a cor branca do título */
}

.whatsapp-header button {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.whatsapp-body {
    padding: 1.5rem;
}

.whatsapp-body p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: var(--color-gray-text);
}

.whatsapp-body input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-sizing: border-box;
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
}

/* ==========================================================================
   13. RESPONSIVIDADE FINAL (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .whatsapp-widget { bottom: 1.5rem; right: 1.5rem; }
    .whatsapp-popup { width: calc(100vw - 3rem); right: 0; }
    
    /* Ajuste do CTA Banner para Mobile (Virar um Card Sólido) */
    .cta-banner {
        background-image: none !important;
        background-color: #0f172a !important;
        padding: 2.5rem 1.5rem !important;
        border-radius: 16px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    .cta-overlay { display: none !important; }
    .cta-content { position: relative !important; z-index: 1 !important; max-width: 100% !important; }
    .cta-content h2 { font-size: 1.6rem !important; line-height: 1.3 !important; margin-bottom: 1rem !important; }
    .cta-content p { font-size: 0.95rem !important; line-height: 1.5 !important; margin-bottom: 1.5rem !important; }
    .cta-content p br { display: none !important; }
    .cta-content .btn-white { display: inline-block !important; width: 100% !important; padding: 0.85rem 1rem !important; }
}