:root {
    --primary-color: #0c71c3;
    --secondary-color: #289595;
    --background-color: #f0f0f0;

    --font-family: "Gabarito", sans-serif;
    --font-family2: "kanit", sans-serif;

    --page-width: 1280px;
    --header-height: 100px;

}



body {
    background-color: #f0f0f0;
    font-family: var(--font-family);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,h2,h3 {
    /* font-family: 'kanit', sans-serif; */
    font-family: var(--font-family);
}
h1 {
    font-size: 2.5rem;
    line-height: 2.4rem;
    color: hsl(from var(--primary-color) h s 30%);
    margin-bottom: 1rem;
    text-wrap: balance;
}
h2 {
    font-size: 2rem;
    line-height: 2.0rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-wrap: balance;
}

h2.x2 {
    font-size: 2.5rem;
    line-height: 2.4rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-wrap: balance;
}
h4 {
    font-size: 1.2rem;
    line-height: 1.2rem;
    color: hsl(from var(--primary-color) h s 20%);
    margin-bottom: 0.5rem;
    text-wrap: balance;
}



.page-width {
    margin: 0 auto;
    max-width: var(--page-width);
    padding: 0 1rem;
    @media (width < 1024px) {
        padding:0;
    }
}
.push {
    display:flex;
    justify-content: space-between;
}

#menubg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff;
    backdrop-filter: blur(20px);
    z-index: 90;
    opacity:0;
    transform:translateX(-100%);
    pointer-events:none;
    transition: all 0.3s ease-in-out;
    body.menu-open & {
        opacity:1;
        transform: translateX(0);
        pointer-events:auto;
    }
}
#menu {
    position: fixed;
    inset: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    padding-top: var(--header-height);
    opacity:0;
    pointer-events:none;
    transition: opacity 0.3s ease-in-out;
    body.menu-open & {
        transform: translateX(0);
        pointer-events:auto;
        opacity:1;
    }

    & > div {
        margin: 0 auto;
        display: flex;
        width: calc(var(--page-width) - 10vw);
        flex-direction: row;
        gap: 10vw;
        flex: 1;
        padding: 2rem;
        & ul {
            list-style: none;

            & li {

                & a {
                    text-decoration: none;
                    font-size: 1.5rem;
                    color: hsl(from var(--primary-color) h s 20%);
                    transition: color 0.2s ease-in-out;

                    &:hover {
                        color: var(--accent-color);
                    }
                }
            }
        }
    }

}

#header {
    --header-height: 100px;
    position: absolute;
    z-index: 200;
    top: 0;
    left: 0;
    width: 100%;

    & .logo {
        & a > div:nth-child(1) {
            background: radial-gradient(circle at center, #ffffff 0%, #ffffff00 70%);
        }
        & a {
            height: var(--height);
            display: flex;
            align-items: center;
            padding: 10px 15px;
            text-decoration: none;
            & .h1 {
                font-size: 2.8rem;
                color: hsl(from var(--primary-color) h s 20%);
                text-transform: uppercase;
                margin: 0;
                font-weight: 500;
            }
        }

    }
    & .controls {
        height: var(--height);
        display: flex;
        align-items: center;
        margin-right: 2rem;

        & .toggle-menu {
            position: relative;
            width:30px;
            height:25px;
            cursor: pointer;
            display:flex;
            align-items: center;
            justify-content: center;
            & span {
                position: absolute;
                height: 3px;
                width: 100%;
                background-color: hsl(from var(--primary-color) h s 30%);
                transition: all 0.2s ease-in-out;
            }
            & span:nth-child(1) {
                top:0;
            }
            & span:nth-child(2) {
                position:static;
            }
            & span:nth-child(3) {
                bottom:0;
            }

            &:hover span:nth-child(2),
            &:hover span:nth-child(3) {
                position: absolute;
                width:70%;
                right:0;
            }
            &:hover span:nth-child(3) {
                width:50%;
                transition: all 0.2s ease-in-out;
            }

            body.menu-open & span:nth-child(1) {
                transform: rotate(45deg);
                top: 11px;
            }

            body.menu-open & span:nth-child(2) {
                opacity: 0;
                width: 100%;
            }
            body.menu-open & span:nth-child(3) {
                transform: rotate(-45deg);
                bottom: 11px;
                width: 100%;
            }
        }
    }
}





