/* ===== CSS VARIABLES (LIGHT THEME) ===== */
:root {
    --bg-color: #F8F9FA;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.08);

    --shineray-red: #D32F2F;
    --shineray-red-hover: #E53935;
    --shineray-red-glow: rgba(211, 47, 47, 0.3);

    --text-primary: #1A1A1A;
    --text-secondary: #546E7A;

    --whatsapp-green: #25D366;
    --whatsapp-glow: rgba(37, 211, 102, 0.3);
    --instagram-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== RESET & GLOBAL ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* ===== SVG ICONS ===== */
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* ===== BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(211, 47, 47, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(211, 47, 47, 0.03) 0%, transparent 50%),
        var(--bg-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    width: 100%;
    position: relative;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    width: 100%;
    max-width: 600px;
}

.brand-logo {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
    animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.brand-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--text-primary);
    min-height: 2.4rem;
    /* Prevents layout shift during typing */
}

/* Acessibilidade: oculto visualmente, mas disponível para leitores de tela e SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typing cursor */
.brand-title::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--shineray-red);
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.brand-subtitle i {
    color: var(--shineray-red);
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    color: var(--text-primary);
}

.badge .icon {
    width: 14px;
    height: 14px;
    color: var(--shineray-red);
}

/* BUTTON PRIMARY */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shineray-red);
    color: #FFF;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 20px var(--shineray-red-glow);
    transition: all var(--transition-fast);
    font-size: 1rem;
    margin-top: 20px;
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    background: var(--shineray-red-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.7);
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 650px;
    padding: 30px 20px;
    z-index: 1;
}

.counter-item {
    text-align: center;
    flex: 1;
}

.counter-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--shineray-red);
    text-shadow: 0 0 20px var(--shineray-red-glow);
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.counter-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* ===== MAIN CONTAINER ===== */
.container {
    width: 100%;
    max-width: 700px;
    padding: 10px 20px;
    z-index: 1;
}

/* ===== TABS NAVIGATION ===== */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: transparent;
    padding: 10px 10px;
    /* Espaço para o box-shadow não cortar */
    border-radius: 12px;

    /* Scroll horizontal nativo para mobile */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Edge */
}

.tab-btn {
    flex: 1;
    min-width: 0;
    /* Fix flexbox shrinking */
    position: relative;
    height: 180px;
    background-color: var(--card-border);
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
    transition: all var(--transition-fast);
}

.tab-text {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
    height: 100%;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover .tab-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
}

.tab-btn:hover .tab-text {
    color: #FFF;
}

.tab-btn.active {
    box-shadow: 0 0 0 2px #FFF, 0 0 0 3px var(--shineray-red), 0 10px 20px rgba(211, 47, 47, 0.2);
    transform: translateY(-4px);
}

.tab-btn.active .tab-overlay {
    background: linear-gradient(0deg, rgba(211, 47, 47, 0.7) 0%, rgba(211, 47, 47, 0.1) 60%);
}

.tab-btn.active .tab-text {
    color: #FFF;
}

.tabs-content {
    position: relative;
    min-height: 250px;
    /* Previne pulo de layout forte */
}

.tab-panel {
    display: none;
    animation: fade-in 0.4s ease-out forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .tab-btn {
        flex: 0 0 65%;
        /* Mostra 1 inteiro e um pedaço do próximo */
        scroll-snap-align: center;
    }
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin: -10px 0 15px;
}

/* ===== ANIMATED GLOW BORDER ===== */
.glow-border {
    position: relative;
    z-index: 1;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg,
            var(--shineray-red),
            transparent 40%,
            transparent 60%,
            var(--shineray-red));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glow-rotate 4s linear infinite;
    background-size: 200% 200%;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes glow-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== CITY CARDS ===== */
.city-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all var(--transition-smooth);
}

.city-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 20px rgba(211, 47, 47, 0.1);
    transform: translateY(-2px);
}

.city-header {
    text-align: center;
    margin-bottom: 15px;
}

.city-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.3rem;
    color: var(--shineray-red);
    margin-bottom: 5px;
}

.city-header h3 .icon {
    width: 18px;
    height: 18px;
}

.address-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* DIRECT BUTTONS */
.city-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 5px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    text-align: center;
}

.action-btn .icon {
    width: 22px;
    height: 22px;
}

.btn-whatsapp {
    background-color: rgba(37, 211, 102, 0.08);
    color: var(--whatsapp-green);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green);
    color: #FFF;
    box-shadow: 0 0 20px var(--whatsapp-glow);
}

