/* ============================================================
   MINERVA — Landing Page
   ============================================================ */

:root {
    --gold-bg: #d9c08b;
    --ink: #2c2113;
    /* dark brown — labels, body */
    --navy: #333f50;
    /* dark slate — big serif headings */
    --brown-icon: #3b2b1a;
    --badge: #a79153;
    /* O.C. Received badge */
    --cream: #e9dabc;
    /* enquiry card */
    --rule: #6b5a3e;
    --serif-display: 'abugaer', Georgia, serif;
    --serif-body: 'gara_1', Georgia, serif;
    --header-h: 65px;
}

@font-face {
    font-family: 'abugaer';
    src: url('../../fonts/Abygaer.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'gara_1';
    src: url('../../fonts/GARA_1.TTF') format('truetype');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #000000 !important;
    font-family: var(--serif-body) !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    overflow-x: clip;
}

body {
    font-family: var(--serif-body);
    color: var(--ink);
    background-color: var(--gold-bg);
    background-image: url('../images/bg-texture.jpg');
    background-size: 100% 125%;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

.header-inner {
    position: relative;
}

.brand-left {
    flex: 0 0 auto;
}

.brand-left img {
    display: block;
    width: auto;
    max-width: 160px;
    height: 60px;
    margin-top: 10px;
    object-fit: contain;
    object-position: left center;
}

.brand-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.brand-center img {
    display: block;
    width: auto;
    max-width: 220px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    margin-top: 10px;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}

@media (max-width: 600px) {
    .brand-left img {
        max-width: 104px;
        height: 31px;
    }

    .brand-center img {
        max-width: 132px;
        height: 38px;
        margin-top: 3px;
    }

    .carousel {
        margin-left: -10px;
    }

    .section-sub {
        max-width: 808px;
        margin: 20px 60px 20px;
        font-size: 16px;
        letter-spacing: .06em;
        line-height: 1.7;
    }

    .location-map {
        display: block;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
        border-radius: 10px;
        overflow: hidden;
        width: 365px;
        height: 270px;
    }
}

.section-sub {
    width: min(100%, 881px);
    margin: 35px auto 0;
}

/* Keep embedded media and text sections inside smaller viewports. */
@media (max-width: 980px) {
    .section-sub {
        width: 100%;
        margin: 20px auto;
    }

    .location-map {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .distance-list {
        width: 100%;
        margin: 0 auto;
    }
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .location-map {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 82dvh;
        padding: 8px;
    }

    .lightbox__close {
        top: max(8px, env(safe-area-inset-top));
        right: 12px;
    }
}


.site-header {
    height: var(--header-h);
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    transition:
        background 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.55s ease;
}

.site-header.is-hidden {
    transform: translateY(-125%);
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(33, 26, 22, 0.91);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1440px, 100%);
    height: 100%;
    margin: auto;
    padding: 0 clamp(24px, 3vw, 82px);
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    letter-spacing: 0.25em;
    font-family: var(--font-serif);
    font-size: 15px;
}

.brand-mark {
    width: 33px;
    height: 33px;
    border: 1px solid currentColor;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
    margin-left: auto;
}

.desktop-nav a,
.section-nav a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.desktop-nav a {
    position: relative;
}

.desktop-nav a:after {
    position: absolute;
    content: "";
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s;
}

.desktop-nav a:hover:after {
    width: 100%;
}

.menu-toggle {
    position: relative;
    z-index: 102;
    width: 42px;
    height: 42px;
    margin-left: 0px;
    margin-right: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #5f3d1c !important;
    font-size: clamp(17px, 5vw, 18px);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease;

}

.header-phone img,
.responsive-contact-bar img {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 18px;
    margin-right: 8px;
    object-fit: contain;
}

.header-phone:hover,
.header-phone:focus-visible {
    opacity: .78;
}

.header-phone:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.responsive-contact-bar {
    display: none;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 1px;
    margin: 6px auto;
    background: #5f3d1c;
    transition:
        transform 0.3s,
        opacity 0.25s;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.menu-overlay {
    position: fixed;
    z-index: 99;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 24px 20px;
    visibility: hidden;
    opacity: 0;
    background: #1c1917;
    transition:
        opacity 0.38s,
        visibility 0.38s;
}

.menu-overlay,
.menu-overlay * {
    color: #f8f3e9 !important;
}

.menu-overlay.open {
    visibility: visible;
    opacity: 1;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.4vh, 14px);
    width: 100%;
    padding: 12px 0;
    text-align: center;
}

.overlay-nav .eyebrow {
    margin-bottom: 8px;
    color: #c5a56a !important;
    font-size: 11px;
    letter-spacing: .3em;
}

.overlay-nav a {
    display: block;
    padding: 2px 16px;
    font-family: var(--serif-display) !important;
    font-size: clamp(29px, 3.4vw, 42px);
    line-height: 1.08;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.overlay-nav a:hover,
.overlay-nav a:focus-visible {
    color: #c5a56a !important;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .menu-overlay {
        padding: 76px 16px 20px;
    }

    .overlay-nav {
        gap: 9px;
    }

    .overlay-nav .eyebrow {
        margin-bottom: 5px;
    }

    .overlay-nav a {
        padding: 3px 12px;
        font-size: clamp(26px, 7vw, 34px);
    }

    .section-sub {
        max-width: 808px;
        margin: 20px 60px 20px;
        font-size: 16px;
        letter-spacing: .06em;
        line-height: 1.7;
    }

    .location-map {
        display: block;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
        border-radius: 10px;
        overflow: hidden;
        width: 365px;
        height: 270px;
    }
}

/* ---------------- Responsive image viewing ---------------- */

.image-lightbox-trigger {
    cursor: zoom-in;
}

.image-lightbox-trigger:focus-visible {
    outline: 3px solid #8f6b28;
    outline-offset: 3px;
}

.location-map {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4 / 3;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.section-sub {
    width: min(100%, 881px);
    margin: 35px auto 0;
}

@media (max-width: 980px) {
    .section-sub {
        width: 100%;
        margin: 20px auto;
    }
}

@media (max-width: 640px) {
    .location-map {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 82dvh;
        padding: 8px;
    }

    .lightbox__close {
        top: max(8px, env(safe-area-inset-top));
        right: 12px;
    }
}

.bannersmalltext {
    position: absolute;
    z-index: 2;
    left: calc(clamp(12px, 1.5vw, 22px) + 10px);
    bottom: clamp(24px, 5.3vw, 72px);
    display: block;
    width: max-content;
    font-size: clamp(9px, .8vw, 10px);
    line-height: 1;
    text-align: left !important;
    color: #fff !important;
    font-weight: 300 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    transform-origin: left bottom;
    pointer-events: none;
}


.container {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.submenu {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    /* border-top: 2px solid var(--rule); */
    border-bottom: 1px solid rgba(107, 90, 62, .45);
    background: rgba(233, 218, 188, .97);
    box-shadow: 0 4px 14px rgba(44, 33, 19, .08);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.submenu::-webkit-scrollbar {
    display: none;
}

.submenu__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    height: 100%;
    margin: 0 auto;
}

.submenu a {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: relative;
    min-height: 22px;
    padding: 0 clamp(22px, 1vw, 46px);
    border-radius: 3px;
    color: #000;
    font-family: var(--serif-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.submenu a+a::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 20px;
    background: #b38b48;
    content: "";
    transform: translateY(-50%);
}

.submenu a:hover,
.submenu a:focus-visible,
.submenu a.is-active,
.submenu a:active {
    background-color: rgba(255, 255, 255, .22);
    box-shadow: 0 4px 14px rgba(74, 55, 26, .13), inset 0 0 0 1px rgba(167, 145, 83, .3);
    transform: translateY(-1px);
    text-decoration: none;
}

.submenu a:focus-visible {
    outline: 2px solid rgba(107, 90, 62, .7);
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .submenu a {
        transition: none;
    }
}

.floating-enquire {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 90;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 9px;
    border-radius: 0 8px 8px 0;
    background: rgba(233, 218, 188, .97);
    box-shadow: 0 3px 12px rgba(44, 33, 19, .16);
    color: #000 !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    cursor: pointer;
    font-family: var(--serif-body) !important;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.floating-enquire:hover,
.floating-enquire:focus-visible {
    background: rgba(233, 218, 188, .97);
    box-shadow: 0 4px 16px rgba(44, 33, 19, .24);
}

.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 24px;
    background: rgba(18, 15, 12, .72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.enquiry-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid #8a7347;
    border-radius: 26px;
    background: var(--cream);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
    text-align: center;
}

.enquiry-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.enquiry-modal__panel>.eyebrow {
    padding: 0 34px;
}

.enquiry-modal .enquiry-modal__intro {
    width: auto;
    max-width: 100%;
    margin: 20px auto 0;
    font-size: 16px;
}

.enquiry-modal__callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
}

.enquiry-modal__callout p {
    margin: 0;
    font-size: 11px;
}

.enquiry-modal__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    font-size: 18px;
    line-height: 1.3;
    text-decoration: none;
}

.enquiry-modal__phone img {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.enquiry-modal__phone:focus-visible {
    outline: 2px solid var(--rule);
    outline-offset: 4px;
}

.enquiry-modal .enquiry-card--popup {
    max-width: none;
    margin: 24px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.enquiry-card--popup .field {
    margin-bottom: 20px;
}

.enquiry-card--popup .field:last-of-type {
    margin-bottom: 0;
}

.enquiry-card .g-recaptcha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(304px, 100%);
    max-width: 100%;
    height: 78px;
    margin: 18px auto 0;
    transform: scale(clamp(.1, calc(100cqw / 304px), 1));
    transform-origin: top center;
}

.enquiry-modal .submit-btn--popup {
    margin-top: 26px;
}

.enquiry-modal .form-notice {
    margin: 24px auto 0;
}

.enquiry-modal .form-validation-error {
    margin: 20px auto 0;
}

@media (max-width: 640px) {
    .floating-enquire {
        padding: 12px 8px;
        font-size: 11px;
    }

    .enquiry-modal {
        padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    }

    .enquiry-modal__panel {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 38px 24px 28px;
        border-radius: 20px;
    }

    .enquiry-modal .enquiry-modal__intro {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.5;
    }

    .enquiry-modal__callout {
        gap: 6px;
        margin-top: 14px;
    }

    .enquiry-modal__phone {
        gap: 7px;
        font-size: 18px;
    }

    .enquiry-modal__phone img {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .enquiry-modal .enquiry-card--popup {
        margin-top: 18px;
    }

    .enquiry-modal .submit-btn--popup {
        margin-top: 20px;
    }
}

/* ---------------- Section scaffolding ---------------- */

.section {
    padding: 30px 40px 70px;
}

.eyebrow {
    font-family: var(--serif-body) !important;
    font-size: 18px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 700;
    /* color: var(--ink); */
}

.eyebrow-rule {
    display: block;
    width: 140px;
    height: 2px;
    background: #6f675a;
    margin: 12px auto 0;
}

.eyebrow-rule--wide {
    width: 160px;
    margin-top: 20px;
}

.section-title {
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: clamp(22px, 1vw, 44px);
    letter-spacing: .04em;
    color: var(--ink);
    margin-top: 20px;
    text-transform: uppercase;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 7vw, 110px);
    margin-top: 50px;
    align-items: baseline;
}

.section-sub {
    max-width: 881px;
    margin: 35px 163px 0px;
    font-size: 14px;
    letter-spacing: .06em;
    /* line-height: 1.7; */
    /* color: var(--ink); */
}

.section-divider {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: 2px;
    background: #6f675a;

    margin: 50px auto 0;
}

.rule-short {
    display: block;
    width: 185px;
    height: 1px;
    background: var(--rule);
    margin: 70px auto 0;
}

/* ---------------------- HERO ---------------------- */

.hero {
    position: relative;
}

.hero picture {
    display: block;
}

.hero__bg {
    width: 100%;
    height: auto;
    max-height: 100vh;
}

.hero__content {
    position: absolute;
    top: 24%;
    left: 56%;
    transform: translateX(-26%);
    text-align: center;
    width: min(680px, 60vw);
}

.hero__title {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: clamp(22px, 2.9vw, 46px);
    letter-spacing: .02em;
    color: #3a4660;
    white-space: nowrap;
}

.hero__badge {
    display: inline-block;
    margin-top: clamp(16px, 4vw, 64px);
    background: var(--badge);
    color: #fdf8ec;
    font-family: var(--serif-display);
    font-size: clamp(16px, 1.9vw, 30px);
    letter-spacing: .18em;
    padding: .35em 1.5em;
}

.hero__sub {
    margin-top: 14px;
    font-size: clamp(13px, 1.2vw, 20px);
    letter-spacing: .18em;
    color: #4a3c22;
}

/* ------------------- HIGHLIGHTS ------------------- */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 50px;
}

.highlight__icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 22px;
}

.highlight h3 {
    font-family: var(--serif-display);
    font-size: 17px;
    font-weight: 800;
    -webkit-text-stroke: .25px rgb(0 0 0 / 100%);
    letter-spacing: .05em;
    color: var(--ink);
    text-transform: uppercase;
}

.highlight p {
    margin-top: 8px;
    font-size: 15px;
    letter-spacing: .05em;
    color: #4a3c25;
}

/* --------------------- ABOUT ---------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.01fr;
    gap: 70px;
    align-items: center;
    margin-top: 40px;
    text-align: left;
}

.about-text p {
    font-size: 14px;
    letter-spacing: .08em;
    line-height: 1.85;
    margin-bottom: 25px;
    color: var(--ink);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-image {
    position: relative;
}

/* -------------------- CAROUSELS -------------------- */

.carousel {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    padding-left: 8%;
    padding-right: 8%;
}

.carousel__track-wrap {
    overflow: hidden;
}

.carousel--amenities .carousel__track-wrap {
    overflow: hidden;
}

.carousel--amenities .carousel__track-wrap::-webkit-scrollbar {
    display: none;
}

.carousel__track {
    display: flex;
    gap: 8px;
    transition: transform .6s cubic-bezier(.33, .9, .35, 1);
    will-change: transform;
}

.carousel--amenities .carousel__track {
    width: 100%;
    max-height: 360px;
    transition: transform .6s cubic-bezier(.33, .9, .35, 1);
    will-change: transform;
    object-fit: cover;
}

.carousel__track--resetting {
    transition: none !important;
}

.carousel__slide {
    flex: 0 0 50%;
    min-width: 0;
}

.carousel--amenities .carousel__slide {
    flex-basis: clamp(260px, 42vw, 600px);
    scroll-snap-align: start;
}

.carousel--amenities .carousel__image,
.carousel[data-carousel="gallery"] .carousel__image {
    position: relative;
    width: 100%;
}

.carousel__slide img {
    width: 100%;
    max-height: 310px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.carousel--amenities .carousel__image-label,
.carousel[data-carousel="gallery"] .carousel__image-label,
.about-image .carousel__image-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 5px 8px;
    color: #fff !important;
    font-family: var(--serif-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    pointer-events: none;
}

.carousel__slide figcaption {
    margin-top: 28px;
    text-align: center;
    font-family: var(--serif-display);
    font-size: 17px;
    letter-spacing: .08em;
    color: var(--ink);
    text-transform: uppercase;
}

.carousel__arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 12px 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    transition: opacity .2s;
}

.carousel__arrow:hover {
    opacity: .7;
}

.carousel__arrow--prev {
    left: 3%;
}

.carousel__arrow--next {
    right: 3%;
}

.carousel--amenities .carousel__arrow img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(10%) sepia(14%) saturate(1662%) hue-rotate(2deg) brightness(94%) contrast(92%);
}

.carousel--gallery .carousel__arrow img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(10%) sepia(14%) saturate(1662%) hue-rotate(2deg) brightness(94%) contrast(92%);
}

/* ---------------------- TABS ----------------------- */

.tabs {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 7vw, 110px);
    margin-top: 50px;
    align-items: baseline;
}

.tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--serif-display);
    font-size: 17px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: .85;
    transition: all .25s ease;
    padding: 4px 2px;
}

.tab.is-active {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .15em;
    opacity: 1;
    color: #1f1710;
}

/* --------------------- VIDEO ----------------------- */

.video-frame {
    position: relative;
    max-width: 1010px;
    margin: 30px auto 0;
    cursor: pointer;
}

.video-frame img {
    width: 100%;
}

.video-frame__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 110px;
    height: 110px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform .2s ease;
}

.video-frame__play img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-frame__play:hover {
    transform: scale(1.07);
}

.video-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.video-frame--local video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

/* ---------------------- PLANS ---------------------- */

.plans {
    margin-top: 70px;
}

.plans__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 90px;
    justify-items: center;
}

.plans__panel--two {
    grid-template-columns: 1fr 1fr;
}

.plans__panel--two.plans__panel--single {
    grid-template-columns: 1fr;
}

.plan-card {
    position: relative;
    background: #fff;
    padding: 26px;
    width: 100%;
    max-width: 465px;
}

.plan-card img {
    width: 100%;
    height: auto;
    filter: blur(3px);
    cursor: pointer;
}

.plan-card__btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #8f6b28;
    color: #fff;
    font-family: var(--serif-display);
    font-size: 17px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 26px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    border-radius: 10px;
}

