/* =====================================================================
   Reverie mobile side drawer — shared by every page (see rev-drawer.js)
   ===================================================================== */

/* The old dropdown menus are replaced by the drawer */
#mobile-menu { display: none !important; }

/* ---------- Burger button (restyles each page's existing menu button) ---------- */
.rev-burger {
    align-items: center !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 999px !important;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: column !important;
    flex-shrink: 0;
    gap: 4px !important;
    height: 36px !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: border-color .3s ease, background .3s ease;
    width: 36px !important;
}
.rev-burger span {
    background: #fff;
    border-radius: 2px;
    display: block;
    height: 1.5px;
    transition: transform .35s ease, opacity .25s ease, width .35s ease, margin .35s ease;
    width: 16px;
}
.rev-burger span:nth-child(2) { width: 11px; margin-left: 5px; }
.rev-burger:hover,
.rev-burger:focus-visible { border-color: #c8b393 !important; background: rgba(200, 179, 147, .12) !important; outline: none; }
.rev-burger:hover span:nth-child(2) { width: 16px; margin-left: 0; }
body.rev-drawer-open .rev-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.rev-drawer-open .rev-burger span:nth-child(2) { opacity: 0; }
body.rev-drawer-open .rev-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Backdrop + panel ---------- */
.rev-drawer-backdrop {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, .55);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .4s ease;
    z-index: 2000;
}
.rev-drawer {
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(200, 179, 147, .10), transparent 60%),
        linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-left: 1px solid rgba(200, 179, 147, .18);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 380px;
    position: fixed;
    right: 0;
    text-align: left;
    top: 0;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.22, .8, .24, 1);
    width: 86vw;
    z-index: 2001;
}
.rev-drawer *, .rev-drawer *::before, .rev-drawer *::after { box-sizing: border-box; }
.rev-drawer[hidden],
.rev-drawer-backdrop[hidden] { display: none !important; }
body.rev-drawer-open { overflow: hidden; }
body.rev-drawer-open .rev-drawer { transform: translateX(0); }
body.rev-drawer-open .rev-drawer-backdrop { opacity: 1; }

/* Some pages force Poppins on every element with !important; win it back for the drawer (icons keep Phosphor) */
body .rev-drawer,
body .rev-drawer :is(a, span, p, summary, button, div, nav, li, ul):not(.ph):not([class*="ph-"]) {
    font-family: 'Questrial', 'Poppins', sans-serif !important;
}

