/* 
    Theme Name: ProMax Theme
    Version: 0.0.1
    Description: ProMax fitness Wordpress Theme
    Author: Petr Pecanek 
*/


:root {
    --bg-color-900: #1A1A18;
    --bg-color-700: #D1060D;
    --bg-color-500: #868786;
    --bg-color-500-01: hsla(120, 0%, 53%, 0.1);
    --bg-color-100: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", serif;
    color: var(--bg-color-900);
    overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

svg {
    width: 2rem;
}

header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color-100);
    border-bottom: 1px solid var(--bg-color-500);
    z-index: 1000;
}

.navbar-brand img {
    max-width: 200px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231A1A18' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--bg-color-900);
}

.navbar-nav a:hover,
.navbar-nav a:focus {
    color: var(--bg-color-700);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.social-links .social-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--bg-color-700);
    border-radius: 50%;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.social-links .social-box:hover,
.social-links .social-box:focus {
    background-color: var(--bg-color-900);
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--bg-color-100);
}

.c-item {
    height: 80vh;
}

.c-image {
    height: 100%;
    object-fit: cover;
}

.c-item::before {
    display: block;
    content: ' ';
    width: 600px;
    height: 100%;
    background-color: #868786;
    filter: opacity(0.5);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: var(--bg-color-100);
}

.slide-content h1 {
    line-height: 1.5;
    margin-bottom: 2rem;
}

.slide-content h1 span {
    color: var(--bg-color-700);
    font-size: 3rem;
}

.btn-danger {
    background-color: var(--bg-color-700);
    border: none;
}

.btn-danger:hover,
.btn-danger:focus {
    transform: scale(1.1);
    background-color: var(--bg-color-900);
    box-shadow: none;
}

.hr-line {
    width: 50%;
    height: 1px;
    background-color: var(--bg-color-700);
    margin: 100px auto;
}

.info-item {
    background-color: var(--bg-color-500-01);
    width: 350px;
    padding: 2.5rem 0;
    border-radius: 0.5rem;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
    box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
}

.info-item span {
    border: 1px solid var(--bg-color-700);
    padding: 0.75rem;
    border-radius: 50%;
}

.info-item svg {
    fill: var(--bg-color-700);
}

.info-content p {
    max-width: 180px;
    margin: 0;
}

.service-section {
    height: 80vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2rem 0;
}

.service-header span {
    color: var(--bg-color-700);
}

.service span {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color-100);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.service svg {
    width: 3rem;
    height: 3rem;
}

.service p {
    font-size: 1.25rem;
    margin: 0;
}

.service-info {
    max-width: 100vw;
    --bs-gutter-x: 0;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    text-align: center;
}

.service-box h3 {
    line-height: 1.5;
    margin: 0;
}

.service-box h3 span {
    font-size: 2rem;
}

.red {
    background-color: var(--bg-color-700);
}

.red span {
    color: var(--bg-color-900);
}

.gray {
    background-color: var(--bg-color-500);
}

.black {
    background-color: var(--bg-color-900);
}

.black span {
    color: var(--bg-color-700);
}

.form-content {
    background-color: var(--bg-color-500-01);
    border-radius: 0.5rem;
}

.form-content div:first-child {
    padding: 0;
}

.form-content img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0 0 0.5rem;
}

.form-content div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form {
    width: 80%;
    display: flex;
    flex-direction: column;
}

.form-control:focus,
.form-select:focus {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
    box-shadow: 0px 0px 10px 0px rgba(209, 6, 13, 1);
    border-color: var(--bg-color-700);
}

form .btn {
    align-self: flex-end;
}

footer {
    background-color: var(--bg-color-900);
    color: var(--bg-color-100);
    text-align: center;
    padding-top: 2rem;
}

.footer-bottom {
    border-top: 1px solid var(--bg-color-500);
}

.footer-bottom div p {
    font-size: 13px;
}

footer p {
    margin-bottom: 0;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: none;
    background-color: var(--bg-color-700);
    border: none;
    border-radius: 50%;
    padding: 1rem;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

#scrollToTopBtn svg {
    height: 2rem;
    fill: var(--bg-color-100);
}

#scrollToTopBtn:hover,
#scrollToTopBtn:focus {
    background-color: var(--bg-color-900);
    transform: scale(1.1);
}