.toothtop {
    background-color: hsl(from var(--primary-color) h s l 40%);
    width: 100%;
    height: 150px;
    clip-path: path("M 71.169348 81.605841 H 204.45469 c 0 0 1.3437 -14.212422 -11.64967 -18.134581 -9.9876 -3.01484 -38.37714 6.946593 -81.23322 13.649975 -4.76299 0.745007 -1.69385 -3.00036 -1.69385 -3.00036 l 19.88665 -3.580231 c 0 0 8.80538 -14.94421 -20.75618 -10.618022 -9.468678 1.385695 -37.912282 -9.655688 -37.839072 21.683219 z");

}

.clip-demo {
  width: 300px;
  height: 150px;
  background: #4f46e5;

  clip-path: path(
    "M 0 0
     L 300 0
     L 260 60
     L 40 60
     Z"
  );
}



.shortcuts {
    display: flex;
    gap: 1rem;
    flex-flow: row wrap;
}

a.shortcut,
.shortcuts a {
    --border-size: 1px;
    display:block;
    background-color: white;
    color: hsl(from var(--primary-color) h s 30%);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-family2);
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    justify-content:start;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
    &[data-border] {
        border: var(--border-size) solid hsl(from var(--primary-color) h s 30% / 0.1);
    }
    &:hover {
        background-color: hsl(from var(--primary-color) h s 95%);
    }
    &[data-icon]::before {
        content: "";
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-right: 0.5rem;
        padding-right: 0.5rem;
        border-right:1px solid hsl(from var(--primary-color) h s l / 0.2);
        background-color: hsl(from var(--primary-color) h s 40%);

        mask-image: var(--icon-url);
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;

        -webkit-mask-image: var(--icon-url);
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
    }
    &.solid {
        background-color: hsl(from var(--primary-color) h s 35%);
        color: hsl(from var(--primary-color) h s 100%);
        font-weight: 500;
        align-self: center;
        width: 90%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        &:hover {
            background-color: hsl(from var(--primary-color) h s 45%);
        }
    }
}







.hero {
    height: 50vh;
    min-height: 600px;
    background: linear-gradient(
        135deg,
        #cfd4d7 0%,
        #f3f5f6 100%
    );
    &.short {
        height: 10vh;
        min-height: 200px;
    }
    display: flex;
    align-items: center;
    padding: 0 8%;
    transition: all 0.3s ease-in-out;
    @media (width < 768px) {
        padding: 0;
        height: 50dvh;
    }
}

.hero-content {
    max-width: var(--page-width);
    margin:0 auto;
    padding:0 5vw;
    transition: padding 0.3s ease-in-out;
    position: relative;
    @media (width < 768px) {
            padding: 0 5vw;
    }
    & .w70 {
        width:70%;
        @media (width < 1024px) {
            width:100%;
        }
    }
    & .bg {
        position: absolute;
        inset: 0;
        z-index: 1;
        width:var(--page-width);
        height:100%;
        pointer-events: none;
        & img {
            position: absolute;
            top: 50%;
            right: 50%;
            transform: translate(130%, -50%);
            width: 500px;
            height: auto;
            opacity: 0.28;
            @media (width < 1024px) {
                width: 200px;
                top: -30px;
                right: -30px;
            }
            @media (width < 768px) {
                display: none;
            }
        }
        max-width: 100%;
        height: auto;
        margin-bottom: 2rem;
        }
    }

.hero h1 {
    position: relative;
    text-wrap: balance;
    z-index: 2;
    font-size: 2.5rem;
    line-height: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    line-height: 1.6rem;
    font-weight: 300;
    font-family: var(--font-family2);
    margin-bottom: 2rem;
    color: #4a5559;
}




