@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=League+Gothic&family=League+Spartan:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');



:root {
    --blue: #35457b;
    --red: #c95451;
    --text: #f3f7fa;
    --grey: #6c757d;
}

* {
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.select-a {
    color: var(--red);
    pointer-events: none; 
    opacity: 0.8;          
    cursor: not-allowed;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

header nav {
    display: flex;
    gap: 30px;
}

header nav a {
    font-weight: 600;
    color: var(--text);
}

header nav a:hover {
    transform: translateY(-2px);
    text-decoration: underline;
    transition: 0.3s;
    color: var(--red);
}

header {
    position: relative;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: var(--blue);
    z-index: 99;
}

.logo img {
    width: 150px;
}

.btn-account i {
    font-size: 20px;
    color: var(--text);
    transition: 0.3s;
}

.btn-account:hover i {
    color: var(--red);
    transform: translateY(-2px) scale(1.1);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 45px;  
    right: 0;
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 15px;
    display: none;
    z-index: 999;
}

/* Classe ativada pelo JS */
.user-dropdown.active {
    display: block;
}

.user-dropdown {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
    padding: 25px;
    margin-bottom: 25px;
}

.user-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.user-actions {
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 20px;
}

.btn-action {
    background-color: var(--blue);
    color: var(--text);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    transition: 0.3s;
}

.btn-action:hover {
    background-color: #35457b88;
}

.btn-logout {
    background-color: var(--red);
    color: var(--text);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #c9555188;
}

.txt-user {
    color: var(--grey);
    font-size: 20px;
    margin-bottom: 25px;
}

.txt-user-div {
    align-items: center;
    justify-content: center;
    display: flex;
}

.user-info {
    flex-direction: column;
}

.txt-p {
    width: 100%;
    font-size: 14px;
    margin: 10px 0px 10px 0px;
    text-align: center;
}
.txt-p span{
    color: var(--red);
}

.wrapper {
    flex: 1;
    width: 100%;
    padding-bottom: 20px;
    background: linear-gradient(90deg, rgba(243, 247, 250, 1) 0%, rgba(209, 209, 209, 1) 58%);
    margin: 0;
}

footer {
    width: 100%;
    background-color: var(--blue);
    color: var(--text);
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    margin-top: auto; 
    position: relative;
    z-index: 10;
}

footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

footer a:hover {
    text-decoration: underline;
    color: var(--red);
}

/* Tela de Inicio */

.hero-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(90deg, rgba(243, 247, 250, 1) 0%, rgba(209, 209, 209, 1) 58%);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
}

.hero img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(53, 69, 123, 0.3);
    display: block;
    background: #fff;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;

}

.hero img:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(53, 69, 123, 0.5);
}

.hero h1 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--grey);
    margin-bottom: 30px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #35457b;
    color: var(--blue);
    padding: 12px 40px;
    border-radius: 16px;
    transition: .3s;
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--text);
    filter: brightness(0.8);
}

.menu-toggle {
    display: none;
    font-size: 32px;
    color: var(--text);
    cursor: pointer;
    z-index: 1001;          /* 👈 FORÇA FICAR CLICÁVEL */
    position: relative;    /* 👈 NECESSÁRIO PARA Z-INDEX */
}

/* =========================================
   RESPONSIVIDADE (Celulares e Tablets)
   ========================================= */

@media (max-width: 900px) {

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    /* ESCONDE MENU */
    .navigation {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--blue);
        display: none;
        z-index: 1000;
    }

    .navigation.active {
        display: block;
    }

    .navigation nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        align-items: center;
    }

    .btn-account,
    .user-menu {
        position: relative;
        z-index: 0;
    }



    /* 2. Ajuste do Espaçamento da Tela */
    .hero-wrapper {
        padding-top: 30px; /* Reduz aquele espaço enorme de 100px */
        padding-bottom: 40px;
        height: auto; /* Remove altura forçada se houver */
    }

    /* 3. Transformando o Grid em 1 Coluna */
    .hero {
        grid-template-columns: 1fr; /* Uma coluna só */
        text-align: center; /* Centraliza o texto e botões */
        gap: 40px;
        padding: 20px;
    }

    /* 4. Ajuste da Imagem */
    .hero img {
        width: 90%; /* A imagem ocupa quase a tela toda */
        max-width: 400px; /* Limite para não ficar gigante em tablets */
        margin: 0 auto; /* Garante que fique centralizada */
        order: -1; /* (OPCIONAL) Faz a imagem aparecer ANTES do texto no celular. 
                      Se preferir o texto primeiro, remova esta linha 'order: -1;' */
    }

    /* 5. Tipografia e Botões */
    .hero h1 {
        font-size: 28px; /* Diminui a fonte do título */
    }

    .hero p {
        font-size: 16px;
        padding: 0 10px; /* Evita que o texto encoste nas bordas */
    }

    /* Botão mais fácil de clicar */
    .btn-outline {
        display: inline-block;
        width: 100%;       /* Ocupa a largura total */
        max-width: 300px;  /* Mas não fica esticado demais */
    }
    
    
    /* 1. Ajuste do Contêiner do Ícone */
    .user-menu {
        /* Garante que o ícone e o menu fiquem centralizados */
        display: flex;
        justify-content: center;
        position: relative; /* Necessário para o posicionamento absoluto do filho */
        width: 100%; /* Ocupa a largura disponível */
    }

    .user-dropdown {
        position: fixed;              /* 👈 chave da solução */
        top: 40%;
        left: 50%;
        transform: translate(-50%, -55%);
        width: 90vw;
        max-width: 360px;

        background: #fff;
        border-radius: 16px;
        z-index: 2000;

        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    .user-dropdown.active {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%);
    }
}