:root {
    --primary-border-color: #EF2828;
    --primary-background-color: 8, 8, 8;
}

* {
    font-family: Roboto, Arial, Verdana, Helvetica, sans-serif;
    color: white;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0px;
    background-color: rgb(var(--primary-background-color));
    max-width: 100%;
    overflow-x: clip;
}

ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

a {
    text-decoration: none;
}

p {
    margin: 0px;
}

a:visited {
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0px;
}

header {
    display: flex;
    justify-content: end;
    align-items: center;
    position: sticky;
    top: 0px;
    width: 100%;
    background-color: rgb(var(--primary-background-color), 0.88);
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: 0px 2px 4px rgb(var(--primary-background-color));
    min-height: 50px;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/static/images/footer-background.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-y: 120px;
    background-size: 1400px;
    background-color: black;
    width: 100%;
}

@keyframes opacity-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes home-text-animation {
    0% {
        transform: translateX(var(--translate-animation-start));
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.secondary-text-color {
    color: var(--primary-border-color);
}

.light-text-shadow {
    text-shadow: 1px 1px 3px #282828;
}

.navigation-menu-modal-button {
    display: flex;
    background-color: transparent;
    border: 0px;
    padding: 0px;
}

.navigation-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigation-list-element {
    display: flex;
}

.navigation-text {
    font-weight: 500;
    transition: 0.3s;
}

.navigation-text:hover {
    color: var(--primary-border-color);
}

.navigation-divider {
    width: 2px;
    background-color: var(--primary-border-color);
}

.navigation-desktop {
    display: none;
    gap: 1rem;
}

.navigation-phone-number {
    display: flex;
    font-size: 14px;
}

.menu-modal {
    display: flex;
    position: fixed;
    top: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgb(var(--primary-background-color));
    z-index: 999;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;
}

.menu-modal.shown {
    opacity: 1;
}

.menu-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.menu-modal-phone-container {
    position: absolute;
    bottom: 1rem;
}

.menu-modal-phone-text {
    display: flex;
    font-size: 17px;
    font-weight: 500;
}

.menu-modal-close-button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background-color: transparent;
    border: 0px;
    padding: 0px;
}

.menu-modal-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.menu-modal-list-element-text {
    font-weight: 600;
    font-size: 20px;
}

.footer-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    background-color: rgb(0, 0, 0, 0.7);
    padding: 4rem 0px 5rem 0px;
    width: 100%;
}

.footer-contact-container {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-phone-container {
    position: relative;
}

.footer-contact-phone-container:focus-within .phone-modal {
    display: block;
}

.footer-contact-button {
    display: flex;
    border: 2px solid var(--primary-border-color);
    border-radius: 50%;
    padding: 4px;
    transition: 0.4s;
    background-color: transparent;
}

.footer-contact-button:hover {
    background-color: var(--primary-border-color);
}

.footer-phone-numbers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(24px, 7vw, 28px);
    font-weight: 700;
}

.footer-phone-numbers-divider {
    background-color: var(--primary-border-color);
    width: 2px;
    height: 2rem;
    border-radius: 5px;
}

.footer-workshop-information-container {
    display: flex;
    align-items: center;
    font-size: 17px;
    justify-content: center;
    font-weight: 500;
    gap: 2rem;
    flex-direction: column;
}

.footer-workshop-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-workshop-information img {
    margin-bottom: 0.5rem;
}

.footer-divider {
    height: 2px;
    max-width: 700px;
    width: 90%;
    background-color: var(--primary-border-color);
    border-radius: 5px;
}

.home {
    z-index: 3;
}

.home-animated-text {
    opacity: 0;
}

.home-animated-text.visible {
    animation: home-text-animation 0.8s forwards;
}

.primary-home-bottom-border {
    border-bottom: 4px solid var(--primary-border-color);
    width: fit-content;
    padding-right: 0.75rem;
}

.primary-home-description {
    font-size: large;
}

.primary-home-header {
    font-size: 36px;
    text-transform: uppercase;
}

.secondary-home-header {
    font-size: 24px;
    text-transform: uppercase;
}

.small-home-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.home-header-container {
    background-image: url('/static/images/home-background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: local;
    background-size: cover;
    width: 100%;
    max-height: 700px;
    height: 100vw;
    position: relative;
}

.home-header-inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.7);
}

.home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(48px, 15vw, 64px);
    text-transform: uppercase;
}

.home-contact-phone-container {
    position: relative;
    margin-top: 1rem;
}

