:root {
    --bg-dark: #0A2A43;
    --bg-darker: #050f1b;
    --accent: #2D8CFF;
    --text: #f5f5f5;
    --muted: #c2c8d3;
    --card-bg: #0f304f;
    --radius: 16px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-darker);
    color: var(--text);
    line-height: 1.6;
}

/* Animações de entrada nas seções */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Layout base */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: #071627;
}

/* Topbar */

.topbar {
    background: rgba(5, 15, 27, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    height: 70px;
    overflow: hidden;
}

.topbar-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 196px;
    width: auto;
}

.img-inicio {
    height: 286px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav a {
    color: var(--muted);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav a:hover {
    color: var(--accent);
}

/* Hero */

.hero {
    background: radial-gradient(circle at top left, #183b65 0, var(--bg-dark) 40%, var(--bg-darker) 100%);
    padding: 4.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(45, 140, 255, 0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.hero-mini {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Hero card */

.hero-card {
    background: rgba(5, 15, 27, 0.95);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.hero-card-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.qr-hero {
    width: 130px;
    height: auto;
    display: block;
}

/* Seções */

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2rem;
}

.section p {
    color: var(--muted);
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card,
.card-highlight {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.card h3,
.card-highlight h3 {
    margin-bottom: 0.7rem;
}

.card p,
.card-highlight ul {
    font-size: 0.95rem;
    color: var(--muted);
}

.card-highlight ul {
    list-style: disc;
    margin-left: 1.2rem;
}

/* Contato */

.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-qr {
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.contact-qr p {
    margin-bottom: 0.7rem;
    color: var(--muted);
}

.qr-contact {
    width: 140px;
    height: auto;
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0 1.4rem;
    background: #050f1b;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-content {
    text-align: center;
}

/* Responsivo */

/* BOTÃO HAMBURGUER */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* MENU MOBILE INICIALMENTE ESCONDIDO */
/* MENU MOBILE */
@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        background: rgba(5, 15, 27, 0.97);
        gap: 1.2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 6px 14px rgba(0,0,0,0.5);
        z-index: 999;
        animation: fadeDown 0.3s ease-out;
    }
    
    .topbar {
        overflow: visible;
    }

    /* 👇 ESTA É A LINHA QUE FAZ FUNCIONAR */
    .nav.open {
        display: flex !important;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }
}


/* animação do menu abrindo */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

