/* ==========================================================================
   NEVO Q05 model landing page — page-scoped styles
   Loaded after Bootstrap 5.3, so Bootstrap utilities/components are the
   default; rules here only cover what Bootstrap can't express (the hero
   overlay, color swatches, gallery thumbnails, model-select cards, tokens).
   ========================================================================== */

/* Custom properties are scoped to .model-landing (not :root) since this
   stylesheet is only loaded on this page — no need to leak variables into
   global scope or risk colliding with the site's existing tokens. */
.model-landing {
    /* Typography scale (font-family intentionally omitted — inherits
       whatever the project's base stylesheet already sets) */
    --nevo-font-size-xs: 13px;
    --nevo-font-size-sm: 14px;
    --nevo-font-size-md: 16px;
    --nevo-font-size-lg: 18px;
    --nevo-font-size-xl: 20px;
    --nevo-font-size-2xl: 24px;
    --nevo-font-size-3xl: 28px;
    --nevo-font-size-4xl: 32px;

    /* Color */
    --nevo-color-text-primary: #ffffff;
    --nevo-color-text-secondary: #004680;
    --nevo-color-text-tertiary: #1e1e1e;
    --nevo-color-text-inverse: #181d27;
    --nevo-color-surface-base: #000000;
    --nevo-color-surface-muted: #fafafa;
    --nevo-color-surface-strong: #0b457f;
    --nevo-color-border-default: #e2e8f0;
    --nevo-color-border-strong: #d0d5dd;

    /* Spacing */
    --nevo-space-1: 4px;
    --nevo-space-2: 8px;
    --nevo-space-3: 11px;
    --nevo-space-4: 12px;
    --nevo-space-5: 14px;
    --nevo-space-6: 16px;
    --nevo-space-7: 18px;
    --nevo-space-8: 20px;

    /* Radius / shadow / motion */
    --nevo-radius-xs: 4px;
    --nevo-radius-sm: 8px;
    --nevo-radius-md: 16px;
    --nevo-radius-lg: 100px;
    --nevo-shadow-1: rgba(16, 24, 40, 0.05) 0px 1px 2px 0px;
    --nevo-shadow-2: rgba(10, 13, 18, 0.08) 0px 4px 6px -1px, rgba(10, 13, 18, 0.06) 0px 2px 4px -2px;
    --nevo-motion-instant: 300ms;
    --nevo-motion-fast: 600ms;

    color: var(--nevo-color-text-tertiary);
}


.model-landing .section-padder,
.model-landing section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.model-section-heading {
    font-size: var(--nevo-font-size-3xl);
    font-weight: 700;
    color: var(--nevo-color-text-secondary);
    letter-spacing: 0.03em;
    border-bottom: 1px solid #d5d7da;
    padding-bottom: 10px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .model-section-heading {
        font-size: var(--nevo-font-size-4xl);
    }
}

/* Focus visibility (WCAG 2.2 AA) — never remove outlines, only restyle them */
.model-landing a:focus-visible,
.model-landing button:focus-visible,
.model-landing input:focus-visible,
.model-landing select:focus-visible,
.model-landing .model-select-card input:focus-visible+.model-select-card__thumb {
    outline-offset: 2px;
    border-radius: var(--nevo-radius-xs);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.model-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--nevo-color-surface-base);
}

.model-hero-media picture,
.model-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.model-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.6) 100%);
}

.model-hero-content {
    position: relative;
    z-index: 1;
    color: var(--nevo-color-text-primary);
    padding-top: var(--nevo-space-8);
    padding-bottom: var(--nevo-space-8);
}

.model-hero-brand {
    display: block;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: var(--nevo-font-size-xl);
    margin-bottom: var(--nevo-space-4);
}

.model-hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: var(--nevo-space-4);
}

.model-hero-ambassador {
    display: inline-block;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-left: var(--nevo-space-6);
    vertical-align: middle;
}

.model-hero-tagline {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: var(--nevo-font-size-lg);
    margin-bottom: 0;
}

/* ==========================================================================
   MODEL OVERVIEW
   ========================================================================== */
.model-overview-name {
    font-size: var(--nevo-font-size-2xl);
    font-weight: 700;
    margin-bottom: 0;
}

.model-overview-price-label {
    font-size: var(--nevo-font-size-xs);
    color: var(--nevo-color-text-tertiary);
    opacity: 0.7;
}

.model-overview-price-value {
    font-size: var(--nevo-font-size-xl);
    font-weight: 700;
    color: var(--nevo-color-text-secondary);
}

.model-specs-list {
    margin: var(--nevo-space-8) 0;
    border-top: 1px solid var(--nevo-color-border-default);
}

.model-specs-list li {
    padding: var(--nevo-space-5) 0;
    border-bottom: 1px solid var(--nevo-color-border-default);
    font-size: var(--nevo-font-size-md);
}