.plan-card__btn:hover {
    background: #8f6b28;
}

.ornament {
    margin-top: 50px;
    font-size: 22px;
    color: #7a684b;
}

.plans-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 50px auto 0;
}

.plans-arrows img {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(51%) sepia(12%) saturate(850%) hue-rotate(5deg) brightness(90%) contrast(88%);
}

.plans-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.plans-arrows[hidden],
.plans-arrow[hidden] {
    display: none !important;
}

.plans-arrow:disabled {
    cursor: default;
    opacity: .45;
}

.plans-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.plans-arrow img {
    pointer-events: none;
}

.section-divider-wrap {
    position: relative;
    display: flow-root;
}

.section-divider-wrap .plans-arrows {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    margin: 0;
}

.section-divider-wrap--amenities .plans-arrows {
    transform: translateY(25px);
}

.section-divider-wrap--gallery .plans-arrows {
    transform: translateY(28px);
}

/* ------------------- LOCATION ---------------------- */

.location-grid {
    display: grid;
    grid-template-columns: .9fr 1.6fr;
    gap: 70px;
    align-items: start;
    margin-top: 60px;
    text-align: left;
}

.distance-list {
    list-style: none;
    /* text-align: center; */
}



.distance-list li {
    font-size: 16px;
    letter-spacing: .05em;
    color: var(--ink);
    padding: 26px 0 15px;
    border-bottom: 1px solid #4a3c25;
}

