:root {
    --primary: #0C2340;
    --primary-light: #1A3A60;
    --secondary: #00A3AD;
    --secondary-light: #E0F7F8;
    --accent: #F15A24;
    --accent-hover: #D94814;
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(12, 35, 64, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html{
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Limitador */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header e Navegação */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-badge {
    background: var(--primary);
    color: #FFF;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: -0.5px;
}
.logo-badge span {
    color: var(--secondary);
}
.logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: none;
}
@media (min-width: 768px) {
    .logo-sub { display: block; }
}
nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}
nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--secondary);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #FFF;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(241, 90, 36, 0.3);
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #FFF;
}
/* Botão do menu mobile */
.menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Menu responsivo */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Evita que a página estoure para os lados no iOS */
    }

    /* Reset do container do topo para o Safari */
    .nav-wrapper {
        position: relative;
        min-width: 0;
        width: 100%;
        display: flex !important; /* Garante alinhamento correto no topo */
        justify-content: space-between;
        align-items: center;
    }

    .menu-btn {
        display: inline-flex !important; /* Força o botão hambúrguer a aparecer */
        cursor: pointer;
    }

    /* Alterado: Removido o 'nav.open' daqui para não anular o display posterior */
    .nav-wrapper nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none !important; /* Esconde por padrão no mobile */

        width: 100vw; /* Ocupa a largura inteira da tela */
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;

        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Prefixo obrigatório para funcionar no Safari */

        border-bottom: 1px solid var(--border);
        padding: 10px 20px 18px;

        z-index: 9999; /* Aumentado para garantir que fique por cima de tudo no WebKit */
        transform: translateZ(0); /* Força aceleração de hardware no Safari */
    }

    /* Seletor isolado com maior especificidade para abrir o menu */
    html .nav-wrapper nav.open {
        display: block !important;
    }

    .nav-wrapper nav ul {
        display: flex !important;
        flex-direction: column !important; /* Força os links a ficarem um embaixo do outro */
        align-items: stretch;
        gap: 8px;

        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;

        margin: 0;
        padding: 0;
    }

    .nav-wrapper nav ul li {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: block !important; /* Garante que não herde inline/flex do desktop */
    }

    .nav-wrapper nav ul li a {
        display: block;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        padding: 12px 10px;
    }

    /* Preserva o estilo original do botão */
    .nav-wrapper nav ul li a.btn {
        display: inline-flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
        margin-top: 8px;
    }
}


/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0C2340 0%, #1A3A60 100%);
    color: #FFF;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}
.hero-tag {
    display: inline-block;
    background: rgba(0, 163, 173, 0.2);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .hero h1 { font-size: 3.2rem; }
}
.hero p {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-lg);
}
.hero-stat-item {
    margin-bottom: 20px;
}
.hero-stat-item:last-child { margin-bottom: 0; }
.hero-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.hero-stat-desc {
    font-size: 0.95rem;
    color: #E2E8F0;
    margin-top: 6px;
}
/* Seção Geral Layout */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}
.section-subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}
/* Cards e Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
}
.stat-card.accent { border-top-color: var(--accent); }
.stat-card.secondary { border-top-color: var(--secondary); }
.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}
/* Marco Legal / Timelines */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.timeline-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    border-left: 5px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}
.timeline-card1 {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border);
    /* border-left: 5px solid var(--secondary); */
    box-shadow: var(--shadow-sm); 
}
.timeline-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.timeline-card1 h3 {
    color: #0056B3;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.timeline-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.timeline-card1 p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* Fases de Implantação */
.phase-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.phase-num {
    background: var(--primary);
    color: #FFF;
    font-size: 1.2rem;
    font-weight: 800;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.phase-content h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 6px;
}
.phase-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}
/* Tabela e Calculadora ROI */
.roi-box {
    background: #FFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    background: var(--primary);
    color: #FFF;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 700;
}
td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
tr:nth-child(even) { background-color: #F8FAFC; }
.badge-roi {
    background: rgba(0, 163, 173, 0.15);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}
/* Corpo Técnico */
.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 28px;
    text-align: center;
}
.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 16px;
}
.team-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.team-card .role {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
/* Callout Urgent / Form */
.urgency-banner {
    background: linear-gradient(135deg, #F15A24 0%, #D94814 100%);
    color: #FFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .urgency-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}
.urgency-text h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.urgency-text p {
    font-size: 1rem;
    opacity: 0.95;
}
/* Footer */
footer {
    background: var(--primary);
    color: #94A3B8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #FFF;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.footer-col p, .footer-col li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    list-style: none;
}
.footer-col a {
    color: #94A3B8;
    text-decoration: none;
}
.footer-col a:hover { color: #FFF; }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}
/* Form Modal / Section */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
}
.form-control:focus {
    outline: 2px solid var(--secondary);
    border-color: transparent;
}