.home-contact-phone-container:focus-within .phone-modal {
    display: block;
}

.home-contact-button {
    display: flex;
    padding: 1rem 2.5rem;
    background-color: white;
    border-radius: 2px;
    color: black;
    font-size: large;
    font-weight: 600;
    transition: 0.4s;
    text-transform: uppercase;
    border: 0px;
}

.home-contact-button:visited {
    color: black;
}

.home-contact-button:hover {
    color: white;
    background-color: var(--primary-border-color);
}

.home-main-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 5rem 0px;
    gap: 7rem;
    box-shadow: 0px 0px 6px 2px rgb(var(--primary-background-color));
}

.home-offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
}

.home-offer-images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 100vw;
    min-height: 450px;
}

.home-offer-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 1px 1px 4px #303030;
}

.home-offer-image img {
    z-index: -1;
}

.home-offer-image-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.55);
    position: absolute;
    font-size: clamp(15px, 4.5vw, 38px);
    font-weight: 700;
    transition: 0.4s;
    text-transform: uppercase;
}

.home-offer-image-header:hover {
    background-color: rgb(0, 0, 0, 0.3);
}

.home-offer-description-container {
    width: clamp(800px, 80%, 1200px);
    max-width: 100%;
}

.home-offer-description {
    --translate-animation-start: -200%;
    max-width: 650px;
    padding: 0px 1rem;
    box-sizing: border-box;
}

.home-offer-description h2 {
    margin-bottom: 2rem;
}

.home-offer-description h3 {
    margin-bottom: 0.25rem;
}

.home-about-container {
    display: flex;
    width: clamp(800px, 80%, 1200px);
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.home-about-description {
    --translate-animation-start: 200%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 1.5rem;
    max-width: 700px;
}

.home-about-aside {
    --translate-animation-start: 200%;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    gap: 0.25rem;
    max-width: 500px;
    flex: 1;
    min-width: fit-content;
}

.phone-modal {
    display: none;
    background-color: white;
    position: absolute;
    bottom: calc(100% + 5px);
    width: 100px;
    background-color: rgb(var(--primary-background-color));
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 2px 2px 4px black;
    border-radius: 5px;
    animation: opacity-animation 0.3s;
}

.phone-modal::after {
    content: "";
    border-top: 5px solid var(--primary-border-color);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.phone-modal-numbers-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid var(--primary-border-color);
    border-radius: 5px;
}

.phone-modal-number {
    display: flex;
    flex-direction: column;
    padding: 0.25rem;
    transition: 0.3s;
    background-color: rgb(var(--primary-background-color));
    overflow: hidden;
    border-bottom: 2px solid var(--primary-border-color);
}

.phone-modal-number-text {
    font-weight: 500;
    font-size: 15px;
}

.phone-modal-number-name-text {
    font-weight: 500;
    font-size: 13px;
}

.phone-modal-number:hover {
    color: white;
    background-color: var(--primary-border-color);
}

.phone-modal-number:last-child {
    border: 0px;
}

.scroll-top-button {
    display: flex;
    padding: 0.5rem;
    position: fixed;
    border-radius: 5px;
    bottom: 1rem;
    left: 1rem;
    z-index: 50;
    background-color: var(--primary-border-color);
    box-shadow: 1px 1px 3px 0px black;
    animation: 0.3s opacity-animation;
}

.scroll-top-button.hidden {
    display: none;
}

@media only screen and (min-width: 768px) {
    header {
        padding: 0.75rem 2rem;
    }

    .navigation-desktop {
        display: flex;
    }

    .navigation-menu-modal-button {
        display: none;
    }

    .footer-workshop-information-container {
        align-items: start;
        flex-direction: row;
        gap: 4rem;
    }
    
    .footer-inner-container {
        padding-top: 10rem;
    }
    
    .home-about-description {
        max-width: 518px;
    }

    .home-header-container {
        background-attachment: fixed;
    }

    .home-about-container {
        flex-wrap: nowrap;
    }

    .home-about-aside {
        --translate-animation-start: -150%;
        max-width: none;
    }

    .scroll-top-button {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

@media only screen and (min-width: 1024px) {
    footer {
        background-position-y: 80px;
        background-size: cover;
    }

    header {
        padding: 0.75rem 10%;
        min-height: 70px;
    }

    .home-offer-images-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .home-offer-image-header {
        font-size: clamp(18px, 2.3vw, 36px);
    }
}
