/* =====================================================
RESET GLOBAL
===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    background: #128707;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    color: #fff;
    scroll-behavior: smooth;
}

/* =====================================================
VARIÁVEIS PREMIUM
===================================================== */
:root {
    --accent: #00bfff;
    --accent-soft: rgba(0,191,255,0.4);
    --nav-bg: rgba(30, 144, 20, 0.219);
    --glass: rgba(3, 255, 57, 0.05);
    --border-glass: rgba(59, 248, 69, 0.08);
}

/* =====================================================
NAVBAR PREMIUM ULTRA
===================================================== */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5vw;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: background .4s ease, backdrop-filter .4s ease;
}

.navbar-premium::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

/* =====================================================
LOGO
===================================================== */
.logo-floating {
    position: fixed;
    left: 50px;
    top: 18px;
    z-index: 1200;
}

.logo-floating img {
    height: 70px;
    transition: transform .4s ease;
}

.logo-floating img:hover {
    transform: scale(1.05);
}

.social-email a img {
    height: 28px;
    transition: transform 0.3s, filter 0.3s;
}

.social-email a:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* =====================================================
LINKS NAVBAR
===================================================== */
.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 20px;
    margin-left: 48px;
    letter-spacing: 1px;
    position: relative;
    transition: color .3s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: var(--accent);
    transition: width .3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* =====================================================
HAMBURGER PREMIUM
===================================================== */
.custom-toggler {
    width: 40px; 
    height: 28px;
    cursor: pointer;
    position: absolute;
    top: 46px;
    right: 40px;
    z-index: 2001;
    display: none;
    background: transparent;
    border: none;
    outline: none;
}

.custom-toggler span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #fff;
    left: 0;
    border-radius: 0;
    transition: transform .35s cubic-bezier(.77,0,.18,1), top .35s, bottom .35s, opacity .2s;
    box-shadow: none;
}

.custom-toggler span:nth-child(1) { top: 0; }
.custom-toggler span:nth-child(2) { top: 12px; }
.custom-toggler span:nth-child(3) { bottom: 0; }

.custom-toggler.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}
.custom-toggler.active span:nth-child(2) {
    opacity: 0;
}
.custom-toggler.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 12px;
}

.custom-toggler:hover span {
    background: var(--accent);
}

/* =====================================================
MENU MOBILE GLASS
===================================================== */
@media (max-width: 991px) {
    .custom-toggler { display: block; }

    .navbar-collapse {
        position: fixed !important;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 380px;
        height: 100vh;

        padding-top: 180px;
        padding-right: 40px;
        transform: translateX(100%);
        transition: transform .45s cubic-bezier(.77,0,.18,1);
        display: block !important;
        z-index: 1800;
        border-left: 1px solid var(--border-glass);

        /* === FUNDO PRETO GLASS ATRÁS DAS LETRAS === */
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .navbar-collapse.show { transform: translateX(0); }
    .navbar-nav { text-align: right; }
    .nav-link { font-size: 28px; margin: 28px 0; }

    /* overlay mais suave */
    .menu-overlay {
        background: rgba(0,0,0,0.25);
    }
}

/* =====================================================
HERO CINEMÁTICO
===================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: brightness(.65) contrast(1.1);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,.2) 0%, rgba(0,0,0,.3) 80%),
        linear-gradient(to bottom, rgba(0,0,0,.34), rgba(0,0,0,.51));
}

/* =====================================================
HERO CONTENT
===================================================== */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    animation: fadeUp 1.4s ease forwards;
    will-change: transform, opacity;
}

.hero-logo {
    width: clamp(180px, 20vw, 340px);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 25px var(--accent-soft));
}

.hero-title {
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-subtitle {
    opacity: .85;
    margin-bottom: 35px;
    font-size: 18px;
    letter-spacing: 1px;
}

/* =====================================================
BOTÃO HERO PREMIUM
===================================================== */
.btn-hero {
    background: linear-gradient(135deg, var(--accent), #0077ff);
    color: #000;
    padding: 16px 40px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform .3s, box-shadow .3s ease;
    box-shadow: 0 0 25px var(--accent-soft);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--accent);
}

/* =====================================================
ANIMAÇÃO
===================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* =====================================================
SCROLL ARROW
===================================================== */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 32px;
    height: 32px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%,100% { transform: translate(-50%,0); opacity: .6; }
    50% { transform: translate(-50%,14px); opacity: 1; }
}

/* =====================================================
CARDS PREMIUM
===================================================== */
.featured-cars {
    
    padding: 130px 0;
}

/* =====================================================
CARDS VIATURAS - DIMENSÃO FIXA PREMIUM
===================================================== */