.distance-list li:first-child {
    padding-top: 0;
}

.distance-list li:last-child {
    border-bottom: none;
}

.location-map {
    display: block;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    border-radius: 10px;
    overflow: hidden;
    width: 600px;
    height: 330px;
}

.location-map img {
    width: 100%;
    max-height: 300px;
}

/* --------------------- ENQUIRY --------------------- */

.enquiry-card {
    container-type: inline-size;
    background: var(--cream);
    border: 1px solid #8a7347;
    border-radius: 26px;
    max-width: 430px;
    margin: 30px auto 0;
    padding: 20px 40px 40px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.field {
    margin-bottom: 25px;
}

.field:last-of-type {
    margin-bottom: 0;
}

.field input,
.field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #2c2113;
    font-family: var(--serif-body);
    font-size: 15px;
    letter-spacing: .08em;
    color: var(--ink);
    padding: 10px 2px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    cursor: pointer;
}

.field select:invalid,
.field select option[value=""] {
    color: #4a3c25;
}

.field input::placeholder {
    color: #4a3c25;
    opacity: 1;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-bottom-color: #000;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(110px, 100%);
    min-height: 44px;
    margin: 32px auto 0;
    background: #ffffff;
    border: auto;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--serif-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
    transition: opacity .2s;
}

/* .submit-btn:hover {
    opacity: .65;
} */

