/* Custom Styles */
html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 96px;
}

#mobile-menu {
    left: 0;
    right: 0;
    z-index: 60;
}

@media (max-width: 767px) {
    .mobile-link {
        white-space: normal;
        text-align: center;
    }
}
.history-section-container {
    width: min(96vw, 1600px);
    margin: 0 auto;
}
.history-box {
    width: 100%;
    padding: clamp(28px, 3vw, 52px);
    box-sizing: border-box;
    overflow: hidden;
}
.history-layout {
    display: grid;
    grid-template-columns: minmax(320px, 36%) minmax(0, 64%);
    gap: clamp(28px, 3vw, 56px);
    align-items: center;
}
.history-left,
.history-right {
    min-width: 0;
}
.history-right {
    width: 100%;
    max-width: 100%;
}
.history-photo-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}
.history-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.history-quote {
    font-size: clamp(2.2rem, 3.2vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-wrap: break-word;
}
.history-text {
    font-size: clamp(1rem, 1.08vw, 1.18rem);
    line-height: 1.75;
    max-width: 100%;
    overflow-wrap: break-word;
}
.history-text p {
    text-align: justify;
    text-indent: 2rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.history-text p:last-child {
    margin-bottom: 0;
}
@media (max-width: 1280px) {
    .history-section-container {
        width: min(97vw, 1400px);
    }
    .history-layout {
        grid-template-columns: minmax(280px, 34%) minmax(0, 66%);
        gap: 32px;
    }
    .history-quote {
        font-size: clamp(2rem, 3vw, 3.4rem);
        line-height: 1.15;
    }
}
@media (max-width: 1024px) {
    .history-layout {
        grid-template-columns: 1fr;
    }
    .history-photo-wrap {
        max-width: 520px;
    }
    .history-right {
        max-width: 100%;
    }
}
@media (max-width: 767px) {
    .history-section-container {
        width: calc(100% - 24px);
    }
    .history-box {
        padding: 20px;
    }
    .history-quote {
        font-size: 2rem;
        line-height: 1.22;
        margin-bottom: 1.5rem;
    }
    .history-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }
    .history-text p {
        text-align: left;
        text-indent: 1.25rem;
        line-height: 1.75;
    }
}
@media (max-width: 480px) {
    .history-quote {
        font-size: 1.65rem;
        line-height: 1.25;
    }
}

.timeline-year {
    font-size: clamp(2.6rem, 3.8vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.timeline-title {
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    line-height: 1.25;
    letter-spacing: 0;
}

.timeline-desc {
    max-width: 620px;
    color: rgba(255, 248, 235, 0.82);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.75;
    overflow-wrap: break-word;
}

.faq-question {
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    line-height: 1.35;
    gap: 1rem;
}

.faq-question > span:first-child {
    min-width: 0;
}

.faq-answer {
    max-width: 95%;
    color: #4b5563;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.75;
}

@media (max-width: 767px) {
    .faq-question {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .faq-answer {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }
}

.md\:text-right .timeline-desc {
    margin-left: auto;
}

@media (max-width: 640px) {
    .timeline-list {
        text-align: left;
    }

    .timeline-year {
        font-size: 2.4rem;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .timeline-desc {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }
}

.glass-nav {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
}

.site-navbar {
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease;
}

.site-navbar.navbar-top {
    background: rgba(255, 250, 245, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.site-navbar.navbar-scrolled {
    background: rgba(255, 250, 245, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(44, 26, 20, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-navbar.navbar-top .nav-link:not(.active),
.site-navbar.navbar-top .nav-social-icon,
.site-navbar.navbar-top #mobile-menu-btn {
    color: rgba(255, 255, 255, 0.92);
}

.site-navbar.navbar-scrolled .nav-link:not(.active),
.site-navbar.navbar-scrolled .nav-social-icon,
.site-navbar.navbar-scrolled #mobile-menu-btn {
    color: #2A1A14;
}

.site-navbar.navbar-top .nav-social-icon:hover,
.site-navbar.navbar-top .nav-link:hover,
.site-navbar.navbar-scrolled .nav-social-icon:hover,
.site-navbar.navbar-scrolled .nav-link:hover {
    color: #D4AF37;
}

.site-navbar.navbar-top .border-r {
    border-color: rgba(255, 255, 255, 0.22);
}

.site-navbar.navbar-top .language-switcher {
    background: rgba(255, 250, 245, 0.74);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.site-navbar.navbar-top .lang-btn {
    background: rgba(255, 250, 245, 0.84);
}

.site-navbar.navbar-top .lang-btn.active {
    background: #D4AF37;
}

#mobile-menu .mobile-link {
    color: #2A1A14;
}

#mobile-menu .mobile-link.active {
    color: #D4AF37;
}

.nav-link,
.mobile-link {
    position: relative;
    transition: color 0.25s ease, filter 0.25s ease;
}

.nav-link::after,
.mobile-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #D4AF37;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-link.active,
.mobile-link.active {
    color: #D4AF37;
}

.nav-link.active::after,
.mobile-link.active::after {
    width: 100%;
}

.nav-link.active > span {
    width: 100%;
    background: #D4AF37;
}

.nav-logo-link::after {
    left: 18%;
    bottom: -8px;
}

.nav-logo-link.active::after {
    width: 64%;
}

.nav-logo-link.active img {
    filter: drop-shadow(0 8px 16px rgba(212, 175, 55, 0.32));
}

.lang-btn {
    transition: background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #D4AF37;
    color: #2A1A14;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.28);
}

[data-i18n] {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.lang-switching [data-i18n] {
    opacity: 0;
    transform: translateY(4px);
}

.language-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 96px;
    height: 34px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 26, 20, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    isolation: isolate;
}

.site-navbar.navbar-top .language-toggle {
    background: rgba(255, 250, 245, 0.78);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.site-navbar.navbar-scrolled .language-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(44, 26, 20, 0.14);
}

.language-toggle-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.35);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    pointer-events: none;
}

.language-toggle[data-active="en"] .language-toggle-indicator {
    transform: translateX(100%);
}

.language-btn,
.lang-btn.language-btn {
    position: relative;
    z-index: 2;
    width: 50%;
    height: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    color: rgba(44, 26, 20, 0.72);
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.language-btn:hover,
.lang-btn.language-btn:hover {
    transform: translateY(-1px);
}

.language-btn.active,
.lang-btn.language-btn.active {
    background: transparent;
    color: #2C1A14;
    box-shadow: none;
}

.language-btn:not(.active),
.lang-btn.language-btn:not(.active) {
    color: rgba(44, 26, 20, 0.72);
}

.site-navbar.navbar-top .language-btn,
.site-navbar.navbar-top .lang-btn.language-btn,
.site-navbar.navbar-top .language-btn.active,
.site-navbar.navbar-top .lang-btn.language-btn.active {
    background: transparent;
}

.hero-section {
    min-height: 92vh;
    min-height: 92svh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    overflow: hidden;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide picture > img {
    display: block;
}

.hero-bg {
    object-position: center center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.25);
}

.hero-content {
    box-sizing: border-box;
    padding: clamp(88px, 11vh, 124px) 0 clamp(72px, 8vh, 96px);
}

.hero-content-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 5vw, 6rem);
}

.hero-card {
    box-sizing: border-box;
    width: min(46vw, 520px);
    max-width: 520px;
    min-width: 0;
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    overflow-wrap: break-word;
}

.hero-badge {
    margin-bottom: clamp(0.75rem, 1.4vw, 1rem);
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    line-height: 1.4;
    letter-spacing: 0.16em;
}

.hero-title {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(2.8rem, 5.8vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-title-main,
.hero-title-sub {
    max-width: 100%;
}

.hero-title-sub {
    margin-top: 0.5rem;
    font-size: clamp(2.55rem, 5.2vw, 5rem);
    line-height: 0.95;
}

.hero-description {
    max-width: 460px;
    margin: 0;
    text-align: left;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    line-height: 1.55;
    letter-spacing: 0;
    text-wrap: balance;
}

.slider-dots {
    bottom: clamp(22px, 4vh, 32px);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: max(90svh, 720px);
    }

    .hero-content-inner {
        padding-inline: clamp(1rem, 4vw, 3rem);
    }

    .hero-card {
        width: min(64vw, 500px);
        max-width: 500px;
        padding: clamp(22px, 3.2vw, 32px);
    }

    .hero-title {
        font-size: clamp(2.75rem, 7vw, 4.7rem);
    }

    .hero-title-sub {
        font-size: clamp(2.45rem, 6vw, 4.25rem);
    }

    .hero-description {
        max-width: 440px;
        font-size: clamp(0.95rem, 1.7vw, 1.1rem);
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: max(100svh, 720px);
    }

    .hero-content {
        align-items: flex-end;
        padding-top: 90px;
        padding-bottom: 96px;
    }

    .hero-content-inner {
        display: flex;
        justify-content: center;
        padding-inline: 14px;
    }

    .hero-card {
        width: min(92vw, 420px);
        max-width: calc(100vw - 28px);
        padding: 20px;
        border-radius: 1.1rem;
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-badge {
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
        line-height: 1.45;
        letter-spacing: 0.14em;
    }

    .hero-title {
        margin-bottom: 1rem;
        font-size: clamp(2.35rem, 10.8vw, 3.65rem);
        line-height: 0.96;
    }

    .hero-title-sub {
        margin-top: 0.4rem;
        font-size: clamp(2.15rem, 9.8vw, 3.25rem);
    }

    .hero-description {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.5;
        text-wrap: auto;
    }

    .hero-bg-sate {
        object-position: 60% center;
    }

    .hero-bg-gule {
        object-position: 58% center;
    }

    .slider-dots {
        bottom: 22px;
    }
}

@media (max-width: 380px) {
    .hero-card {
        width: calc(100vw - 24px);
        padding: 18px;
    }

    .hero-title {
        font-size: clamp(2.05rem, 10.5vw, 3rem);
    }

    .hero-title-sub {
        font-size: clamp(1.9rem, 9.6vw, 2.75rem);
    }
}

.menu-card-content {
    min-width: 0;
    padding-bottom: 24px;
    max-width: 100%;
}

.menu-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    font-size: 0.88rem;
    line-height: 1.45;
    max-height: calc(1.45em * 2);
    margin-bottom: 0.8rem;
}

.menu-card-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 100%;
    overflow: visible;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    padding-bottom: 2px;
    margin-bottom: 0.85rem;
}

.menu-card-feature i {
    flex: none;
    margin-top: 0.14rem;
}

.menu-card-feature-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    padding-bottom: 2px;
}

.menu-card-detail-link {
    flex-shrink: 0;
    margin-top: 0.5rem;
    max-width: 100%;
    line-height: 1.25;
    flex-wrap: wrap;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .menu-card-content {
        width: 92%;
        padding: 24px;
    }

    .menu-card-content h3 {
        font-size: clamp(1.45rem, 1.85vw, 1.72rem);
        line-height: 1.14;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    #menu .grid > .group {
        min-height: 300px;
    }

    .menu-card-content {
        width: 92%;
        padding: 24px;
    }

    .menu-card-desc {
        -webkit-line-clamp: 2;
        max-height: calc(1.45em * 2);
    }

    .menu-card-content {
        padding-bottom: 22px;
    }
}

@media (max-width: 640px) {
    #menu .grid > .group {
        height: 300px;
    }

    .menu-card-content {
        transform: translateX(0) !important;
        opacity: 1 !important;
        width: 100%;
        padding: 22px;
        background: linear-gradient(90deg, rgba(42, 26, 20, 0.92), rgba(42, 26, 20, 0.72), rgba(42, 26, 20, 0.18));
    }

    .menu-card-desc {
        font-size: 0.92rem;
    }

    .menu-card-feature {
        font-size: 0.84rem;
    }
}

.text-watermark {
    font-size: clamp(10rem, 25vw, 30rem);
    color: rgba(212, 175, 55, 0.04);
    line-height: 0.8;
    user-select: none;
    white-space: nowrap;
}
.zoom-hover {
    transition: transform 0.7s ease;
}
.img-container:hover .zoom-hover {
    transform: scale(1.05);
}
#guests {
    overflow-x: hidden;
}
.gallery-full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}
.gallery-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.25rem 0 1rem;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        transparent 100%
    );
}
.gallery-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 24px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.gallery-track-tokoh {
    animation: marqueeTokoh 42s linear infinite;
}
.gallery-track-pengunjung {
    animation: marqueePengunjung 46s linear infinite;
}
.gallery-marquee:hover .gallery-track {
    animation-play-state: paused;
}
.gallery-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.gallery-card {
    flex: 0 0 370px;
    width: 370px;
    overflow: hidden;
    border-radius: 18px;
}
.gallery-card-image img,
.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.gallery-card-body {
    padding: 20px 22px;
}
.gallery-card-body h4 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card-body .gallery-label {
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
}
.gallery-card .gallery-quote,
.gallery-card blockquote {
    display: none;
}
@keyframes marqueeTokoh {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
@keyframes marqueePengunjung {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}
.menu-modal-content,
.gallery-modal-content {
    width: min(86vw, 1120px);
    max-width: 1120px;
    height: auto;
    max-height: 86vh;
    overflow: hidden;
    border-radius: 18px;
    background: #fffaf5;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
}

.menu-modal-content {
    width: min(88vw, 1080px);
    max-width: 1080px;
    max-height: 82vh;
    grid-template-columns: minmax(0, 52%) minmax(410px, 48%);
}

.menu-modal-image-wrapper,
.gallery-modal-image-wrapper {
    width: 100%;
    min-width: 0;
    height: clamp(360px, 52vh, 520px);
    overflow: hidden;
    background: transparent;
}

.menu-modal-image,
.gallery-modal-image,
.menu-modal-image-wrapper img,
.gallery-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.menu-modal-image-wrapper {
    height: clamp(380px, 54vh, 540px);
}

.menu-modal-text,
.gallery-modal-text {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    height: clamp(360px, 52vh, 520px);
    padding: 38px 42px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #f1f1f1;
}

.gallery-modal-text {
    justify-content: flex-start;
}

.menu-modal-text {
    height: clamp(380px, 54vh, 540px);
    padding: clamp(30px, 3.2vw, 42px);
}

.menu-modal-text h3,
.gallery-modal-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 2.2vw, 2.85rem);
    line-height: 1.12;
    font-weight: 700;
    color: #2A1A14;
    margin-bottom: 10px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
}

