/* =========================
   VARIÁVEIS E FONTES
========================= */
:root {
    --agv-blue: #103493;
    --agv-dark: #000039;
    --agv-line: #002f87;
    --agv-ice: #E9EDFF;
    --white: #fff;
}

/* fontes locais mantidas */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Whyte';
    src: url('../fonts/Whyte-Regular.ttf');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Whyte';
    src: url('../fonts/Whyte-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Whyte';
    src: url('../fonts/Whyte-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

/* =========================
   BASE / TIPOGRAFIA
========================= */
body {

    /* títulos padrão em fundos escuros */
    h1 {
        font-family: 'Whyte';
        font-weight: 700;
        font-size: clamp(32px, 7vw, 80px);
        color: var(--white);
        line-height: 1.07;
        letter-spacing: -0.02em;
        /* %-based não é válido em CSS */
    }

    p {
        font-family: 'Poppins';
        font-weight: 400;
        color: var(--white);
        line-height: 1.4;
    }

    .btn-light {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 220px;
        height: 50px;
        padding: 0 48px;
        gap: 13px;
        color: var(--agv-blue) !important;
        text-transform: uppercase;
        border-radius: 5px;
        background: var(--agv-ice);
        font-family: 'Poppins';
        font-weight: bold;
        font-size: 20px;
        line-height: 1;

        i {
            color: var(--agv-blue) !important;
        }
    }


    /* =========================
     HERO / #form
  ========================= */
    #form {
        position: relative;
        width: 100%;
        min-height: 100vh;
        object-fit: contain;
        background: url('../images/banner.gif') center / cover no-repeat;
        padding-top: 50px;
        padding-bottom: 150px;

        h2 {
            font-family: 'Whyte';
            font-weight: 400;
            font-size: clamp(18px, 2.5vw, 32px);
            line-height: 1.2;
            letter-spacing: -0.02em;
            color: var(--white);
        }

        .marginContentTOP {
            margin-top: 150px !important;
        }

        .spacingContentTOP {
            margin-top: 200px !important;
        }

        .movementH2 {
            font-family: 'Poppins';
            font-weight: 400;
            font-size: clamp(16px, 2.2vw, 24px);
            line-height: 1.2;
        }

        .overlay-image {
            overflow: hidden;
            position: absolute;
            bottom: -58.5%;
            left: 50%;
            transform: translate(-50%, -50%);
            /* Ajuste para centralizar */
            display: flex;
            width: 115%;
            height: 80%;
            /* Para garantir que ocupa toda a altura */
            background: url('../images/overlay.png');
            align-items: center;
            justify-content: center;
            z-index: 1;
            /* Defina z-index como 1 */
            text-align: center;

            img {
                width: 100% !important;
                object-fit: contain;
            }
        }

        .card {
            width: 100%;
            height: 100%;
            gap: 24px;
            padding: 40px;
            background-color: rgba(0, 0, 0, .6);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: 12px;

            .form-control {
                width: 100%;
                height: 44px;
                border-radius: 6px;
                border: 1px solid rgba(255, 255, 255, .25);
                background-color: transparent;
                color: var(--white);
                backdrop-filter: blur(5px);

                &::placeholder {
                    color: rgba(255, 255, 255, .7);
                }
            }

            .form-select {
                width: 100%;
                height: 44px;
                border-radius: 6px;
                border: 1px solid rgba(255, 255, 255, .25);
                background-color: black;
                /* Alterado aqui */
                color: var(--white);
                backdrop-filter: blur(5px);

                &::placeholder {
                    color: rgba(255, 255, 255, .7);
                }
            }
        }

        /* Garanta que o conteúdo de texto fique acima do overlay */
        .row, .text-start, h1, h2, .movementH2 {
            position: relative;
            z-index: 2;
            /* Coloque o conteúdo de texto acima do overlay */
        }

        >* {
            position: relative;
            z-index: 2;
        }
    }


    /* =========================
     RECURSOS / #best
  ========================= */
    #best {
        background-color: var(--agv-ice);
        padding-block: 100px;

        h1 {
            font-family: 'Whyte';
            font-weight: 700;
            font-size: clamp(28px, 6vw, 80px);
            color: var(--agv-blue);
            line-height: 1.07;
            letter-spacing: -0.02em;
        }

        /* ——— Timeline corrigida (Grid pareando dot + item) ——— */
        .timeline {
            position: relative;
            margin: 50px auto 0;
            padding: 0 0 24px;
            display: grid;
            grid-template-columns: 32px 1fr;
            grid-auto-rows: minmax(min-content, max-content);
            row-gap: 28px;
            column-gap: 16px;

            &::before {
                content: "";
                position: absolute;
                left: 15px;
                top: 0;
                bottom: 0;
                width: 2px;

                background-color: var(--agv-line);
            }

            .timeline-dot {
                grid-column: 1;
                justify-self: center;
                align-self: start;
                /* alinha ao topo do item à direita */
                width: 16px;
                height: 16px;
                top: 30px;
                background-color: var(--agv-line);
                border-radius: 50%;
                margin-top: 6px;
                /* dá um leve “respiro” em relação ao topo */
            }

            .timeline-item {
                grid-column: 2;
                background-color: transparent;
                border: 2px solid var(--agv-line);
                border-radius: 50px;
                padding: 15px 25px;
                color: var(--agv-line);
                width: 100%;
                margin: 0;
                /* retira margin que desalinhava com o dot */

                font-family: 'Poppins';
                font-weight: 400;
                font-size: clamp(14px, 2.2vw, 24px);
                line-height: 1.25;
                letter-spacing: 0;
                text-align: center;
                text-transform: uppercase;
            }
        }
    }

    /* =========================
     PARTICIPAÇÃO / #participation
  ========================= */
    #participation {
        background-color: var(--agv-blue);
        padding-block: 100px;

        h2 {
            font-family: 'Poppins';
            font-weight: 400;
            font-size: clamp(16px, 2.2vw, 24px);
            line-height: 1.25;
            text-align: center;
            text-transform: uppercase;
            color: var(--white);
        }

        i {
            color: var(--white);
        }

        .marginContentTOP {
            margin-top: 150px !important;
        }

        .card {
            background-color: transparent;
            border: 1px solid #4f4f77;
            border-radius: 20px;
            opacity: 1;
        }

        .btn {
            padding: 20px 48px;
            font-size: clamp(14px, 1.8vw, 18px);
        }
    }

    /* =========================
     RODAPÉ
  ========================= */
    footer {
        background-color: var(--agv-dark);
        padding-block: 100px;

        hr {
            background-color: #4f4f77;
            height: 5px;
            opacity: 1;
        }
    }

    /* =========================
     RESPONSIVO (MOBILE-FIRST)
  ========================= */

    /* tablets e abaixo */
    @media (max-width: 992px) {
        #form {
            min-height: 100vh;

            .marginContentTOP {
                margin-top: 80px !important;
            }

            .spacingContentTOP {
                margin-top: 120px !important;
            }

            .overlay-image {
                right: -40px;
                width: 40%;
            }

            .card {
                width: 100%;
                max-width: 420px;
                height: auto;
                margin-inline: auto;
            }
        }

        #best {
            .timeline {
                .timeline-dot {
                    display: none;
                    width: 14px;
                    height: 14px;
                }

                .timeline-item {
                    border-radius: 24px;
                    padding: 12px 18px;
                }
            }
        }
    }

    /* celulares */
    @media (max-width: 576px) {
        .btn-light {
            padding: 0 24px;
            font-size: 16px;
        }

        #form {
            padding-top: 24px;
            padding-bottom: 0px;

            h1 {
                font-size: clamp(32px, 10vw, 48px);
                /* Aumento */
            }

            h2 {
                font-size: clamp(18px, 5vw, 24px);
                /* Aumento */
            }

            .overlay-image {
                position: static;
                width: 60%;
                margin: 16px auto 0;
            }

            .movementH2 {
                font-size: clamp(16px, 4vw, 22px);
                /* Aumento */
            }

            .marginContentMobileTOP {
                margin-top: 200px;
            }
        }

        #formMobile {
            padding-top: 50px;
            padding-bottom: 50px;
            background-color: var(--agv-ice);

            h1 {
                color: var(--white);
                font-size: 32px;
                /* Aumento */
            }

            a {
                border: 1px solid var(--agv-dark);
                background-color: var(--agv-dark) !important;
                color: var(--white) !important;
                font-size: 18px;
                /* Aumento */
            }
        }

        #movement {
            padding-top: 50px;
            padding-bottom: 50px;
            background-color: var(--agv-dark);

            .h1 {
                font-family: 'Poppins';
                font-weight: 400;
                font-size: clamp(18px, 3vw, 26px);
                /* Aumento */
                line-height: 1.2;
            }

            h1 {
                color: var(--white);
                font-size: 36px;
                /* Aumento */
            }
        }

        #best {
            padding-block: 60px;

            h1 {
                font-size: clamp(28px, 11vw, 42px);
                /* Aumento */
            }

            /* timeline 100% largura, sem linha e sem dots */
            .timeline {
                display: flex;
                flex-direction: column;
                gap: 20px;
                position: relative;
                margin: 0 auto;
                padding: 0;
            }

            .timeline::before,
            .timeline-dot {
                display: none !important;
            }

            .timeline-item {
                width: 100%;
                border-radius: 18px;
                padding: 16px 20px;
                /* Aumento */
                font-size: clamp(14px, 4vw, 18px);
                /* Aumento */
                border: 2px solid var(--agv-line);
                text-align: center;
                background-color: transparent;
            }
        }

        #participation {
            padding-block: 60px;

            .card .p-5 {
                padding: 1.25rem !important;
            }

            .marginContentTOP {
                margin-top: 50px !important;
            }

            .btn {
                width: 100%;
                padding: 18px 24px;
                /* Aumento */
                font-size: 20px;
                /* Aumento */
            }
        }

        footer {
            padding-block: 60px;
        }
    }

}