:root {
    --rs-red: #e60000;
    --bg-dark: #070707;
    --bg-light-dark: #121212;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Montserrat', sans-serif;
    --font-logo: 'Syncopate', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.text-red { color: var(--rs-red); }
.font-sync { font-family: var(--font-logo); }
.text-center { text-align: center; }
.container { max-width: 1300px; margin: 0 auto; }

/* =========================================
   GEOMETRIC LOADER
   ========================================= */
.geometric-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
.geo-shape { position: absolute; width: 100vw; height: 100vh; }
#shape-1 { background: var(--rs-red); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); transform: scale(0); }
#shape-2 { background: #111; clip-path: polygon(100% 100%, 0 100%, 0 100%, 100% 0); transform: scale(0); }
.loader-text { position: relative; z-index: 10; font-size: 2rem; font-weight: 900; text-align: center; }

/* =========================================
   UI NAV
   ========================================= */
.ui-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 25px 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}
/* =========================================
   UI NAV & LOGO CUSTOMIZADO
   ========================================= */
.ui-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 25px 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}

.logo { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    line-height: 1; /* Cola uma palavra na outra */
}

.honda-text {
    font-family: 'Montserrat', seans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
} 

.city-rs-text {
    font-family: var(--font-logo); /* Mantém a fonte futurista Syncopate */
    font-weight: 700;
    font-size: 1.7rem; /* Fica maior que a palavra Honda */
    color: #7b0202; /* Cinza leve e premium */
    letter-spacing: 3px;
    margin-top: 4px;
}

.sound-toggle {
    background: transparent; border: 1px solid #fff; color: #fff;
    padding: 8px 20px; border-radius: 30px; font-family: var(--font-main);
    font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.sound-toggle.active, .sound-toggle:hover { border-color: var(--rs-red); color: var(--rs-red); }
.sound-toggle {
    background: transparent; border: 1px solid #fff; color: #fff;
    padding: 8px 20px; border-radius: 30px; font-family: var(--font-main);
    font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.sound-toggle.active, .sound-toggle:hover { border-color: var(--rs-red); color: var(--rs-red); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-rs {
    position: relative; width: 100vw; height: 100vh;
    display: flex; align-items: center; padding: 0 8%;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background-size: cover; background-position: center; filter: brightness(0.6);
    transform: scale(1.1);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(7,7,7,0.9) 0%, rgba(7,7,7,0.1) 100%);
}
.hero-content { position: relative; z-index: 10; }
.hero-subtitle { font-size: 1.2rem; letter-spacing: 4px; font-weight: 300; margin-bottom: 10px; color: var(--text-muted); }
.hero-title {
    font-family: var(--font-logo); font-size: 6.5vw; line-height: 1; 
    transform: skewX(-5deg); text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.scroll-indicator { margin-top: 50px; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); animation: bounce 2s infinite; display: flex; flex-direction: column; gap: 8px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } }

/* =========================================
   SHOWCASE (Exterior & Interior)
   ========================================= */
.section-showcase { padding: 120px 5%; background: var(--bg-dark); overflow: hidden; }
.dark-bg { background: var(--bg-light-dark); }
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }

.text-col { flex: 1; }
.rs-tag { color: var(--rs-red); font-weight: 700; letter-spacing: 3px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.section-title { font-family: var(--font-logo); font-size: 3rem; line-height: 1.1; transform: skewX(-5deg); }
.red-line { width: 60px; height: 4px; background: var(--rs-red); margin: 20px 0; }
.text-col p { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }

.img-col { flex: 1.2; position: relative; }
.clip-image-box {
    width: 100%; height: 65vh;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    overflow: hidden;
    position: relative;
}
.reverse-clip { clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%); }
.clip-image-box img {
    position: absolute; top: -10%; left: 0;
    width: 100%; height: 120%; 
    object-fit: cover;
}

/* =========================================
   TECH SECTION (Glassmorphism)
   ========================================= */
.section-tech {
    position: relative; padding: 120px 5%;
    background-size: cover; background-attachment: fixed; background-position: center;
}
.tech-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(7,7,7,0.7) 50%, var(--bg-dark) 100%);
}
.tech-content { position: relative; z-index: 10; }
.glass-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}
.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--rs-red);
    padding: 40px 30px; border-radius: 8px;
    transform: skewX(-3deg); transition: transform 0.3s;
}
.glass-card:hover { transform: skewX(-3deg) translateY(-10px); background: rgba(30, 30, 30, 0.7); border-color: rgba(230,0,0,0.3); }
.glass-card > * { transform: skewX(3deg); }
.card-icon { font-size: 2.5rem; color: var(--rs-red); margin-bottom: 20px; }
.glass-card h3 { font-family: var(--font-logo); font-size: 1.2rem; margin-bottom: 15px; }
.glass-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* =========================================
   GALERIA DE IMAGENS (A Nova Seção)
   ========================================= */