.gallery-modal-text h3 {
    padding-right: clamp(1.75rem, 4vw, 2.75rem);
}

.gallery-modal-text .modal-role,
.gallery-modal-text .modal-desc,
.gallery-modal-text .modal-quote {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.menu-modal-text h3 {
    max-width: 13em;
    font-size: clamp(1.95rem, 2.05vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: normal;
}

.menu-modal-text .modal-divider,
.gallery-modal-text .modal-divider {
    width: 56px;
    height: 4px;
    background: #C84B31;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.menu-modal-text .modal-divider {
    width: 52px;
    height: 3px;
    margin-top: 2px;
    margin-bottom: 20px;
}

.menu-modal-text .modal-desc,
.gallery-modal-text .modal-desc {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 26px;
}

.menu-modal-text .modal-desc,
.menu-modal-text p.menu-desc,
.menu-modal-desc {
    max-width: 52ch;
    font-size: clamp(0.98rem, 1vw, 1.08rem);
    line-height: 1.75;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
}

.menu-modal-text .modal-quote,
.gallery-modal-text .modal-quote {
    background: #f4ece5;
    border-left: 4px solid #D4AF37;
    padding: 18px 20px;
    color: #6b4f3a;
    font-style: italic;
    line-height: 1.65;
}

.menu-modal-text .modal-quote {
    max-width: 52ch;
    padding: 15px 18px;
    font-size: clamp(0.92rem, 0.95vw, 1rem);
    line-height: 1.58;
    border-left-width: 3px;
    border-radius: 0 12px 12px 0;
}

.menu-modal-content button[onclick="closeModal()"],
.gallery-modal-content button[onclick="closeModal()"] {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 250, 245, 0.92);
    color: #2a1711;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.menu-modal-content button[onclick="closeModal()"]:hover,
.gallery-modal-content button[onclick="closeModal()"]:hover {
    color: #C84B31;
}

#modal-content::-webkit-scrollbar { width: 6px; }
#modal-content::-webkit-scrollbar-track { background: #f1f1f1; }
#modal-content::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }

@media (max-width: 1279px) {
    .menu-modal-content,
    .gallery-modal-content {
        width: min(94vw, 860px);
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .menu-modal-content {
        width: min(92vw, 780px);
        max-height: 90vh;
    }

    .menu-modal-image-wrapper,
    .gallery-modal-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 8;
        flex: none;
    }

    .menu-modal-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .menu-modal-image,
    .gallery-modal-image,
    .menu-modal-image-wrapper img,
    .gallery-modal-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .menu-modal-text,
    .gallery-modal-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        padding: 28px 32px;
        justify-content: flex-start;
    }

    .gallery-modal-text {
        max-height: none;
        overflow-y: visible;
    }

    .menu-modal-text {
        padding: 30px 34px 34px;
    }

    .menu-modal-text h3,
    .menu-modal-text .modal-desc,
    .menu-modal-text .modal-quote {
        max-width: 100%;
    }

    .menu-modal-text h3 {
        font-size: clamp(2rem, 4vw, 2.65rem);
    }
}

@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 290px;
        width: 290px;
    }
    .gallery-card-body {
        padding: 18px 20px;
    }
    .gallery-track-tokoh,
    .gallery-track-pengunjung {
        animation-duration: 34s;
    }
}