.btn-instagram {
    background: rgba(225, 48, 108, 0.08);
    color: #E1306C;
    border: 1px solid rgba(225, 48, 108, 0.2);
}

.btn-instagram:hover {
    background: var(--instagram-grad);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.4);
}

.btn-map {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-map:hover {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ===== CAROUSEL SECTION/* ===== SWIPER CAROUSEL ===== */
.carousel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
}

.swiper {
    width: 100%;
    padding: 30px 0 50px;
}

/* ===== PREMIUM POSTER CARDS (FOR FULL PHOTOS) ===== */
.swiper-slide {
    background: #FFF;
    border-radius: 20px;
    width: 280px;
    height: 400px;
    /* Taller card */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    /* IMPORTANT: Keeps image inside */
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pop-out-card .slide-link {
    /* Mantemos a classe pra não quebrar o HTML */
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.moto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz a foto preencher todo o card bonito */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.swiper-slide-active .moto-img {
    transform: scale(1.05);
}

.pop-out-card:hover .moto-img {
    transform: scale(1.12);
}

/* Esconder elementos antigos do 3D popout */
.card-bg,
.shadow-floor {
    display: none;
}

/* Gradient overlay for text readability */
.model-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
    padding: 80px 15px 25px;
    /* Gradient suave de baixo para cima */
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    transition: all var(--transition-smooth);
}

.moto-cc {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ff4d4d;
    /* Vermelho vibrante no fundo escuro */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.moto-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #FFF;
    /* Sempre branco */
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.moto-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFF;
    background: var(--shineray-red);
    padding: 12px 24px;
    border-radius: 30px;
    width: max-content;
    margin-inline: auto;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.pop-out-card:hover .moto-cta {
    background: #ff0a16;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.7);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--shineray-red);
    opacity: 1;
    box-shadow: 0 0 10px var(--shineray-red-glow);
}

/* ===== VIDEO SECTION ===== */
.video-section {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    padding: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}



/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.back-to-top .icon {
    width: 18px;
    height: 18px;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--shineray-red);
    border-color: var(--shineray-red);
    color: #FFF;
    box-shadow: 0 0 15px var(--shineray-red-glow);
}

/* ===== MICRO-ANIMATIONS ===== */
.pulse-effect {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(229, 9, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Active touch state */
.action-btn:active,
.btn-primary:active,
.whatsapp-float:active {
    transform: scale(0.95) !important;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-bottom: 100px;
    /* Space for floating buttons */
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: #FFF;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px) scale(0.95);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-text strong {
    color: var(--shineray-red);
    font-weight: 800;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.city-whatsapp-btn {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.city-whatsapp-btn:hover {
    background: var(--shineray-red);
    border-color: var(--shineray-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.city-whatsapp-btn:hover .city-name,
.city-whatsapp-btn:hover .city-desc {
    color: #FFF;
}

.city-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.city-desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.city-whatsapp-btn:hover .city-desc {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1.6rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .badges {
        gap: 6px;
    }

    .counters-section {
        gap: 12px;
        padding: 20px 10px;
    }

    .counter-number {
        font-size: 1.5rem;
    }

    .counter-label {
        font-size: 0.65rem;
    }

    .btn-primary {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .tab-btn {
        height: 130px;
        min-width: 120px;
    }

    .tab-btn-title {
        font-size: 1rem;
    }

    .city-card {
        padding: 16px;
    }

    .city-actions {
        gap: 8px;
    }

    .action-btn {
        font-size: 0.7rem;
        padding: 10px 4px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
        justify-content: center;
    }

    .action-btn .icon {
        margin-right: 0;
        width: 22px;
        height: 22px;
    }

    .swiper-slide {
        width: 260px;
        height: 380px;
    }

    .moto-name {
        font-size: 1.15rem;
    }

    /* MODAL RESPONSIVE */
    .modal-overlay {
        padding: 15px;
    }

    .modal-content {
        padding: 25px 20px 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .city-whatsapp-btn {
        padding: 12px 15px;
    }

    .city-name {
        font-size: 1rem;
    }

    .city-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .brand-title {
        font-size: 1.4rem;
    }

    .counter-number {
        font-size: 1.3rem;
    }

    .swiper-slide {
        width: 240px;
        height: 350px;
    }

    .action-btn {
        font-size: 0.65rem;
    }
}