@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
    html {
        -moz-text-size-adjust: none;
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
    }

    body,
    h1,
    h2,
    h3,
    h4,
    p,
    figure,
    blockquote,
    dl,
    dd {
        margin: 0;
    }

    /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
    [role="list"] {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body {
        min-block-size: 100vh;
        line-height: 1.6;
    }

    h1,
    h2,
    h3,
    button,
    input,
    label {
        line-height: 1.1;
    }

    h1, h2, h3, h4 {
        text-wrap: balance;
    }

    p, li {
        text-wrap: pretty;
    }

    img,
    picture {
        max-inline-size: 100%;
        display: block;
    }

    input,
    button,
    textarea,
    select {
        font: inherit;
    }
}

@layer base {
    :root {
        --clr-white: hsl(0, 0%, 100%);
        --clr-gray-100: hsl(38, 50%, 97%);
        --clr-black: hsl(0, 0%, 0%);
        --clr-red-800: hsl(355, 74%, 29%);

        --ff-poppins:  "Poppins", sans-serif;
        --ff-bebas-neue: "Bebas Neue", sans-serif;

        --fs-300: 0.875rem;
        --fs-400: 1rem;
        --fs-500: 1.125rem;
        --fs-600: 1.25rem;
        --fs-700: 1.5rem;
        --fs-800: 2rem;
        --fs-900: 3.75rem;
        --fs-1000: 6.5rem;

        @media (width < 600px) {
            --fs-300: 0.875rem;
            --fs-400: 1rem;
            --fs-500: 1.25rem;
            --fs-600: 1.5rem;
            --fs-700: 2rem;
            --fs-800: 3rem;
            --fs-900: 5rem;
            --fs-1000: 7.5rem;
        }

        --text-body: var(--clr-black);
        --text-title: var(--clr-black);
        --text-main: var(--clr-black);
        --background-color-main: var(--clr-gray-100);

        --font-size-heading-sm: var(--fs-700);
        --font-size-heading-regular: var(--fs-800);
        --font-size-heading-lg: var(--fs-900);
        --font-size-heading-xl: var(--fs-1000);

        --font-size-sm: var(--fs-300);
        --font-size-regular: var(--fs-400);
        --font-size-md: var(--fs-500);
        --font-size-lg: var(--fs-600);
    }

    html {
        font-family: var(--ff-poppins);
        line-height: 1.6;
        font-size: 96%;
        scroll-behavior: smooth;
    }

    body {
        font-size: var(--font-size-regular);
        color: var(--text-main);
        background-color: var(--background-color-main);
    }

    h1, h2, h3, h4 {
        font-family: var(--ff-bebas-neue);
        font-weight: 400;
        font-style: normal;
    }

    /* h1 {
        font-size: var(--font-size-heading-xl);
    } */
}