.submit-btn__rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #4a3c25);
}

.submit-btn__rule:last-child {
    background: linear-gradient(to left, transparent, #4a3c25);
}

.form-notice {
    max-width: 640px;
    margin: 40px auto 0;
    padding: 14px 22px;
    font-size: 17px;
    letter-spacing: .04em;
    border: 1px solid;
}

.form-notice--success {
    color: #2e4d2e;
    border-color: #2e4d2e;
    background: rgba(255, 255, 255, .35);
}

.form-notice--error {
    color: #7a2222;
    border-color: #7a2222;
    background: rgba(255, 255, 255, .35);
}

.form-validation-error {
    max-width: 430px;
    margin: 32px auto -48px;
    padding: 10px 14px;
    border: 1px solid #7a2222;
    background: rgba(255, 255, 255, .35);
    color: #7a2222 !important;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.form-field-error {
    margin-top: 6px;
    color: #7a2222 !important;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.enquiry-modal .form-field-error {
    font-size: 12px;
}

/* --------------------- THANK YOU PAGE ---------------------- */

.thank-you-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 32px) 20px 40px;
    text-align: center;
}

.thank-you-card {
    width: min(720px, 100%);
    padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px);
    border: 1px solid rgba(107, 90, 62, .45);
    background: rgba(233, 218, 188, .72);
    box-shadow: 0 12px 34px rgba(44, 33, 19, .12);
}

.thank-you-card .eyebrow-rule {
    margin: 18px auto 24px;
}

.thank-you-card .section-title {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
}

.thank-you-card .section-sub {
    margin: 18px auto 28px;
    max-width: 560px;
}

