:root {
    --site-navy: #002c5f;
    --site-blue: #164f83;
    --site-sky: #eaf3fb;
    --site-ink: #172638;
    --site-muted: #627184;
    --site-radius: 14px;
    --site-shadow: 0 14px 36px rgba(15, 42, 71, .12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    color: var(--site-ink);
}

/* Keep every model hero flush to the header and inside a consistent image frame. */
#content > section#subheader,
#content > section#deskhero,
#content > section#mobhero {
    display: block;
    width: 100%;
    height: clamp(260px, 31.25vw, 600px);
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    line-height: 0;
    background: #f4f7fa;
}

#content > section#subheader > img,
#content > section#deskhero > img,
#content > section#mobhero > img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    vertical-align: top;
    object-fit: cover;
    object-position: center;
}

#content > section#subheader + section,
#content > section#deskhero + section,
#content > section#mobhero + section {
    padding-top: 48px !important;
}

header.transparent.scroll-light {
    position: relative;
    z-index: 1001;
    overflow: visible;
    background: #fff;
    box-shadow: 0 6px 24px rgba(16, 38, 61, .08);
}

header #logo h4 {
    color: var(--site-navy);
    font-weight: 700;
    letter-spacing: -.03em;
}

#mainmenu > li > a.menu-item {
    transition: color .2s ease, opacity .2s ease;
}

#mainmenu > li > a.menu-item:hover,
#mainmenu li ul li a.menu-item:hover {
    color: var(--site-blue);
}

#mainmenu li ul {
    z-index: 1100;
    border: 1px solid rgba(0, 44, 95, .09);
    border-radius: 10px;
    box-shadow: var(--site-shadow);
    background: #fff !important;
    opacity: 1;
    overflow: hidden;
}

#mainmenu li ul li a.menu-item {
    padding: 11px 18px;
}

.menu_side_area .btn-main,
a.btn-main,
.btn-main {
    border-radius: 6px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.menu_side_area .btn-main:hover,
a.btn-main:hover,
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 44, 95, .18);
}

#slider .card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 44, 95, .1);
    border-radius: var(--site-radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 38, 61, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#slider .card:hover,
#slider .card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(22, 79, 131, .28);
    box-shadow: var(--site-shadow);
}

#slider .card > a:first-child {
    display: block;
    overflow: hidden;
    background: #f6f8fa;
}

#slider .card > a:first-child img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    transition: transform .35s ease;
}

#slider .card:hover > a:first-child img {
    transform: scale(1.035);
}

#slider .carName {
    padding: 12px 10px 2px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
}

#slider .carName a {
    color: var(--site-navy);
}

#slider .cardisc {
    margin-top: 8px;
    min-height: 105px;
}

#slider .specHeading {
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#slider .specContent {
    color: var(--site-ink);
    font-size: 13px;
    line-height: 1.5;
}

#slider .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--site-navy) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(0, 44, 95, .2);
}

#content section:not(#deskhero):not(#mobhero) h2 {
    color: var(--site-navy);
    font-weight: 700;
    letter-spacing: -.03em;
}

#section-car-details {
    background: linear-gradient(180deg, #fff 0%, #f5f8fb 100%);
}

#section-car-details .de-spec {
    border: 1px solid rgba(0, 44, 95, .09);
    border-radius: 12px;
    background: #fff;
    padding: 8px 18px;
}

#section-car-details .d-row {
    border-bottom: 1px solid #edf1f5;
    padding: 10px 0;
}

#section-car-details .d-row:last-child {
    border-bottom: 0;
}

.test-drive-form {
    max-width: 100%;
    margin-bottom: 48px;
    padding: 34px;
    border: 1px solid rgba(0, 44, 95, .1);
    border-radius: var(--site-radius);
    background: #fff;
    box-shadow: var(--site-shadow);
}

.test-drive-form label,
.form-border .form-label {
    color: var(--site-ink);
    font-weight: 600;
}

.test-drive-form .form-control,
.form-border .form-control {
    min-height: 48px;
    border: 1px solid #d6dee7;
    border-radius: 7px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.test-drive-form .form-control:focus,
.form-border .form-control:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 3px rgba(22, 79, 131, .14);
}

.test-drive-form .formSubmit,
.form-border input[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--site-navy);
    color: #fff;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}

.test-drive-form .formSubmit:hover,
.form-border input[type="submit"]:hover {
    background: var(--site-blue);
    transform: translateY(-1px);
}

.form-control:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(22, 79, 131, .45);
    outline-offset: 2px;
}

.site-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid rgba(0, 44, 95, .15);
    border-left: 5px solid var(--site-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--site-shadow);
    color: var(--site-ink);
}

.site-notice[data-type="success"] {
    border-left-color: #188454;
}

.site-notice[data-type="error"] {
    border-left-color: #bd3030;
}

.site-notice button {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--site-muted);
    font-size: 22px;
    line-height: 1;
}

.bayon-hero {
    position: relative;
    overflow: hidden;
    background: var(--site-navy);
    padding: 0 !important;
}

.bayon-hero > img {
    display: block;
    width: 100%;
    max-height: min(78vh, 760px);
    object-fit: cover;
}

.site-motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.site-motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    header.transparent.scroll-light #mainmenu {
        border: 1px solid rgba(0, 44, 95, .1);
        border-radius: 0 0 12px 12px;
        background: #fff;
        box-shadow: var(--site-shadow);
    }

    .test-drive-form {
        padding: 22px 16px;
    }

    #content > section#subheader,
    #content > section#deskhero,
    #content > section#mobhero {
        height: clamp(260px, 68vw, 380px);
    }

    #content > section#subheader + section,
    #content > section#deskhero + section,
    #content > section#mobhero + section {
        padding-top: 28px !important;
    }

    #slider .cardisc {
        min-height: 0;
    }
}

@media (max-width: 992px) {
    header.header-mobile.transparent.scroll-light {
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1200;
        height: auto;
        min-height: 0;
        overflow: hidden;
        background: #fff;
    }

    header.header-mobile.transparent.scroll-light:not(.menu-open) #mainmenu {
        display: none !important;
    }

    header.header-mobile.transparent.scroll-light.menu-open {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: visible;
        background: #fff;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu {
        position: fixed !important;
        top: 90px !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        margin: 0 !important;
        padding: 8px 20px 28px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #fff !important;
        box-shadow: 0 12px 24px rgba(16, 38, 61, .12);
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu > li {
        float: none;
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #edf1f5;
        text-align: left;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu > li > a.menu-item {
        display: block;
        width: 100%;
        padding: 13px 8px;
        color: var(--site-ink);
        text-align: left;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu > li > span {
        right: 4px;
        margin-top: 4px;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu li ul {
        position: relative !important;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        border: 0;
        border-top: 1px solid #edf1f5;
        border-radius: 0;
        box-shadow: none;
        background: #f7f9fc !important;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu li ul li {
        padding-left: 18px;
    }

    header.header-mobile.transparent.scroll-light.menu-open #mainmenu li ul li a.menu-item {
        padding: 10px 8px;
        color: var(--site-muted);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .site-motion-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
