/* Root color variables */
:root {
    --primary-color: #FFCB04;
    --secondary-color: #012E72;
    --light-bg: #F1F1F1;
    --black: #000000;
    --white: #fff;
    --titlegray: #8B8B8B;
    --footerbg: #092255;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Book.eot');
    src: url('assets/fonts/Gotham-Book.eot?#iefix') format('embedded-opentype'),
        url('assets/fonts/Gotham-Book.woff2') format('woff2'),
        url('assets/fonts/Gotham-Book.woff') format('woff'),
        url('assets/fonts/Gotham-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/GothamBold.eot');
    src: url('assets/fonts/GothamBold.eot?#iefix') format('embedded-opentype'),
        url('assets/fonts/GothamBold.woff2') format('woff2'),
        url('assets/fonts/GothamBold.woff') format('woff'),
        url('assets/fonts/GothamBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Global styles */
body, html {
    font-size: clamp(15px, 1vw, 19px);
    font-family: 'Gotham';
    font-weight: normal;
    font-style: normal;
    line-height: 1.3;
    color: var(--black);
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

.siteSection_wrapper {
    padding-inline: 12vw;
}

.siteContent {
    padding-block: 7rem;
}

.siteBtn,
.siteBtn:focus,
.siteBtn:active {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--black);
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5rem;
    box-shadow: none;
    outline: none;
    min-width: 14.4rem;
    transition: all 0.3s ease-in-out;
}

.siteBtn:hover {
    background-color: var(--black);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.siteBtn_alt,
.siteBtn_alt:focus,
.siteBtn_alt:active {
    background-color: var(--black);
    color: white;
    border-color: var(--black);
}

.siteBtn_alt:hover {
    background-color: white;
    color: var(--black);
    border-color: var(--black);
}

.siteBtn_cta,
.siteBtn_cta:focus,
.siteBtn_cta:active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.siteBtn_cta:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.siteBtn_submit,
.siteBtn_submit:focus,
.siteBtn_submit:active {
    color: white;
}

.siteLogo {
    height: auto;
    width: 15rem;
}

* {
    position: relative;
    z-index: 1;
}

.siteTitle {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--titlegray);
    text-transform: uppercase;
}

.siteDescription {
    font-size: 2.67rem;
    font-weight: normal;
}

/* Header styles */
.siteHeader {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/*Banner styles */
.siteBanner {
    background: black;
    padding-block: 7rem;
    overflow: hidden;
}

.siteBanner .bannerContent {
    width: 28rem;
    gap: 2.5rem;
    z-index: 2;
}

.siteBanner .bannerContent::after {
    position: absolute;
    content: '';
    inset: -7rem 2rem -7rem -7rem;
    background: linear-gradient( to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) );
    z-index: -1;
}

.siteBanner .bannerImage_1 {
    width: 68%;
}

.siteBanner .bannerOverlay {
    position: absolute;
    right: 0;
    top: -7rem;
    height: calc(100% + 14rem);
    transform: translateX(13%);
}

/* Video styles */

.videoContent {
    max-width: 80%;
    margin: 0 auto;
    border-radius: 2rem;
    overflow: hidden;
}

#youtubePlayer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.videoSection::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    content: '';
    z-index: -1;
    background-color: var(--light-bg);
}

/* Advantages styles */

.advantagesSection {
    background: var(--light-bg);
}

.iconBox {
    padding-top: 2rem;
}

.iconImage {
    width: 5.7rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.iconBox:hover .iconImage {
    background: var(--primary-color);
}

.iconTitle {
    font-size: 1.16rem;
    font-weight: bold;
    margin: 0;
}

.iconDescription {
    font-size: 1.16rem;
    margin: 0;
}

/* Performance section styles */

.performanceSection {
    background-color: var(--black);
    background-image: url('assets/images/image_005.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.performanceSection .siteDescription {
    color: var(--primary-color);
}

.performanceSection p {
    font-size: 1.16rem;
    max-width: 63%;
}

.performanceSection img {
    max-width: 85%;
}

/* Partnerships section styles */

.partnersSection {
    background: var(--secondary-color);
    overflow: hidden;
}

.partnersImage {
    width: 19rem;
}

.partnersImage::after {
    position: absolute;
    content: '';
    top: -0.5rem;
    left: -1.5rem;
    right: -1.5rem;
    bottom: -0.5rem;
    background: #519BF588;
    border-radius: 15%;
    filter: blur(25px);
}

/* CTA section styles */

.ctaSection {
    background: var(--primary-color);
}

/* Footer styles */
.siteFooter {
    background: var(--footerbg);
}

.siteFooter_copy {
    background: var(--black);
}

.footerDivider {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 0.5rem 0;
}

.socialLinks {
    gap: 0.75rem;
}

.socialLinks img {
    width: 2rem;
}

/* Modal Styles */
.modal-backdrop {
    background-color: var(--black);
    opacity: 0.95 !important;
}

.modal-backdrop.show {
    opacity: 0.8;
}

#dealershipModal .form-label {
    color: var(--black);
    font-weight: bold;
}

#dealershipModal .form-control {
    border: 1px solid #1118;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background-color: transparent !important;
    border-radius: 1rem;
}

#dealershipModal .form-control:focus {
    border-color: var(--black);
    box-shadow: none;
    outline: none;
}