.thank-you-home {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border: 1px solid var(--rule);
    background: var(--rule);
    color: #fff !important;
    text-decoration: none;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.thank-you-home:hover,
.thank-you-home:focus-visible {
    background: transparent;
    color: var(--ink) !important;
}

.thank-you-redirect {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: .04em;
}

/* --------------------- FOOTER ---------------------- */

.section--footer {
    padding-bottom: 10px;
}

.footer-title {
    font-family: var(--serif-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--navy);
    text-transform: uppercase;
}

.footer-subtitle {
    font-family: var(--serif-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--navy);
    text-transform: uppercase;
    margin-top: 20px;
}

.footer-qr {
    width: 90px;
    height: 90px;
    margin: 25px auto 0;
    image-rendering: pixelated;
}

.footer-rera {
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    letter-spacing: .1em;
    /* color: var(--ink); */
}

.footer-legal {
    max-width: 830px;
    margin: 10px auto 0;
    font-size: 14px;
    /* line-height: 1.55; */
    letter-spacing: .02em;
    color: #2a2a2a;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-rule {
    border: none;
    border-top: 1px solid #5c4d33;
    margin: 20px auto 0;
    width: 100%;
}

.social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social a {
    transition: opacity .2s;
}

.social a:hover {
    opacity: .6;
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: -70px;
    margin-right: -70px;
}

.footer-copy {
    margin: 0;
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1.8;
    color: var(--ink);
    text-align: left;
}

.footer-bottom .social {
    justify-content: center;
    margin: 0;
}

.footer-anarock {
    justify-self: end;
    width: clamp(90px, 12vw, 150px);
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

/* -------------------- LIGHTBOX --------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 8, 4, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    background: #fff;
    padding: 14px;
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
}

/* ------------------- RESPONSIVE -------------------- */

@media (max-width: 980px) {
    .submenu {
        display: none;
    }

    .hero {
        height: 100%;
        width: 100%;
    }

    /* .section {
        padding: 64px 120px 50px;
    } */

    .highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 30px;
        margin-top: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 46px;
        text-align: center;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 70px;
        text-align: center;
    }

    .location-map {
        display: block;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
        border-radius: 10px;
        overflow: hidden;
        width: 365px;
        height: 270px;
    }

    .carousel__slide {
        flex: 0 0 72%;
    }

    .carousel--amenities .carousel__slide {
        flex-basis: 72vw;
    }

    .hero__content {
        top: 18%;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
    }

    .hero__title {
        white-space: normal;
    }

    .section-sub {
        max-width: 808px;
        margin: 20px 60px 20px;
        font-size: 12px;
        letter-spacing: .06em;
        line-height: 1;
    }
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .submenu {
        display: none;
    }

    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .floating-enquire {
        display: none;
    }

    .site-header .header-phone {
        display: none;
    }

    .responsive-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 95;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        height: calc(56px + env(safe-area-inset-bottom));
        padding: 0 0 env(safe-area-inset-bottom);
        background: rgb(205 171 101 / 97%);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .16);
    }

    .responsive-contact-bar__action {
        display: flex;
        min-width: 0;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        background: transparent;
        color: #000000 !important;
        font-size: clamp(14px, 3.8vw, 16px);
        font-weight: 600;
        letter-spacing: .02em;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .responsive-contact-bar__enquire {
        border: 0;
        border-right: 1px solid rgba(44, 33, 19, .28);
        cursor: pointer;
    }

    .responsive-contact-bar__call {
        border: 0;
    }

    .responsive-contact-bar__action:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -5px;
    }

    .site-header.is-hidden {
        transform: none;
        pointer-events: auto;
    }

    .brand-center img.is-scrolled-away {
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, -180%, 0);
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .header-phone {
        font-size: clamp(10px, 2.8vw, 12px);
        letter-spacing: .01em;
    }

    .section-title {
        font-size: 14px;
    }

    .brand-center img {
        max-width: 100px;
        height: 34px;
        margin-top: 0;
    }

    .menu-toggle {
        flex: 0 0 36px;
        width: 36px;
        height: 42px;
        margin-left: 8px;
        margin-right: 3px;
    }

    .menu-toggle span {
        width: 24px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .submenu {
        height: 60px;
    }

    .submenu__inner {
        justify-content: flex-start;
        min-width: max-content;
        margin-left: 136px;
    }

    .submenu a {
        padding: 0 22px;
        font-size: 12px;
    }

    .submenu.is-condensed {
        --submenu-left-inset: 136px;
        --submenu-right-inset: 60px;
        position: sticky;
        top: 0;
        z-index: 101;
        width: calc(100% - var(--submenu-left-inset) - var(--submenu-right-inset));
        min-width: 0;
        margin-right: 0;
        margin-left: var(--submenu-left-inset);
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .submenu.is-condensed .submenu__inner {
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        margin: 0;
    }

    .site-header {
        transition: background .4s ease, box-shadow .4s ease, border-color .4s ease, transform .55s ease;
    }

    .site-header .brand-left,
    .site-header .menu-toggle {
        transition: opacity .38s ease, visibility .38s ease;
    }

    .site-header.scrolled {
        border-top: 2px solid var(--rule);
        border-bottom: 1px solid rgba(107, 90, 62, .45);
        background: rgba(233, 218, 188, .97);
        box-shadow: 0 4px 14px rgba(44, 33, 19, .08);
        backdrop-filter: none;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: .32em;
    }

    .highlight h3 {
        font-size: 12px;
    }

    .highlight p {
        font-size: 11px;
    }

    .highlights-grid {
        grid-template-rows: 1fr;
        gap: 25px;
        margin-top: 20px;
    }

    .highlight__icon {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin: 0 auto 5px;
    }

    .plans__panel--two {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .carousel__slide {
        flex: 0 0 100%;
    }

    .carousel__arrow--prev {
        left: -2%;
    }

    .carousel__arrow--next {
        right: -2%;
    }

    .carousel--amenities .carousel__slide {
        flex-basis: 88vw;
    }

    .carousel__slide figcaption {
        font-size: 12px;
    }

    .plan-card__btn {
        font-size: 10px;
    }

    .about-text p {
        font-size: 10px;
        letter-spacing: .08em;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .about-image .carousel__image-label {
        font-size: 9px;
        padding: 5px 5px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 24px;
        row-gap: 14px;
        margin-top: 48px;
    }

    .tab {
        font-size: 15px;
        letter-spacing: .18em;
    }

    .tab.is-active {
        font-size: 20px;
    }

    .enquiry-card {
        padding: 50px 28px 40px;
        border-radius: 18px;
    }

    .submit-btn {
        gap: 12px;
        width: min(110px, 100%);
        margin-top: 24px;
        font-size: 13px;
        letter-spacing: .18em;
    }

    .distance-list li {
        font-size: 14px;
        padding: 18px 0 16px;
    }

    .video-frame__play {
        width: 72px;
        height: 72px;
    }

    .location-map {
        display: block;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
        border-radius: 10px;
        overflow: hidden;
        width: 365px;
        height: 270px;
    }

    .footer-title {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: .06em;
    }

    .footer-subtitle {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .05em;
    }

    .footer-legal {
        font-size: 10px;
    }

    .footer-rera {
        font-size: 13px;
    }

    .footer-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px 12px;
        margin-top: 24px;
        margin-left: -40px;
        margin-right: -40px;
    }

    .footer-bottom .social {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .footer-copy {
        grid-column: 1;
        grid-row: 2;
        font-size: 9px;
        line-height: 1.2;
    }

    .footer-anarock {
        grid-column: 2;
        grid-row: 2;
        width: clamp(72px, 22vw, 100px);
    }
}

@media (max-width: 360px) {
    .brand-center {
        visibility: visible;
    }

    .brand-center img {
        max-width: 72px;
    }
}

/* Final responsive overrides for smaller viewports. */
.section-sub {
    width: min(100%, 881px);
    margin: 35px auto 0;
}

@media (max-width: 980px) {
    .section-sub {
        width: 100%;
        margin: 20px auto;
    }

    .location-map {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .carousel {
        padding-left: 14%;
        padding-right: 14%;
    }
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .location-map {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 82dvh;
        padding: 8px;
    }

    .lightbox__close {
        top: max(8px, env(safe-area-inset-top));
        right: 12px;
    }
}

/* Scroll-state header treatment for tablet and desktop only. */
@media (min-width: 641px) {
    .site-header {
        border-top: 2px solid transparent;
        border-bottom: 1px solid transparent;
        transition: background .4s ease, box-shadow .4s ease, border-color .4s ease, transform .55s ease;
    }

    .site-header::after {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: 0;
        border-bottom: 1px solid transparent;
        background: transparent;
        box-shadow: none;
        content: "";
        pointer-events: none;
        transition: height .42s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
    }

    .site-header.scrolled {
        /* border-top-color: var(--rule); */
        border-bottom-color: transparent;
        background: rgba(233, 218, 188, .97);
        box-shadow: 0 4px 14px rgba(44, 33, 19, .08);
        backdrop-filter: none;
    }

    .site-header.scrolled::after {
        height: calc(72px - var(--header-h));
        border-bottom-color: rgba(107, 90, 62, .45);
        background: rgba(233, 218, 188, .97);
        box-shadow: 0 4px 14px rgba(44, 33, 19, .08);
    }

    .submenu {
        --submenu-left-inset: 220px;
        --submenu-right-inset: 170px;
        transition: width .42s ease, margin-top .15s ease, box-shadow .35s ease;
    }

    .submenu:not(.is-condensed) .submenu__inner {
        justify-content: space-between;
        width: calc(100% - var(--submenu-left-inset) - var(--submenu-right-inset));
        min-width: 0;
        margin: 0 0 0 var(--submenu-left-inset);
    }

    .submenu:not(.is-condensed) a {
        flex: 1 1 0;
        min-width: 0;
        padding-right: clamp(4px, .8vw, 12px);
        padding-left: clamp(4px, .8vw, 12px);
        font-size: clamp(9px, .85vw, 12px);
        letter-spacing: .08em;
        transition: background-color .28s ease, box-shadow .28s ease, transform .28s ease, padding .42s ease, font-size .42s ease;
    }

    .submenu.is-condensed {
        position: sticky;
        top: 0;
        z-index: 101;
        width: calc(100% - var(--submenu-left-inset) - var(--submenu-right-inset));
        min-width: 0;
        margin-right: 0;
        margin-left: var(--submenu-left-inset);
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .submenu.is-condensed .submenu__inner {
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .submenu.is-condensed a {
        flex: 1 1 0;
        min-width: 0;
        padding-right: clamp(4px, .8vw, 12px);
        padding-left: clamp(4px, .8vw, 12px);
        font-size: clamp(9px, .85vw, 12px);
        letter-spacing: .08em;
        transition: background-color .28s ease, box-shadow .28s ease, transform .28s ease, padding .42s ease, font-size .42s ease;
    }

    .site-header .brand-left,
    .site-header .menu-toggle {
        transition: opacity .38s ease, visibility .38s ease;
    }

    .site-header .brand-center {
        transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .4s ease, visibility .4s ease;
    }

    .site-header .header-phone {
        transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .4s ease, visibility .4s ease;
    }

    .site-header .brand-center.is-scrolled-away {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -155%);
    }

    .site-header .header-phone.is-scrolled-away {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-155%);
    }

    .menu-overlay {
        transition: opacity .38s, visibility .38s, inset .42s ease, height .42s ease, padding .42s ease, background .35s ease;
    }

    .menu-overlay.compact-on-scroll {
        z-index: 101;
        inset: 0 clamp(360px, 28vw, 400px) auto max(262px, calc(50vw - 458px));
        width: auto;
        height: var(--header-h);
        padding: 0 10px;
        flex-direction: row;
        overflow: hidden;
        background: rgba(33, 26, 22, .96);
    }

    .menu-overlay.compact-on-scroll .overlay-nav {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(8px, 1.1vw, 18px);
        width: 100%;
        padding: 0;
        white-space: nowrap;
    }

    .menu-overlay.compact-on-scroll .overlay-nav a {
        padding: 4px 0;
        font-size: clamp(11px, 1vw, 15px);
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {

    /* Keep tablet section copy within the horizontal space between the header controls. */
    .section>.container {
        width: calc(100% - clamp(132px, 17vw, 174px) - clamp(70px, 9vw, 92px));
        /* margin-right: clamp(70px, 9vw, 92px);
        margin-left: clamp(132px, 17vw, 174px); */
    }

    .submenu {
        --submenu-left-inset: clamp(150px, 20vw, 205px);
        --submenu-right-inset: clamp(86px, 12vw, 120px);
    }

    .submenu:not(.is-condensed) a,
    .submenu.is-condensed a {
        padding-right: 3px;
        padding-left: 3px;
        font-size: clamp(8px, .95vw, 10px);
        letter-spacing: .04em;
    }

    .site-header .brand-center {
        display: inline-flex;
    }

    .menu-overlay.compact-on-scroll {
        right: clamp(100px, 14vw, 140px);
    }
}

@media (min-width: 641px) and (max-width: 740px) {
    .menu-overlay.compact-on-scroll .overlay-nav {
        gap: 4px;
    }

    .menu-overlay.compact-on-scroll .overlay-nav a {
        font-size: 9px;
    }
}

/* Right-side glass navigation panel */
.menu-overlay {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: block;
    overflow: hidden;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(24, 20, 16, .14);
    transition: opacity .38s ease, visibility 0s linear .44s;
}

.menu-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .38s ease, visibility 0s;
}

.menu-overlay .overlay-nav {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(10px, 1.5vh, 20px);
    width: min(560px, 44vw);
    min-width: 360px;
    height: 100%;
    overflow-y: auto;
    padding: 90px clamp(28px, 4vw, 58px) 36px;
    background: rgba(255, 255, 255, 51%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: -16px 0 44px rgba(36, 29, 19, .12);
    text-align: left;
    transform: translateX(101%);
    transition: transform .44s cubic-bezier(.22, .61, .36, 1);
}

.menu-overlay.open .overlay-nav {
    transform: translateX(0);
}

.menu-overlay .overlay-nav a {
    padding: 3px 0;
    color: #332f2a !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    transition: color .2s ease, transform .2s ease;
}

.menu-overlay .overlay-nav a:hover,
.menu-overlay .overlay-nav a:focus-visible {
    color: #806744 !important;
    transform: translateX(3px);
}

.menu-overlay__close {
    position: absolute;
    top: 20px;
    right: clamp(24px, 4vw, 52px);
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #332f2a !important;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.menu-overlay__close:focus-visible {
    outline: 2px solid #806744;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .menu-overlay .overlay-nav {
        width: min(520px, 58vw);
        min-width: 320px;
        padding-right: clamp(24px, 5vw, 48px);
        padding-left: clamp(24px, 5vw, 48px);
    }
}

@media (max-width: 640px) {
    .menu-overlay .overlay-nav {
        width: min(420px, 88vw);
        min-width: 0;
        gap: 12px;
        padding: 82px 28px 28px;
    }

    .menu-overlay .overlay-nav a {
        font-size: clamp(18px, 5vw, 23px);
    }

    .menu-overlay__close {
        top: 14px;
        right: 18px;
    }
}

/* Keep the complete enquiry popup visible on short screens without inner scrolling. */
@media (max-height: 760px) {

    .enquiry-modal {
        overflow: hidden;
        padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
    }

    .enquiry-modal__panel {
        max-height: calc(100dvh - 16px);
        overflow: hidden;
        /* padding: clamp(16px, 2.8vh, 22px) clamp(20px, 4vw, 34px) 14px; */
        border-radius: 20px;
    }

    .enquiry-modal__panel>.eyebrow {
        font-size: clamp(13px, 0.5vh, 9px);
    }

    .enquiry-modal__panel>.eyebrow-rule {
        margin-top: 9px;
    }

    .enquiry-modal .enquiry-modal__intro {
        margin-top: 9px;
        font-size: clamp(11px, 0.9vh, 14px);
        line-height: 1.35;
    }

    .enquiry-modal__callout {
        gap: 4px;
        margin-top: 8px;
    }

    .enquiry-modal__phone {
        gap: 6px;
        font-size: 18px;
    }

    .enquiry-modal__phone img {
        width: 25px;
        height: 25px;
        flex-basis: 18px;
    }

    .enquiry-modal .enquiry-card--popup {
        margin-top: 10px;
    }

    /* .enquiry-card--popup .field {
        margin-bottom: 9px;
    } */

    .enquiry-card--popup .field input,
    .enquiry-card--popup .field select {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 13px;
    }

    .enquiry-modal .submit-btn--popup {
        min-height: 36px;
        margin-top: 8px;
        font-size: 12px;
    }

    .enquiry-modal .form-notice,
    .enquiry-modal .form-validation-error {
        margin-top: 8px;
        padding: 7px 10px;
        font-size: 12px;
    }

}

@media (max-height: 480px) {
    .enquiry-modal__panel {
        padding: 10px 18px 8px;
        border-radius: 16px;
    }

    .enquiry-modal__panel>.eyebrow {
        font-size: 15px;
        line-height: 1.1;
    }

    .enquiry-modal__panel>.eyebrow-rule {
        margin-top: 6px;
    }

    .enquiry-modal .enquiry-modal__intro {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.25;
    }

    .enquiry-modal__callout {
        gap: 3px;
        margin-top: 5px;
    }

    .enquiry-modal__phone {
        font-size: 13px;
    }

    .enquiry-modal .enquiry-card--popup {
        margin-top: 6px;
    }

    .enquiry-card--popup .field {
        margin-bottom: 4px;
    }

    .enquiry-card--popup .field input,
    .enquiry-card--popup .field select {
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 12px;
    }

    .enquiry-modal .submit-btn--popup {
        min-height: 30px;
        margin-top: 4px;
    }

}

/* Show one complete carousel slide at a time on tablet and mobile. */
@media (max-width: 1024px) {
    .carousel__slide {
        flex: 0 0 100%;
    }

    .carousel--amenities .carousel__slide {
        flex-basis: 100%;
    }
}