:root {
    --primary-color: #000000;
    --secondary-color: #427BE2;
    --white-color: #FFFFFF;
    --font: 'degular-text', sans-serif;
    --font-header: 'degular-display', sans-serif; /* velký nadpisy, tlačítka, názvy služeb, bold text, tel. číslo */ 

    --side-padding: max(calc(50vw - 950px + 10rem), 1rem);

    font-size: 20px;
}

body {
    font-family: var(--font);
    color: var(--primary-color);
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: initial;
}

/* base classes */

.subheader {
    font-weight: 400;
    font-size: 1rem;
    font-family: var(--font) !important;
    line-height: 0.9;
    margin: 0;
}

.header {
    margin: 0;
    font-weight: 800;
    font-size: 4.25rem;
    font-family: var(--font-header) !important;
    line-height: 0.9;
}

@media only screen and (max-width: 968px) {
    .header {
        font-size: 2.5rem;
    }
}

.header-small {
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-header) !important;
    line-height: 0.9;
}

.description {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.black {
    color: var(--primary-color);
} 

.blue {
    color: var(--secondary-color);
}

.white {
    color: var(--white-color);
}

.bold {
    font-weight: 800;
    font-family: var(--font);
}

.nowrap {
    white-space: nowrap;
}

.button {
    text-decoration: none;
    border: var(--primary-color) solid 2px;
    border-radius: 0.5rem;
    background-color: var(--white-color);
    padding: 0.5rem 0 0.65rem 0;
    font-size: 1.5rem;
    font-family: var(--font-header);
    font-weight: 800;
    width: 12rem;
    height: 3rem;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: visible;
    color: black;

    &.blue {
        background-color: var(--secondary-color);
        color: var(--white-color);
    }

    &:hover {
        transform: translateY(-0.2rem);
    }

    & img {
        z-index: 10;
        height: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    br {
        display: none;
    }
}







/* sections */

/* navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin: 0 var(--side-padding);
    border-bottom: var(--primary-color) solid 2px;
    background-color: var(--white-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.5rem;
    margin-right: 2rem;
    transition: color 0.1s;

    &:hover {
        color: var(--secondary-color);
    }
}

.navbar .logo {
    box-sizing: border-box;
    height: 3rem;
    padding-right: 6rem;
} 

@media only screen and (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .navbar .logo {
        padding: 0;
    }

    .navbar .button {
        display: none;
        min-width: none;
    }
}


/* hero section */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 4rem 0;
    margin: 0 var(--side-padding);
    border-bottom: var(--primary-color) solid 2px;
}

.hero-text {
    flex-basis: 65%;
}

.hero-text p {
    margin: 1rem 0;
}

.hero-image {
    flex-basis: 35%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media only screen and (max-width: 968px) {
    .hero {
        padding: 2rem 0;
        flex-direction: column-reverse;
        gap: 1rem;
        justify-content: left;
    }

    .hero-img {
        box-sizing: border-box;
        height: 40vh;
        max-width: 100vw;
        padding: 0 1rem;
    }
}

@media only screen and (max-width: 968px) {
    .hero-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .hero-buttons .button, .hero-buttons a {
        flex-basis: 50%;
        width: 100%;
    }
}

/* services */

.services {
    text-align: center;
    margin: 0 var(--side-padding);
    padding: 2rem 0;
    border-bottom: var(--primary-color) solid 2px;
}

.services-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.services-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 1.5rem;
}


.services-grid {
    width: 100%;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: 1fr;
    grid-auto-columns: 1fr;
}

@media only screen and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media only screen and (max-width: 968px) {
    .services-grid {
        gap: 0.5rem;
        grid-template-columns: 1fr 1fr;
    }
    .services-block {
        gap: 0.5rem;
    }
}

.service-card {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-radius: 0.5rem;
    border: var(--primary-color) solid 2px;
    padding: 1.5rem 1rem 1rem 1rem;
    align-self: stretch;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--white-color);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-0.5rem);
}

.service-card.selected {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: 0;
}

.service-card.selected img {
    filter: invert(100%);
}

.service-header {
    transition: all 0.5s ease-in-out;
    position: relative;
    padding: 0;
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-header);
}

.service-icon {
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    max-width: 5rem;
    max-height: 5rem;
    margin-bottom: 0.5rem;
}

.service-detail {
    border-radius: 0.5rem;
    border: var(--primary-color) solid 2px;
    padding: 2rem 3rem;
    align-self: stretch;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1;
    grid-template-rows: 1;
}



.service-detail-option {
    grid-area: 1 / 1 / 2 / 2;
    position: relative;
    top: 0;
    display: flex;
    justify-content: left;
    align-items: start;
    flex-direction: row;
    text-align: left;
    gap: 3rem;
    width: 100%;
}