@media (max-width: 640px) {
    .menu-modal-content,
    .gallery-modal-content {
        width: 95vw;
        max-height: 92vh;
        border-radius: 16px;
    }

    .menu-modal-image-wrapper,
    .gallery-modal-image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .menu-modal-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .menu-modal-text,
    .gallery-modal-text {
        padding: 22px 20px;
    }

    .menu-modal-text {
        padding: 22px 20px 24px;
    }

    .menu-modal-text h3,
    .gallery-modal-text h3 {
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.16;
        padding-right: 2.25rem;
    }

    .menu-modal-text h3 {
        font-size: clamp(1.65rem, 8vw, 2rem);
        line-height: 1.14;
        margin-bottom: 8px;
    }

    .menu-modal-text .modal-desc,
    .gallery-modal-text .modal-desc {
        font-size: 1rem;
        line-height: 1.7;
    }

    .menu-modal-text .modal-desc,
    .menu-modal-text p.menu-desc,
    .menu-modal-desc {
        font-size: 0.98rem;
        line-height: 1.7;
        margin-bottom: 18px;
        text-align: left;
    }

    .menu-modal-text .modal-quote,
    .gallery-modal-text .modal-quote {
        padding: 16px;
    }

    .menu-modal-text .modal-quote {
        padding: 14px 15px;
        font-size: 0.94rem;
        line-height: 1.55;
    }
}

