@font-face {
    font-family: 'Universal Sans Text';
    src: url('./assets/police/Universal-Sans-Text-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Universal Sans Text';
    src: url('./assets/police/Universal-Sans-Text-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Universal Sans Display';
    src: url('./assets/police/Universal-Sans-Display-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Universal Sans Display';
    src: url('./assets/police/Universal-Sans-Display-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

:root{
    --icon-size: 24px;
    --black-color: #171a20;
    --blue-color: #3e6ae1;
    --dark-blue-color: #3457b1;
    --grey-color: #5c5e62;
    --blur-link: 16px;
    --light-background: rgba(0, 0, 0, 0.05);
    --pill-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Universal Sans Text', -apple-system, Arial, sans-serif;
}

body:not(.video-ended){
    overflow: hidden;
    height: 100vh;
}

body.dark-background{
    background-color: var(--black-color);
    color: white;
}

button, a{
    cursor: pointer;
}

a{
    color: inherit;
    display: inline-block;
}

h1 {
    font-family: 'Universal Sans Display', -apple-system, Arial, sans-serif;
    font-weight: 500;
}

img{
    width: 100%;
    display: block;
}

header{
    background-color: white;
}

header ul{
    list-style: none;
}

nav ul a{
    font-size: 14px;
    padding: 4px 16px;
    display: inline-block;
    color: var(--black-color);
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color .33s ease;
    border-radius: var(--pill-radius);
    line-height: 20px;
    &:hover{
        -webkit-backdrop-filter: blur(var(--blur-link));
        backdrop-filter: blur(var(--blur-link));
        background-color: var(--light-background);
    }
}

.nav-brand{
    inline-size: calc(var(--icon-size) * 5);
    margin-inline-start: calc(var(--icon-size) * 0.5);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--pill-radius);
  font-size: 14px;
  margin: 10px 0;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


.more-link{
    color: var(--black-color);
    display: none;
    align-items: center;
}

.more-link a{
    --custom-size: calc((var(--icon-size) * 1/3) + var(--icon-size));
    inline-size: var(--custom-size);
    block-size: var(--custom-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .33s ease;
    border-radius: var(--pill-radius);
    &:hover{
        -webkit-backdrop-filter: blur(var(--blur-link));
        backdrop-filter: blur(var(--blur-link));
        background-color: var(--light-background);
    }
}

.more-link svg{
    inline-size: var(--icon-size);
    block-size: var(--icon-size);
}

.toggle-mobile-menu, .mobile-menu, .desktop-menu{
    display: none;
}

header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-block-size: 56px;
}

.tesla-model {
    position: relative;
}

.tesla-model:before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.25) 20%, transparent);
}

.tesla-model img {
    width: 100%;
    display: block;
}

.tesla-model__content{
    position: absolute;
    inset: 0;
    margin: auto;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 32px;
}

.vertical-split {
    position: relative;
    width: 100vw;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.vertical-split .vertical-split__screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.5s, width 0.5s, clip-path 0.5s;
    background-size: cover;
    background-position: bottom;
}

.vertical-split__content {
    position: absolute;
    max-width: 450px;
    height: fit-content;
    inset: 0;
    margin: auto;
    color: white;
    text-align: center;
    gap: 1rem;
    /* padding: 60px 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 6px 6px 6px rgba(255, 255, 255, 0.5); */
}

.vertical-split__content {
    opacity: 0;
}

.vertical-split .vertical-split__screen.left {
    background-image: url("./assets/image/tesla-reunion-1.jpg");
    z-index: 2;
}

.vertical-split .vertical-split__screen.right {
    background-image: url("./assets/image/tesla-reunion-2.jpg");
    z-index: 1;
}

.vertical-split__title, .tesla-model__title  {
    grid-area: title;
    font-size: 5rem;
}

.vertical-split__subtitle, .tesla-model__subtitle  {
    grid-area: subtitle;
    font-size: 1.5rem;
    font-weight: 400;
}

.vertical-split__content .btn{
    grid-area: btn;
}

.vertical-split__content .btn-primary{
    grid-area: btn-primary;
}

.btn {
    padding: 16px 4px;
    text-decoration: none;
    background-color: white;
    color: var(--black-color);
    border-radius: 4px;
    box-shadow: 2px 2px 1px var(--black-color);
    transition: 0.5s;
}

.btn:hover {
    box-shadow: 0px 0px 1px var(--black-color);
}

.btn-primary {
    color: white;
    /* background-color: var(--blue-color); */
    background-color: var(--black-color);
}

.btn-primary:hover {
    /* background-color: var(--dark-blue-color); */
    background-color: var(--black-color);
}

.tesla-model__actions {
    gap: 16px 8px;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    margin: auto auto 0;
}

.tesla-model__actions .btn {
    box-shadow: none;
    padding: 4px 24px;
    line-height: 17px;
    block-size: 40px;
    font-size: 14px;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(8 * 33px);
}

.preloader-video{
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: black;
}

.preloader-video video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toggle-sound, .pass-intro {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 10px;
}

.pass-intro {
    width: fit-content;
    height: fit-content;
    right: 80px;
    bottom: 30px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.footer-eco-label img {
    display: block;
    width: 80px;
}

.footer-eco-label p {
    font-size: 12px;
    min-height: 70px;
    align-items: center;
    display: flex;
}

.footer-menu li {
    display: inline-block;
    max-inline-size: 75ch;
    text-wrap-mode: nowrap;
    font-weight: 500;
    color: var(--grey-color);
}

/* .footer-menu li:first-child, .footer-menu li a{ */
.footer-menu li, .footer-menu li a{
    text-decoration: none;
    font-size: 12px;
    color: inherit;
}

.footer-menu li:not(:last-child) {
    margin-right: 14px;
}


body.dark-background .footer-menu li {
    color: white;
}

.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social a, .social a svg {
    display: block;
}

body.dark-background .social a svg{
    fill: white;
}

/* .preloader-video, section button{
    filter: grayscale(1);
} */

section button{
    filter: grayscale(1);
}

.contact-section {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* min-height: 100vh; */
}

.contact-section .contact-logo {
    margin-bottom: 1rem;
}

.contact-section .contact-logo img {
    max-height: 150px;
}

.contact-section .contact-title {
    font-family: 'Universal Sans Display', -apple-system, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--grey-color);
    border-radius: var(--pill-radius);
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-color);
}

.contact-form button {
    align-self: center;
    box-shadow: none;
    padding: 4px 24px;
    line-height: 17px;
    block-size: 40px;
    font-size: 14px;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(8 * 33px);
    background-color: white;
    color: var(--black-color);
}


@media screen and (min-width: 1020px) {
    header {
        position: sticky;
        top: 0;
        z-index: 9;
    }

    .tesla-model {
        height: calc(100vh - (56px / 1));
        width: 100%;
    }

    .tesla-model img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }


    .desktop-menu, .more-link{
        display: inline-flex;
    }
    
    .more-link {
        padding-inline-end: calc(var(--icon-size) * 1.5);
    }

    .nav-brand {
        inline-size: calc(var(--icon-size) * 7);
        margin-inline-start: calc(var(--icon-size) * 0.5);
    }

    /* .vertical-split .vertical-split__screen.left {
        clip-path: polygon(0 50%, 0 100%, 50% 50%, 100% 0, 50% 0, 0 0);
    }

    .vertical-split .vertical-split__screen.right {
        clip-path: polygon(50% 100%, 0 100%, 50% 50%, 100% 0, 100% 50%, 100% 100%);
    }

    .vertical-split .vertical-split__screen.left.hide {
        clip-path: polygon(0 50%, 0 100%, 14% 14%, 100% 0, 50% 0, 0 0);
    }

    .vertical-split .vertical-split__screen.left.active {
        clip-path: polygon(0 50%, 0 100%, 85% 85%, 100% 0, 50% 0, 0 0);

    }

    .vertical-split .vertical-split__screen.right.hide {
        clip-path: polygon(50% 100%, 0 100%, 86% 86%, 100% 0, 100% 50%, 100% 100%);
    }

    .vertical-split .vertical-split__screen.right.active {
        clip-path: polygon(50% 100%, 0 100%, 15% 15%, 100% 0, 100% 50%, 100% 100%);
    } */

    .vertical-split__content {
        display: grid;
        grid-template-areas:
            "title title"
            "subtitle subtitle"
            "btn-primary btn";
        grid-template-columns: 1fr 1fr;
    }

    .footer-container {
        display: flex;
        align-items: flex-end;
        flex-flow: row nowrap;
        padding: 14px 24px 0;
    }

    .footer-eco-label, .footer-menu, .filler{
        flex-grow: 1;
        flex-basis: 0;
    }

    .footer-menu{
        list-style: none;
        min-height: 70px;
        align-items: center;
        display: flex;
    }
}

