/* ================================================================
   MOHAR COTTAGE
   THE TABLE
   ---------------------------------------------------------------
   Dining / hospitality section
   Static visual foundation
   ================================================================ */


/* ================================================================
   SECTION
   ================================================================ */

.table-section {
    position: relative;
    overflow: hidden;

    padding: 9rem 0 10rem;

    background:
        var(--background-section);

    color:
        var(
            --color-text,
            #292929
        );
}


/* ================================================================
   CONTAINER
   ================================================================ */

.table-container {
    width: min(
        calc(100% - 3rem),
        1400px
    );

    margin: 0 auto;
}


/* ================================================================
   INTRO
   ================================================================ */

.table-intro {
    width: min(
        100%,
        820px
    );

    margin: 0 auto 7rem;

    text-align: center;
}


.table-eyebrow {
    display: block;

    margin: 0 0 1.4rem;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size: 0.72rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.24em;

    text-transform: uppercase;

    color:
        var(
            --color-primary,
            #3f604e
        );
}


.table-title {
    margin: 0;

    font-family:
        var(
            --font-display,
            Georgia,
            serif
        );

    font-size:
        clamp(
            3.5rem,
            7vw,
            6.5rem
        );

    font-weight: 500;

    line-height: 0.92;

    letter-spacing: -0.045em;

    color:
        var(
            --color-text,
            #292929
        );
}


.table-intro__text {
    width: min(
        100%,
        650px
    );

    margin:
        2.5rem
        auto
        0;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size:
        clamp(
            1rem,
            1.4vw,
            1.12rem
        );

    line-height: 1.75;

    color:
        var(
            --color-text-muted,
            #66645e
        );
}


/* ================================================================
   VISUAL STORY
   ================================================================ */

.table-story {
    position: relative;

    width: 100%;

    min-height: 900px;

    margin-bottom: 9rem;
}


/* ================================================================
   IMAGE BASE
   ================================================================ */

.table-image {
    position: absolute;

    margin: 0;

    overflow: hidden;

    background: #ddd8cc;

    border-radius:
        1.25rem;

    box-shadow:
        0 25px 70px
        rgba(
            37,
            42,
            37,
            0.12
        );
}


.table-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transform:
        scale(1.001);

    transition:
        transform 1.2s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* ================================================================
   MAIN DINING IMAGE
   ================================================================ */

.table-image--main {
    top: 0;
    left: 0;

    width: 68%;

    aspect-ratio: 4 / 3;

    z-index: 1;
}


.table-image--main img {
    object-position: center;
}


/* ================================================================
   MEAL DETAIL
   ================================================================ */

.table-image--meal {
    top: 27%;
    right: 2%;

    width: 38%;

    aspect-ratio: 4 / 5;

    z-index: 3;
}


.table-image--meal img {
    object-position: center;
}


/* ================================================================
   MORNING TEA
   ================================================================ */

.table-image--morning {
    right: 10%;
    bottom: 0;

    width: 42%;

    aspect-ratio: 16 / 10;

    z-index: 2;
}


.table-image--morning img {
    object-position: center;
}


/* ================================================================
   IMAGE INTERACTION
   ================================================================ */

@media (hover: hover) {

    .table-image:hover img {
        transform:
            scale(1.035);
    }

}


/* ================================================================
   STORY STATEMENT
   ================================================================ */

.table-story__statement {
    position: absolute;

    left: 8%;

    bottom: 8%;

    width: min(
        340px,
        30%
    );

    padding:
        2rem
        2rem
        2.2rem;

    background:
        var(
            --color-surface,
            #f1ece2
        );

    border-radius:
        0.75rem;

    box-shadow:
        0 15px 45px
        rgba(
            37,
            42,
            37,
            0.08
        );

    z-index: 5;
}


.table-story__quote-mark {
    display: block;

    margin-bottom:
        0.5rem;

    font-family:
        var(
            --font-display,
            Georgia,
            serif
        );

    font-size:
        4rem;

    line-height:
        0.65;

    color:
        var(
            --color-primary,
            #3f604e
        );
}


.table-story__statement p {
    margin: 0;

    font-family:
        var(
            --font-display,
            Georgia,
            serif
        );

    font-size:
        clamp(
            1.25rem,
            2vw,
            1.65rem
        );

    line-height:
        1.25;

    letter-spacing:
        -0.02em;

    color:
        var(
            --color-text,
            #292929
        );
}


/* ================================================================
   STORY COPY
   ================================================================ */

.table-copy {
    display: grid;

    grid-template-columns:
        1fr
        1.7fr;

    column-gap:
        8rem;

    align-items: start;

    width:
        min(
            100%,
            1100px
        );

    margin:
        0 auto 8rem;
}


.table-copy__label {
    padding-top:
        0.5rem;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size:
        0.7rem;

    font-weight:
        700;

    line-height:
        1.2;

    letter-spacing:
        0.2em;

    text-transform:
        uppercase;

    color:
        var(
            --color-primary,
            #3f604e
        );
}


.table-copy h3 {
    grid-column:
        2;

    margin:
        0 0 2.5rem;

    font-family:
        var(
            --font-display,
            Georgia,
            serif
        );

    font-size:
        clamp(
            2.8rem,
            5vw,
            5rem
        );

    font-weight:
        500;

    line-height:
        0.95;

    letter-spacing:
        -0.04em;

    color:
        var(
            --color-text,
            #292929
        );
}


.table-copy__body {
    grid-column:
        2;

    max-width:
        620px;
}


.table-copy__body p {
    margin:
        0 0 1.5rem;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size:
        1rem;

    line-height:
        1.8;

    color:
        var(
            --color-text-muted,
            #66645e
        );
}