/* Preloader */
#preloader {
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Hide Scrollbar for Carousel */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#reviews-container > div {
    min-width: 0;
    overflow-wrap: break-word;
}

#reviews-container p {
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    #reviews .relative.w-full {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #reviews-container > div {
        width: min(86vw, 340px);
        padding: 1.5rem;
    }

    #btn-prev-review,
    #btn-next-review {
        width: 2.5rem;
        height: 2.5rem;
    }
}

#location iframe {
    display: block;
    width: 100%;
    height: 100%;
}

#order a {
    width: 100%;
    min-width: 0;
}

#order a span {
    white-space: nowrap;
}

#order a img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

@media (min-width: 1280px) and (max-width: 1399px) {
    #order a {
        gap: 0.4rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    #order a span {
        font-size: 0.92rem;
    }

    #order a img {
        width: 2.35rem;
        height: 2.35rem;
    }
}

footer a,
footer p {
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    #location .rounded-3xl {
        border-radius: 1.25rem;
    }

    #location .absolute.bottom-6 {
        width: calc(100% - 2rem);
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
    }

    #backToTop {
        right: 1rem;
        bottom: 6.25rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    body > .fixed.bottom-8 {
        right: 1rem;
        bottom: 1.5rem;
    }

    body > .fixed.bottom-8 > a {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.7rem;
    }

    body > .fixed.bottom-8 > div {
        display: none;
    }
}

/* Typewriter Cursor Blink */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: #D4AF37;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* Fade In Up Anim */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Highlight navbar link when active */
.nav-link.active {
    color: #D4AF37;
}

/* Lightweight premium 3D accents */
.hero-section {
    isolation: isolate;
}

.hero-bg {
    --scroll-depth-y: 0px;
    --scroll-depth-scale: 1.04;
    transform: translate3d(0, var(--scroll-depth-y), 0) scale(var(--scroll-depth-scale));
    transform-origin: center;
    will-change: transform;
}

