:root {
    --map-height: 45vh;
}

html {
    overflow-y: scroll;
}

body {
    background: #f7f7f7;
}

header {
    position: fixed !important;
    top: calc(100vh - 120px);
    width: 100%;
    font-weight: 500;
    flex-direction: column;
    justify-content: start !important;
    background-color: transparent !important;
    gap: 70px;
    height: 0;
}

header > .brand {
    position: relative;
    left: 0;
}

header .brand h1 {
    color: #323232;
    font-size: 28px;
}

header > .fc {
    gap: 30px;
}

header .nav {
    box-shadow: 0 0 8px 1px rgba(0, 0, 0, .2);
}

.dropdown:hover {
    min-height: 100px;
    margin-top: -50px;
}

.dropdown-content {
    left: -24px;
    top: unset;
    bottom: 80px;
}

.map {
    height: var(--map-height);
    position: relative;
}

gmp-map {
    height: 100%;
    width: 100%;
    filter: brightness(50%);
    transition: filter 500ms;
    transition-delay: 1s;
}

.map-overlay {
    position: absolute;
    color: rgb(230, 230, 230);
    top: 0;
    height: 100%;
    width: 100%;
    font-size: 50px;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 500ms;
    transition-delay: 1s;
    flex-direction: column;
    text-align: center;
}

.map-overlay > span:last-child {
    font-size: 26px;
}

gmp-map.hover {
    filter: brightness(100%);
    transition: 500ms;
    transition-delay: 0s;
}

gmp-map.hover ~ .map-overlay {
    opacity: 0;
    transition: 300ms;
    transition-delay: 0s;
}

.contact-container {
    line-height: 22px;
    height: calc(100vh - var(--map-height) - 8vh);
    justify-content: space-evenly;
}

.contact-container > div {
    width: 250px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.contact-container > div:last-child > a {
    cursor: pointer;
}

.contact-container a {
    height: 0;
    text-decoration: underline;
}

.contact-container > div > span:first-of-type {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
}

.contact-container > div > :last-child {
    margin-top: 24px;
}

.contact-container > div > div {
    width: 100px;
    aspect-ratio: 1/1;
    background-color: #c7c7c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px
}

.contact-container img {
    width: 42px;
    aspect-ratio: 1/1;
}

.contact-container > div:nth-child(3) img {
    width: 46px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content > div {
    width: 800px;
    height: 400px;
    background: #d8dbce;
    padding: 40px 50px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content > div > div:first-child {
    display: flex;
    justify-content: space-between;
}

.modal-content .col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 44%;
}

.modal-content > div > .col {
    flex-grow: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    height: 28px;
    width: 28px;
    cursor: pointer;
    background-color: transparent;
}

.close-btn > img {
    height: 100%;
    width: 100%;
}

.modal input,
.modal textarea {
    background-color: #f5f5f5;
    color: #242424;
    padding: 12px 8px 8px 8px;
    min-height: 40px;
    border-radius: 4px;
    outline: none;
    border: none;
    line-height: 1.15;
    box-shadow: 0px 8px 20px -18px;
    border-bottom: 2px solid transparent;
    font-size: 17px;
    resize: none;
}

.modal-content textarea {
    height: 100%;
}

.modal input:focus,
.modal textarea:focus {
    border-bottom: 2px solid #5b5fc7;
    border-radius: 4px 4px 2px 2px;
}

.modal .fc.end {
    justify-content: end;
}

.modal .send-btn {
    background: #bbbfac;
    border: 0;
    padding: 10px 20px;
    width: 200px;
    border-radius: 4px;
    font-family: "Rubik", sans-serif;
    box-shadow: 0px 3px 12px -8px;
    transition: filter 200ms;
    font-size: 15px;
}

.modal .send-btn:hover {
    filter: brightness(90%)
}

.back-to-home {
    display: none;
}

@media only screen and (max-width: 1300px) {
    .contact-container > div > div {
        width: 90px;
    }

    .contact-container img {
        width: 38px;
    }

    .contact-container > div > :last-child {
        width: 175px;
    }
}

@media only screen and (max-width: 1000px) {
    header {
        display: none !important;
    }

    .back-to-home {
        display: block;
        text-align: center;
        margin-bottom: 100px;
    }

    .back-to-home a {
        background: #95cbb6;
        padding: 16px 30px;
        border-radius: 8px;
        font-size: 20px;
        border: none;
        text-decoration: none;
    }

    .contact-container {
        flex-wrap: wrap;
        row-gap: 200px;
        margin-top: 100px;
        height: fit-content;
        margin-bottom: 80px;
    }

    .contact-container > div > :last-child {
        width: unset;
    }
}

@media only screen and (max-width: 450px) {
    .contact-container {
        row-gap: 180px;
    }
}

@media only screen and (max-height: 900px) and (min-width: 1000px) {
    :root {
        --map-height: 38vh;
    }

    .contact-container {
        height: calc(100vh - var(--map-height) - 24vh);
    }
}

@media only screen and (pointer:coarse) {
    .map-overlay {
        display: none;
    }

    gmp-map {
        filter: none !important;
        transition: none;
    }

    .contact-container > div > :last-child {
        font-size: 18px;
    }

    .contact-container > div > span:first-of-type {
        font-size: 22px;
    }
}