/* Estilos customizados para o novo layout Estrella Galicia MotoGP */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', 'Arial', sans-serif;
    scroll-behavior: smooth;
}

h5 {
    color: #ffffff;
}

.navbar-nav .nav-link {
    font-size: 1.5rem;
}

/* Header/Navbar */
.navbar-custom {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.container-custom {
    max-width: 1920px;
    margin: auto;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0.8rem;
    padding: 0.8rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(245, 196, 0, 0.2);
    color: #ffffff !important;
}

/* Logo posicionado do lado esquerdo com dimensionamento proporcional */
.navbar-left-logo {
    margin-right: 1.5rem;
}

/* Logo mobile */
.navbar-brand-mobile {
    display: flex;
    align-items: center;
}

.navbar-mobile-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Layout mobile - logo + hamburger lado a lado */
@media (max-width: 991.98px) {
    .navbar-custom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .navbar-brand-mobile {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    /* Garante que o hamburger seja visível */
    .navbar-toggler {
        order: 2;
        flex-shrink: 0;
        display: block !important;
        background: transparent !important;
        border: 2px solid #ffffff !important;
        color: #ffffff !important;
        padding: 0.5rem !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    /* Ícone do hamburger */
    .navbar-toggler-icon {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #ffffff !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: #ffffff !important;
        position: absolute !important;
        left: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler-icon::before {
        top: -6px !important;
    }
    
    .navbar-toggler-icon::after {
        top: 6px !important;
    }
    
    /* Menu mobile expandido - corrigir fundo e posicionamento */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98) !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    /* Menu nav dentro do collapse */
    .navbar-nav {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    /* Links do menu mobile */
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.2rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    /* Botão coupon mobile */
    .navbar-nav .btn-coupon {
        margin: 1rem 0 !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        width: 100% !important;
    }
}

.regulamento-contato {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 25px;
    font-weight: bold;
}

.regulamento-info {
    margin-top: 50px;
}

.navbar-side-logo {
    /* Dimensionamento proporcional AGGRESSIVE: 1920px (320x61px) até 992px (160x31px) */
    width: clamp(160px, calc(320px * (100vw / 1920px)), 320px);
    height: clamp(31px, calc(61px * (100vw / 1920px)), 61px);
    object-fit: contain;
}

/* Layout específico para resolução 1920px */
.navbar-custom .container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.navbar-custom .container .navbar-brand {
    display: none;
}

.navbar-custom {
    justify-content: space-between;
}

.navbar-collapse {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-coupon {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
}

/* Breakpoint específico para 1252px - correção de corte nas laterais */
@media (max-width: 1252px) and (min-width: 993px) {
    .navbar-nav.mb-2.mb-lg-0 {
        gap: 0 !important;  /* Solução específica para eliminar espaçamento */
    }
    
    .navbar-custom {
        padding: 0.4rem 0;
    }
    
    .navbar-custom .container {
        padding: 0 0.3rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .navbar-collapse {
        gap: 0.3rem;
        padding: 0;
        overflow: hidden;
    }
    
    .navbar-nav {
        gap: 0;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem !important;
        margin: 0 0.15rem;
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 1.1;
    }
    
    .btn-coupon {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem !important;
        margin: 0 0.15rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .navbar-side-logo {
        width: clamp(90px, calc(180px * (100vw / 1252px)), 180px);
        height: clamp(17px, calc(34px * (100vw / 1252px)), 34px);
        flex-shrink: 0;
        margin-right: 0.3rem;
    }
    
    .navbar-left-logo {
        margin-right: 0.3rem;
    }
}

/* Breakpoint adicional para 1708px - fontes menores */
@media (max-width: 1708px) {
    .navbar-side-logo {
        width: clamp(140px, calc(280px * (100vw / 1708px)), 280px);
        height: clamp(27px, calc(53px * (100vw / 1708px)), 53px);
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .btn-coupon {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }
    
    .navbar-collapse {
        gap: 1.2rem;
    }
    
    .navbar-nav {
        gap: 1.2rem;
    }
    
    .navbar-left-logo {
        margin-right: 1.2rem;
    }
}
@media (max-width: 1400px) {
    .navbar-custom .container .navbar-brand {
        display: block;
    }
}

/* Breakpoint adicional para 1400px - fontes ainda menores */
@media (max-width: 1400px) {
    .navbar-side-logo {
        width: clamp(120px, calc(240px * (100vw / 1400px)), 240px);
        height: clamp(23px, calc(46px * (100vw / 1400px)), 46px);
    }
    
    .navbar-nav .nav-link {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .btn-coupon {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }
    
    .navbar-collapse {
        gap: 1rem;
    }
    
    .navbar-nav {
        gap: 1rem;
    }
    
    .navbar-left-logo {
        margin-right: 1rem;
    }
}

@media (min-width: 1920px) {
    .navbar-collapse {
        justify-content: flex-end;
    }
}

/* Botão especial para CADASTRE SEU CUPOM FISCAL */
.btn-coupon {
    background-color: #AD2425 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0 0.8rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    text-transform: none;
    letter-spacing: 0.5px;
    white-space: nowrap !important;
    transition: all 0.3s ease;
}

.btn-coupon:hover {
    background-color: #8D1E20 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(173, 36, 37, 0.4);
}

.btn-login {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #e6b800;
    color: #000000;
    transform: translateY(-2px);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    /* Garantir que a imagem preencha toda a largura */
    max-width: none;
    object-fit: cover;
}

/* Espaçamento para navbar fixo */
body {
    padding-top: 0; /* Remove padding do body */
}

/* Navbar no topo, sobre toda a página */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95) !important;
    height: 70px;
}

/* Todas as seções após o hero devem ter espaçamento no topo */
.city-selection-section:first-of-type {
    padding-top: calc(80px + 80px); /* 80px base + 70px navbar */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(45deg, #ffffff, #ff6b35);
    color: #000000;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 196, 0, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-hero-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

/* City Selection Section */
.city-selection-section {
    padding: 80px 0;
    background: #000000;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.city-selector {
    max-width: 600px;
    margin: 0 auto;
}

.form-select-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-select-custom:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(245, 196, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.stores-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.store-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 196, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 196, 0, 0.2);
}

.store-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.store-address {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.store-phone {
    color: #ffffff;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #111111;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ffffff;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.faq-question span {
    text-transform: uppercase;
}

.faq-question:hover {
    background: rgba(245, 196, 0, 0.1);
}

.faq-question.active {
    background: rgba(245, 196, 0, 0.2);
    color: #ffffff;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(245, 196, 0, 0.3);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    color: #888888;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .store-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .city-selector {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* User name truncation - shows "..." when name exceeds 15 characters */
.user-name-truncated {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