.glass-3d {
    background: rgba(30, 18, 12, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
        transform 0.35s ease,
        box-shadow 0.35s ease;
    will-change: transform;
}

.reveal.reveal-3d {
    transform: perspective(900px) translateY(44px) rotateX(5deg) scale(0.985);
    transform-origin: center bottom;
}

.reveal.reveal-3d.active {
    transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
}

.scroll-depth {
    --scroll-depth-y: 0px;
    --scroll-depth-scale: 1;
    will-change: transform;
}

.hover-lift,
.cta-3d {
    transition: translate 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
}

.gallery-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 14px 34px rgba(42, 26, 20, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.gallery-card .zoom-hover {
    transition: transform 0.55s ease;
}

.gallery-marquee {
    padding: 0.75rem 0 1.5rem;
}

.image-depth {
    --scroll-depth-y: 0px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(212, 175, 55, 0.12);
    transform: translate3d(0, var(--scroll-depth-y), 0);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.history-photo-wrap {
    perspective: 1000px;
}

.modal-3d {
    animation: modalPop3D 0.28s ease both;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
}

@keyframes modalPop3D {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .glass-3d:hover {
        transform: perspective(900px) rotateX(1.5deg) rotateY(-1.5deg) translateY(-4px);
        border-color: rgba(255, 255, 255, 0.24);
        box-shadow:
            0 38px 95px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .card-3d:hover {
        transform: translateY(-8px) perspective(900px) rotateX(2deg) rotateY(-2deg);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
        z-index: 2;
    }

    .reveal.reveal-3d.card-3d.active:hover {
        transform: translateY(-8px) perspective(900px) rotateX(2deg) rotateY(-2deg);
    }

    .hover-lift:hover,
    .cta-3d:hover {
        translate: 0 -4px;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
        filter: saturate(1.04);
    }

    .gallery-card:hover {
        transform: translateY(-6px) perspective(900px) rotateX(1deg);
        box-shadow: 0 24px 58px rgba(42, 26, 20, 0.22);
    }

    .gallery-card:hover .zoom-hover {
        transform: scale(1.06);
    }

    .history-photo-wrap:hover .image-depth {
        transform: translate3d(0, var(--scroll-depth-y), 0) perspective(900px) rotateX(1deg) rotateY(-1deg) translateY(-4px);
        box-shadow:
            0 32px 78px rgba(0, 0, 0, 0.36),
            0 0 0 1px rgba(212, 175, 55, 0.18);
    }
}

@media (max-width: 640px) {
    .hero-card.glass-3d {
        background: rgba(22, 12, 8, 0.58);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow:
            0 24px 64px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .hero-bg {
        --scroll-depth-scale: 1.03;
    }

    .gallery-marquee {
        padding-top: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .card-3d,
    .glass-3d,
    .hover-lift,
    .cta-3d,
    .modal-3d,
    .image-depth,
    .reveal-3d,
    .scroll-depth,
    .gallery-card,
    .gallery-card .zoom-hover,
    [data-i18n],
    .lang-btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        translate: none !important;
    }
}

/* Premium 3D scroll redesign layer */
.premium-section,
.premium-gallery-section,
.premium-reviews-section,
.premium-faq-section,
.premium-location-section {
    position: relative;
    isolation: isolate;
}

.premium-section::before,
.premium-gallery-section::before,
.premium-reviews-section::before,
.premium-faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 236, 229, 0.46));
}

#about {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

#about > .reveal:first-child {
    max-width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 28px;
    background: rgba(255, 250, 245, 0.76);
    box-shadow: 0 28px 70px rgba(42, 26, 20, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.premium-feature-card {
    min-height: 100%;
    border-radius: 22px;
    transform-style: preserve-3d;
    box-shadow: 0 16px 42px rgba(42, 26, 20, 0.09);
}

.premium-feature-card i {
    transform: translateZ(18px);
}

#menu {
    padding-top: clamp(4rem, 7vw, 7rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
    background:
        linear-gradient(180deg, #fffaf5 0%, #ffffff 46%, #f7efe6 100%);
    overflow: hidden;
}

#menu .grid > .card-3d {
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow:
        0 22px 60px rgba(42, 26, 20, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#menu .grid > .card-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#menu .grid > .card-3d > img {
    filter: saturate(1.04) contrast(1.02);
}

.menu-card-content {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.menu-card-desc {
    display: block;
    max-height: none;
    -webkit-line-clamp: unset;
    line-height: 1.5;
}

.menu-card-feature {
    color: #f4d875;
}

.menu-card-feature-text {
    -webkit-line-clamp: 3;
    max-height: calc(1.35em * 3);
}

#menu .reveal.bg-brand-cream {
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(42, 26, 20, 0.12);
}

.cinematic-history {
    background:
        linear-gradient(135deg, rgba(42, 26, 20, 0.98), rgba(16, 10, 8, 0.98)),
        #2A1A14;
}

.history-box {
    border-radius: 28px;
    background: rgba(255, 250, 245, 0.07);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.history-photo {
    border-radius: 22px;
}

.history-left .bg-brand-gold {
    border-radius: 14px;
}

.history-quote {
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.timeline-list {
    perspective: 1100px;
}

.timeline-3d-item {
    padding-block: 0.4rem;
    transform-style: preserve-3d;
}

.timeline-3d-item > div:not(:first-child) {
    padding: clamp(1rem, 2vw, 1.4rem);
    border-radius: 22px;
    background: rgba(255, 250, 245, 0.045);
    border: 1px solid rgba(212, 175, 55, 0.13);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.timeline-3d-item:hover > div:not(:first-child) {
    border-color: rgba(212, 175, 55, 0.24);
}

.reveal-3d,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform, opacity;
}

.reveal-3d {
    transform: perspective(900px) translateY(36px) rotateX(4deg) scale(0.965);
}

.reveal-left {
    transform: perspective(900px) translateX(-42px) rotateY(4deg);
}

.reveal-right {
    transform: perspective(900px) translateX(42px) rotateY(-4deg);
}

.reveal-scale {
    transform: translateY(24px) scale(0.94);
}

.reveal-3d.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.premium-gallery-section {
    background:
        linear-gradient(180deg, #f7efe6 0%, #fffaf5 44%, #f4ece5 100%);
}

.gallery-card {
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 18px 48px rgba(42, 26, 20, 0.13);
}

.gallery-card-body {
    background: rgba(255, 255, 255, 0.94);
}

.gallery-marquee {
    padding-block: 1rem 2rem;
}

.premium-reviews-section {
    background:
        linear-gradient(180deg, #fff8ee 0%, #f7efe6 100%);
}

.review-card-3d {
    min-height: 320px;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(42, 26, 20, 0.12);
}

.premium-faq-section {
    background:
        linear-gradient(180deg, #fffaf5 0%, #f7efe6 100%);
}

.faq-card-3d {
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 14px 40px rgba(42, 26, 20, 0.08);
}

.faq-card-3d[open] {
    box-shadow: 0 24px 62px rgba(42, 26, 20, 0.14);
}

.faq-card-3d .faq-answer {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.faq-card-3d[open] .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.premium-location-section {
    background:
        linear-gradient(145deg, rgba(42, 26, 20, 0.98), rgba(12, 8, 7, 0.98)),
        #2A1A14;
    overflow: hidden;
}

.premium-location-section iframe {
    filter: saturate(0.9) contrast(1.03);
}

.premium-location-section .rounded-3xl,
#order {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

#order {
    border-color: rgba(212, 175, 55, 0.16);
}

#order .grid > a {
    min-height: 72px;
    transform-style: preserve-3d;
}

footer {
    background:
        linear-gradient(180deg, #0e0a08 0%, #050403 100%);
}

@media (max-width: 1024px) {
    .timeline-3d-item > div:not(:first-child) {
        width: 100%;
    }

    .history-box {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    #about > .reveal:first-child {
        border-radius: 22px;
        padding: 1.5rem;
    }

    #menu .grid > .card-3d {
        border-radius: 22px;
    }

    .menu-card-content {
        justify-content: flex-end;
    }

    .timeline-3d-item {
        align-items: stretch;
    }

    .timeline-3d-item > div:not(:first-child) {
        padding: 1rem 1rem 1rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Final responsive safeguards for order buttons, menu text, gallery, and modals. */
.order-btn {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
}

.order-btn img {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    object-fit: contain;
}

#order .grid > .order-btn img {
    width: 2rem;
    height: 2rem;
}

.order-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-menu-section .menu-card-content {
    padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.premium-menu-section .menu-card-desc {
    display: -webkit-box;
    max-height: calc(1.5em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-menu-section .menu-card-feature-text {
    display: -webkit-box;
    max-height: calc(1.35em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-menu-section .menu-card-detail-link {
    margin-top: auto;
}

.premium-gallery-section .gallery-card {
    flex: 0 0 360px;
    width: 360px;
    overflow: hidden;
}

.premium-gallery-section .gallery-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.premium-gallery-section .gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-modal-text {
    min-width: 0;
    overflow-y: auto;
}

.gallery-modal-title,
.gallery-modal-desc,
.gallery-modal-quote {
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 640px) {
    .order-btn {
        min-height: 64px;
    }

    .order-btn img {
        width: 1.75rem;
        height: 1.75rem;
    }

    #order .grid > .order-btn {
        min-height: 64px;
    }

    #order .grid > .order-btn img {
        width: 1.75rem;
        height: 1.75rem;
    }

    .premium-gallery-section .gallery-card {
        flex: 0 0 285px;
        width: 285px;
    }
}

/* Mobile-first stability layer: keeps media visible across resize/orientation changes. */
img {
    max-width: 100%;
}

.hero-section {
    min-height: 100svh;
    overflow: hidden;
}

.hero-card {
    width: min(92vw, 520px);
    max-width: calc(100vw - 2rem);
    padding: clamp(1.25rem, 5vw, 2.75rem);
}

.hero-title {
    font-size: clamp(2.1rem, 11vw, 4.9rem);
    line-height: 0.98;
    overflow-wrap: break-word;
}

.hero-title-sub {
    font-size: clamp(1.95rem, 10vw, 4.5rem);
    line-height: 1;
    overflow-wrap: break-word;
}

.hero-description {
    max-width: 42rem;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.menu-card-image,
.gallery-card-image,
.menu-modal-image-wrapper,
.gallery-modal-image-wrapper {
    overflow: hidden;
    flex-shrink: 0;
}

.premium-menu-section .card-3d {
    min-width: 0;
    contain: layout paint;
}

.menu-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    display: block;
}

.premium-menu-section .menu-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: 100%;
}

.premium-menu-section .menu-card-title {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    line-height: 1.05;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.premium-menu-section .menu-card-desc {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    line-height: 1.4;
}

.premium-menu-section .menu-card-feature {
    font-size: clamp(0.82rem, 3.2vw, 0.94rem);
    line-height: 1.35;
}

.premium-menu-section .menu-card-cta {
    margin-top: auto;
}

html[lang="en"] .premium-menu-section .menu-card-title,
body.lang-en .premium-menu-section .menu-card-title {
    font-size: clamp(1.4rem, 5.8vw, 1.85rem);
}

.gallery-full-bleed,
.gallery-marquee {
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    min-width: max-content;
}

.gallery-card,
.premium-gallery-section .gallery-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 285px;
    width: 285px;
    min-width: 285px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    flex-shrink: 0;
}

.gallery-card-image,
.premium-gallery-section .gallery-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 190px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4ece5;
    position: relative;
}

.gallery-card-image img,
.premium-gallery-section .gallery-card-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-card-body,
.gallery-card-content {
    padding: 1rem 1.25rem 1.25rem;
    min-width: 0;
}

.menu-modal-content,
.gallery-modal-content {
    max-width: min(95vw, 1120px);
    max-height: min(92svh, 920px);
}

.menu-modal-text,
.gallery-modal-text {
    min-width: 0;
    overflow-y: auto;
    overflow-wrap: break-word;
}

.menu-modal-title,
.menu-modal-desc,
.menu-modal-quote,
.gallery-modal-title,
.gallery-modal-desc,
.gallery-modal-quote,
.menu-modal-text h3,
.gallery-modal-text h3,
.menu-modal-text .modal-desc,
.gallery-modal-text .modal-desc,
.menu-modal-text .modal-quote,
.gallery-modal-text .modal-quote {
    overflow-wrap: break-word;
    word-break: normal;
}

.history-right {
    min-width: 0;
    overflow-wrap: break-word;
}

.history-left {
    min-width: 0;
}

.history-left .bg-brand-gold {
    max-width: min(100%, 18rem);
    overflow-wrap: break-word;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.order-btn img,
#order .grid > .order-btn img {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.order-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-resizing .gallery-track {
    animation-play-state: paused;
}

.reveal.active,
.reveal-3d.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
}

@media (min-width: 641px) {
    .gallery-card,
    .premium-gallery-section .gallery-card {
        flex-basis: 360px;
        width: 360px;
        min-width: 360px;
    }

    .gallery-card-image,
    .premium-gallery-section .gallery-card-image {
        min-height: 240px;
    }
}

@media (min-width: 768px) {
    .premium-menu-section .menu-card-title {
        font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    }

    html[lang="en"] .premium-menu-section .menu-card-title,
    body.lang-en .premium-menu-section .menu-card-title {
        font-size: clamp(1.5rem, 2.35vw, 2.15rem);
    }
}

@media (min-width: 1280px) {
    .premium-menu-section .menu-card-title {
        font-size: clamp(1.55rem, 1.75vw, 2.1rem);
    }

    html[lang="en"] .premium-menu-section .menu-card-title,
    body.lang-en .premium-menu-section .menu-card-title {
        font-size: clamp(1.42rem, 1.55vw, 1.9rem);
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 100svh;
    }

    .hero-card.glass-3d {
        width: min(92vw, 24rem);
        padding: clamp(1.15rem, 5vw, 1.55rem);
    }

    .premium-menu-section .card-3d {
        height: 290px;
    }

    .premium-menu-section .card-3d,
    .premium-menu-section .card-3d * {
        -webkit-tap-highlight-color: transparent;
    }

    .premium-menu-section .card-3d {
        cursor: pointer;
    }

    .premium-menu-section .card-3d::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(20, 12, 8, 0.78) 0%,
            rgba(20, 12, 8, 0.50) 24%,
            rgba(20, 12, 8, 0.10) 58%,
            rgba(20, 12, 8, 0.00) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    .premium-menu-section .menu-card-image {
        z-index: 0;
        transform: scale(1.01);
    }

    .premium-menu-section .menu-card-content {
        z-index: 2;
        width: 100%;
        padding: 1rem 1rem 1rem;
        justify-content: flex-end;
        align-items: flex-start;
        background: transparent;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }

    .premium-menu-section .menu-card-content > :not(.menu-card-cta) {
        display: none;
    }

    .premium-menu-section .menu-card-detail-link {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 1.04rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-top: 0;
        padding: 0.55rem 0.85rem;
        border-radius: 999px;
        background: rgba(212, 175, 55, 0.96);
        color: #2a1a14;
        white-space: nowrap;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .premium-menu-section .menu-card-cta {
        margin-top: 0;
        width: fit-content;
        line-height: 1.3;
        align-self: flex-start;
    }

    .premium-menu-section .menu-card-detail-link .fa-search-plus {
        display: inline-block;
    }

    .premium-menu-section .card-3d .menu-card-content {
        background: linear-gradient(
            to top,
            rgba(20, 12, 8, 0.72) 0%,
            rgba(20, 12, 8, 0.40) 22%,
            rgba(20, 12, 8, 0.08) 45%,
            rgba(20, 12, 8, 0.00) 65%
        );
    }

    .menu-modal-content,
    .gallery-modal-content {
        width: 95vw;
        max-height: 92svh;
    }

    .menu-modal-image-wrapper,
    .gallery-modal-image-wrapper {
        min-height: 210px;
    }

    .order-btn,
    #order .grid > .order-btn {
        min-height: 64px;
    }

    .order-btn img,
    #order .grid > .order-btn img {
        width: 1.375rem;
        height: 1.375rem;
    }
}

/* Scoped gallery hardening: keep marquee cards and images visible after rapid resize. */
#guests .gallery-full-bleed {
    width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

#guests .gallery-marquee {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0 1.5rem;
}

#guests .gallery-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 24px;
    width: max-content;
    min-width: max-content;
    transform: translate3d(0, 0, 0);
}

#guests .gallery-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 360px !important;
    width: 360px !important;
    min-width: 360px !important;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#guests .gallery-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3eee8;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#guests .gallery-card-image img {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    display: block !important;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    visibility: visible !important;
}

#guests .gallery-card-body,
#guests .gallery-card-content {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.25rem;
    min-width: 0;
}

#guests .gallery-card .gallery-quote,
#guests .gallery-card blockquote {
    display: none;
}

@media (max-width: 640px) {
    #guests .gallery-full-bleed {
        margin-top: 0;
    }

    #guests .gallery-marquee {
        padding-top: 0.25rem;
        padding-bottom: 1rem;
    }

    #guests .gallery-card {
        flex: 0 0 285px !important;
        width: 285px !important;
        min-width: 285px !important;
    }
}

