@font-face {
    src: url(../fonts/static/montserrat-medium-webfont.woff) format('woff'),
    url(../fonts/static/montserrat-medium-webfont.woff2) format('woff2');
    font-family: Montserrat;
    font-weight: 500;
    font-display: swap;
}

:root {
    --yellow: #F6BA18;
    --black: #121212;
    --grey: #6a6a6a;
    --white: #FFF9F9;
    --max-width: 1350px;
    --main-padding-sides: 108px;
}

.btn {
    padding: 8px 10px;
    width: 120px;
    border-radius: 12px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--yellow);
    cursor: pointer;
    transition: ease-in-out .2s;
    border: 1px solid #12121235;
}

.btn:hover {
    color: var(--yellow);
    background-color: transparent;
    border: 1px solid var(--yellow);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    background-color: var(--white);
    scroll-behavior: smooth;
}

header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--main-padding-sides);
    background-color: white;
}

header .logo-heading {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    align-items: center;
}

header .logo-heading h1 {
    text-transform: uppercase;
    font-size: 20px;
    text-align: center;
    font-family: sans-serif;
    color: var(--black);
}

header .logo-heading img {
    width: 60px;
    height: 60px;
}

header .burger-menu {
    height: 40px;
    width: 35px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    outline: none;
    border: none;
}

header .burger-menu .burger-menu-lines {
    height: 3px;
    border-radius: 2px;
    margin: 5px;
    width: 100%;
    background-color: var(--black);
    transition: all .65s cubic-bezier(0.075, 0.82, 0.165, 1)
}

header.show .burger-menu .burger-menu-lines {
    background-color: var(--yellow) !important;
}

header.show .burger-menu .burger-menu-lines:first-child {
    transform: translateY(13px) rotate(0deg) ;
}

header.show .burger-menu .burger-menu-lines:nth-child(2) {
    opacity: 0;
}

header.show .burger-menu .burger-menu-lines:last-child {
    transform: translateY(-13px) rotate(90deg) ;
}

header.show .burger-menu {
    transform: scale(.7) rotate(45deg);
    transition: all .25s ease .05s;
}

header nav .links {
    text-decoration: none;
    color: var(--black);
    padding: 0 12px;
    transition: ease-in-out .3s;
    font-family: Montserrat, sans-serif;
    position: relative;
}

header nav .links:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: var(--yellow);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
    transform: scaleX(0);
}

header nav .links:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.highlights {
    height: 450px;
    background: white;
    display: flex;
    justify-content: center;
    background-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.8)), url("../images/car-banner.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-size:cover;
    padding: 0 var(--main-padding-sides);
}

.highlights .highlights-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
}

.highlights .highlights-container .cta {
    display: flex;
    flex-direction: column;
}

.highlights .highlights-container .cta h1 {
    font-family: Montserrat, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--yellow);
}

.highlights .highlights-container .cta h2 {
    font-family: Montserrat, sans-serif;
    font-size: 36px;
    font-weight: 700;
    padding: 0 0 16px 0;
    color: white;
}

.highlights .highlights-container .cta p {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    padding: 0 0 10px 0;
    color: var(--white);
}

.highlights .highlights-container .cta-images {
    display: block;
}

