﻿/* styles/main.css - Estilos base e globais - Updated for new layout */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navegação */

/* Navegação - Estilos melhorados para mobile */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: #d4af37;
}

/* Container para menu mobile */
.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Botão de menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #d4af37;
}

/* Responsividade da navegação */
@media (max-width: 768px) {
    .nav {
        padding: 2rem 0; /* Aumentado de 1.2rem para 2rem (+67%) */
        position: fixed;
        top: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(25px);
    }
    
    .nav ul {
        flex-direction: row;
        gap: 1rem;
        padding: 0 1rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav li {
        flex-shrink: 0;
    }
    
    .nav a {
        font-size: 0.95rem; /* Aumentado de 0.9rem */
        padding: 0.8rem 1.2rem; /* Aumentado de 0.6rem 1rem */
        white-space: nowrap;
        border-radius: 25px; /* Aumentado de 20px */
        transition: all 0.3s ease;
        text-transform: none;
        letter-spacing: 0.5px;
        min-height: 44px; /* Altura mínima para touch targets */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav a:hover,
    .nav a.active {
        background: rgba(212, 175, 55, 0.15); /* Mais visível */
        color: #d4af37;
        transform: none;
        text-shadow: none;
    }
    
    .nav a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1.5rem 0; /* Aumentado de 0.6rem para 1.5rem (+150%) */
    }
    
    .nav ul {
        gap: 0.8rem; /* Aumentado de 0.5rem */
        padding: 0 0.8rem; /* Aumentado de 0.5rem */
    }
    
    .nav a {
        font-size: 0.85rem; /* Aumentado de 0.8rem */
        padding: 0.7rem 0.8rem; /* Aumentado de 0.4rem 0.6rem */
        min-height: 40px; /* Altura mínima para touch targets */
    }
}

/* Menu hamburger para telas muito pequenas */
@media (max-width: 400px) {
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 15px 15px;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 1001;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav ul.mobile-open {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        text-align: center;
        border-radius: 8px;
        width: 100%;
        display: block;
    }
    
    .nav a:hover,
    .nav a.active {
        background: rgba(212, 175, 55, 0.15);
        transform: none;
    }
}

/* Animação para o menu mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizada para navegação horizontal em mobile */
@media (max-width: 768px) and (min-width: 401px) {
    .nav ul {
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
    }
    
    .nav ul::-webkit-scrollbar {
        height: 2px;
        display: block;
    }
    
    .nav ul::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav ul::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.3);
        border-radius: 1px;
    }
    
    .nav ul::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 175, 55, 0.5);
    }
}




/* Seções gerais */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilitários */
.hidden {
    display: none !important;
}

.btn {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    margin-right: 1rem;
    width: auto;
}

.btn-secondary:hover {
    background: #d4af37;
    color: white;
}

.btn-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Alertas */
.alert {
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

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

.alert.success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1rem;
}

.footer p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}