.service-detail.selected {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.service-detail-text {
    flex-basis: 65%;
}

.service-detail p {
    margin-top: 1rem;
    text-align: justify;
}

.service-detail-image {
    overflow: hidden;
    height: 100%;
    flex-basis: 35%;

    border-radius: 0.5rem;
    border: var(--primary-color) solid 2px;
    background-color: var(--white-color);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-info {
    flex-basis: 100%;
    border-radius: 0.5rem;
    border: var(--primary-color) solid 2px;
    padding: 1rem 3rem;
    align-self: stretch;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: row;
    text-align: left;
    gap: 2rem;
}



@media only screen and (max-width: 968px) {
    .services-info {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .services-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}


.service-detail-option {
    transform: translateY(-100%);
    transition: all 0.5s ease-in-out;
    transition-delay: 0;
    opacity: 0;
}

.service-detail-option.selected {
    transition-delay: 0.1s;
    transform: translateY(0);
    opacity: 1;
}

.service-info-text {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.2;
}

.services-info-icon {
    height: 5rem;
}

@media only screen and (max-width: 968px) {
    .service-detail {
        padding: 1rem 1.5rem;
    }

    .service-detail-option {
        flex-direction: column;
        gap: 1rem;
    }

    .service-detail-text p {
        text-align: left;
    }

    .service-detail-text {
        flex-basis: auto;
    }

    .service-detail-image {
        width: 100%;
        flex-basis: auto;
    }
}

/* reference */

.references {
    text-align: center;
    margin: 0 var(--side-padding);
    padding: 2rem 0;
    border-bottom: var(--primary-color) solid 2px;
}

.references-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 1rem 0 0 0;
    gap: 3rem;
}

.references-grid {
    flex-basis: 65%;

    grid-auto-rows: 1fr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.reference-card {
    border: var(--primary-color) solid 2px;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: left;
}

.references-image {
    flex-basis: 35%;
}

@media only screen and (max-width: 968px) {
    .references-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media only screen and (max-width: 1200px) {
    .references-block {
        flex-direction: column;
        gap: 1rem;
    }

    

    .references-image {
        height: 40vh;
        width: 40vh;
    }
}

/* contact */

.contacts {
    text-align: center;
    margin: 0 var(--side-padding);
    padding: 2rem 0;
}

.contacts-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 1.5rem 0 1.5rem 0;
    gap: 1.5rem;
}

@media only screen and (max-width: 1200px) {
    .contacts-block {
        flex-direction: column;
        gap: 1rem;
    }
}

.contacts-form {
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    flex-basis: 65%;

    padding: 1.5rem 2rem;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    text-align: left;
    align-self: stretch;
}

.form-row {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    text-align: left;
}

.form-row div {
    flex-basis: 50%;
    
}

.form-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: var(--primary-color) solid 1px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font);
}

.form-row input:focus {
    border: var(--secondary-color) solid 1px;
}

.form-input::placeholder {
    color: #5f5f5f;
    font-family: var(--font);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
}

.contacts-form-label {
    width: 100%;
    display: inline-block;
    text-align: left;
    box-sizing: border-box;
    padding-left: 1rem;
    font-size: 1rem;
    font-family: var(--font);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.form-privacy {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
}

select.form-input  {
    -moz-appearance:none; /* Firefox */
    -webkit-appearance:none; /* Safari and Chrome */
    appearance:none;
    font-family: var(--font);
    cursor: pointer;
}

.form-checkbox-label {
    text-align: left;
    font-weight: 400;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    margin: 0;
    display: inline-block;
    accent-color: var(--secondary-color);
    border: var(--primary-color) solid 1px;
}

.form-button {
    width: 100%;
}




@media only screen and (max-width: 1200px) {
    .contacts-form {
        padding: 1rem;
    }

    .form-row {
        gap: 0.5rem;
    }
    .form-row div {
        width: 100%;
    }
    .form-input {
        margin-bottom: 0.5rem;
    }
}


@media only screen and (max-width: 968px) {
    .form-row {
        gap: 0.5rem;
        flex-direction: column;
    }
}


.contacts-info {
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    flex-basis: 35%;
    min-width: 500px;
    align-self: stretch;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.contacts-info p {
    margin: 0;
}

.contacts-info-phone {
    text-align: center;
    margin: 0 0 1rem 0;
}

.contacts-info-block {
    text-align: left;
    margin: 1rem 0;
}

.contacts-rate-us {
    text-align: center;
}

.contacts-button-holder {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.contacts-button-holder .button {
    width: 100%;
}

@media only screen and (max-width: 968px) {
    .contacts-button-holder {
        flex-direction: column;
        gap: 0.5rem;
    }
    .contacts-info {
        min-width: 0;
        padding: 1rem;
    }
}


/* footer */
.footer {
    padding: 2rem var(--side-padding);
    border-top: var(--primary-color) solid 2px;
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.footer-info {
    display: flex;
    justify-content: left;
    align-items: start;
    flex-direction: row;
    gap: 3rem;
    padding-bottom: 1rem;
    border-bottom: var(--white-color) solid 2px;
}

.footer-logo {
    box-sizing: border-box;
    height: 7rem;
}

.footer-row {
    margin-top: 1rem;
}

@media only screen and (max-width: 1200px) {
    .footer-info {
        flex-direction: column;
    }

    .footer {
        padding-bottom: 4rem;
    }
}