.highlights .highlights-container .cta-images img {
    filter: drop-shadow(1px 8px 4px #ffffff20);
    animation: float 4s infinite;
}

.battery-models {
    width: 100%;
    background-size: 50%;
    margin-bottom: 46px;
}

.battery-models .background-container {
    position: absolute;
    z-index: 1;
    height: 210px;
    width: 100%;
    background-color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-models .background-container h2 {
    display: flex;
    flex-direction: column;
    font-family: Montserrat, sans-serif;
    padding-bottom: 24px;
    color: #000000;
    text-align: center;
}

.battery-models .background-container h2::after {
    position: relative;
    bottom: 34px;
    z-index: -1;
    content: "Modelos";
    font-weight: 900;
    opacity: .20;
    font-size: 38px;
    color: var(--black);
}

.battery-models .slider {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 120px 46px 46px 46px;
    z-index: 2;
    position: relative;
}

.battery-models .slider .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    align-items: center;
    background-color: #FFFFFF;
    margin-right: 16px;
    user-select: none;
    margin-bottom: 12px;
    height: 200px;
    max-width: 190px;
    min-width:170px;
    border: 1px solid #00000038;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}


.battery-models .slider .card p {
    margin-top: 8px;
    font-family: Montserrat, sans-serif;
    text-align: center;
    font-size: 12px;
}

.battery-models .slider .card img {
    width: 160px; 
    height: 90px;
}


.battery-models .slider .flickity-slider {
    gap: 32px;
}

.battery-models .slider .flickity-button {
    background-color: transparent;
    width: 33px;
    height: 33px;
}

.battery-models .slider .flickity-prev-next-button.previous {
    left: 280px !important;
}

.battery-models .slider .flickity-prev-next-button.next {
    right: 280px !important;
}

.battery-models .slider .flickity-page-dots {
    display: none;
}

.about {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0 128px;
    padding-bottom: 32px !important;
    gap: 48px;
    justify-content: center;
}

.about .about-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    padding: 0 var(--main-padding-sides);
    max-width: var(--max-width);
}

.about .about-wrapper img {
    border-radius: 24px;
    width: 50%;
    height: auto;
}

.about .about-wrapper .about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about .about-wrapper .about-container h2 {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font: bold;
    margin: 16px 0;
}

.about .about-wrapper .about-container p {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    text-align:justify;
    margin-bottom: 16px;
}

.about .about-wrapper .about-container p .space {
    display: block;
    height: 8px;
}

.contact {
    height: auto;
    background-color: var(--black);
    padding: 32px var(--main-padding-sides);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    text-align: center;
    color: var(--yellow);
    font-family: Montserrat, sans-serif;
    margin-bottom: 32px;
}

.contacts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    max-width: var(--max-width);
    width: 100%;
    gap: 32px;
}

.contacts-container .google-maps {
    width: 50%;
}

.contacts-container form {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.contacts-container form label {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    color: var(--white);
}

.contacts-container form input {
    padding: 6px 12px;
    margin-bottom: 16px;
    outline: none;
    border: none;
    border-radius: 4px;
}

.contacts-container form button {
    margin-top: 12px;
    align-self: center;
}

.site-map-links {
    padding:86px;
}

.site-map-links h2 {
    font-family: Montserrat, sans-serif;
}

.site-map-links ol {
    margin-top: 24px;
}

.site-map-links ol li {
    padding: 0 8px;
}

.site-map-links ol li a {
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    color: var(--black);
}

.site-map-links ol li a:hover {
    text-decoration: underline;
    color: var(--yellow);
}

.conversion-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--yellow);
}

.conversion-texts h3 {
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    text-align: justify;
    text-transform: capitalize;
    color: var(--yellow);
}

.conversion-texts p {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    margin-top: 12px;
    text-align: justify;
    color: var(--white);
    opacity: 90%;
    width: 100%;
}

.conversion-texts .texts-container {
    max-width: var(--max-width);
    padding: 82px var(--main-padding-sides);
    background-color: var(--black);
    border-radius: 0 0 32px 32px;
}

.conversion-texts .texts-container .breadcrumb a {
    color: var(--yellow);
    text-decoration: none;
    transition: ease-in-out .3s;
} 

.conversion-texts .texts-container .breadcrumb a:hover {
    padding: 0 4px;
}

.conversion-texts .texts-container .first-text {
    margin-bottom: 32px;
}

.conversion-texts .texts-container .first-text a {
    color: var(--yellow);
    text-decoration: none;
    transition: ease-in-out .3s;
}

.conversion-texts .texts-container .first-text a:hover {
    background-color: var(--black);
    padding: 0 4px;
}