/* Mobile-only readability for Sejarah & Kisah Pendiri. */
@media (max-width: 640px) {
    #history {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 96px;
    }

    #history .history-section-container {
        width: 100%;
    }

    #history .history-box {
        padding: 22px 18px;
        border-radius: 18px;
    }

    #history .history-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #history .history-right {
        width: 100%;
        max-width: 100%;
    }

    #history .history-quote {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        line-height: 1.22;
        margin-bottom: 1.25rem;
    }

    #history .history-text {
        font-size: 1rem;
        line-height: 1.8;
        color: rgba(255, 248, 235, 0.82);
    }

    #history .history-text p {
        text-align: left !important;
        text-indent: 1.15rem;
        margin-bottom: 1.2rem;
        line-height: 1.8;
        overflow-wrap: break-word;
    }

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

/* Final mobile overrides for hero visibility and history readability. */
@media (max-width: 767px) {
    .hero-section {
        min-height: max(100svh, 660px);
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 132px;
        padding-bottom: 82px;
    }

    .hero-content-inner {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding-inline: 12px;
        transform: translateY(-138px);
    }

    .hero-card.glass-3d {
        width: min(78vw, 320px);
        max-width: 320px;
        padding: 14px 16px 15px;
        border-radius: 20px;
        background: rgba(28, 17, 11, 0.50);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    }

    .hero-badge {
        margin-bottom: 0.5rem;
        font-size: 0.66rem;
        line-height: 1.35;
        letter-spacing: 0.13em;
    }

    .hero-title {
        margin-bottom: 0.06rem;
        font-size: clamp(2rem, 8.4vw, 2.8rem);
        line-height: 0.94;
    }

    .hero-title-sub {
        margin-top: 0.28rem;
        margin-bottom: 0.65rem;
        font-size: clamp(1.7rem, 7vw, 2.25rem);
        line-height: 0.97;
    }

    .hero-description {
        max-width: 100%;
        font-size: 0.88rem;
        line-height: 1.48;
        text-wrap: auto;
        display: block;
        overflow: visible;
        -webkit-box-orient: unset;
        -webkit-line-clamp: unset;
    }

    .hero-slide .hero-bg-warung {
        object-position: center center;
    }

    .hero-slide .hero-bg-sate {
        object-position: center center;
    }

    .hero-slide .hero-bg-gule {
        object-position: center center;
    }

    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.14);
    }

    #hero-track > .hero-slide:nth-of-type(2) .hero-content {
        padding-top: 114px;
    }

    #hero-track > .hero-slide:nth-of-type(3) .hero-content {
        padding-top: 112px;
    }

    #history {
        padding-bottom: 96px;
    }

    #history .history-box {
        padding: 22px 18px;
    }

    #history .history-quote {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        line-height: 1.22;
        margin-bottom: 1.25rem;
    }

    #history .history-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    #history .history-text p {
        text-align: justify !important;
        text-align-last: left;
        text-indent: 1.15rem;
        line-height: 1.8;
        margin-bottom: 1.2rem;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 380px) {
    .hero-content {
        padding-top: 126px;
        padding-bottom: 78px;
    }

    .hero-content-inner {
        padding-inline: 10px;
        transform: translateY(-126px);
    }

    .hero-card.glass-3d {
        width: min(80vw, 305px);
        max-width: 305px;
        padding: 13px 15px 14px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .hero-title-sub {
        font-size: clamp(1.55rem, 6.8vw, 2rem);
    }

    .hero-description {
        font-size: 0.82rem;
        line-height: 1.45;
        display: block;
        overflow: visible;
        -webkit-box-orient: unset;
        -webkit-line-clamp: unset;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        min-height: 100svh;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 156px;
        padding-bottom: 90px;
    }

    .hero-content-inner {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding-inline: 32px;
        transform: translateY(-136px);
    }

    .hero-card.glass-3d {
        width: min(54vw, 430px);
        max-width: 430px;
        padding: 20px 22px 22px;
        border-radius: 24px;
        background: rgba(28, 17, 11, 0.54);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
    }

    .hero-badge {
        font-size: 0.76rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.65rem;
        line-height: 1.4;
    }

    .hero-title {
        font-size: clamp(2.6rem, 6vw, 3.7rem);
        line-height: 0.95;
        margin-bottom: 0.08rem;
    }

    .hero-title-sub {
        font-size: clamp(2.15rem, 4.8vw, 3rem);
        line-height: 0.97;
        margin-top: 0.32rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.52;
        max-width: 100%;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        text-wrap: auto;
    }

    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.18);
    }

    #hero-track > .hero-slide:nth-of-type(2) .hero-content {
        padding-top: 136px;
    }

    #hero-track > .hero-slide:nth-of-type(3) .hero-content {
        padding-top: 134px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-content-inner {
        padding-inline: clamp(2rem, 5vw, 4rem);
    }

    .hero-card.glass-3d {
        width: min(46vw, 500px);
        max-width: 500px;
    }
}

