/*
    Theme Name: stomil.cz
    Author: Jonáš Menšík
    Version: 1.0
*/

:root {
    --primary-color: #ED1C24;
    --accent-color: #FEE735;
}

em {
    text-decoration: underline;
    text-underline-offset: -30%;
    text-decoration-thickness: 50%;
    text-decoration-color: var(--accent-color);
    text-decoration-skip-ink: none;
}

body, html {
    margin: 0;
    padding: 0;

    font-family: Satoshi-Variable;
    font-weight: 400;
}

body.locked {
    overflow: hidden;
}

table {
    font-size: 24px;
    font-family: Satoshi-Variable;
    font-weight: 400;
}

h1 {
    font-size: 100px;
    font-family: Century-Gothic;
    margin: 0 0 36px 0 !important;
}

h2 {
    font-size: 64px;
    font-family: Century-Gothic;
    margin: 0 0 36px 0 !important;
}

h3 {
    font-size: 24px;
    font-family: Satoshi-Variable;
    font-weight: 800;
    margin: 0 0 8px 0 !important;
}

p, li {
    font-size: 24px;
    font-family: Satoshi-Variable;
    font-weight: 400;
    margin: 0 0 32px 0 !important;
}

h1, h2, h3 {
    word-break: auto-phrase;
}

li {
    margin-bottom: 4px !important;
}

small {
    font-size: 20px;
    font-family: Satoshi-Variable;
    font-weight: 400;
}

@media (max-width: 780px) {
    table {
        font-size: 18px;
    }

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 18px;
    }

    p, li {
        font-size: 18px;
    }

    small {
        font-size: 14px;
    }
}


em {
    font-style: normal !important;
}

.gray {
    color: #878787;
}

.black {
    color: #000000;
}

h1, h2 {
    strong {
        font-family: Century-Gothic-Bold
    }
}

a {
    text-decoration: underline;
    color: var(--primary-color);
}

img {
    margin-bottom: 8px;
}
.navbar-logo {
    margin: 0 !important;
}
.footer img {
    margin: 0 !important;
}

.link {
    color: #000000 !important;
    text-decoration: none;
    transition: .25s color;

    &:hover {
        color: #ED1C24 !important;
    }
}

.wp-block-columns {
    gap: 16px;
    margin: 0;
}

.wp-block-button {
	max-width: 240px;
    width: 100% !important;
}

.contact-form .wp-element-button {
	max-width: 240px;
    width: 100% !important;
}

.wp-block-button:nth-child(even) .wp-element-button {
	background-color: transparent;
	border: #ED1C24 solid 2px;
	border-radius: 0 50px 0 0;
	color: black;
}

.wp-element-button {
    font-family: Satoshi-Variable;
    font-weight: 600;
    font-size: 24px;
    box-sizing: border-box;
    
    text-align: left;
    border-radius: 0 0 50px 0;
    padding: 17px 25px 17px 15px;
    background-color: var(--primary-color);
    text-decoration: none;
    color: white;
    display: inline-block;
    outline: none;

    border: none;
}


@media (max-width: 1340px) {
    .card-holder {
        width: 100% !important;
        padding: 0 24px;
    }
}





.navbar {
    height: 120px;
    border-bottom: #c5c5c5 solid 1px;
    padding: 0 max(calc(50vw - 1280px / 2), 30px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;

    & a {
        text-decoration: none;
        color: black;
    }

    & .navbar-logo {
        height: 72px;
    }

    & .navbar-links {
        height: 100%;
        display: flex;
        justify-content: right;
        flex-direction: row;
        align-items: start;
        padding: 0 24px;
        box-sizing: border-box;

        & p {
            height: fit-content;
            margin: 0 !important;
            transition: .25s color;

            &:hover {
                color: #ED1C24;
            }
        }
    }
}

.navbar-hover {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;

    &:hover > a {
        color: #ED1C24;
    }

    &:hover i.arrow {
        border-color: #ED1C24 !important;

        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }

    &:hover .navbar-dropdown {
        display: block;
    }
}

.navbar-dropdown {
    padding: 64px max(calc(50vw - 1280px / 2), 30px);
    border-bottom: #c5c5c5 solid 1px;
    position: absolute;
    z-index: 10;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
    display: none;
    left: 0;
    bottom: -1px;
    transform: translateY(100%);
    
    & .navbar-subpages {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px 16px;
    }

    & .navbar-subpage {
        display: flex;
        flex-direction: column;
        gap: 16px;

        & .navbar-subpage-header {
            display: flex;
            gap: 8px;

            & p {
                margin: 0 !important;
            }
        
            & .navbar-subpage-icon {
                height: 32px;
                width: 32px;
                object-fit: cover;
                background-color: #FFE5E6;
                border-radius: 4px;
                border: none;
                outline: none;
                padding: 4px;
                box-sizing: border-box;
                margin: 0 !important;
            }
        }

        & .navbar-subpage-desc {
            
            & a {
                padding: 0 8px 0 0;
                margin: 0 4px 0 0;
            }

            & a:not(:last-child) {
                border-right: solid 1px black;
            }
        }
    }
}

.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 42px;
    width: 48px;
    background: none;
    border: none;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;

    & div {
        width: 100%;
        background-color: black;
        height: 3px;
        border-radius: 1.5px;
        transition: 0.25s;
    }
    &.active {
        & div:first-child {
            transform: translateY(11.5px) rotate(45deg);
            
        }

        & div:not(:first-child, :last-child) {
            opacity: 0;
        }

        & div:last-child {
            transform: translateY(-11.5px) rotate(-45deg);
        }
    }
}