.modal-title {
    font-size: 2rem;
}

.btn-close {
    position: absolute;
    z-index: 2;
    right: 1rem;
    top: 20%;
}

/* Form Validation Styles */
.parsley-errors-list {
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
    color: #dc3545;
    font-size: 0.8em;
}

.parsley-error {
    border-color: #dc3545 !important;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

#dealershipForm .spinner-border {
    margin-left: 8px;
}

/* table styles */

.classSection {
    background: var(--light-bg);
}

.classTable {
    width: 100%;
}

table {
    font-size: 1.4rem;
}

table tr {
    display: flex;
    width: 100%;
}

table tbody tr {
    background: #fff8;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 8px;
    margin-top: 0.75rem;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}

table tbody tr:hover {
    background: #fff;
    box-shadow: #8cbdf8 0px 0px 12px;
}

table thead th {
    padding: 0.5em;
    width: 33.33%;
    text-align: center;
}

table tbody td {
    padding: 0.8em;
    flex-grow: 1;
    width: 33%;
    text-align: center;
}

table tbody td:nth-child(2) {
    border-left: 1px solid #0002;
    border-right: 1px solid #0002;
}

table tbody tr:hover td:nth-child(2),
.classTable tr.slide.active td:nth-child(2) {
    border-color: #8cbdf8;
}

/* Responsive styles */

@media( max-width: 1400px ) {
    .siteSection_wrapper {
        padding-inline: 8vw;
    }
}

@media( max-width: 1199px ) {
    .videoContent {
        max-width: 100%;
        border-radius: 2rem;
    }
    .performanceSection img {
        max-width: 100%;
    }
    .performanceSection p {
        max-width: 100%;
    }
}

@media( max-width: 767px ) {
    body, html {
        font-size: 13px
    }
    .siteLogo {
        width: 15rem;
    }
    .siteSection_wrapper {
        padding-inline: 4vw;
    }
    .siteHeader .siteBtn {
        min-width: auto;
    }
    .siteHeader .siteLogo {
        width: 12rem;
    }
    .siteDescription {
        font-size: 2rem;
    }
    .iconBox {
        padding-top: 0rem;
    }
    .siteBanner {
        padding-block: 0rem;
    }
    .siteBanner .bannerContent {
        max-width: 28rem;
        width: 100%;
        gap: 20rem;
        padding-block: 4rem;
    }
    .siteBanner .bannerContent::after {
        inset: 0rem -30rem 0rem -30rem;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) );
    }
    .siteBanner .bannerOverlay {
        position: absolute;
        right: 50%;
        top: 60%;
        height: 80%;
        width: auto;
        transform: translate(38%, -50%);
    }
    table {
        font-size: 1.1rem;
    }

}



@media( max-width: 390px) {
    .siteHeader .siteBtn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        font-size: 1.2rem;
    }

    .siteFooter {
        margin-bottom: 3rem;
    }
}

/* Mobile table slider styles */
@media (max-width: 567px) {
    .table-container {
        position: relative;
        overflow: visible;
        padding-bottom: 2rem;
        perspective: 1000px;
        transform-style: preserve-3d;
        height: 390px;
    }
    
    .classTable thead {
        display: none;
    }
    
    .classTable .slides-container {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.5s ease-in-out;
    }
    
    .classTable tr.slide {
        position: absolute;
        width: 100%;
        flex-direction: column;
        transition: all 0.5s ease-in-out;
        pointer-events: none;
        transform-origin: center top;
        background: white;
        will-change: transform, opacity;
        text-align: center;
        padding: 2rem;
    }
    
    .classTable tr.slide.active {
        pointer-events: all;
    }
    
    /* Base styles for the slides, transforms handled by JS */
    .classTable tr.slide {
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
    
    .classTable tbody td {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1em;
        border: none;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.3rem;
    }
    
    .classTable tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
    }

    .slide-controls {
        position: absolute;
        bottom: -3rem;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
        z-index: 10;
    }
    
    .slide-controls button {
        background: none;
        border: none;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0.6;
    }
    
    .slide-controls button:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    table tbody td {
        border: none;
    }

    table tbody td:nth-child(2) {
        border-left: none;
        border-right: none;
        border-top: 1px solid #0002;
        border-bottom: 1px solid #0002;
    }

    .classTable {
        width: 100%;
        max-width: 280px;
        margin: 0 auto
    }
    
}