:root {
    --brand: #29c44d;
    --brand-dark: #082019;
    --brand-deep: #03110d;
    --text: #101828;
    --muted: #667085;
    --line: #d8e2db;
    --soft: #f6f8f7;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: #fff;
}

.brand-icon {
    width: 38px;
    height: 38px;
    filter: brightness(0) invert(1);
}

.site-navbar {
    background: rgba(3, 17, 13, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: rgba(255, 255, 255, .9);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand);
}

.btn-brand {
    background: linear-gradient(135deg, #1fa243, var(--brand));
    border: none;
    color: #fff;
}

.btn-brand:hover {
    color: #fff;
    background: linear-gradient(135deg, #19893a, #23ad45);
}

.btn-outline-brand {
    border: 1px solid var(--brand);
    color: #fff;
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff;
}

.text-brand {
    color: #1fa243;
}

.text-green {
    color: var(--brand);
}

.hero-section {
    padding-top: 110px;
    padding-bottom: 110px;
    background: radial-gradient(circle at 80% 30%, rgba(41, 196, 77, 0.14), transparent 18%), linear-gradient(135deg, var(--brand-deep), #051711 55%, #0a241b);
}

.hero-section h1 {
    color: #fff;
}

.hero-section h1 span {
    color: var(--brand);
}

.hero-text {
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
}

.hero-badges span {
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: .65rem .9rem;
    border-radius: 999px;
}

.hero-visual {
    min-height: 420px;
}

.hero-image {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .35));
}

.hero-line {
    position: absolute;
    border: 2px solid rgba(41, 196, 77, .35);
    border-radius: 22px;
    transform: skew(-35deg);
}

.line-1 {
    width: 210px;
    height: 100px;
    right: 10px;
    top: 30px;
}

.line-2 {
    width: 280px;
    height: 130px;
    right: 70px;
    top: 90px;
}

.line-3 {
    width: 360px;
    height: 170px;
    right: -10px;
    top: 150px;
}

.search-wrap {
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.search-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem;
}

.form-control-dark,
.form-dark,
.form-select,
.form-control {
    border-radius: 14px;
    min-height: 52px;
}

.btn-search {
    background: #082019;
    color: #fff;
    border-radius: 14px;
    min-height: 52px;
    border: 1px solid transparent;
}

.btn-search:hover {
    background: transparent;
    border-color: #082019;
}

.section-kicker {
    color: #1fa243;
    font-weight: 700;
    letter-spacing: .14em;
    font-size: .78rem;
}

.section-title {
    font-weight: 700;
}

.bg-light-soft {
    background: var(--soft);
}

.bike-card,
.service-card,
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.bike-card .card-img-top {
    height: 220px;
    object-fit: cover;
    object-position: top;
    transition: transform .2s;
}

.bike-card .card-img-top:hover {
    transform: scale(1.1);
    transition: transform .2s;
}

.year-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #e8f7ed;
    color: #1fa243;
    border-radius: 999px;
    padding: .55rem .75rem;
}

.price {
    color: #1fa243;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 600;
}

.btn-card:hover {
    border: 1px solid #0b503c;
}

.service-card {
    padding: 1.5rem 1rem;
    text-align: center;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: #eaf7ee;
    color: #1fa243;
    font-size: 1.4rem;
}

.benefits-strip {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark));
    border-radius: 20px;
}

.benefit-item {
    color: #fff;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-item i {
    color: var(--brand);
    font-size: 1.4rem;
    margin-bottom: .85rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, .72);
    margin-bottom: 0;
}

.finance-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.25rem;
}

.finance-image {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: var(--brand-dark);
    fill: var(--brand-dark);
}

.finance-image path {
    fill: var(--brand-dark);
}

.testimonial-card {
    padding: 1.5rem;
}

.testimonial-card p {
    color: #475467;
}

.testimonial-card span {
    color: #1fa243;
    font-weight: 600;
}

.stars {
    color: var(--brand);
    letter-spacing: .18em;
    margin-bottom: .75rem;
}

.contact-panel {
    border-radius: 24px;
    background: #051711;
}

.contact-info,
.form-side {
    padding: 2rem;
}

.contact-copy {
    color: rgba(255, 255, 255, .75);
}

.info-fa {
    color: var(--brand);
    font-size: 1.3rem;
    margin-top: .15rem;
}