#scrollToTopBtn.show {
    display: block;
    opacity: 1;
}

/*SLUZBY*/
.service-card {
    width: 460px;
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 0.25rem solid var(--bg-color-500);
    position: relative;
    padding: 0;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(0.5rem - 0.25rem);
}

.sc-body {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    position: absolute;
    background: #1a1a1838;
    backdrop-filter: blur(2px);
    border-radius: calc(0.5rem - 0.25rem);
    color: var(--bg-color-100);
    padding: 1.75rem;
    transition: 0.15s ease-in-out;
}

/*CENIK*/
table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

thead {
    background-color: var(--bg-color-500-01);
    border: none !important;
    text-align: center;
    border-radius: 0.5rem 0.5rem 0 0;
}

thead tr {
    display: inline-block;
}

thead th,
thead td {
    border: none !important;
    font-weight: bold;
}

tbody {
    background-color: var(--bg-color-500-01);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.5rem 1rem;
}

tbody tr {
    display: grid;
    grid-template-columns: 70% 30%;
}

tbody tr td {
    border: none !important;
}

tbody tr td:nth-child(2) {
    text-align: end;
    color: var(--bg-color-700);
}

tbody tr:nth-child(1) td:nth-child(2) {
    color: var(--bg-color-900);
}

tbody tr:nth-child(1) {
    font-weight: bold;
}

/*FOTOGALERIE*/
figure.wp-block-gallery.has-nested-images img {
    border-radius: 0.5rem;
    transition: .15 ease-in-out;
}

figure.wp-block-gallery.has-nested-images img:hover,
figure.wp-block-gallery.has-nested-images img:focus {
    transform: scale(0.95);
}

/*KONTAKTY*/
.contact-info span {
    border: 1px solid var(--bg-color-700);
    border-radius: 50%;
    display: inline-block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.contact-info span svg {
    fill: var(--bg-color-700);
}

.contact-info p {
    max-width: 150px;
    margin: 0 auto;
}

.contact-info:nth-child(3) p {
    max-width: 300px;
}

/*Treneri*/
.trainer-card {
    height: 450px;
    border-radius: 0.5rem;
}

.trainer-card:not(:last-child) {
    margin-bottom: 3rem;
}

.trainer-card a {
    text-decoration: none;
    color: var(--bg-color-900);
}

.trainer-image {
    padding: 0;
}

.trainer-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0.5rem 0 0 0.5rem;
}

.trainer-info {
    background-color: var(--bg-color-500-01);
    padding-top: 1rem;
}

.trainer-info p {
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.trainer-email:hover,
.trainer-email:focus {
    color: var(--bg-color-700);
}

.trainer-socials {
    flex-direction: column;
    gap: 1rem;
}

.trainer-socials p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.no-hover:hover,
.no-hover:focus {
    background-color: var(--bg-color-700) !important;
}

.social-title:hover,
.social-box:hover~.social-title,
.social-title:focus,
.social-box:focus~.social-title {
    color: var(--bg-color-700);
}

.p-red {
    color: var(--bg-color-700);
}

.trainer-excerpt {
    background-color: var(--bg-color-900);
    color: var(--bg-color-100);
    border-radius: 0 0.5rem 0.5rem 0;
    padding-top: 1rem;
}

@media screen and (max-width: 1200px) {
    .info-container {
        justify-content: center !important;
        gap: 2rem;
    }
}

@media screen and (max-width: 1000px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .slide-content {
        text-align: center;
    }

    .slide-content h1 span {
        font-size: 2.5rem;
    }

    .c-item::before {
        width: 300px;
    }

    .service-section {
        height: 800px;
    }

    .service span {
        width: 3.5rem;
        height: 3.5rem;
    }

    .service svg {
        width: 2rem;
        height: 2rem;
    }

    .service p {
        font-size: 1rem;
    }

    .form-content img {
        max-height: 500px;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .form-content div:last-child {
        padding: 2rem 0;
    }

    .contact-info:not(:last-child) {
        margin-bottom: 1rem;
    }

    /*Treneri - mobil*/
    .trainer-card {
        height: auto;
    }

    .trainer-image img {
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .trainer-info {
        padding-bottom: 1rem;
    }

    .trainer-excerpt {
        border-radius: 0 0 0.5rem 0.5rem;
    }
}