/* ---------- Head ---------- */
.rev-drawer-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    padding: 18px 20px 16px 24px;
    padding-top: max(18px, env(safe-area-inset-top));
}
.rev-drawer-logo { display: inline-flex; }
.rev-drawer-logo img { height: 30px; object-fit: contain; width: auto; }
.rev-drawer-close {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition: border-color .3s, color .3s, transform .3s;
    width: 38px;
}
.rev-drawer-close:hover,
.rev-drawer-close:focus-visible { border-color: #c8b393; color: #c8b393; transform: rotate(90deg); outline: none; }

/* ---------- Body ---------- */
.rev-drawer-body {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
    -webkit-overflow-scrolling: touch;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 24px 20px;
}
.rev-drawer-label {
    color: #c8b393;
    font-size: 10.5px;
    letter-spacing: .3em;
    line-height: 1.4;
    margin: 22px 0 6px;
    text-transform: uppercase;
}
.rev-drawer-list { list-style: none; margin: 0; padding: 0; }
.rev-drawer-list > li { margin: 0; padding: 0; }

.rev-drawer-list > li > a,
.rev-drawer-single,
.rev-drawer-group > summary {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 19px;
    font-weight: 400;
    justify-content: space-between;
    letter-spacing: .01em;
    line-height: 1.2;
    list-style: none;
    min-height: 52px;
    text-decoration: none;
    text-transform: none;
    transition: color .25s ease, padding-left .25s ease;
}
.rev-drawer-group > summary::-webkit-details-marker { display: none; }
.rev-drawer-group > summary::marker { content: ''; }
.rev-drawer-list > li > a > i,
.rev-drawer-single > i {
    color: rgba(255, 255, 255, .3);
    font-size: 15px;
    transition: color .25s ease, transform .25s ease;
}
.rev-drawer-list > li > a:hover,
.rev-drawer-single:hover,
.rev-drawer-group > summary:hover { color: #c8b393; padding-left: 4px; }
.rev-drawer-list > li > a:hover > i,
.rev-drawer-single:hover > i { color: #c8b393; transform: translate(2px, -2px); }

/* Current page */
.rev-drawer-list > li > a.is-current,
.rev-drawer-single.is-current { color: #c8b393; }
.rev-drawer-list > li > a.is-current::after,
.rev-drawer-single.is-current::after {
    background: #c8b393;
    border-radius: 50%;
    content: '';
    height: 5px;
    margin-left: auto;
    margin-right: 12px;
    width: 5px;
}
.rev-drawer-list > li > a.is-current > i,
.rev-drawer-single.is-current > i:last-child { display: none; }

.rev-drawer-single > span,
.rev-drawer-group > summary > span { align-items: center; display: inline-flex; gap: 12px; }
.rev-drawer-single > span > i,
.rev-drawer-group > summary > span > i { color: #c8b393; font-size: 18px; }
.rev-drawer-caret { color: rgba(255, 255, 255, .4); font-size: 14px; transition: transform .3s ease, color .3s ease; }
.rev-drawer-group[open] > summary { color: #c8b393; border-bottom-color: transparent; }
.rev-drawer-group[open] .rev-drawer-caret { color: #c8b393; transform: rotate(180deg); }

.rev-drawer-sub {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-left: 1px solid rgba(200, 179, 147, .35);
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 6px 8px;
    padding: 4px 0 14px 18px;
}
.rev-drawer-group[open] .rev-drawer-sub { animation: revDrawerSub .3s ease both; }
@keyframes revDrawerSub { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rev-drawer-sub a {
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.3;
    padding: 9px 0;
    text-decoration: none;
    text-transform: none;
    transition: color .2s ease;
}
.rev-drawer-sub a:first-child { color: #fff; grid-column: 1 / -1; }
.rev-drawer-sub a:hover,
.rev-drawer-sub a.is-current { color: #c8b393; }
.rev-drawer-sub a.is-current::before { content: '— '; }

/* ---------- Footer ---------- */
.rev-drawer-foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 24px 22px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
}
.rev-drawer-cta {
    align-items: center;
    background: #c8b393;
    color: #0a0a0a !important;
    display: flex;
    font-size: 13px;
    gap: 10px;
    justify-content: center;
    letter-spacing: .18em;
    min-height: 50px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .3s ease;
}
.rev-drawer-cta:hover { background: #fff; }
.rev-drawer-quick {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px;
}
.rev-drawer-quick a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .8);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
    letter-spacing: .08em;
    padding: 10px 4px;
    text-decoration: none;
    transition: border-color .25s, color .25s;
}
.rev-drawer-quick a i { color: #c8b393; font-size: 18px; }
.rev-drawer-quick a:hover { border-color: #c8b393; color: #fff; }
.rev-drawer-addr {
    align-items: center;
    color: rgba(255, 255, 255, .4);
    display: flex;
    font-size: 12px;
    gap: 6px;
    justify-content: center;
    margin: 14px 0 0;
}

/* ---------- Staggered entrance ---------- */
.rev-drawer-body > *,
.rev-drawer-foot { opacity: 0; transform: translateX(16px); transition: opacity .4s ease, transform .4s ease; }
body.rev-drawer-open .rev-drawer-body > *,
body.rev-drawer-open .rev-drawer-foot { opacity: 1; transform: none; }
body.rev-drawer-open .rev-drawer-body > :nth-child(1) { transition-delay: .08s; }
body.rev-drawer-open .rev-drawer-body > :nth-child(2) { transition-delay: .12s; }
body.rev-drawer-open .rev-drawer-body > :nth-child(3) { transition-delay: .16s; }
body.rev-drawer-open .rev-drawer-body > :nth-child(4) { transition-delay: .20s; }
body.rev-drawer-open .rev-drawer-foot { transition-delay: .24s; }

@media (max-width: 360px) {
    .rev-drawer { width: 92vw; }
    .rev-drawer-sub { grid-template-columns: 1fr; }
}
@media (max-height: 560px) {
    .rev-drawer-addr { display: none; }
    .rev-drawer-list > li > a, .rev-drawer-single, .rev-drawer-group > summary { min-height: 44px; font-size: 17px; }
}

/* ---------- Light mode ---------- */
body.light-mode .rev-burger { background: rgba(255, 255, 255, .6) !important; border-color: rgba(0, 0, 0, .15) !important; }
body.light-mode .rev-burger span { background: #111; }
body.light-mode .rev-drawer {
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(200, 179, 147, .22), transparent 60%),
        linear-gradient(180deg, #faf8f4 0%, #f2eee7 100%);
    border-left-color: rgba(138, 109, 59, .25);
    color: #111;
}
body.light-mode .rev-drawer-head,
body.light-mode .rev-drawer-foot { border-color: rgba(0, 0, 0, .08); }
body.light-mode .rev-drawer-close { border-color: rgba(0, 0, 0, .15); color: #111; }
body.light-mode .rev-drawer-label,
body.light-mode .rev-drawer-list > li > a.is-current,
body.light-mode .rev-drawer-single.is-current,
body.light-mode .rev-drawer-group[open] > summary,
body.light-mode .rev-drawer-single > span > i,
body.light-mode .rev-drawer-group > summary > span > i,
body.light-mode .rev-drawer-sub a.is-current,
body.light-mode .rev-drawer-quick a i { color: #8a6d3b; }
body.light-mode .rev-drawer-list > li > a,
body.light-mode .rev-drawer-single,
body.light-mode .rev-drawer-group > summary { color: #111; border-bottom-color: rgba(0, 0, 0, .08); }
body.light-mode .rev-drawer-list > li > a.is-current::after,
body.light-mode .rev-drawer-single.is-current::after { background: #8a6d3b; }
body.light-mode .rev-drawer-sub { border-left-color: rgba(138, 109, 59, .4); border-bottom-color: rgba(0, 0, 0, .08); }
body.light-mode .rev-drawer-sub a { color: #444; }
body.light-mode .rev-drawer-sub a:first-child { color: #111; }
body.light-mode .rev-drawer-quick a { border-color: rgba(0, 0, 0, .12); color: #333; }
body.light-mode .rev-drawer-addr { color: #777; }

@media (prefers-reduced-motion: reduce) {
    .rev-drawer, .rev-drawer-backdrop, .rev-drawer-body > *, .rev-drawer-foot, .rev-burger span { transition: none !important; }
    .rev-drawer-group[open] .rev-drawer-sub { animation: none; }
}

/* =====================================================================
   Mobile footer (built by rev-drawer.js) — phones & tablets only.
   Desktop keeps each page's own footer.
   ===================================================================== */
.rev-mfooter { display: none; }

@media (max-width: 1023px) {
    /* Some pages have decorative glow shapes wider than the screen, which let phones
       scroll sideways. "clip" trims them without creating a scroll container. */
    html, body { overflow-x: clip; }

    .rev-site-footer { display: none !important; }

    .rev-mfooter {
        background:
            radial-gradient(120% 50% at 0% 0%, rgba(200, 179, 147, .08), transparent 60%),
            #070707;
        border-top: 1px solid rgba(200, 179, 147, .18);
        box-sizing: border-box;
        color: #fff;
        display: block;
        padding: 40px 22px 0;
        position: relative;
        text-align: left;
        width: 100%;
        z-index: 50;
    }
    .rev-mfooter *, .rev-mfooter *::before, .rev-mfooter *::after { box-sizing: border-box; }
    body .rev-mfooter,
    body .rev-mfooter :is(a, span, p, small, strong, button, div, nav, li, ul):not(.ph):not([class*="ph-"]) {
        font-family: 'Questrial', 'Poppins', sans-serif !important;
    }
    .rev-mfooter a { text-decoration: none; }
    .rev-mfooter ul { list-style: none; margin: 0; padding: 0; }
    .rev-mfooter p { margin: 0; }

    /* Brand */
    .rev-mf-logo img { display: block; height: 40px; object-fit: contain; width: auto; }
    .rev-mf-tag {
        color: rgba(255, 255, 255, .62);
        font-size: 14px;
        line-height: 1.6;
        margin: 14px 0 18px !important;
        max-width: 34ch;
    }
    .rev-mf-cta {
        align-items: center;
        background: #c8b393;
        color: #0a0a0a !important;
        display: inline-flex;
        font-size: 12px;
        gap: 10px;
        letter-spacing: .18em;
        min-height: 46px;
        padding: 0 22px;
        text-transform: uppercase;
        transition: background .3s ease;
    }
    .rev-mf-cta:hover { background: #fff; }

    /* Quick actions */
    .rev-mf-quick {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 28px;
    }
    .rev-mf-quick a {
        align-items: center;
        border: 1px solid rgba(255, 255, 255, .12);
        color: rgba(255, 255, 255, .85);
        display: flex;
        flex-direction: column;
        font-size: 11px;
        gap: 5px;
        letter-spacing: .08em;
        padding: 12px 4px;
        transition: border-color .25s, color .25s, background .25s;
    }
    .rev-mf-quick a i { color: #c8b393; font-size: 20px; }
    .rev-mf-quick a:hover { background: rgba(200, 179, 147, .08); border-color: #c8b393; color: #fff; }

    /* Link columns */
    .rev-mf-label {
        color: #c8b393;
        font-size: 10.5px;
        letter-spacing: .3em;
        margin-bottom: 12px !important;
        text-transform: uppercase;
    }
    .rev-mf-links {
        border-top: 1px solid rgba(255, 255, 255, .08);
        display: grid;
        gap: 18px;
        grid-template-columns: 1fr 1fr;
        margin-top: 30px;
        padding-top: 26px;
    }
    .rev-mf-col li a {
        color: rgba(255, 255, 255, .78);
        display: inline-block;
        font-size: 15px;
        padding: 7px 0;
        transition: color .2s ease;
    }
    .rev-mf-col li a:hover, .rev-mf-col li a.is-current { color: #c8b393; }

    /* Contact list */
    .rev-mf-contact {
        border-top: 1px solid rgba(255, 255, 255, .08);
        display: flex;
        flex-direction: column;
        margin-top: 24px;
        padding-top: 24px;
    }
    .rev-mf-contact a {
        align-items: center;
        color: rgba(255, 255, 255, .78) !important;
        display: flex;
        font-size: 14px;
        gap: 12px;
        padding: 8px 0;
        transition: color .2s ease;
        word-break: break-word;
    }
    .rev-mf-contact a i { color: #c8b393; flex-shrink: 0; font-size: 17px; }
    .rev-mf-contact a small { color: rgba(255, 255, 255, .38); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
    .rev-mf-contact a:hover { color: #c8b393 !important; }

    /* Partner */
    .rev-mf-partner {
        align-items: center;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 999px;
        display: flex;
        gap: 12px;
        margin-top: 26px;
        padding: 8px 18px 8px 8px;
        transition: border-color .25s ease;
    }
    .rev-mf-partner img { border: 1px solid rgba(200, 179, 147, .4); border-radius: 50%; height: 32px; object-fit: cover; width: 32px; }
    .rev-mf-partner span { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
    .rev-mf-partner small { color: #c8b393; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
    .rev-mf-partner strong { color: #fff; font-size: 14px; font-weight: 600; }
    .rev-mf-partner > i { color: rgba(255, 255, 255, .4); }
    .rev-mf-partner:hover { border-color: #c8b393; }

    /* Bottom bar — leaves room on the right for the floating chat button */
    .rev-mf-bottom {
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, .08);
        display: flex;
        gap: 16px;
        justify-content: space-between;
        margin-top: 28px;
        padding: 18px 0 calc(96px + env(safe-area-inset-bottom));
    }
    .rev-mf-bottom p { color: rgba(255, 255, 255, .45); font-size: 11px; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; }
    .rev-mf-bottom p span { color: rgba(255, 255, 255, .28); }
    .rev-mf-top {
        align-items: center;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        flex-shrink: 0;
        font-size: 16px;
        height: 42px;
        justify-content: center;
        padding: 0;
        transition: border-color .25s, color .25s;
        width: 42px;
    }
    .rev-mf-top:hover { border-color: #c8b393; color: #c8b393; }

    /* Tablets: brand + quick actions side by side, three columns below */
    @media (min-width: 640px) {
        .rev-mfooter { padding-left: 40px; padding-right: 40px; }
        .rev-mfooter { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
        .rev-mf-brand { grid-column: 1; }
        .rev-mf-quick { align-self: end; grid-column: 2; margin-top: 0; }
        .rev-mf-links { grid-column: 1; }
        .rev-mf-contact { grid-column: 2; margin-top: 30px; padding-top: 26px; }
        .rev-mf-partner { grid-column: 1 / -1; justify-self: start; }
        .rev-mf-bottom { grid-column: 1 / -1; }
    }

    /* Light mode */
    body.light-mode .rev-mfooter {
        background: radial-gradient(120% 50% at 0% 0%, rgba(200, 179, 147, .2), transparent 60%), #f6f3ee;
        border-top-color: rgba(138, 109, 59, .25);
        color: #111;
    }
    body.light-mode .rev-mf-tag,
    body.light-mode .rev-mf-col li a { color: #333; }
    body.light-mode .rev-mf-contact a { color: #333 !important; }
    body.light-mode .rev-mf-label,
    body.light-mode .rev-mf-quick a i,
    body.light-mode .rev-mf-contact a i,
    body.light-mode .rev-mf-partner small,
    body.light-mode .rev-mf-col li a.is-current { color: #8a6d3b; }
    body.light-mode .rev-mf-quick a,
    body.light-mode .rev-mf-partner,
    body.light-mode .rev-mf-top { border-color: rgba(0, 0, 0, .14); color: #222; }
    body.light-mode .rev-mf-partner strong { color: #111; }
    body.light-mode .rev-mf-links,
    body.light-mode .rev-mf-contact,
    body.light-mode .rev-mf-bottom { border-color: rgba(0, 0, 0, .08); }
    body.light-mode .rev-mf-bottom p { color: #666; }
    body.light-mode .rev-mf-bottom p span { color: #999; }
    body.light-mode .rev-mf-contact a small { color: #999; }
}
