html{
    scroll-behavior:smooth;
}

body.luna-site{
    overflow-x:hidden;
}

body.nav-open{
    overflow:hidden;
}

.page-content{
    animation:lunaPageIn .55s ease both;
}

@keyframes lunaPageIn{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:none}
}


/* =============================================
   PAGE LOADER
============================================= */

.page-loader{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    background:#f8f5ee;
    transition:opacity .45s ease,visibility .45s ease;
}

.page-loader.hide{
    opacity:0;
    visibility:hidden;
}

.loader-mark{
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    border:1px solid #b98943;
    border-radius:50%;
    color:#b98943;
    font:600 45px/1 "Cormorant Garamond",serif;
    animation:loaderPulse 1.2s ease-in-out infinite alternate;
}

@keyframes loaderPulse{
    from{transform:scale(.94);opacity:.55}
    to{transform:scale(1.04);opacity:1}
}


/* =============================================
   HEADER POLISH
============================================= */

.luna-header{
    transition:
        min-height .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.luna-header.scrolled{
    box-shadow:0 12px 32px rgba(31,40,25,.08);
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(12px);
}

.luna-header.scrolled .luna-nav-row{
    min-height:82px;
}

.luna-logo,
.luna-logo strong,
.luna-logo small,
.luna-mark{
    transition:all .25s ease;
}

.luna-header.scrolled .luna-mark{
    width:44px;
    height:44px;
    font-size:35px;
}

.luna-header.scrolled .luna-logo strong{
    font-size:27px;
}

.luna-nav a{
    position:relative;
}

.luna-nav a:not(.book-now)::after{
    content:"";
    position:absolute;
    left:0;
    right:100%;
    bottom:27px;
    height:1px;
    background:#b98943;
    transition:right .22s ease;
}

.luna-nav a:not(.book-now):hover::after,
.luna-nav a.active::after{
    right:0;
}

.luna-nav a.active{
    color:#46582f;
}

.book-now{
    transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}

.book-now:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(49,64,34,.18);
    background:#314022;
}

.book-now.active-book{
    outline:1px solid #b98943;
    outline-offset:3px;
}


/* =============================================
   MOBILE MENU
============================================= */

.menu-toggle{
    width:46px;
    height:46px;
    padding:11px;
    border:0;
    background:transparent;
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    cursor:pointer;
}

.menu-line{
    display:block;
    width:100%;
    height:2px;
    background:#314022;
    transition:transform .25s ease,opacity .25s ease;
}

.menu-toggle.open .menu-line:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-line:nth-child(2){
    opacity:0;
}

.menu-toggle.open .menu-line:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.mobile-overlay{
    position:fixed;
    inset:0;
    z-index:44;
    background:rgba(25,32,20,.45);
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
}

.mobile-overlay.show{
    opacity:1;
    visibility:visible;
}


/* =============================================
   REVEAL ANIMATIONS
============================================= */

.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .75s ease,
        transform .75s ease;
}

.reveal.visible{
    opacity:1;
    transform:none;
}


/* =============================================
   HOVERS / CARD POLISH
============================================= */

.site04-cards article,
.journey-grid article,
.membership-main,
.membership-side,
.values-grid article,
.who-grid div,
.gallery05-grid figure,
.contact05-card{
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.site04-cards article.hovered,
.journey-grid article.hovered,
.membership-main.hovered,
.membership-side.hovered,
.values-grid article.hovered,
.who-grid div.hovered,
.contact05-card.hovered{
    transform:translateY(-5px);
    box-shadow:0 16px 35px rgba(49,64,34,.09);
    border-color:rgba(185,137,67,.38);
}

.gallery05-grid figure.hovered{
    transform:translateY(-4px);
    box-shadow:0 16px 35px rgba(49,64,34,.12);
}

.gallery05-grid figure{
    cursor:default;
}

.gallery05-grid figure::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:rgba(49,64,34,0);
    transition:background .3s ease;
}

.gallery05-grid figure:hover::before{
    background:rgba(49,64,34,.08);
}


/* =============================================
   GLOBAL BOOKING BAND
============================================= */

.global-booking-band{
    background:#b98943;
    color:#fff;
    padding:55px 0;
}

.global-booking-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}