.table-copy__body p:last-child {
    margin-bottom:
        0;
}


/* ================================================================
   EXPERIENCE DETAILS
   ================================================================ */

.table-details {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap:
        1px;

    width:
        min(
            100%,
            1100px
        );

    margin:
        0 auto;

    border-top:
        1px solid
        rgba(
            41,
            41,
            41,
            0.15
        );

    border-bottom:
        1px solid
        rgba(
            41,
            41,
            41,
            0.15
        );
}


.table-detail {
    min-height:
        220px;

    padding:
        2rem
        2.2rem;

    border-right:
        1px solid
        rgba(
            41,
            41,
            41,
            0.15
        );
}


.table-detail:last-child {
    border-right:
        0;
}


.table-detail__number {
    display:
        block;

    margin-bottom:
        2.5rem;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size:
        0.7rem;

    font-weight:
        700;

    letter-spacing:
        0.15em;

    color:
        var(
            --color-primary,
            #3f604e
        );
}


.table-detail__title {
    display:
        block;

    margin:
        0 0 0.8rem;

    font-family:
        var(
            --font-display,
            Georgia,
            serif
        );

    font-size:
        1.65rem;

    font-weight:
        500;

    line-height:
        1.05;

    letter-spacing:
        -0.02em;

    color:
        var(
            --color-text,
            #292929
        );
}


.table-detail p {
    max-width:
        230px;

    margin:
        0;

    font-family:
        var(
            --font-sans,
            "Inter",
            sans-serif
        );

    font-size:
        0.9rem;

    line-height:
        1.65;

    color:
        var(
            --color-text-muted,
            #66645e
        );
}


/* ================================================================
   TABLET
   ================================================================ */

@media (
    min-width: 768px
) and (
    max-width: 1199px
) {

    .table-section {
        padding:
            7rem 0 8rem;
    }


    .table-intro {
        margin-bottom:
            5rem;
    }


    .table-story {
        min-height:
            760px;
    }


    .table-image--main {
        width:
            70%;
    }


    .table-image--meal {
        width:
            40%;

        top:
            26%;
    }


    .table-image--morning {
        width:
            44%;

        right:
            5%;
    }


    .table-story__statement {
        left:
            5%;

        width:
            32%;
    }


    .table-copy {
        column-gap:
            4rem;
    }

}


/* ================================================================
   MOBILE
   ================================================================ */

@media (
    max-width: 767px
) {

    .table-section {
        padding:
            5rem 0 6rem;
    }


    .table-container {
        width:
            calc(
                100% - 2rem
            );
    }


    /* ------------------------------------------------------------
       INTRO
       ------------------------------------------------------------ */

    .table-intro {
        width:
            100%;

        margin:
            0 auto 4rem;

        text-align:
            left;
    }


    .table-eyebrow {
        margin-bottom:
            1rem;
    }


    .table-title {
        font-size:
            clamp(
                3rem,
                14vw,
                4.5rem
            );

        line-height:
            0.95;
    }


    .table-intro__text {
        margin-top:
            1.5rem;

        font-size:
            0.98rem;

        line-height:
            1.65;
    }


    /* ------------------------------------------------------------
       VISUAL STORY
       ------------------------------------------------------------ */

    .table-story {
        display:
            flex;

        flex-direction:
            column;

        gap:
            1rem;

        min-height:
            auto;

        margin-bottom:
            5rem;
    }


    .table-image {
        position:
            relative;

        inset:
            auto;

        width:
            100%;

        aspect-ratio:
            4 / 3;

        border-radius:
            1rem;
    }


    .table-image--main {
        aspect-ratio:
            4 / 3;
    }


    .table-image--meal {
        width:
            82%;

        margin-left:
            auto;

        aspect-ratio:
            4 / 5;
    }


    .table-image--morning {
        width:
            92%;

        margin-right:
            auto;

        aspect-ratio:
            16 / 10;
    }


    .table-story__statement {
        position:
            relative;

        left:
            auto;

        bottom:
            auto;

        width:
            88%;

        margin:
            -2.5rem
            auto
            0;

        padding:
            1.6rem
            1.6rem
            1.8rem;

        z-index:
            5;
    }


    .table-story__quote-mark {
        font-size:
            3.25rem;
    }


    .table-story__statement p {
        font-size:
            1.25rem;
    }


    /* ------------------------------------------------------------
       STORY COPY
       ------------------------------------------------------------ */

    .table-copy {
        display:
            block;

        width:
            100%;

        margin-bottom:
            5rem;
    }


    .table-copy__label {
        margin-bottom:
            1.25rem;
    }


    .table-copy h3 {
        margin-bottom:
            1.75rem;

        font-size:
            clamp(
                2.6rem,
                11vw,
                3.5rem
            );
    }


    .table-copy__body {
        max-width:
            none;
    }


    .table-copy__body p {
        font-size:
            0.96rem;

        line-height:
            1.7;
    }


    /* ------------------------------------------------------------
       EXPERIENCE DETAILS
       ------------------------------------------------------------ */

    .table-details {
        display:
            block;

        width:
            100%;
    }


    .table-detail {
        min-height:
            auto;

        padding:
            1.75rem
            0;

        border-right:
            0;

        border-bottom:
            1px solid
            rgba(
                41,
                41,
                41,
                0.15
            );
    }


    .table-detail:last-child {
        border-bottom:
            0;
    }


    .table-detail__number {
        margin-bottom:
            1.25rem;
    }


    .table-detail__title {
        font-size:
            1.5rem;
    }


    .table-detail p {
        max-width:
            none;
    }

}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (
    prefers-reduced-motion: reduce
) {

    .table-image img {
        transition:
            none;
    }

}