.car-box{

    background: var(--glass);

    border:1px solid var(--border-glass);

    border-radius:16px;

    backdrop-filter:blur(10px);

    transition: transform .4s, box-shadow .4s;

    box-shadow:0 0 30px rgba(0,191,255,.15);

    overflow:hidden;

    height:100%;

    display:flex;
    flex-direction:column;
}

/* imagem */

.car-image{
    display:block;
    width:100%;
}

.car-image img{

    width:100%;
    height:320px;

    object-fit:cover;

    transition:transform .6s;
}

/* info */

.car-info{

    padding:20px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    flex:1;
}

/* titulo */

.car-title{

    font-size:20px;

    font-weight:700;

    margin-bottom:10px;

    min-height:48px;
}

/* meta */

.car-meta{

    font-size:14px;

    opacity:.7;

    margin-bottom:10px;

    display:flex;

    justify-content:center;

    gap:10px;
}

/* preço */

.car-price{

    font-size:22px;

    font-weight:800;

    margin-bottom:15px;
}

/* botão */

.btn-view{

    display:inline-block;

    padding:10px 22px;

    border-radius:30px;

    background:linear-gradient(135deg,#128707,#1ed112);

    color:#000;

    font-weight:700;

    text-decoration:none;

    transition:all .3s;
}

.btn-view:hover{

    transform:translateY(-2px);

    box-shadow:0 0 20px rgba(18,135,7,.7);
}

/* hover */

.car-box:hover{

    transform:translateY(-10px);

    box-shadow:0 0 60px rgba(0,191,255,.4);
}

.car-box:hover img{

    transform:scale(1.05);
}

/* BLOQUEIO DE SCROLL QUANDO MENU ABERTO */
.scroll-locked {
    overflow: hidden;
    height: 100%;
}

/* =====================================================
CARROSSEL PREMIUM VIATURAS
===================================================== */
#carrossel-wrapper {
    margin-top: 15px;
}

#carrossel-wrapper ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    cursor: grab;
}

#carrossel-wrapper li {
    position: relative;
}

#carrossel-wrapper img {
    width: 100px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.remove-carrossel {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    text-decoration: none;
}

/* =====================================================
CARROSSEL PRO MAX FRONT-END
===================================================== */
.viaturas-carousel {
    position: relative;
    width: 100%;
    padding: 120px 0 90px 0;
    text-align: center;
    background: linear-gradient(to bottom,#000,#050505);
}

.viaturas-carousel h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 70px;
    letter-spacing: 1px;
}

.carousel-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    transition: transform .7s cubic-bezier(.77,0,.18,1);
    scroll-behavior: smooth;
}

.carousel-item {
    flex: 0 0 60%;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all .6s ease;
    position: relative;
    pointer-events: auto;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-item img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: block;
}