.model-specs-list__label {
    color: var(--nevo-color-text-tertiary);
    opacity: 0.75;
}

.model-specs-list__value {
    font-weight: 700;
    color: var(--nevo-color-text-inverse);
}

.model-download-btn {
    border-radius: var(--nevo-radius-lg);
    padding: var(--nevo-space-4) var(--nevo-space-8);
    font-weight: 600;
    color: var(--nevo-color-surface-strong);
    border-color: var(--nevo-color-surface-strong);
    transition: background-color var(--nevo-motion-instant) ease, color var(--nevo-motion-instant) ease;
}

.model-download-btn:hover,
.model-download-btn:focus-visible {
    background-color: var(--nevo-color-surface-strong);
    color: var(--nevo-color-text-primary);
}

.model-color-image img {
    max-width: 100%;
    height: auto;
}

.model-color-name {
    font-size: var(--nevo-font-size-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--nevo-color-text-tertiary);
    margin: var(--nevo-space-4) 0 var(--nevo-space-6);
}

/* Color swatches: plain buttons driven entirely by nevo-q05.js
   (data-src / data-color-name), no dependency on other pages' JS. */
.model-color-swatches {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--nevo-space-4);
    padding: 0;
    margin: 0;
}

.model-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 1px;
    background-color: var(--nevo-color-surface-muted);
    cursor: pointer;
    transition: border-color var(--nevo-motion-instant) ease, transform var(--nevo-motion-instant) ease;
}

.model-color-swatch::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: var(--swatch-color, #cccccc);
}

.model-color-swatch:hover {
    transform: scale(1.08);
}

.model-color-swatch.active {
    border-color: var(--nevo-color-surface-strong);
}

.model-color-img {
    transition: opacity var(--nevo-motion-instant) ease;
}
.model-overview-section .model-section-heading{
    margin-inline: 0;
    max-width: 100%;
}

/* ==========================================================================
   PROMOTION BANNER
   ========================================================================== */
.model-promotion-card {
    background-color: var(--nevo-color-surface-muted);
    border-radius: var(--nevo-radius-md);
    overflow: hidden;
    box-shadow: var(--nevo-shadow-1);
}

.model-promotion-card__text {
    padding: 5em !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #eaf2fb;
}

.model-promotion-card__title {
    color: var(--nevo-color-text-secondary);
    font-weight: 500;
    font-size: var(--nevo-font-size-3xl);
    border-bottom: 1px solid #5facf9;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

.model-promotion-card__desc,
.model-promotion-card__note {
    font-size: var(--nevo-font-size-md);
    margin-bottom: var(--nevo-space-8);
}

.model-promotion-card__btn {
    align-self: flex-start;
    border-radius: var(--nevo-radius-lg);
    background-color: var(--nevo-color-surface-strong);
    border-color: var(--nevo-color-surface-strong);
    padding: var(--nevo-space-4) var(--nevo-space-8);
    font-weight: 600;
}

.model-promotion-card__btn:hover,
.model-promotion-card__btn:focus-visible {
    background-color: var(--nevo-color-text-secondary);
    border-color: var(--nevo-color-text-secondary);
}

.model-promotion-card__media {
    min-height: 220px;
}

.model-promotion-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ==========================================================================
    GALLERY
*/

.galleryslider img{
    max-width: 1200px;
    margin-bottom: 24px;
}
.galleryslider {
    position: relative;

    .swiper-button-next,
    .swiper-button-prev {
        color: black;
        border-radius: 50%;
        position: absolute;
        top: 50%;

        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

        transition: background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

        svg {
            width: 10px;
        }

        &:hover {
            background: #fff;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
        }
    }

    .swiper-button-next {
        right: 17.3%;
    }
    .swiper-button-prev {
        left: 17.3%;
    }
}

/* ==========================================================================
   CONTACT / LEAD FORM
   ========================================================================== */
.model-contact-section {
    background-color: #F2F4F7;
}

.model-contact-card {
    background-color: #ffffff;
    border-radius: var(--nevo-radius-md);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--nevo-shadow-2);
}

.model-contact-card__title {
    color: var(--nevo-color-text-secondary);
    font-weight: 700;
    font-size: var(--nevo-font-size-2xl);
    margin-bottom: var(--nevo-space-8);
}

.model-contact-form .form-label,
.model-contact-form legend {
    font-weight: 600;
    font-size: var(--nevo-font-size-sm);
    color: var(--nevo-color-text-tertiary);
    margin-bottom: var(--nevo-space-2);
}

.model-contact-form .form-control,
.model-contact-form .form-select {
    border-radius: var(--nevo-radius-sm);
    border-color: var(--nevo-color-border-strong);
    padding: var(--nevo-space-4) var(--nevo-space-6);
    min-height: 48px;
}