.section-gallery {
    padding: 100px 5%;
    background: var(--bg-dark);
}
.gallery-grid {
    display: grid;
    /* Divide em 4 colunas no Desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    width: 100%;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) grayscale(20%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.1);
}

/* =========================================
   FINALE
   ========================================= */
.finale-section {
    height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: radial-gradient(circle at center, var(--bg-light-dark) 0%, var(--bg-dark) 70%);
}
.finale-content h1 { font-size: 5rem; margin-bottom: 15px; transform: skewX(-5deg); }
.finale-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.btn-primary-rs {
    background: var(--rs-red); color: #fff; padding: 18px 50px; font-family: var(--font-logo);
    font-size: 1.2rem; border: none; cursor: pointer; transform: skewX(-10deg); transition: all 0.3s;
}
.btn-primary-rs:hover { background: #ff1a1a; box-shadow: 0 0 25px rgba(230,0,0,0.5); transform: skewX(-10deg) scale(1.05); }

/* RESPONSIVO */
@media (max-width: 900px) {
    .split-layout, .split-layout.reverse { flex-direction: column; text-align: center; }
    .red-line { margin: 20px auto; }
    .clip-image-box { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); height: 45vh; }
    .hero-title { font-size: 12vw; }
    .finale-content h1 { font-size: 3.5rem; }
    .gallery-item { height: 200px; }
}





/* =========================================
   BOTÃO DE VÍDEO E MODAL CINEMATOGRÁFICO
   ========================================= */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.btn-play-video {
    background: transparent;
    border: 2px solid var(--rs-red);
    color: #fff;
    padding: 12px 30px;
    font-family: var(--font-logo);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-play-video i { font-size: 1.5rem; }

.btn-play-video:hover {
    background: var(--rs-red);
    box-shadow: 0 0 25px rgba(230,0,0,0.6);
    transform: scale(1.05);
}

/* O fundo escuro que cobre a tela */
.video-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Classe que o JS vai usar para acender a tela */
.video-modal.active {
    opacity: 1; pointer-events: all;
}

.video-container {
    width: 80%; max-width: 1100px; aspect-ratio: 16/9;
    background: #000; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.close-video {
    position: absolute; top: 40px; right: 50px;
    background: transparent; border: none; color: #fff;
    font-size: 2.5rem; cursor: pointer; transition: color 0.3s;
}

.close-video:hover { color: var(--rs-red); }

@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
    .video-container { width: 95%; }
    .close-video { top: 20px; right: 20px; font-size: 2rem; }
}

/* Estilo para o player local */
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo preencher a caixa sem deixar bordas pretas */
    outline: none;
    background: #000;
}

/* =========================================
   BLINDAGEM ANTI-CAMADA FANTASMA (LIBERA O CLIQUE)
   ========================================= */
.hero-overlay {
    pointer-events: none; /* MÁGICA: Faz o clique atravessar a película escura */
}

.geometric-loader {
    pointer-events: none; /* Impede que o loader invisível roube o clique */
}

.hero-content {
    position: relative;
    z-index: 50; /* Joga o botão e os textos lá pra cima, acima de tudo */
}

.footer-container { margin-top: 60px; width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.footer-line { width: 80%; max-width: 600px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); margin-bottom: 25px; }
.footer-logo img { height: 100px; width: auto; opacity: 0.7; }

/* =========================================
   BLINDAGEM MODO APP & CORREÇÃO MOBILE
   ========================================= */

/* 1. Trava o Zoom, o "Efeito Elástico" e a Rolagem Horizontal */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    touch-action: pan-y; /* Bloqueia o zoom de pinça e toques duplos, permitindo só rolar para cima/baixo */
    overscroll-behavior-y: none; /* Remove o "pulo" elástico do navegador quando chega no fim da página */
    -webkit-text-size-adjust: 100%; /* Impede o iPhone de aumentar a fonte sozinho */
}

/* 2. Encaixa os títulos perfeitamente no Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important; /* Reduz de 3rem para 2rem no celular */
        word-wrap: break-word; /* Força quebra de linha se a palavra for gigante */
        hyphens: auto;
        padding: 0 10px; /* Dá um respiro lateral para não colar na borda */
    }
    
    .tech-content h2 {
        font-size: 1.8rem !important; /* Ajuste específico e milimétrico para o Performance & Tecnologia */
    }
}


/* =========================================
   RESCUE TEAM: CORREÇÃO DAS IMAGENS NO MOBILE
   ========================================= */
@media (max-width: 900px) {
    /* Força a coluna da imagem a ocupar 100% da largura e dá um respiro do texto */
    .img-col {
        width: 100%;
        margin-top: 30px;
        display: block;
    }
    
    /* Trava a altura da caixa de corte para não esmagar a imagem */
    .clip-image-box {
        width: 100%;
        height: 40vh !important;
        min-height: 300px; /* Impede que a caixa desapareça em telas muito pequenas */
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%) !important; /* Corte mais suave pro celular */
    }

    /* Ajusta a imagem dentro do corte para não esticar */
    .clip-image-box img {
        position: absolute;
        top: -10%;
        left: 0;
        width: 100%;
        height: 120%; /* Mantém a folga para o efeito paralaxe rolar sem sumir */
        object-fit: cover;
    }
}