.carousel-car-title {
    margin-top: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.carousel-car-subtitle {
    font-size: 18px;
    opacity: 0.8;
    color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    color: var(--accent);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color .3s;
}

.carousel-arrow:hover {
    color: #00ffff;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

@media (max-width:1000px){
    .carousel-item { flex: 0 0 85%; }
    .carousel-car-title { font-size:26px; }
    .carousel-car-subtitle { font-size:18px; }
    .carousel-arrow { font-size:60px; }
}
/* =====================================================
FILTROS PREMIUM (ALINHADO COM O SITE VERDE)
===================================================== */

.rrm-filtros-wrapper{
    width:100%;
    display:flex;
    justify-content:center;

    padding:80px 20px;

    background:linear-gradient(to bottom,#000,#050505);
}

/* BLOCO PRINCIPAL */
.rrm-filtros{

    width:100%;
    max: width 100%;;

    padding:35px 40px;

    background:rgb(0, 0, 0);

    border:1px solid rgba(18, 135, 7, 0.185);

    

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    box-shadow:
        0 0 160px rgba(18, 135, 7, 0.616),
        inset 0 0 10px rgba(255,255,255,0.03);

    position:relative;
}

/* linha premium topo */
.rrm-filtros::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:2px;

    background:linear-gradient(
        90deg,
        transparent,
        #128707,
        transparent
    );

    opacity:.8;
}

/* GRID */
.rrm-filtros-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:22px;
    align-items:end;
}

/* LABELS */
.rrm-filtros label{

    font-size:12px;
    letter-spacing:1px;

    text-transform:uppercase;

    opacity:.7;

    margin-bottom:6px;
}

/* SELECTS */
.rrm-filtros select{

    width:100%;

    padding:13px 14px;

    background:rgba(0,0,0,0.65);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:10px;

    color:#fff;

    font-size:14px;

    transition:all .25s;
}

.rrm-filtros select:hover{
    border-color:#128707;
}

.rrm-filtros select:focus{

    outline:none;

    border-color:#128707;

    box-shadow:
        0 0 10px rgba(18,135,7,0.6);
}

/* =====================================================
SLIDERS
===================================================== */
.badge-vendido {
    position: absolute;
    top: 15px;
    left: 15px;
    background: red;
    color: #fff;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 10;
}
.car-box {
    position: relative;
}

.rrm-slider{
    display:flex;
    flex-direction:column;
}

.rrm-slider input[type=range]{

    -webkit-appearance:none;

    width:100%;
    height:6px;

    border-radius:4px;

    background:rgba(255,255,255,0.12);
}

/* thumb */
.rrm-slider input[type=range]::-webkit-slider-thumb{

    -webkit-appearance:none;

    width:18px;
    height:18px;

    border-radius:50%;

    background:#128707;

    box-shadow:
        0 0 10px rgba(18,135,7,0.8),
        0 0 20px rgba(18,135,7,0.4);

    cursor:pointer;
}

.rrm-slider-values{

    display:flex;
    justify-content:space-between;

    font-size:12px;

    margin-top:6px;

    opacity:.7;
}

/* =====================================================
BOTÃO FILTRAR
===================================================== */

.rrm-filtrar-btn{

    width:100%;

    padding:14px;

    background:linear-gradient(
        135deg,
        #128707,
        #1ed112
    );

    border:none;

    border-radius:50px;

    color:#000;

    font-weight:700;

    font-size:15px;

    cursor:pointer;

    transition:
        transform .25s,
        box-shadow .25s;

    box-shadow:0 0 20px rgba(18,135,7,0.5);
}

.rrm-filtrar-btn:hover{

    transform:translateY(-3px);

    box-shadow:
        0 0 35px rgba(18,135,7,0.8);
}

/* =====================================================
RESPONSIVO
===================================================== */

@media (max-width:1000px){

    .rrm-filtros-grid{
        grid-template-columns:1fr 1fr;
    }

    .rrm-filtrar-btn{
        grid-column:span 2;
    }

}

/* ==============================
RESPONSIVO
============================== */
@media (max-width: 900px) {
    .rrm-filtros-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rrm-filtrar-btn {
        grid-column: span 2;
    }
}

/* Linha sutil premium no topo do footer */
.footer {
    border-top: 2px solid rgba(0,191,255,0.3);
}
/* =====================================================
REMOVER FUNDOS BRANCOS DO BOOTSTRAP
===================================================== */

.container,
.container-fluid,
.row,
.card,
.bg-white,
.bg-light {

    background: transparent !important;

}

/* garantir fundo escuro global */

body {
    background: #050505;
}
.viatura-item {
    display: block !important; /* garante que sempre ocupa espaço quando visível */
    float: none;               /* evita bugs de float antigos */
}
.d-none {
    display: none !important;
}
.car-title {
    font-size: 22px;
    font-weight: 900;
    color: #00ffff; /* destaque neon */
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.car-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
    color: #fff;
}

.car-meta .meta-item strong {
    color: #00ff88; /* rótulos em verde neon */
    margin-right: 4px;
}

.car-modelo {
    font-weight: 700;
    font-size: 16px;
    color: #00ff88;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.car-price {
    font-size: 24px;
    font-weight: 900;
    color: #00ffff; /* azul neon */
    margin-bottom: 12px;
}
/* =====================================================
FILTROS PREMIUM - TEXTO BRANCO
===================================================== */

/* Labels dos filtros */
.rrm-filtros label {
    color: #fff;          /* força texto branco */
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;         /* pode ajustar para mais ou menos visível */
    margin-bottom: 6px;
}

/* Opções dos selects */
.rrm-filtros select {
    color: #fff;          /* texto branco dentro do select */
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 14px;
    transition: all .25s;
}

/* Placeholder e opções do select */
.rrm-filtros select option {
    color: #000;          /* opcional: cor das opções ao abrir */
}

/* Hover e focus */
.rrm-filtros select:hover,
.rrm-filtros select:focus {
    border-color: #128707;
    box-shadow: 0 0 10px rgba(18,135,7,0.6);
    outline: none;
}

/* Sliders */
.rrm-slider-values {
    color: #fff;          /* valores do slider em branco */
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.9;
}

/* Botão filtrar */
.rrm-filtrar-btn {
    color: #000;          /* mantém o texto do botão visível */
    font-weight: 700;
    font-size: 15px;
}

#viaturas {
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(5,5,5,0.7)),
        url('/assets/img/background.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}