.global-booking-inner h2{
    margin:0;
    font:600 45px/1 "Cormorant Garamond",serif;
}

.global-booking-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.global-book-btn,
.global-whatsapp-btn{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 20px;
    font-size:9px;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    text-decoration:none;
    transition:.2s ease;
}

.global-book-btn{
    background:#314022;
    color:#fff;
}

.global-whatsapp-btn{
    border:1px solid rgba(255,255,255,.8);
    color:#fff;
}

.global-book-btn:hover,
.global-whatsapp-btn:hover{
    transform:translateY(-2px);
}


/* =============================================
   FLOATING ACTIONS
============================================= */

.floating-action{
    transition:transform .2s ease,box-shadow .2s ease;
}

.floating-action:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 22px rgba(49,64,34,.18);
}

.back-to-top{
    position:fixed;
    right:22px;
    bottom:78px;
    z-index:70;

    width:42px;
    height:42px;

    border:1px solid rgba(49,64,34,.22);
    border-radius:50%;

    background:#fff;
    color:#314022;

    cursor:pointer;

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.25s ease;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:none;
}

.mobile-booking-bar{
    display:none;
}


/* =============================================
   TYPOGRAPHY / SPACING REFINEMENTS
============================================= */

.site04-section,
.about05-who,
.gallery05-section,
.contact05-section,
.menu-section{
    scroll-margin-top:110px;
}

.site04-heading h2,
.about05-intro h2,
.about05-split h2,
.about05-who h2,
.gallery05-intro h2,
.contact05-main h2{
    text-wrap:balance;
}


/* =============================================
   FORM POLISH
============================================= */

.luna-input{
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.luna-input:focus{
    box-shadow:0 0 0 3px rgba(70,88,47,.08);
}

.booking-submit{
    transition:background .2s ease,transform .2s ease;
}

.booking-submit:hover{
    transform:translateY(-1px);
}


/* =============================================
   RESPONSIVE
============================================= */

@media(max-width:950px){

    .menu-toggle{
        display:flex;
    }

    .luna-nav{
        position:fixed!important;
        top:0!important;
        right:0!important;
        left:auto!important;
        bottom:0;

        width:min(360px,88vw);

        z-index:46;

        display:flex!important;
        flex-direction:column;
        align-items:stretch!important;

        padding:120px 28px 30px!important;

        background:#fff;

        transform:translateX(105%);
        transition:transform .3s ease;

        overflow-y:auto;

        box-shadow:-20px 0 50px rgba(31,40,25,.12);
    }

    .luna-nav.open{
        transform:none;
    }

    .luna-nav a{
        width:100%;
        padding:13px 0!important;
        border-bottom:1px solid rgba(49,64,34,.09);
        font-size:12px!important;
    }

    .luna-nav a:not(.book-now)::after{
        display:none;
    }

    .luna-nav a.active{
        color:#b98943;
    }

    .luna-nav .book-now{
        margin-top:18px;
        text-align:center;
        border:0;
        padding:16px!important;
    }

    .menu-toggle{
        position:relative;
        z-index:47;
    }

    .global-booking-inner{
        flex-direction:column;
        align-items:flex-start;
    }

}


@media(max-width:700px){

    body{
        padding-bottom:58px;
    }

    .luna-topbar{
        display:none;
    }

    .luna-nav-row{
        min-height:80px;
    }

    .global-booking-band{
        padding:45px 0;
    }

    .global-booking-inner h2{
        font-size:38px;
    }

    .global-booking-actions{
        width:100%;
    }

    .global-book-btn,
    .global-whatsapp-btn{
        flex:1;
    }

    .mobile-booking-bar{
        position:fixed;
        left:0;
        right:0;
        bottom:0;

        z-index:80;

        min-height:58px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:#314022;
        color:#fff;

        text-decoration:none;
        text-transform:uppercase;

        font-size:10px;
        font-weight:700;
        letter-spacing:.12em;

        box-shadow:0 -8px 25px rgba(49,64,34,.12);
    }

    .luna-whatsapp{
        bottom:74px!important;
    }

    .back-to-top{
        bottom:128px;
    }

}


@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        scroll-behavior:auto!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;
    }

    .reveal{
        opacity:1!important;
        transform:none!important;
    }

}