#modalbg {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        #cfd4d7 0%,
        #f3f5f6 100%
    );
    z-index: 300;
    opacity:0;
    pointer-events:none;
    transition: all 0.3s ease-in-out;
    body.modal-open & {
        opacity:1;
        pointer-events:auto;
    }
}

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    z-index: 400;
    opacity:0;
    pointer-events:none;
    transition: all 0.3s ease-in-out;
    body.modal-open & {
        opacity:1;
        pointer-events:auto;
        transform: translate(-50%, -50%) scale(1);
    }
    & .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        & h2 {
            font-size: 1.8rem;
            line-height: 2.0rem;
        }
        & .close-modal {
            cursor: pointer;
            font-size: 1.5rem;
            color: hsl(from var(--primary-color) h s 30%);
            transition: color 0.2s ease-in-out;
            &:hover {
                color: var(--secondary-color);
            }
        }
    }
    & .modal-content {
        font-family: var(--font-family2);
        font-weight: 300;
        color: #4a5559;
    }
}




.information-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    @media (width < 1024px) {
        grid-template-columns: unset;
        gap: 1rem;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: stretch;
        margin:1rem 0;
    }

    &.single-display {
        grid-template-columns: 1fr 3fr;
        & img.square {
            aspect-ratio: 1 / 1;
            object-fit: cover;
            object-position: center;
            display: block;
        }
    }
    & .img-block {
        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }
        @media (width < 1024px) {
            flex:0 0 30%;
        }
        @media (width < 768px) {
            flex:0 0 100%;
            order:1;
            &:nth-child(3) {
                order: 3;
            }
            &.skip {
                order: 2;
            }
        }
    }
    & .info-block {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 2rem;
        /* border-top: 2px solid hsl(from var(--primary-color) h 40 50% / 0.2); */
        background: linear-gradient(
            -43deg,
            #ffffff 100%,
            #ffffff 100%
        );
        &:last-child:nth-child(odd) {
           flex: 0 0 100%;
        }
        &::after {
            content: "";
            display: block;
            position: absolute;
            bottom: -1rem;
            left: 50%;
            width: 10%;
            height: 3px;
            transform: translateX(-50%);
            background-color: hsl(from var(--primary-color) h 40 50% / 0.5);
            z-index: 0;
        }
        @media (width < 1024px) {
            flex:0 0 calc(70% - 1rem);
            &::after {
                display: none;
            }
        }
        @media (width < 768px) {
            flex:0 0 100%;
            order:1;
            &:nth-child(3) {
                order: 3;
            }
            &.skip {
                order: 1;
            }
        }

        & h2 {
            font-size: 1.8rem;
            line-height: 2.0rem;
            margin-bottom: 1rem;
        }
        & h2.x2 {
            font-size: 2.5rem;
            font-weight: 400;
            line-height: 3.4rem;
            color: hsl(from var(--primary-color) h s 30%);
            margin-bottom: 1rem;
        }
        & p {
            font-family: var(--font-family2);
            font-size: 1.1rem;
            font-weight: 300;
            margin-bottom: 1rem;
        }
        & p.lead {
            font-size: 1.6rem;
            line-height: 1.8rem;
            font-weight: 400;
            margin-bottom: 1rem;
        }
        & a {
            margin-top: auto !important;
        }

    }
}



#footer {
    height: 50vh;
    min-height: 600px;
    background: linear-gradient(
        135deg,
        #cfd4d7 0%,
        #f3f5f6 100%
    );
    padding: 4rem 0;



    & .site-footer{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 0 auto;

        & > div {
            padding: 2rem;
        }

        & .opening-hours-grid {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem 1rem;
            & .day {
                color: hsl(from var(--primary-color) h s 20%);
            }
            & .time {
                font-variant-numeric: tabular-nums;
                font-feature-settings: "tnum";
                font-weight: 300;
                text-align: right;
                font-family: var(--font-family2);
            }
        }

        & ul {
            list-style:none;
            & li {
                margin-bottom: 0.5rem;
                & a {
                    text-decoration: none;
                    color: hsl(from var(--primary-color) h s 20%);
                    transition: color 0.2s ease-in-out;
                    &:hover {
                        color: var(--secondary-color);
                    }
                }
            }
        }
    }
    & .copyrights {
        text-align: center;
        font-family: var(--font-family2);
        font-weight: 300;
        color: #4a5559;
        margin-top: 2rem;
    }
}

@media (width < 768px) {
    .hidden-mobile {
        display: none;
    }
}