@media (max-width: 780px) {
    .navbar {
        height: 96px;
        padding: 24px 24px;
        box-sizing: border-box;
        position: relative;

        & .navbar-logo {
            height: 48px;
            margin: 0;
            
        }

        & .navbar-menu {
            position: absolute;
            top: 97px;
            width: 100%;
            background-color: white;
            height: calc(100vh - 97px);
            z-index: 100;
            flex-direction: column;
            align-items: flex-start;   
            left: 0;
        }

        & .navbar-links {
            display: none;
            overflow: scroll;
            &.active {
                display: flex !important;
            }
            flex-direction: column;
            position: absolute;
            top: calc(100% + 1px);
            padding: 20px 24px;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 9;
            background-color: white;
            gap: 10px;

            & .navbar-hover {
                height: fit-content;
                padding: 0 !important;
                display: flex !important; 
                flex-direction: column;
                align-items: start;
            }
        }

        & .navbar-dropdown {
            position: static !important;
            width: 100%;
            box-sizing: border-box;
            padding: 0 !important;
            transform: none !important;
            border: none !important;

            & h2 {
                display: none !important;
            }
        }

        & .navbar-subpage-icon {
            height: 24px !important;
            width: 24px !important;
            background-color: #FFE5E6;
            padding: 3px;
            box-sizing: border-box;
        }

        & .navbar-subpage {
            gap: 10px 0 !important;
        }

        & .navbar-subpages {
            margin: 20px 0 !important;
            gap: 20px 16px !important;
        }

        & .navbar-burger {
            display: flex !important;
        }
    }

    .wp-block-buttons {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;

        & .wp-block-button {
            width: 100%;
        }
    }
}

.wp-element-thumbnail {
    text-decoration: none !important;

    &:hover * {
        color: #ED1C24 !important;
    }
}

@media (max-width: 1100px) {
    .navbar-subpages {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
}

.card-holder {
    width: 1280px;
    margin: auto;
    box-sizing: border-box;
}

.card {
    &:not(:first-child) {
        padding-top: 48px;
    }

    &:first-child {
        &:has(.wp-block-columns, img) .wp-block-columns .wp-block-column:not(:has(.wp-block-stomil-carousel)) {
            padding-top: 48px;
            box-sizing: border-box;
        }

        &:not(:has(.wp-block-columns)) {
            padding-top: 48px;
        }
    }
    padding-bottom: 48px;
    border-bottom: solid #c5c5c5 1px;
}

.card.left:first-child .card-image {
    border-radius: 0 0 50px 0;
}
.card:not(.left):first-child .card-image {
    border-radius: 0 0 0 50px;
}

.card.left:not(:first-child) .card-image {
    border-radius: 0 50px 50px 0 !important;
}
.card:not(.left):not(:first-child) .card-image {
    border-radius: 50px 0 0 50px !important;
}

thead {
    border-bottom: none !important;
}

th {
    background-color: #ED1C24;
    color: white;

    padding: 16px;
}

table:not(.alt) {
    tbody {
        & tr {
            &:nth-child(2n) {
                background-color: #FFE5E6;
            }
        }
    }
}

table.alt {
    tbody {
        & tr {
            &:nth-child(2n-1) {
                background-color: #FFE5E6;
            }
        }
    }
}


th, td {
    border-top: none !important;
    border-bottom: none !important;
    border-left: solid 1px white !important;
    border-right: solid 1px white !important;
    padding: 12px !important;
}

.footer {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);

    a {
        text-decoration: none;
        color: black;
    }

    p {
        font-size: 20px;
        margin: 0 !important;
    }
}

.credit {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1280px;
    margin: auto;
    padding: 48px 0 48px 0;

    & > *:last-child {
        text-align: right;
    }

    & > *:first-child {
        text-align: left;
    }

    & > *:not(:last-child, :first-child) {
        text-align: center;
    }

    p {
        margin: 0 !important;
    }
}

@media (max-width: 780px) {
    .footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px 32px;
    }

    .credit {
        width: 100%;
        flex-direction: column;
        gap: 16px;
        text-align: center;

        & > * {
            text-align: center !important;
        }
    }

    .wp-element-button {
        font-size: 18px;
        padding: 12px 25px 12px 12px;
    }
}

.arrow {
  border: solid black;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 3px;
  transition: 0.25s;
  width: 3px;
    height: 3px;
    margin-bottom: 0.125em;

    transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}