/*.model-contact-form .form-control:focus,*/
/*.model-contact-form .form-select:focus {*/
/*    border-color: var(--nevo-color-surface-strong);*/
/*    box-shadow: 0 0 0 0.2rem rgba(11, 69, 127, 0.15);*/
/*}*/

.model-contact-form__or {
    font-size: var(--nevo-font-size-sm);
    color: var(--nevo-color-text-tertiary);
    opacity: 0.6;
    padding: 0 var(--nevo-space-2);
}

.model-search-input {
    position: relative;
}

.model-search-input i {
    position: absolute;
    left: var(--nevo-space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--nevo-color-text-tertiary);
    opacity: 0.5;
}

.model-search-input .form-control {
    padding-left: var(--nevo-space-8);
}

/* Model select radio-cards: native input kept (not display:none) so keyboard
   and screen-reader users get the real control; it's visually hidden and the
   card face reflects :checked / :focus-visible state instead. */
.model-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--nevo-space-4);
}

@media (min-width: 576px) {
    .model-select-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.model-select-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nevo-space-2);
    padding: var(--nevo-space-5);
    border: 1px solid var(--nevo-color-border-default);
    border-radius: var(--nevo-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--nevo-motion-instant) ease, background-color var(--nevo-motion-instant) ease;
}

.model-select-card input[type="radio"] {
    position: absolute;
    top: var(--nevo-space-2);
    left: var(--nevo-space-2);
    width: 16px;
    height: 16px;
    margin: 0;
}

.model-select-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.model-select-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-select-card__name {
    font-size: var(--nevo-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.model-select-card:hover {
    border-color: var(--nevo-color-surface-strong);
}

.model-select-card:has(input:checked) {
    border-color: var(--nevo-color-surface-strong);
    background-color: #eaf2fb;
}

.model-select-card:has(input:focus-visible) {
    outline: 3px solid var(--nevo-color-surface-strong);
    outline-offset: 2px;
}

.model-consent-check .form-check-label {
    font-size: var(--nevo-font-size-xs);
    color: var(--nevo-color-text-tertiary);
    opacity: 0.85;
}

.model-consent-check .form-check-label a {
    color: var(--nevo-color-text-secondary);
}

.model-contact-form__submit {
    border-radius: var(--nevo-radius-lg);
    background-color: var(--nevo-color-surface-strong);
    border-color: var(--nevo-color-surface-strong);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: var(--nevo-space-5) var(--nevo-space-8);
}

.model-contact-form__submit:hover,
.model-contact-form__submit:focus-visible {
    background-color: var(--nevo-color-text-secondary);
    border-color: var(--nevo-color-text-secondary);
}

.model-contact-disclaimer {
    margin-top: var(--nevo-space-8);
    font-size: var(--nevo-font-size-xs);
    color: var(--nevo-color-text-tertiary);
    opacity: 0.7;
}

.model-contact-disclaimer a {
    color: var(--nevo-color-text-secondary);
}

.model-contact-promo {
    overflow: hidden;
    text-align: center;
    padding-bottom: var(--nevo-space-8);
}

.model-contact-promo__image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--nevo-space-6);
}

.model-contact-promo__name {
    color: var(--nevo-color-text-secondary);
    font-weight: 700;
    font-size: var(--nevo-font-size-4xl);
    margin-bottom: var(--nevo-space-2);
    text-transform: uppercase;
}

.model-contact-promo__price {
    font-weight: 700;
    font-size: var(--nevo-font-size-4xl);
    margin-bottom: 0;
}

.model-contact-promo__price .model-price {
    font-weight: 700;
    font-size: var(--nevo-font-size-4xl);
    margin-right: var(--nevo-space-2);
    color: #000000;
}
.model-contact-promo__price span{
    font-size: var(--nevo-font-size-md);
    font-weight: 400;
}
.model-contact-vehicle{
    position: absolute;
    bottom: -50%;
    left: 0;
}
.model-contact-vehicle-info{
    margin-top: 140px;
}
/*.label-border{*/
/*    border-bottom: 1px solid #f1f1f1;*/
/*    padding-bottom: 8px;*/
/*}*/

.gallerythumbslider .swiper-slide img{
    opacity: 0.6;
}
.gallerythumbslider .swiper-slide-thumb-active img{
    opacity: 1;
}

@media (min-width: 992px) {
    .model-contact-promo {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}
/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .model-landing * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


@media (max-width: 575px){
    .model-promotion-card__text{
        padding: 3em !important;
    }
    .swiper-button-next {
        right: 1% !important;
    }
    .swiper-button-prev {
        left: 1% !important;
    }
    .galleryslider img{
        max-width: 600px !important;
    }
    .model-overview-section .btn-primary{
        width: 100%;
    }
}
