﻿:root {
    --brand: #0b2a45; /* azul topo */
    --brand-2: #0e3a5a;
    --text: #1b1b1b;
    --muted: #6b7280;
    --bg: #f3f4f6;
    --card: #ffffff;
    --accent: #0b2a45;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial
}

/* Larguras pedidas */
.container {
    max-width: 1024px;
    margin-inline: auto;
    padding-inline: 16px
}
/* Assumimos 960px (o pedido escreveu 9600px) */
.narrow {
    max-width: 960px;
    margin-inline: auto
}

/* Header */
.topbar {
    position: fixed; /* Mantém fixa no topo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: var(--brand);
    color: #fff;
}

    .topbar .inner {
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }



.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .3px
}

    .logo img {
        width: 28px;
        height: 28px
    }

    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 8px;
    }

    .logo span {
        color: white;
        padding: 2px 6px;
    }

nav a {
    color: #cfe3f6;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px
}

    nav a:hover {
        background: rgba(255,255,255,.08);
        color: #fff
    }

/* Menu desktop */
.nav-desktop {
    display: flex;
    gap: 4px
}

/* Botões do menu */
.btn, button {
    cursor: pointer;
    border: 0
}

.hamburger {
    display: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 0
}

/* Drawer mobile */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: saturate(120%) blur(2px);
    display: none;
    z-index: 60
}

.drawer {
    position: fixed;
    inset: 0 35% 0 auto;
    max-width: 360px;
    width: 85vw;
    background: var(--brand);
    color: #fff;
    transform: translateX(-100%);
    transition: transform .35s ease;
    box-shadow: 8px 0 24px rgba(0,0,0,.3)
}

    .drawer header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        border-bottom: 1px solid rgba(255,255,255,.1)
    }

    .drawer nav {
        display: flex;
        flex-direction: column;
        padding: 8px
    }

        .drawer nav a {
            padding: 14px;
            border-radius: 12px;
            font-size: 16px
        }

    .drawer.open {
        transform: translateX(0)
    }

.drawer-backdrop.show {
    display: block
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 340px;
    background: #ddd;
    overflow: hidden
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease
}

    .slide.active {
        opacity: 1
    }

    .slide .hero {
        height: 100%;
        display: grid;
        place-items: center;
        color: #fff;
        text-align: center;
        background: linear-gradient(120deg,#0b2a45, #3f7aa6)
    }

        .slide .hero h1 {
            font-size: clamp(24px,4vw,40px);
            margin: 0 16px;
            font-weight: 800
        }

    .slide img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* centraliza no meio */
    }

.ctrl {
    position: absolute;
    top: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    padding: 0 8px;
    width: 56px
}

.prev {
    left: 0
}

.next {
    right: 0
}

.ctrl button {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.9)
}

    .ctrl button:hover {
        background: #fff
    }

.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    gap: 8px;
    justify-content: center
}

    .dots button {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: rgba(255,255,255,.6)
    }

        .dots button[aria-current="true"] {
            background: #fff
        }

/* Cards de serviços */
.section {
    padding: 56px 0
}

    .section h2 {
        letter-spacing: .15em;
        text-transform: uppercase;
        text-align: center;
        color: var(--brand);
        margin: 0 0 18px
    }

.lead {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--muted)
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px
}

.card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: 28px;
    text-align: center
}

    .card h3 {
        margin: 6px 0 8px;
        font-weight: normal;
    }

    .card p {
        margin: 0;
        color: var(--muted)
    }

/* Apps publicados */
.apps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px
}

.app {
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: 24px;
    text-align: center
}

    .app small {
        display: block;
        color: var(--muted);
        margin-top: 8px
    }

/* Contato */
form {
    display: grid;
    gap: 12px
}

input, textarea {
    width: 100%;
    padding: 14px 12px;
    font: inherit;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff
}

textarea {
    min-height: 140px
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
}

/* Footer */
footer {
    padding: 40px 0;
    color: #cfe3f6;
    background: var(--brand);
    text-align: center;
    margin-top: 40px
}

/* Animações de rolagem */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease
}

    .reveal.in {
        opacity: 1;
        transform: none
    }

.stagger > * {
    opacity: 0;
    transform: translateY(16px)
}

.stagger.in > * {
    animation: rise .7s ease forwards
}

    .stagger.in > *:nth-child(2) {
        animation-delay: .1s
    }

    .stagger.in > *:nth-child(3) {
        animation-delay: .2s
    }

    .stagger.in > *:nth-child(4) {
        animation-delay: .3s
    }

@keyframes rise {
    to {
        opacity: 1;
        transform: none
    }
}

/* Responsividade */
@media (max-width: 900px) {
    .grid-3, .apps {
        grid-template-columns: 1fr
    }

    .section {
        padding-left: 10px;
        padding-right: 10px;
    }

}

@media (max-width: 880px) {
    .nav-desktop {
        display: none
    }

    .hamburger {
        display: block
    }

    .section {
        padding-left: 10px;
        padding-right: 10px;
    }

}


.drawer {
    display: none; /* não aparece por padrão */
}

.banner1p {
    display: none;
}
.banner2p {
    display: none;
}
.banner3p {
    display: none;
}



@media (max-width: 768px) {
    .drawer {
        display: flex; /* ou block, dependendo do layout interno */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -250px; /* inicia fora da tela */
        width: 250px;
        height: 100%;
        background: #111;
        transition: left 0.3s ease;
        z-index: 1000;
    }

        .drawer.open {
            left: 0; /* aparece quando abre */
        }

    .section {
        padding-left: 10px;
        padding-right: 10px;
    }
    .banner1p{ display:block; }
    .banner1 {  display: none; }

    .banner2p { display: block; }
    .banner2 { display: none; }

    .banner3p {display: block;}
    .banner3 {display: none;    }
}

.header-m {
    background: var(--brand);
}

.drawer-m {
    background-color: #ffffff;
}

.nav-m a {
    color: var(--brand);
    display: block;
}

.nav-m div {
    border-bottom: #DFE7EA solid 1px;
    display: block;
    padding-bottom: 10px;
    padding-top: 10px;
}

.invalid-feedback {
    color: red;
    margin-top: -10px;
}

.alert-div {
    position: fixed; /* fixa em relação à tela */
    top: 0;
    left: 0; /* começa da esquerda */
    width: 100%; /* ocupa toda a largura */
    background: #a3cfbb;
    border: 1px solid #198754;
    border-radius: 5px;
    color: #198754;
    padding: 15px;
    text-align: center;
    z-index: 9999; /* garante que fica acima de outros elementos */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* opcional: sombra */
    /* animação para sumir */
    animation: desaparecer 5s forwards;
}


/* define a animação */
@keyframes desaparecer {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}