.form-side {
    background: linear-gradient(135deg, #04140f, #072019);
}

.contact-form label {
    color: #fff;
    font-weight: 600;
}

.form-dark {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
}

.form-dark::placeholder {
    color: rgba(255, 255, 255, .45);
}

.form-dark:focus {
    background: transparent;
    color: #fff;
    border-color: rgba(41, 196, 77, .55);
    box-shadow: none;
}

.form-dark option {
    background-color: var(--brand-dark);
    color: #fff;
}

.map-box {
    min-height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(135deg, #edf2ef, #dce7de);
    position: relative;
    min-height: 420px;
}

.map-line {
    position: absolute;
    background: rgba(32, 133, 236, .16);
    border-radius: 999px;
}

.map-box .line-a {
    width: 280px;
    height: 12px;
    left: 22px;
    bottom: 90px;
    transform: rotate(18deg);
}

.map-box .line-b {
    width: 220px;
    height: 12px;
    right: 18px;
    top: 110px;
    transform: rotate(-24deg);
}

.map-pin {
    position: absolute;
    width: 36px;
    height: 36px;
    background: #103d28;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    left: 58%;
    top: 54%;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
}

.map-pin::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    left: 12px;
    top: 12px;
}

.site-footer {
    background: #07110c;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer-copy,
.footer-links,
.site-footer p {
    color: rgba(255, 255, 255, .74);
}

.footer-links li+li {
    margin-top: .55rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 92px;
    }

    .search-wrap {
        margin-top: 0;
        padding-top: 1.5rem;
    }

    .contact-panel {
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges span {
        width: 100%;
    }
}

/* ========================
   OVERFLOW / RESPONSIVO GERAL
   ======================== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix search-wrap no mobile */
@media (max-width: 575px) {
    .search-card {
        border-radius: 16px;
        padding: 1rem;
    }

    .hero-section {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .finance-card {
        padding: 1.25rem 1rem;
    }

    .contact-info,
    .form-side {
        padding: 1.5rem 1rem;
    }

    .map-box {
        min-height: 280px;
    }

    .benefit-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .contact-panel {
        border-radius: 16px;
    }
}

/* ========================
   PÁGINA DE VEÍCULOS
   ======================== */
.bg-brand-deep {
    background: var(--brand-deep);
}

.veiculos-page .form-control,
.veiculos-page .form-select {
    border-radius: 12px;
    min-height: 46px;
}

.veiculos-page .btn-search {
    border-radius: 12px;
    min-height: 46px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ========================
   PÁGINA INTERNA VEÍCULO
   ======================== */
.veiculo-foto-principal {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: var(--soft);
}

@media (max-width: 767px) {
    .veiculo-foto-principal {
        height: 260px;
    }
}

.veiculo-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: .6;
    border: 2px solid transparent;
    transition: opacity .2s, border-color .2s;
}

.veiculo-thumb:hover,
.veiculo-thumb.active {
    opacity: 1;
    border-color: var(--brand);
}

.veiculo-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.spec-item i {
    font-size: 1rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.spec-label {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.spec-value {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: var(--text);
}

.veiculo-form-card {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.veiculo-descricao {
    line-height: 1.75;
}

/* Paginação na listagem */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
    color: var(--text);
    border: 1px solid var(--line);
}

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--soft);
    border-color: var(--brand);
    color: var(--brand);
}

/* =========================================================
   CAROUSEL — botões custom sem conflito com Bootstrap
   ========================================================= */
.veiculo-carousel-wrap {
    position: relative;
}

.carousel-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    transition: background .2s, transform .2s;
    cursor: pointer;
}

.carousel-ctrl:hover {
    background: var(--brand-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-ctrl-prev {
    left: -21px;
}

.carousel-ctrl-next {
    right: -21px;
}

@media (max-width: 767px) {
    .carousel-ctrl-prev {
        left: 8px;
    }

    .carousel-ctrl-next {
        right: 8px;
    }
}

/* Overlay invisível para captura de click (lightbox) */
.carousel-lightbox-trigger {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
    z-index: 5;
}

/* Miniaturas do carousel */
.veiculo-thumbs-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.veiculo-thumb-item {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s, opacity .2s;
    opacity: .65;
}

.veiculo-thumb-item.active,
.veiculo-thumb-item:hover {
    border-color: var(--brand);
    opacity: 1;
}

.veiculo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.veiculo-thumb-video-icon {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

/* =========================================================
   COOKIE / TERMS BANNER
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background: var(--brand-deep);
    border-top: 2px solid var(--brand);
    padding: .9rem 1.5rem;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    color: #e8f5e9;
    flex: 1 1 300px;
}

.cookie-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.text-brand {
    color: var(--brand) !important;
}

/* =========================================================
   LIGHTBOX MODAL
   ========================================================= */
.lightbox-dialog {
    max-width: 96vw;
    width: fit-content;
    margin: auto;
}

.lightbox-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    display: inline-flex;
    width: auto;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    transition: background .2s;
}

.lightbox-close:hover {
    background: var(--brand-dark);
}

.lightbox-img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

#lightboxModal .modal-backdrop,
#lightboxModal+.modal-backdrop {
    background: rgba(0, 0, 0, .88);
}

/* =========================================================
   POLÍTICA DE PRIVACIDADE
   ========================================================= */
.politica-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.politica-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.politica-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
}

.politica-section:last-child {
    border-bottom: none;
}

.politica-content p, .politica-content li {
    color: var(--muted);
    line-height: 1.8;
}

.politica-content h5 {
    color: var(--brand-dark);
    font-weight: 600;
}

.politica-content a {
    color: var(--brand);
}

/* =========================================================
   FLASH MESSAGES
   ========================================================= */
.flash-messages {
    position: fixed;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    width: min(520px, 92vw);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash-messages .message {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .14);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    border-left: 4px solid var(--brand);
    background: #f0fdf4;
    color: #166534;
    animation: flashIn .35s cubic-bezier(.22, .68, 0, 1.2) forwards;
}

.flash-messages .message i {
    font-size: 1.05rem;
    flex-shrink: 0;
    color: var(--brand);
}

.flash-messages .message.error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.flash-messages .message.error i {
    color: #ef4444;
}

.flash-messages .message.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.flash-messages .message.warning i {
    color: #f59e0b;
}

.flash-messages .message.flash-dismiss {
    animation: flashOut .3s ease forwards;
    pointer-events: none;
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flashOut {
    from {
        opacity: 1;
        transform: scale(1);
        max-height: 120px;
        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    to {
        opacity: 0;
        transform: scale(.95) translateY(-6px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}