@media screen and (max-width: 1020px) {
    .hide-on-mobile{
        display: none !important;
    }

    .vertical-split__content{
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 1;
    }

    .vertical-split__content .btn {
        font-size: 12px;
        padding: 8px 16px;
        width: fit-content;
        margin: 0 auto;
    }
    
    .toggle-mobile-menu, .mobile-menu{
        display: block;
    }

    .toggle-mobile-menu{
        margin-inline-end: var(--icon-size);
    }

    .toggle-mobile-menu a {
        padding: 4px 16px;
        box-shadow: none;
        background: var(--light-background);
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        min-height: calc((var(--icon-size) * 1/3) + var(--icon-size));;
        align-items: center;
        display: flex;
        text-decoration: none;
        border-radius: 4px;
    }

    /* .nav-brand{
        inline-size: calc(var(--icon-size) * 4);
        margin-inline-start: var(--icon-size);
    } */

    .mobile-menu {
        position: fixed;
        background: white;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        transform: translateX(100%);
    }

    .mobile-menu li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }

    .mobile-menu a{
        text-decoration: none;
        display: block;
        width: 100%;
        padding: 16px 0;
    }

    .mobile-menu li svg {
        color: var(--grey-color);
        inline-size: var(--icon-size);
    }

    .tesla-model__content{
        padding-top: 32px;
    }
    
    .tesla-model__actions .btn {
        width: calc(4 * 33px);
    }
    
    .tesla-model {
        height: calc(50vh - (56px / 2));
        width: 100%;
    }

    .tesla-model{
        background-position: center !important;
    }

    .footer-menu li:first-child, .footer-menu li a {
        display: block;
    }

    /* .vertical-split .vertical-split__screen {
        height: 50%;
    }

    .vertical-split .vertical-split__screen.right {
        top: unset;
        bottom: 0;
    } */

    .vertical-split__title {
        font-size: 3rem;
        text-shadow: 1px 1px var(--black-color);
    }

    .vertical-split__subtitle {
        font-size: 1rem;
        text-shadow: 1px 1px var(--black-color);
    }

    .tesla-model__title {
        font-size: 2.5rem;
    }

    .tesla-model__subtitle {
        font-size: 1rem;
    }

    .footer-eco-label img {
        margin: 32px auto 0;
    }

    .footer-eco-label p {
        justify-content: center;
    }

    .footer-menu {
        display: flex;
        flex-direction: row;
        text-align: center;
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-menu li {
        position: relative;
    }

    .footer-menu li + li:not(.hide-on-mobile):before {
        content: "|";
        position: absolute;
        top: -3px;
        left: -9px;
    }
}