@media (min-width: 980px) and (max-width: 1180px) and (hover: none) and (pointer: coarse) and (max-device-width: 767px) {
    #main-header,
    #navbar {
        min-height: 88px;
    }

    #navbar > div {
        padding-inline: 26px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #navbar > div.lg\:hidden {
        min-height: 88px;
        height: auto;
    }

    #mobile-menu-btn {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        padding: 0.5rem;
    }

    #nav-logo-mob,
    #nav-logo {
        height: 58px;
        max-height: 58px;
        width: auto;
    }

    .language-toggle.language-switcher {
        transform: scale(1.15);
        transform-origin: center;
    }

    .language-toggle.language-switcher .language-btn {
        font-size: 1rem;
        min-width: 54px;
        min-height: 42px;
        padding: 10px 18px;
    }

    #mobile-menu {
        font-size: 1.05rem;
    }

    #mobile-menu .mobile-link {
        font-size: 1.05rem;
        letter-spacing: 0.18em;
    }

    .hero-content {
        align-items: center;
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .hero-content-inner {
        padding-inline: 34px;
    }

    .hero-card.glass-3d {
        width: min(42vw, 430px);
        max-width: 430px;
        padding: 24px 26px;
        border-radius: 26px;
        background: rgba(28, 17, 11, 0.56);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
    }

    .hero-badge {
        font-size: 0.9rem;
        letter-spacing: 0.16em;
        margin-bottom: 0.8rem;
        line-height: 1.35;
    }

    .hero-title {
        font-size: clamp(3.5rem, 5vw, 4.6rem);
        line-height: 0.95;
        margin-bottom: 0.12rem;
    }

    .hero-title-sub {
        font-size: clamp(2.6rem, 4.2vw, 3.5rem);
        line-height: 0.98;
        margin-top: 0.35rem;
        margin-bottom: 0.95rem;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .slider-dots,
    .hero-dots {
        bottom: 28px;
    }

    .slider-dot,
    .hero-dot {
        width: 12px;
        height: 12px;
    }

    #backToTop {
        width: 56px;
        height: 56px;
        right: 22px;
        bottom: 118px;
        font-size: 1.15rem;
    }

    .fixed.bottom-8.md\:bottom-12.right-6.md\:right-10 {
        right: 22px;
        bottom: 26px;
        gap: 14px;
    }

    .fixed.bottom-8.md\:bottom-12.right-6.md\:right-10 > a[href^="https://wa.me/"] {
        width: 64px;
        height: 64px;
        font-size: 1.9rem;
    }

    .fixed.bottom-8.md\:bottom-12.right-6.md\:right-10 > div {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
}
