/* assets/css/styles.css */
:root {
    --orange: #FFBF65;
    --teal: #8DD7BF;
    --red: #FF5768;
    --blue: #00A5E3;
    --pink: #FF96C5;
}

.order-btn {
    transition: all 0.2s;
}
.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#hero-order-btns .btn {
    min-width: 148px;
}

.menu-item .order-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
}

.audio-btn {
    background: #fff;
    border: 2px solid #FF6B35;
    color: #FF6B35;
}

.audio-btn.playing {
    background: #FF6B35;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.parallax blockquote {
    font-family: Georgia, serif;
}

.gallery-overlay h5 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.review-card p {
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .parallax { height: 320px; background-attachment: scroll; }
}


#gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#gallery .container-fluid {
    max-width: 100%;
}

#gallery-grid .col-6 {
    padding-left: 2px;
    padding-right: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    margin-bottom: 4px;          /* small vertical spacing */
    border-radius: 0;            /* sharp corners for modern grid look */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: scale(1.025);
    box-shadow: 0 12px 32px rgba(255,107,53,0.22);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.09);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.25rem 1.25rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.gallery-overlay p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.35;
}

/* Mobile – ensure images feel full-bleed but not distorted */
@media (max-width: 576px) {
    .gallery-item {
        margin-bottom: 2px;
    }
    .gallery-overlay h5 {
        font-size: 1.1rem;
    }
    .gallery-overlay p {
        font-size: 0.85rem;
    }
}


/* Slow close animation */
#galleryModal.fade .modal-dialog {
    transition: all 0.6s ease-out;
}

#galleryModal.show .modal-dialog {
    transform: scale(1);
}

#galleryModal.fade:not(.show) .modal-dialog {
    transform: scale(0.92);
    opacity: 0;
}

.modal-dialog.closing {
    transform: scale(0.92) !important;
    opacity: 0 !important;
}


/* Better mobile stacking */
@media (max-width: 576px) {
    #modal-img {
        max-height: 45vh !important;
    }
    .modal-footer {
        padding: 1.5rem !important;
    }
    .description-box {
        font-size: 1rem !important;
    }
    .order-btn {
        flex: 1 1 48%;
        margin: 4px 2px !important;
    }
}
.modal-content {
    background:rgb(124, 255, 194) ;
}

/* Language switch, feature bands, accessibility, and small screens */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    background: #FFBF65;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 20000;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.lang-icon { vertical-align: -2px; margin-right: 4px; }
.lang-switch .lang-toggle {
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid #FFBF65;
    border-radius: 999px;
    font-weight: 650;
    min-height: 44px;
    padding: 6px 14px;
    white-space: nowrap;
}
.lang-switch .lang-toggle:hover,
.lang-switch .lang-toggle:focus-visible,
.lang-switch .lang-toggle.show {
    background: #FFBF65;
    color: #111;
}
.lang-switch .dropdown-menu {
    min-width: 11rem;
    border-radius: 14px;
    padding: 6px;
}
.lang-switch .dropdown-item.active,
.lang-switch .dropdown-item:active {
    background: #FF6B35;
    color: #fff;
}

.accessibility-btn {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}
.accessibility-btn[aria-expanded="true"],
.accessibility-btn:hover { background: #FF6B35; border-color: #FF6B35; }

.feature-kicker { letter-spacing: 0.08em; color: #FF6B35; font-size: 0.82rem; }
.feature-photo, .video-frame {
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}
.video-frame iframe,
.video-frame .video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.hero {
    background-image: var(--hero-poster);
    background-size: cover;
    background-position: center;
}
.hero-logo { max-width: 28vw; height: auto; }
.brand-name { font-size: clamp(1rem, 2.6vw, 1.5rem); line-height: 1.1; }

.contact-section { position: relative; min-height: 560px; }
.contact-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100% - 2rem));
    z-index: 2;
}

button.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}
.order-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.navbar .nav-link { min-height: 44px; display: flex; align-items: center; }
:focus-visible { outline: 3px solid #FFBF65; outline-offset: 2px; }

#reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 2.5rem;
    margin-top: 0;
    background: rgba(255, 191, 101, 0.35);
    border-top: 2px solid #111;
    border-bottom: 2px solid #111;
    pointer-events: none;
    z-index: 1035;
}

html[data-a11y-font="serif"] body { font-family: Georgia, "Times New Roman", serif; }
html[data-a11y-font="lexend"] body { font-family: "Lexend", sans-serif; }
html[lang="zh-Hans"] body { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: 1.75; }
html.a11y-spacing body { letter-spacing: 0.06em; word-spacing: 0.12em; }
html.a11y-leading body { line-height: 1.9; }
html.a11y-links a {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
    background: #fff3a0;
    color: #111 !important;
}
html.a11y-focus :focus-visible { outline: 4px solid #ffbf00 !important; outline-offset: 3px !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M6 4 L6 38 L16 30 L22 44 L28 41 L22 28 L36 28 Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 6 4, auto; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray.a11y-invert { filter: grayscale(1) invert(1) hue-rotate(180deg); }
html.a11y-paused iframe[data-src] { display: none !important; }
#modal-img { max-height: 58vh; object-fit: cover; }
html.a11y-paused .parallax { background-attachment: scroll !important; }
html.a11y-paused *, html.a11y-paused *::before, html.a11y-paused *::after { animation: none !important; transition: none !important; }
html.high-contrast body,
html.high-contrast .bg-white,
html.high-contrast .bg-light,
html.high-contrast .review-card,
html.high-contrast .modal-content,
html.high-contrast .contact-card,
html.high-contrast .navbar,
html.high-contrast footer {
    background: #000 !important;
    color: #fff !important;
}
html.high-contrast h1, html.high-contrast h2, html.high-contrast h3, html.high-contrast h4,
html.high-contrast p, html.high-contrast li, html.high-contrast .text-muted, html.high-contrast .text-dark {
    color: #fff !important;
}
html.high-contrast a { color: #ffe14a !important; }
html.high-contrast .btn, html.high-contrast .form-select, html.high-contrast .form-control {
    border: 2px solid #fff !important;
}

@media (hover: none) {
    .gallery-overlay { opacity: 1; }
}
@media (max-width: 991.98px) {
    .navbar .order-btn { margin-top: 0.75rem; }
}
@media (max-width: 768px) {
    .hero { padding: 6.5rem 0 4.5rem; align-items: flex-end; }
    .hero-content h1, #hero-name { font-size: 2.15rem; }
    #hero-tagline { font-size: 1.15rem !important; }
    #hero-welcome { font-size: 1.05rem !important; margin-bottom: 1.25rem !important; }
    .parallax { min-height: 240px; background-attachment: scroll; padding: 2rem 0; }
    .display-5 { font-size: 1.85rem; }
    .review-card { padding: 1.5rem; }
    .review-card p { font-size: 1.05rem; }
    .contact-section { min-height: 0; display: flex; flex-direction: column; }
    .contact-map { position: relative; height: 280px; }
    .contact-card { position: relative; top: auto; left: auto; transform: none; margin: -2.5rem 1rem 1.5rem; }
    .scroll-down { display: none; }
}
@media (max-width: 420px) {
    .brand-name { display: none; }
    .accessibility-btn { width: 48px; height: 48px; font-size: 1.25rem; }
    .hero-content h1, #hero-name { font-size: 1.8rem; }
    .lang-switch .lang-toggle span { max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
    .parallax { background-attachment: scroll; }
    .gallery-item, .order-btn, .gallery-item img { transition: none; }
}