@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Light.woff2') format('woff2'),
         url('../fonts/Noway-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Regular.woff2') format('woff2'),
         url('../fonts/Noway-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Medium.woff2') format('woff2'),
         url('../fonts/Noway-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noway';
    src: url('../fonts/Noway-Bold.woff2') format('woff2'),
         url('../fonts/Noway-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --cor-navy: #034774;
    --cor-navy-escuro: #022f4d;
    --cor-teal: #00c0ae;
    --cor-teal-escuro: #009684;
    --cor-amarelo: #f0c64b;
    --cor-amarelo-escuro: #d9ae33;
    --transicao: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Noway', Arial, sans-serif;
    background-color: var(--cor-navy);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot: escondido da visão humana, mas presente no DOM para bots simples */
.campo-armadilha {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Topo / logo
   ========================================================================== */

.topo {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 28px 20px 0;
}

.topo__logo {
    width: 190px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    z-index: 1;
}

/* Fundo fixo: fica atrás do header, hero e rodapé o tempo todo */
.hero__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(3, 71, 116, 0.18) 0%,
        rgba(3, 71, 116, 0.22) 25%,
        rgba(3, 71, 116, 0.4) 50%,
        var(--cor-navy) 100%);
}

.hero__conteudo {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 20px 0;
    text-align: center;
}

.hero__badges {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.hero__badges img {
    margin: 0 auto;
}

.hero__intro {
    max-width: 800px;
    margin: 34px auto 0;
}

.hero__intro p {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.5;
}

.hero__intro p:last-child {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0;
}

.hero__folha-esquerda,
.hero__folha-direita {
    position: absolute;
    z-index: 1;
    bottom: -30px;
}

.hero__folha-esquerda {
    left: -30px;
    width: 130px;
}

.hero__folha-direita {
    right: -40px;
    width: 170px;
}

@media (max-width: 900px) {
    .hero__conteudo {
        padding-top: 60px;
    }

    .hero__titulo-linha1 {
        font-size: 1.9rem;
    }

    .hero__titulo-linha2 {
        font-size: 4.2rem;
    }

    .hero__data {
        font-size: 1rem;
    }

    .hero__intro p {
        font-size: 1.8rem;
    }

    .hero__intro p:last-child {
        font-size: 1.2rem;
    }

    .hero__folha-esquerda {
        width: 80px;
    }

    .hero__folha-direita {
        width: 100px;
    }
}

/* ==========================================================================
   Card de formulário
   ========================================================================== */

.formulario-card {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 50% 1fr;
    background-color: var(--cor-teal);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.formulario-card__foto {
    position: relative;
}

.formulario-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formulario-card__form {
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo-grupo label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.campo-grupo input[type="text"],
.campo-grupo input[type="email"],
.campo-grupo input[type="tel"] {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fff;
    color: #16324f;
    transition: box-shadow var(--transicao);
}

.campo-grupo input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.campo-grupo__erro {
    display: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: #ffe27a;
}

.campo-grupo.invalido input {
    box-shadow: 0 0 0 2px #ff5a5a;
}

.campo-grupo.invalido .campo-grupo__erro {
    display: block;
}

.btn-cadastrar {
    margin-top: 6px;
    background-color: var(--cor-amarelo);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background-color var(--transicao), transform var(--transicao);
}

.btn-cadastrar:hover:not(:disabled) {
    background-color: var(--cor-amarelo-escuro);
    transform: translateY(-1px);
}

.btn-cadastrar:disabled {
    opacity: 0.7;
    cursor: default;
}

.campo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.campo-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--cor-navy-escuro);
}

.campo-checkbox label {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #fff;
}

.campo-checkbox.invalido label {
    color: #ffe27a;
}

.form-mensagem {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
}

.form-mensagem--sucesso {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0a6b3f;
}

.form-mensagem--erro {
    background-color: rgba(255, 255, 255, 0.9);
    color: #b3261e;
}

@media (max-width: 700px) {
    .formulario-card {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .formulario-card__foto {
        height: 300px;
    }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.rodape {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 70px 20px 40px;
    border-bottom: 30px solid #152c4c;
}

.rodape img {
    margin: 0 auto;
    width: 260px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