@layer layout {
    .wrapper {
        max-width: 87rem;
        margin-inline: auto;

        @media (width < 600px) {
            margin-inline: 1.5rem;
        }
    }

    .section {
        --padding: 11rem;
        padding-top: var(--padding);

        @media (width < 600px) {
            --padding: 13rem;
            position: relative;
        }
    }

    .main-header {
        background-color: var(--clr-gray-100);
        height: 8rem;
        border-bottom: 1px solid #A8A7A4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* position: sticky;
        top: 0; */
        z-index: 100;

        @media (width < 600px) {
            position: sticky;
            top: 0;
            height: 5.5rem;
        }
    }

    .header-logo {
        width: 7rem;

        @media (width < 600px) {
            width: 5.8rem;
        }
    }

    .header-menu-btn {
        width: 4rem;
        height: 4rem;
        display: none;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        transition: .5s;

        @media (width < 600px) {
            display: flex;
        }
    }

    .header-menu-btn:hover {
        background-color: rgba(0, 0, 0, .06);
    }

    .header-menu-btn .menu-icon {
        width: 2.6rem;
    }

    .header-menu-btn .close-icon {
        width: 1.875rem;
    }

    .top-nav {
        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4rem;
            font-family: var(--ff-poppins);
            font-weight: 300;
            font-size: 1.25rem;

            @media (width < 600px) {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background: var(--clr-gray-100);
                transition: .5s;
                position: fixed;
                top: 5.6rem;
                left: 100%;
                bottom: 0;
                width: 100%;
                z-index: 100;
                font-weight: 400;
                font-size: 1.5rem;
            }
        }

        a {
            color: var(--clr-black);
            text-decoration: none;
            transition: .5s;
        }

        a:hover {
            color: var(--clr-red-800);
        }
    }

    .top-nav.show ul {
        @media (width < 600px) {
            left: 0;
        }
    }

    .hero {
        display: flex;
        margin-bottom: 5.5rem;
        position: relative;

        @media (width < 600px) {
            flex-direction: column;
            margin-bottom: 0;
        }
    }

    .hero__left {
        /* flex-grow: 3;
        flex-basis: 1rem; */
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        /* position: relative; */
        /* padding-bottom: 5rem; */

        @media (width < 600px) {
            padding-top: 2rem;
        }
    }

    .hero__left--title {
        max-width: 38rem;

        @media (width < 600px) {
            max-height: 20rem;
            padding: 4rem 0;
        }

        @media (width < 600px) {
            display: none;
        }
    }

    .hero__left--btn {
        background-color: var(--clr-red-800);
        font-family: var(--ff-poppins);
        font-weight: 200;
        font-size: 1.75rem;
        color: var(--clr-white);
        line-height: 1.2;
        text-decoration: none;
        padding: 1rem;
        text-align: center;
        width: 10rem;
        height: 10rem;
        border-radius: 10rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 33rem;
        transform: translateY(-50%);

        @media (width < 600px) {
            font-size: 1.125rem;
            width: 6.7rem;
            height: 6.7rem;
            top: auto;
            bottom: -6.7rem;
            right: auto;
            transform: translateY(-50%);
        }
    }

    .hero__right {
        /* flex-grow: 2;
        flex-basis: 1rem; */
        flex-shrink: 0;
    }

    .hero__right img {
        width: 100%;
        max-width: 38rem;
        /* height: 44rem; */
        object-fit: cover;
        aspect-ratio: 4 / 5;

        @media (width < 600px) {
            width: 100%;
            height: auto;
        }
    }

    .section__content {
        display: flex;
        gap: 8rem;

        @media (width < 600px) {
            flex-direction: column;
            gap: 3rem;
        }
    }

    .section__img {
        flex-shrink: 0;
        /* flex-grow: 1; */
        /* flex-basis: 1rem; */
        position: relative;
        /* padding-bottom: 5rem; */

        @media (width < 600px) {
            order: 1;
        }
    }

    .section__img img {
        width: 100%;
        max-width: 38rem;
        /* height: 44rem; */
        aspect-ratio: 4 / 5;
        object-fit: cover;

        @media (width < 600px) {
            width: 100%;
            /* height: 21rem; */
            /* aspect-ratio: 1 / 1; */
        }
    }

    .section__info {
        flex-grow: 1;
        /* flex-grow: 5;
        flex-basis: 1rem; */

        @media (width < 600px) {
            order: 2;
        }
    }

    .section-title {
        font-size: 6.5rem;
        margin-top: 3.2rem;
        margin-bottom: 3.5rem;

        @media (width < 600px) {
            font-size: 4.5rem;
            margin-top: 0;
            margin-bottom: 0;
            position: absolute;
            top: 6rem;
        }
    }

    .section-text p {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .section-text p + p {
        margin-top: 1.6rem;
    }

    .services-list {
        border-top: 1px solid rgba(86,86,86,.8);
        margin-bottom: 3.8rem;
    }

    .services-list li {
        height: 3.67rem;
        transition: .5s;
        interpolate-size: allow-keywords;
        border-bottom: 1px solid rgba(86,86,86,.8);
        overflow: hidden;
    }

    .services-list li .title {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-inline: 0;
        padding-block: .85rem;
        background: none;
        border: none;
        margin: 0;
        font-family: var(--ff-poppins);
        font-weight: 300;
        font-size: 1.125rem;
        color: var(--clr-black);
        line-height: 1.6;
        text-transform: uppercase;
        text-decoration: none;
        cursor: pointer;
    }

    .services-list li .title .icon {
        width: 11px;
        height: 11px;
        transition: .5s;
    }

    .services-list li .content {
        padding-bottom: .64rem;
    }

    .services-list li.show {
        height: auto;
    }

    .services-list li.show .title .icon {
        rotate: -90deg;
    }

    .services-list li .content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .services-list li .content p + p {
        margin-top: 1.6rem;
    }

    .section-book-btn {
        display: inline-block;
        font-family: var(--ff-poppins);
        font-weight: 600;
        font-size: 1.25rem;
        color: var(--clr-red-800);
        line-height: 1.6;
        text-decoration: none;
        border-color: var(--clr-red-800);
        border-bottom-width: 4px;
        border-bottom-style: solid;
    }

    .section-text + .section-book-btn {
        margin-top: 3.8rem;
    }

    .section-sub-nav {
        margin-bottom: 3.5rem;

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            align-items: baseline;
            gap: 2.25rem;
            font-family: var(--ff-poppins);
            font-weight: 400;
            font-size: 1.5rem;
            line-height: 1.6;
        }

        a, button {
            color: var(--clr-black);
            opacity: .5;
            text-decoration: none;
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            cursor: pointer;
            /* transition: .5s; */
        }

        a:hover, button:hover {
            opacity: .8;
        }

        .active {
            opacity: 1;
            font-size: 1.875rem;
            font-weight: 600;
            border-color: var(--clr-black);
            border-bottom-width: 4px;
            border-bottom-style: solid;
        }
    }

    .conact-form-container {
        background-color: rgba(0, 0, 0, .05);
        padding: 4rem;

        @media (width < 600px) {
            padding: 2.5rem 1.5rem;
        }
    }

    .conact-form {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;

        @media (width < 600px) {
            display: flex;
            flex-direction: column;
        }
    }

    .form-control {
        display: flex;
        flex-direction: column;
        gap: .125rem;
    }

    .form-control.col-span-3 {
        grid-column-start: 1;
        grid-column-end: 4;

        @media (width < 600px) {
            grid-column-start: 1;
            grid-column-end: 2;
        }
    }

    /* .form-control + .form-control {
        margin-top: 1.25rem;
    } */

    .form-control__label {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .form-control__input {
        background-color: rgba(255,255,255,.6);
        width: 100%;
        height: 2.75rem;
        border: none;
        border-bottom: 1px solid rgba(86, 86, 86, .6);
        font-size: 1.125rem;
        font-weight: 500;
        padding: 0 1rem;
        outline: none;
        transition: .5s;
    }

    .form-control__input:focus {
        background-color: rgba(255,255,255,1);
    }

    .form-control__textarea {
        background-color: rgba(255,255,255,.6);
        border: none;
        border-bottom: 1px solid rgba(86, 86, 86, .6);
        font-size: 1.125rem;
        font-weight: 500;
        padding: 1rem;
        resize: none;
        outline: none;
        transition: .5s;
    }

    .form-control__textarea:focus {
        background-color: rgba(255,255,255,1);
    }

    .form-submit {
        background-color: var(--clr-black);
        border: none;
        height: 3.5rem;
        min-width: 11rem;
        border-radius: .5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--ff-poppins);
        font-weight: 400;
        font-size: 1.25rem;
        color: var(--clr-white);
        line-height: 1.6;
        margin-top: 2rem;
        margin-left: auto;
        cursor: pointer;
        
        @media (width < 600px) {
            margin-right: auto;
        }
    }

    .main-footer {
        display: grid;
        grid-template-columns: 2fr 2fr 1fr;
        gap: 4rem;
        border-top: 1px solid #A8A7A4;
        padding: 4rem 0;
        margin-top: 11rem;

        @media (width < 600px) {
            grid-template-columns: 1fr;
            gap: 3rem;
        }
    }

    .main-footer__logo {
        width: 6rem;
        margin-bottom: 2.25rem;
    }

    .main-footer__copy {
        font-family: var(--ff-poppins);
        font-weight: 300;
        font-size: 1rem;
        color: var(--clr-black);
        line-height: 1.6;
    }

    .main-footer__copy + .main-footer__copy {
        margin-top: 2.75rem;
    }

    .main-footer__title {
        font-size: 2rem;
        line-height: 1.6;
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    .main-footer__text {
        font-family: var(--ff-poppins);
        font-weight: 400;
        font-size: 1.25rem;
        color: var(--clr-black);
        line-height: 1.6;
    }

    .main-footer__social {
        display: flex;
        align-items: center;
        gap: .8rem;
        margin-bottom: 5rem;
    }

    .location-content {
        display: none;
    }

    .location-content.show {
        display: block;
    }
    
    .mobile-align-justify {
        @media (width < 600px) {
            text-align: justify;
        }
    }
    
    .timing {
        display: flex;
        flex-direction: column;
            margin-top: 1.6rem;
    }

    .timing__row {
        display: flex;
        align-items: center;
        height: 2.75rem;
    }

    .timing__row:nth-child(odd) {
        background-color: rgba(0, 0, 0, .03);
    }

    .timing__row span {
        font-size: 1rem;
        display: block;
    }

    .timing__row span:first-child {
        width: 13rem;
        padding-left: 1.5rem;

        @media (width < 600px) {
            width: 9rem;
            padding-left: 1rem;
        }
    }
    
    .error {
        color: red;
        font-size: 14px;
    }
    .success {
        color: green;
        font-size: 16px;
        margin-top: 10px;
    }
}