/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS, VARIÁVEIS E RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bakbak+One&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --primary-color: #3a160e;
    --secondary-color: #7E4422;
    --tertiary-color: #f7f3e4;
    
    --text-dark: #333;
    --text-light: #666;
    --success-color: #22c55e;
    
    --title-font-family: 'Bakbak One', cursive;
    --body-font-family: 'DM Sans', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font-family);
    font-size: normal;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

main {
    flex: 1;
}

/* ==========================================================================
   2. COMPONENTES GLOBAIS (BOTÕES)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0px 2px 2px rgba(255, 255, 255, 0.4),
        inset 0px -2px 5px rgba(189, 66, 20, 0.2),
        0px 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.btn-signup, 
.btn-learn-more {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
}

.btn-login {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    background-color: transparent; 
    color: white;
    border: 2px solid var(--tertiary-color);
}

.btn-signup {
    background-color: var(--secondary-color);
    color: white;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-signup:hover {
    background-color: color-mix(in srgb, var(--secondary-color), black 20%);
}

.btn-login:hover {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   3. NAVBAR E MENU
   ========================================================================== */

.navbar-container {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.navbar-main {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    position: relative;
    height: 80px;
}

.logo img {
    width: 100px;
    height: auto;
    margin: 0;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #FFFF;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--secondary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions.desktop-only {
    display: flex;
    gap: 15px;
}

.nav-actions.mobile-only {
    display: none;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

.navbar-user {
    position: relative;
    display: inline-block;
}

.navbar-user span {
    font-size: 32px;
}

.user-container {
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 20px;
    border-radius: 50px;
    transition: background-color 0.2s;
    box-shadow: 
        inset 0px 2px 2px rgba(255, 255, 255, 0.4), 
        inset 0px -2px 5px rgba(189, 66, 20, 0.2),
        0px 4px 10px rgba(0, 0, 0, 0.15);
}

.user-container:hover {
    background-color: color-mix(in srgb, var(--secondary-color), black 20%);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-list li a:hover {
    background-color: #f1f1f1;
    color: var(--secondary-color);
}

/* ==========================================================================
   4. FOOTER STYLES
   ========================================================================== */

.footer {
    background-color: var(--primary-color);
    padding: 60px 50px 20px 50px;
    color: white;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    border-top: 1px solid color-mix(in srgb, var(--secondary-color), white 20%);
    gap: 40px;
    margin-bottom: 50px;
    padding-top: 40px;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin: 0;
}

.footer-nav h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Classe para links com ícone (WhatsApp, Insta, etc) */
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 13px;
    color: #fff;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.dev-links {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* ==========================================================================
   5. RESPONSIVIDADE (MOBILE & MENU)
   ========================================================================== */

@media (max-width: 992px) {
    .navbar-main { padding: 12px 20px; }
    .nav-links { gap: 15px; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* --- NAVBAR MOBILE --- */
    
    .mobile-menu-icon { display: block; }
    .nav-actions.desktop-only { display: none; }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links.active { transform: translateX(0); }
    
    .nav-item {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-actions.mobile-only {
        display: flex;
        flex-direction: column;
        width: 80%;
        gap: 20px;
        margin-top: 30px;
    }

    .nav-actions.mobile-only .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .mobile-menu-icon.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-icon.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-icon.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- FOOTER MOBILE --- */
    
    .footer { padding: 40px 20px; }
    
    .footer-columns {
        grid-template-columns: 1fr; /* Uma coluna apenas */
        gap: 30px;
        text-align: center; /* Centraliza todo o texto */
    }

    .footer-logo { margin: 0 auto; }
    
    /* Centraliza os links com ícones no Mobile */
    .social-link {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}