@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --azul: #213E66;
    --bege: #EADCC2;
    --vermelho: #EE6754;
    --branco: #FFFFFF;
    --off-white: #F8F7F5;
    --cinza-claro: #F0F0F0;
    --cinza-medio: #6B7280;
    --cinza-escuro: #374151;
    --sombra-suave: 0 4px 20px rgba(33, 62, 102, 0.08);
    --sombra-media: 0 8px 30px rgba(33, 62, 102, 0.12);
    --raio-pequeno: 8px;
    --raio-medio: 16px;
    --raio-grande: 24px;
    --raio-pill: 50px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1a1a1a;
        --branco: #252525;
        --cinza-claro: #333333;
        --cinza-escuro: #e5e5e5;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--off-white);
    color: var(--azul);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--azul);
}

p {
    color: var(--cinza-escuro);
    opacity: 0.85;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    z-index: 1000;
    background-color: transparent;
}

header.scrolled {
    background-color: var(--branco);
    padding: 15px 50px;
    box-shadow: var(--sombra-suave);
}

header.scrolled .nav-links a {
    color: var(--azul);
}

header.scrolled.dark-section-active {
    background-color: var(--azul);
}

header.scrolled.dark-section-active .nav-links a {
    color: var(--bege);
}

header.internal-page {
    background-color: var(--branco);
    box-shadow: var(--sombra-suave);
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* --- Navigation --- */
.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--azul);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--vermelho);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--azul);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--branco);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    header.scrolled .menu-toggle span,
    header.internal-page .menu-toggle span {
        background-color: var(--azul);
    }

    header.scrolled.dark-section-active .menu-toggle span {
        background-color: var(--bege);
    }
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--raio-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primario {
    background-color: var(--azul);
    color: var(--bege);
}

.btn-primario:hover {
    background-color: #1a3254;
}

.btn-destaque {
    background-color: var(--vermelho);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 103, 84, 0.35);
}

.btn-destaque:hover {
    background-color: #e05540;
    box-shadow: 0 6px 20px rgba(238, 103, 84, 0.45);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--azul);
    color: var(--azul);
}

.btn-outline:hover {
    background-color: var(--azul);
    color: var(--bege);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Sections --- */
section {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--vermelho);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background-color: var(--azul);
    color: var(--bege);
    text-align: center;
    padding: 50px 8% 30px 8%;
    width: 100%;
    margin-top: auto;
}

footer a {
    color: var(--bege);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--vermelho);
}

footer .disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    color: rgba(234, 220, 194, 0.6);
    line-height: 1.6;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-cta h3 {
    color: var(--bege);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-cta p {
    color: rgba(234, 220, 194, 0.8);
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- Cards Genéricos --- */
.card {
    background-color: var(--branco);
    border-radius: var(--raio-medio);
    padding: 35px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    header {
        padding: 15px 25px;
    }

    header.scrolled {
        padding: 12px 25px;
    }

    section {
        padding: 70px 5%;
    }

    .logo img {
        height: 45px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}