/* Estilos globais e reset básico */
html,
body {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Rubik', sans-serif;
}

main {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
}

/* Seção Page Top (cabeçalho e hero) */
.page-top {
    display: flex;
    justify-content: space-between;
    width: 100vw;
    height: 50rem;
    background-image: url('../imagens/fundo pontinhos.svg');
    background-size: cover;
    background-position: center;
    padding-top: 8rem;
}

/* Botão de alternância do menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #00aaff;
}

/* Barra superior de navegação */
#top-bar {
    margin: 2rem 0;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    background-color: #F7F7F7;
    padding: 0.8rem 1.9rem;
    border-bottom: 1px solid #CFDCE4;
    border-radius: 1rem;
    box-shadow: 0px 4px 49.4px 0px rgba(39, 52, 60, 0.06);
    z-index: 999;
}

#top-bar nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

#top-bar nav img {
    height: 2.8rem;
    width: 10rem;
    max-width: 100%;
}

#top-bar nav ul {
    display: flex;
    gap: clamp(1rem, 2vw, 3rem);
    list-style: none;
}

#top-bar nav ul li a {
    text-decoration: none;
    color: #464E53;
}

#top-bar nav ul li a:hover {
    color: #000000;
}

#top-bar nav ul li a.login-btn {
    padding: 0.8rem 1.5rem;
    background-color: #0093EB;
    border-radius: clamp(0.125rem, 0.5vw, 0.25rem) clamp(0.1875rem, 0.75vw, 0.375rem);
    color: #FFFFFF;
}

#top-bar nav ul li a.login-btn:hover {
    background-color: #2da7ee;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Seção Hero */
#hero {
    display: flex;
    flex-direction: column;
    color: #464E53;
    height: 27rem;
    width: 40rem;
    margin: 10rem 0 0 13%;
    gap: 0.5rem;
}

#top-hero {
    margin: 0;
}

.content-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-hero h2 {
    font-size: 2.4em;
    margin: 0;
    font-weight: 400;
    line-height: 125%;
}

.content-hero p {
    font-size: 1em;
    margin: 0;
    font-weight: 400;
    line-height: 125%;
    color: #7D888F;
}

.letra_azul {
    color: #0093EB;
    font-weight: 600;
}

.hero-image {
    margin: 0;
    display: flex;
    justify-content: end;
}

.hero-image img {
    width: 50rem;
    height: 59rem;
}

/* Botão primário */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #0093EB;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    color: #FFFFFF;
    width: 9.8rem;
    border-radius: 0.3rem;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

#hero .content-hero a.btn-primary:hover {
    background-color: #2da7ee;
    transform: scaleX(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Media Queries */

/* Dispositivos maiores, tablets, monitores pequenos */
@media (max-width: 1291px) {
    .page-top {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 73rem;
    }

    #hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 4rem 0 0;
        align-self: center;
    }

    .content-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile e tablets menores */
@media(max-width:909px) {
    .page-top {
        display: flex;
        justify-content: space-between;
        width: 100vw;
        height: 79rem;
        background-image: url('../imagens/fundo pontinhos.svg');
        background-size: cover;
        background-position: center;
        padding-top: 3rem;
    }

    #top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 2rem 1.9rem;
        background-color: #F7F7F7;
        border-bottom: unset;
        border-radius: unset;
        box-shadow: 0px 4px 49.4px 0px rgba(39, 52, 60, 0.06);
        z-index: 999;
        box-sizing: border-box;
        transform: unset;
    }

    .menu-toggle {
        display: block;
    }

    /* Menu MOBILE fechado por padrão */
    .nav-list {
        position: fixed;
        right: 0;
        top: 8vh;
        width: 50vw;
        height: 85vh;
        background: #F7F7F7;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        margin-top: 3rem;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        z-index: 998;
    }

    /* Menu ABERTO quando clicar */
    .nav-list.active {
        transform: translateX(0);
    }

    .nav-list li {
        width: 100%;
        opacity: 0;
        transform: translateX(150px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list li a {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }

    .nav-list li a:hover {
        background-color: #efefef;
    }

    .nav-list li a.login-btn {
        border: unset;
    }

    #top-bar nav ul.active {
        display: flex;
    }

    #hero {
        margin-top: 10rem;
    }
}

/* Mobile médio e grande */
@media (max-width:767px) {
    .page-top {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 62rem;
    }

    .content-hero {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 30rem;
    }

    .content-hero h2 {
        font-size: 1.8em;
    }

    .content-hero p {
        font-size: 1em;
    }

    .hero-image img {
        width: 40rem;
        height: 49rem;
    }
}

/* Mobile médio e grande */
@media(max-width: 650px) {
    .page-top {
        height: 57rem;
    }

    .hero-image img {
        width: 35rem;
        height: 39rem;
    }
}

/* Mobile médio e grande */
@media(max-width: 551px) {
    .page-top {
        height: 61.5rem;
    }

    .content-hero {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 25rem;
    }

    .content-hero a {
        margin-top: 2rem;
    }

    .hero-image img {
        width: 30rem;
        height: 34rem;
    }

    .hero-image {
        margin: 0;
    }
}

@media(max-width:450px) {
    .page-top {
        height: 59rem;
    }

    .content-hero {
        text-align: center;
        display: flex;
        gap: 0;
        width: 20rem;
    }

    .content-hero h2 {
        font-size: 1.8em;
    }

    .content-hero p {
        font-size: 1em;
    }

    .content-hero a {
        margin-top: 2rem;
    }

    .hero-image img {
        width: 24rem;
        height: 25rem;
        margin-top: 2rem;
    }
}