:root {
    --primary-background-color: 8, 8, 8;
    --primary-text-color: white;
    --primary-border-color: rgb(242, 18, 18);
    --secondary-text-color: rgb(242, 18, 18);
    --secondary-background-color: rgb(242, 18, 18);
}

* {
    font-family: Roboto, Arial, Verdana, Helvetica, sans-serif;
    color: var(--primary-text-color);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: rgb(var(--primary-background-color));
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
    max-width: 100%;
}

ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

a {
    text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0px;
}

button {
    cursor: pointer;
    background-color: transparent;
    border: 0px;
    padding: 0px;
}

a:visited {
    text-decoration: none;
}

main {
    display: flex;
    flex-direction: column;
}

.secondary-text {
    color: var(--secondary-text-color);
}

.secondary-header {
    font-size: 34px;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--secondary-background-color);
    width: fit-content;
    padding-right: 1rem;
}

.tertiary-header {
    font-size: 28px;
    text-transform: uppercase;
}

.header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0px;
    padding: 1.25rem;
    background-color: rgb(var(--primary-background-color), 0.9);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0px 0px 4px 2px black;
    z-index: 50;
}

.call-button {
    --button-background-color: #F8F8F8;
    display: flex;
    width: fit-content;
    background-color: var(--button-background-color);
    color: black;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 18px;
    border-radius: 2px;
    transition: 0.3s;
    margin-top: 2rem;
}

.call-button:hover {
    color: var(--button-background-color);
    background-color: var(--secondary-background-color);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-text {
    transition: 0.3s;
    font-size: 19px;
    font-weight: 600;
}

.nav-text:hover {
    color: var(--secondary-text-color);
}

.nav-divider {
    width: 2px;
    height: 100%;
    background-color: var(--primary-border-color);
}

.nav-phone-number-container {
    display: flex;
    gap: clamp(0.5rem, 1.75vw, 1.5rem);
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 5%;
    height: 30px;
}

.nav-phone-number {
    font-size: 16px;
}

.nav-mobile {
    display: none;
}

#openNavMenuButton {
    display: flex;
}

#navMenuModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgb(var(--primary-background-color));
    animation: 0.4s nav-menu-modal-animation;
}

@keyframes nav-menu-modal-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#navMenuModal.hidden {
    display: none;
}

#closeNavMenuButton {
    display: flex;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

.nav-menu-modal-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.nav-menu-modal-list-element {
    font-size: 26px;
    font-weight: 500;
}

.nav-menu-modal-phone-number {
    position: absolute;
    bottom: 2rem;
    font-size: 26px;
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: 3px solid var(--primary-border-color);
}

.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: clamp(500px, 85vw, 700px);
    width: 100vw;
    position: relative;
    background-image: url('/static/images/landing-background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position-y: -90px;
    box-shadow: 0px 0px 3px 1px rgb(var(--primary-background-color)) inset;
}

.landing-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.6);
}

.landing-content-primary-header {
    font-weight: 600;
    font-size: clamp(36px, 11vw, 64px);
    text-transform: uppercase;
    text-shadow: 1px 1px 3px black;
}

.landing-content-secondary-header {
    text-transform: uppercase;
    font-size: 16px;
    text-shadow: 1px 1px 3px black;
}

.main-content-container {
    display: flex;
    flex-direction: column;
    background-color: rgb(var(--primary-background-color));
    padding: 4rem 0px;
    gap: 8rem;
    box-shadow: 0px 0px 4px 2px rgb(var(--primary-background-color));
    z-index: 3;
}

.primary-text-box {
    padding: 0px clamp(1rem, 10vw, 9rem);
    max-width: 600px;
    font-size: 18px;
}

.information-cards-container {
    width: 100%;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0px 0.5rem;
    box-sizing: border-box;
}

.information-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0E0E0E;
    width: clamp(290px, 90vw, 350px);
    gap: 0.5rem;
    border-radius: 5px;
    box-shadow: 0px 0px 4px 2px black;
    padding: 0.75rem 1rem 2rem;
    box-sizing: border-box;
    transition: 0.2s;
    text-align: center;
    overflow: hidden;
    border: 2px solid var(--primary-border-color);
    font-size: large;
}

.information-card:hover {
    scale: 1.03;
    background-color: #111111;
}

.information-card-header {
    font-size: 24px;
    margin-bottom: 0.75rem;
}

#kontakt {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    background-image: url('/static/images/footer-background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 150px;
    background-attachment: fixed;
}

.contact-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 6rem 0px;
    gap: 4rem;
    background-color: rgb(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
}

.contact-divider {
    width: clamp(300px, 90vw, 850px);
    background-color: var(--primary-border-color);
    height: 2px;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.contact-information-container {
    display: flex;
    align-items: start;
    gap: clamp(2rem, 4vw, 3rem);
}

.contact-information {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.contact-information-text {
    font-weight: 600;
    font-size: 17px;
    text-align: center;
}

.contact-buttons-container {
    display: flex;
    gap: 1rem;
}

.contact-button {
    display: flex;
    border: 2px solid var(--primary-border-color);
    border-radius: 50%;
    padding: 3px;
    background-color: transparent;
    transition: 0.3s;
}

.contact-button:hover {
    background-color: var(--secondary-background-color);
}

.about-container {
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 10rem;
}

.offer-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 6rem;
}

.image-divider {
    display: flex;
    width: 100%;
    height: clamp(200px, 70vw, 350px);
    background-image: url('/static/images/skrzynia-biegów.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.image-divider::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.65);
    box-shadow: 0px 0px 3px 1px rgb(var(--primary-background-color)) inset;
}

@media only screen and (max-width: 767px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .header {
        justify-content: right;
        padding: 0.5rem;
    }

    .landing-container {
        background-position-x: -275px;
    }

    .contact-information-container {
        display: flex;
        align-items: start;
    }

    .contact-information-text {
        font-size: 16px;
    }

    .primary-text-box {
        padding: 0px clamp(1rem, 5vw, 8rem);
    }

    .contact-information-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 3rem 0rem;
    }
}

/* @media only screen and (max-width: 619px) {
    .contact-information-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 3rem 0rem;
    }
} */

@media only screen and (max-width: 1023px) {
    .nav-phone-number-container {
        right: 1rem;
    }

    .image-divider {
        background-position-y: 0px;
        background-position-x: -30px;
    }
}
