/* ======= RESET & BASE ======= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #2d2d2d;
    --bg-card: #3a3a3a;
    --bg-black: #1a1a1a;
    --red: #cc0000;
    --red-hover: #990000;
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #999999;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }

img { max-width: 100%; height: auto; }

/* ======= HEADER / NAV ======= */
header {
    background: url('../../topbar.jpeg') center / cover;
    min-height: 110px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red) !important;
}

.navbar-toggler {
    border: 1px solid var(--text-muted);
    color: var(--text-white);
}

/* ======= HERO / CAROUSEL ======= */
.hero-carousel {
    position: relative;
    padding-top: 15px;
}

.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}

.carousel-caption {
    bottom: 80px;
    text-align: left;
    max-width: 600px;
}

.carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* ======= BOTÕES ======= */
.btn-dakota {
    background: var(--red);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-dakota:hover {
    background: var(--red-hover);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204,0,0,0.3);
}

.btn-dakota-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    font-weight: 600;
    padding: 0.5rem 1.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-dakota-outline:hover {
    background: var(--red);
    color: var(--text-white);
}

/* ======= SEÇÃO TÍTULO ======= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 span { color: var(--red); }

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--red);
    margin: 1rem auto 0;
}

/* ======= CARDS DE VEÍCULOS ======= */
.vehicle-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.vehicle-card .card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vehicle-card .card-img .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: white;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.share-btn:hover {
    background: var(--red);
}

.share-toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--red);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 99999;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.share-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.vehicle-card .card-body {
    padding: 1.25rem;
}

.vehicle-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.vehicle-card .card-subtitle {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.vehicle-card .card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.vehicle-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vehicle-card .card-specs span {
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* ======= SEÇÕES ======= */
section {
    padding: 5rem 0;
}

section.bg-section {
    background: var(--bg-black);
}

/* ======= ABOUT / SOBRE ======= */
.about-section {
    position: relative;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-text h3 span { color: var(--red); }

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ======= CONTATO ======= */
.contact-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
}

.contact-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info .contact-item i {
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.form-control {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--red);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(204,0,0,0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text-white);
}

/* ======= FILTROS ======= */
.filters-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-section .form-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* ======= PÁGINA DETALHE ======= */
.detail-gallery {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.detail-gallery .main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.detail-gallery .thumb-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.detail-gallery .thumb-list img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.detail-gallery .thumb-list img:hover,
.detail-gallery .thumb-list img.active {
    opacity: 1;
}

.detail-info h2 {
    font-size: 2rem;
    font-weight: 800;
}

.detail-info .price-big {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.specs-grid .spec-item {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.specs-grid .spec-item .spec-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-grid .spec-item .spec-value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ======= FOOTER ======= */
footer {
    background: var(--bg-black);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer h5 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

footer h5 span { color: var(--red); }

footer p, footer a {
    color: var(--text-light);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--red);
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-right: 0.5rem;
    transition: background 0.3s, color 0.3s;
}

.footer-social a:hover {
    background: var(--red);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ======= LIGHTBOX ======= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--red);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* ======= WHATSAPP FLUTUANTE ======= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s;
    cursor: pointer;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); transform: scale(1); }
    50% { box-shadow: 0 4px 50px rgba(37,211,102,1); transform: scale(1.15); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); transform: scale(1); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    display: block;
}

/* ======= POPUP BOAS-VINDAS ======= */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-overlay.show {
    display: flex;
}

.popup-modal {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-modal .popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-modal h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.popup-modal h2 span { color: var(--red); }

.popup-modal p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.popup-modal .popup-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-modal .popup-btn-comprar {
    background: var(--red);
    color: white;
}

.popup-modal .popup-btn-comprar:hover {
    background: var(--red-hover);
}

.popup-modal .popup-btn-vender {
    background: #25D366;
    color: white;
}

.popup-modal .popup-btn-vender:hover {
    background: #1da851;
}

.popup-modal .popup-skip {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.popup-modal .popup-skip:hover {
    color: var(--text-light);
}

/* ======= PAGINAÇÃO ======= */
.pagination .page-link {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* ======= FINANCIAMENTO ======= */
.simulator-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
}

.simulator-result {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.simulator-result .parcela {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
}

/* ======= PAGE HEADER ======= */
.page-header {
    background: var(--bg-black);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-header h1 span { color: var(--red); }

.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: var(--text-light);
    font-size: 0.85rem;
}

.page-header .breadcrumb-item.active {
    color: var(--red);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ======= RESPONSIVO ======= */
@media (max-width: 991px) {
    .carousel-item { height: 350px; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption { bottom: 40px; }
}

@media (max-width: 767px) {
    .carousel-item { height: 280px; }
    .carousel-caption h1 { font-size: 1.5rem; }
    .carousel-caption p { font-size: 0.95rem; }
    .carousel-caption { bottom: 30px; }
    section { padding: 3rem 0; }
    .detail-gallery .main-img { height: 250px; }
    .detail-info h2 { font-size: 1.5rem; }
    .detail-info .price-big { font-size: 1.6rem; }
    .specs-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 15px; right: 15px; }
}

@media (max-width: 575px) {
    .page-header h1 { font-size: 1.6rem; }
    .section-title h2 { font-size: 1.5rem; }
}