.conversion-texts .texts-container .second-text {
    padding-bottom: 22px;
}

.error-page {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1, .error-page h2 {
    font-family: montserrat, sans-serif;
}

.thank-you-page {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: montserrat, sans-serif;
}

footer {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, .2);
    background-color: var(--black);
}

footer h2 {
    font-family: Montserrat, sans-serif;
    color: var(--white);
}

@media screen and (min-width: 960px) and (max-width: 1140px) {
    :root {
        --main-padding-sides: 96px;
    }
    
    .highlights .cta {
        width: calc(60%);
    }

    .highlights .cta-images {
        width: 40%;
    }

    .highlights .cta-images img {
        width: 100%;
        height: auto;
    }
    
    .battery-models .slider {
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 768px) and (max-width: 960px) {
    :root {
        --main-padding-sides: 86px;
    }
    .highlights .cta-images {
        width: 50%;
    }

    .highlights .cta-images img {
        width: 100%;
        height: 100%;
    }

    .battery-models .slider {
        flex-wrap: wrap;
    }

    .battery-models .slider .flickity-prev-next-button.previous {
        left: 200px !important;
    }

    .battery-models .slider .flickity-prev-next-button.next {
        right: 200px !important;
    }
}

@media screen and (min-width: 576px) and (max-width: 768px) {
    :root {
        --main-padding-sides: 74px;
    }
    
    .battery-models .slider {
        flex-wrap: wrap;
    }

    .battery-models .slider .flickity-prev-next-button.previous {
        left: 120px !important;
    }

    .battery-models .slider .flickity-prev-next-button.next {
        right: 120px !important;
    }
}

@media screen and (max-width: 768px) {
    .highlights .cta .btn {
        padding: 10px 0;
    }

    header nav {
        display: none !important;
        position: fixed;
        z-index: 5;
    }

    header .burger-menu {
        display: flex !important;
    }

    header.show nav {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: 100%;
        top: 0%;
        left: 0;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, .95);
        gap: 32px;
    }

    header.show nav a {
        color: var(--white);
        font-size: 40px;
    }

    header.show .burger-menu {
        z-index: 99;
    }

    .highlights .cta {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .highlights .cta h2 {
        font-size: 32px;
    }

    .highlights .cta-images {
        display: none !important;
    }
    
    .battery-models .slider {
        flex-wrap: wrap;
    }

    .about .about-wrapper {
        flex-direction: column;
    }

    .about .about-wrapper img {
        width: 100%;
    }

    .about .about-wrapper .about-container {
        width: 100%;
    }

    .about .about-wrapper .about-container h2 {
        font-size: 32px;
    }

    .about .about-wrapper .about-container p {
        font-size: 14px;
        font-weight: 200;
        text-align: justify;
        margin-bottom: 24px;
    }

}

@media screen and (max-width: 576px) {
    :root {
        --main-padding-sides: 8px;
    }
    
    .highlights {
        padding: 46px;
    }

    .highlights .cta h1 {
        text-align: center;
        margin-bottom: 10px;
    }

    .highlights .cta h2 {
        text-align: center;
    }

    .battery-models .slider {
        flex-wrap: wrap;
    }

    .battery-models .slider .flickity-prev-next-button.previous {
        left: 100px !important;
    }

    .battery-models .slider .flickity-prev-next-button.next {
        right: 100px !important;
    }

    .about .about-wrapper {
        padding: 0 46px 0 46px;
    }

    .contact {
        padding: 46px;
    }
    
    .contact .contacts-container {
        flex-direction: column;
        width: 100% !important;
    }

    .contact .contacts-container .google-maps {
        width: 100%;
        height: 250px;
    }

    .contact .contacts-container .contact-form {
        width: 100%;
    }

    .contact .contacts-container .contact-form label {
        font-weight: 500;
    }
    
    .conversion-texts .texts-container {
        padding: 43px 46px;
    }
    
    .conversion-texts .texts-container .second-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer h2 {
        text-align: center;
    }

}
