@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

/* --- Scroll Offset Fix --- */
/* --- Scroll Offset Fix (Global removed, specialized below) --- */
section {
    /* Desktop uses default or js handling, mobile needs explicit offset */
    scroll-margin-top: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    /* overflow-y: scroll;  REMOVED to fix double scrollbar / sticking */
    /* overflow-x: hidden; */
    font-family: 'Bebas Neue', sans-serif;
    scroll-behavior: smooth;
    /* Hide scrollbar defaults */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Background color moved to .video-container to allow video visibility */
    background-color: transparent;
    /* Fix white flashes */
}

body {
    min-height: 100vh;
    /* Changed from 200vh to avoid forced scroll if not needed, though content likely pushes it */
    overflow-x: hidden;
    /* Handle overflow here */
}

/* Remove tap highlight on all interactive elements */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Hide scrollbar for Chrome/Safari on main page */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Custom Scrollbar for Menu Cards ONLY */
.card-content::-webkit-scrollbar {
    width: 6px;
    /* Slim width */
    height: 6px;
    background: transparent;
}

.card-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-content::-webkit-scrollbar-thumb {
    background-color: #3e2723;
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
    transition: background-color 0.3s;
}

.card-content::-webkit-scrollbar-corner {
    background: transparent;
}

.card-content::-webkit-scrollbar-button {
    display: none;
    /* Explicitly hide buttons */
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* --- Video Background --- */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Use lvh for mobile browsers to prevent resizing issues when address bar hides */
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    overflow: hidden;
    background-color: #1e140f;
    /* Fallback color */
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 102vw;
    height: 102vh;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
}

/* Mobile video optimization */
@media screen and (max-width: 768px) {
    #bg-video {
        width: 102vw;
        height: 102lvh;
        /* Prevent resizing when address bar toggles */
        object-fit: cover;
        object-position: center;
        /* Ensure no min-width constraints break the aspect ratio fill */
        min-width: 102%;
        min-height: 102%;
    }
}

/* --- Content Layer (Legacy Removed) --- */
/* .content-container removed */


/* --- Top Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    z-index: 1000;
    background: rgba(30, 20, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.7s ease;
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(30, 20, 15, 0.98);
    height: 70px;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-small {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, height 0.3s ease;
}

.logo-small:active {
    transform: rotate(-5deg) scale(1.1);
}

@media (hover: hover) {
    .logo-small:hover {
        transform: rotate(-5deg) scale(1.1);
    }
}

.navbar.scrolled .logo-small {
    height: 50px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: block;
}

.nav-link:active {
    transform: scale(1.1);
}

@media (hover: hover) {
    .nav-link:hover {
        transform: scale(1.1);
    }
}

.nav-link.active {
    color: #8b6f47;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #8b6f47;
}

.mobile-menu-toggle {
    display: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:active {
    color: #8b6f47;
}

@media (hover: hover) {
    .mobile-menu-toggle:hover {
        color: #8b6f47;
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0 5vw;
    max-width: 55%;
    margin-top: 80px;
    margin-left: 0;
}

.hero-tagline {
    color: #fff;
    font-size: clamp(3rem, 7vw, 8rem);
    line-height: 0.9;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: clamp(4px, 1vw, 12px);
    text-transform: uppercase;
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(139, 111, 71, 0.5),
        0 0 60px rgba(139, 111, 71, 0.3);
    width: 100%;
    margin: 0;
    cursor: default;
    overflow: visible;
    opacity: 0;
    text-align: left;
    transition: transform 0.3s ease;
}

.hero-tagline:active {
    transform: scale(1.02);
}

@media (hover: hover) {
    .hero-tagline:hover {
        transform: scale(1.02);
    }
}

.hero-tagline.visible {
    opacity: 1;
}

.hero-tagline .word {
    display: inline-block;
    opacity: 0;
}

.hero-tagline .word.brown {
    color: #ffffff;
}

.hero-tagline .word.white {
    color: #ffffff;
}

.hero-tagline .word.from-top {
    animation: slideFromTop 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-tagline .word.from-bottom {
    animation: slideFromBottom 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-tagline .word.exit-top {
    animation: exitToTop 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.hero-tagline .word.exit-bottom {
    animation: exitToBottom 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.hero-description {
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: clamp(1px, 0.5vw, 4px);
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    margin: 0;
    overflow: visible;
    opacity: 0;
    text-align: left;
    transition: transform 0.3s ease;
}

.hero-description:active {
    transform: scale(1.02);
}

@media (hover: hover) {
    .hero-description:hover {
        transform: scale(1.02);
    }
}

.hero-description.visible {
    opacity: 1;
}

.hero-description .word {
    display: inline-block;
    opacity: 0;
}

.hero-description .word.from-top {
    animation: slideFromTop 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-description .word.from-bottom {
    animation: slideFromBottom 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-description .word.exit-top {
    animation: exitToTop 0.7s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.hero-description .word.exit-bottom {
    animation: exitToBottom 0.7s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.view-gallery-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background-color: #8b6f47;
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.view-gallery-btn.visible {
    opacity: 1;
    animation: fadeInButton 0.8s ease forwards;
}

.view-gallery-btn.exit {
    animation: fadeOutButton 0.5s ease forwards;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutButton {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.view-gallery-btn:active {
    background-color: #a58757;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

@media (hover: hover) {
    .view-gallery-btn:hover {
        background-color: #a58757;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    }
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    opacity: 0;
}

.hero-stats.visible {
    opacity: 1;
    animation: fadeInStats 0.8s ease forwards;
}

.hero-stats.exit {
    animation: fadeOutStats 0.5s ease forwards;
}

@keyframes fadeInStats {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutStats {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: transform 0.3s ease;
}

.stat-item:active {
    transform: rotate(3deg) scale(1.05);
}

@media (hover: hover) {
    .stat-item:hover {
        transform: rotate(3deg) scale(1.05);
    }
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes slideFromTop {
    from {
        opacity: 0;
        transform: translateY(-100vh);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(100vh);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes exitToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100vh);
    }
}

@keyframes exitToBottom {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100vh);
    }
}

/* --- Foliage Overlay --- */
.foliage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: url('assets/Foliage.webp') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.explore-icon {
    color: white;
    /* Icon color */
    font-size: 80px;
    /* Size for the font icon */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    animation: pulse 2s infinite;
    pointer-events: none;
    /* Let clicks pass through to container */
}

.explore-icon i {
    /* Ensure the icon inherits or sets specific styles if needed */
    display: block;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* --- Interaction State --- */
.foliage-overlay.hidden {
    opacity: 0;
    transform: scale(1.1);
    /* Slight zoom out effect as it fades */
    pointer-events: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
        background: rgba(30, 20, 15, 0.98);
    }

    .navbar-container {
        padding: 0 4vw;
    }

    .logo-small {
        height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(30, 20, 15, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        display: flex;
        overflow: hidden;
        transition: height 0.3s ease, padding 0.3s ease;
        border-top: 1px solid rgba(139, 111, 71, 0.3);
    }

    .nav-links.active {
        height: calc(100vh - 70px);
        padding: 40px 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.8rem;
        padding: 10px 20px;
    }

    .hero-section {
        justify-content: center;
    }

    .hero-content {
        margin-top: 70px;
        max-width: 90%;
        padding: 0 5vw;
        align-items: center;
    }

    .hero-tagline {
        font-size: 3.5rem;
        width: 100%;
        line-height: 1.1;
        letter-spacing: 6px;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .hero-description {
        font-size: 1.2rem;
        letter-spacing: 2px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }

    .stat-item {
        align-items: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .main-menu {
        margin-bottom: 5vh;
        margin-left: 8vw;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Scroll Offset for Mobile Sections */
    section {
        scroll-margin-top: 100px;
    }
}

/* --- Menu Section (Inline) --- */
.menu-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    /* Enforce full viewport height */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: auto;
    z-index: 1;
}

.menu-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Scroll container wrapper */
.menu-scroll-container {
    position: relative;
    width: fit-content;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 70px;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.menu-scroll-container>div:first-of-type {
    overflow: hidden;
    width: calc(var(--card-width) * 3 + var(--card-gap) * 2);
    /* Exact 3-card width */
    max-width: 100vw;
    padding: 100px 0;
    display: flex;
    justify-content: flex-start;
    /* FIX: Align track to start so index 0 is first */
    align-items: center;
    min-height: 0;
}

.menu-track {
    display: flex;
    gap: var(--card-gap);
    padding: 0;
    transition: transform 0.5s ease;
    align-items: center;
    width: fit-content;
    /* Allow track to be as long as needed */
    justify-content: flex-start;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    color: #3e2723;
    border: 3px solid #8b6f47;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

.nav-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    pointer-events: none;
}

.nav-button:active {
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

@media (hover: hover) {
    .nav-button:hover {
        background: url('assets/Parchment Texture.webp') center center no-repeat;
        background-size: 120% 120%;
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    }
}

.nav-button.prev {
    left: 0;
}

.nav-button.next {
    right: 0;
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button:disabled:active {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
    .nav-button:disabled:hover {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
}

/* Hover effect handled by JS to prevent background pausing */
@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }

    /* Moves half way (assuming duplicated content) */
}

/* Mobile Responsive Layout - VERTICAL card layout with HORIZONTAL scrollbars inside cards */
@media screen and (max-width: 768px) {
    .nav-button {
        display: none !important;
    }

    .menu-section {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background: transparent;
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
        overflow: visible;
    }

    .menu-scroll-container {
        overflow-x: hidden;
        overflow-y: visible;
        flex-direction: column;
        /* Add padding to allow shadows/texture to bleed without clipping */
        padding: 40px 20px;
        height: auto;
        width: 100%;
        display: flex;
        align-items: center;
        scrollbar-width: none;
    }

    .menu-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .menu-track {
        animation: none;
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 0;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .menu-card {
        flex: 0 0 auto;
        /* Vertical list on mobile: Use calc for dynamic consistent margins */
        width: calc(100vw - 40px) !important;
        max-width: 400px;
        height: 70vh !important;
        border-radius: 5px;
        padding: 30px 30px;
        transform: none !important;
        /* Center in the column */
        margin: 0 auto !important;
        background-repeat: no-repeat;
        background-position: center;
        display: flex !important;
        flex-direction: column;
        box-sizing: border-box;
        overflow: visible !important;
        position: relative;
        /* Ensure background fits explicitly if needed, but we use ::before now */
    }

    /* Click icon indicator for unfocused cards */
    .card-click-icon {
        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 10;
        pointer-events: none;
        font-size: 30px;
        color: #ffffff;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    }

    .card-click-icon i {
        font-weight: 900;
    }

    /* Hide click icon when card is in focus */
    .mobile-focus-inner .card-click-icon {
        display: none !important;
    }

    /* Target the pseudo-element for mobile to ensure it's visible and stretched */
    .menu-card::before {
        background-size: 100% 100% !important;
        filter: brightness(1) !important;
    }

    .card-header {
        display: block;
        height: auto;
        flex-shrink: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .card-header h3 {
        font-size: 2rem !important;
        white-space: nowrap;
    }

    .card-content {
        flex: 1;
        overflow-y: auto !important;
        overflow-x: hidden;
        padding-right: 5px;
        padding-bottom: 0;
        min-height: 0;
        pointer-events: none;
    }

    /* Enable scrolling only when card is in focus */
    .mobile-focus-inner .card-content {
        pointer-events: auto;
    }

    .card-content::-webkit-scrollbar {
        display: block !important;
        width: 6px !important;
        height: 0;
    }

    .card-content::-webkit-scrollbar-thumb {
        background-color: #3e2723;
        border-radius: 10px;
    }

    /* Content fits width */
    .menu-item {
        width: 100%;
        white-space: normal;
    }

    .menu-header-row {
        width: 100%;
    }

}

.menu-card {
    flex: 0 0 var(--card-width);
    /* Strict width */
    max-width: none;
    /* Let variable control it */
    min-width: 0;
    /* Background moved to ::before to allow specific filtering */
    border-radius: 5px;
    position: relative;
    padding: 60px 40px;
    /* Base padding safe for mobile fallback or overridden by mobile query if specificity holds */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    /* Removed default filter/opacity from container to avoid affecting text */
    /* filter: brightness(0.5); */
    opacity: 1;
    animation: cardFadeIn 0.6s ease-out;
    /* Ensure z-index is handled for stacking context */
    /* Ensure z-index is handled for stacking context */
    z-index: 5;
    /* Strict Interaction Lock: Disable all pointer events on cards by default */
    pointer-events: none;
}

/* Background & Dimming Layer */
.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Inherit rounded corners to prevent square shadow on rounded card */
    border-radius: inherit;
    /* Use 100% 100% to ensure parchment fills the card container naturally without gaps or weird cropping */
    background: url('assets/Parchment Texture.webp') center center / 100% 100% no-repeat;
    z-index: -1;
    transition: filter 0.4s ease;
    /* Default dimmed state for the parchment only */
    /* Add drop-shadow removed as per user request */
    filter: brightness(0.5);
}

.menu-card.spotlight {
    transform: scale(1.15) translateY(-15px);
    z-index: 20;
    /* Re-enable pointer events ONLY for the spotlight card */
    pointer-events: auto;
    /* Box shadow removed from here, moving to drop-shadow on pseudo-element if needed, 
       or keeping it if it looks good. User complained about "boxy", so drop-shadow on the image is better. */
}

.menu-card.spotlight::before {
    /* Undim the background when spotlighted */
    filter: brightness(1);
}

/* Desktop only - fixed height */
@media screen and (min-width: 769px) {
    .menu-card {
        padding: clamp(30px, 4vw, 60px) clamp(20px, 3vw, 50px);
        height: 70vh;
        max-height: 600px;
    }

    .card-header h3 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .menu-header-row {
        grid-template-columns: 1fr minmax(40px, auto) minmax(40px, auto);
    }

    .menu-item {
        grid-template-columns: 1fr minmax(40px, auto) minmax(40px, auto);
    }


    /* --- Laptop (1024px) Specific Fix --- */
    @media screen and (max-width: 1100px) {
        .menu-card {
            flex: 0 0 25vw !important;
            /* Force wider */
            width: 25vw !important;
            padding: 15px 20px !important;
            /* Tight padding */
            height: 55vh;
            /* Reduced height (was 75vh) */
            max-height: none;
        }

        .card-header h3 {
            font-size: 1.8rem !important;
            /* Smaller title */
            margin-bottom: 8px;
        }

        .menu-header-row,
        .menu-item {
            gap: 2px !important;
            /* Tighter gap */
            grid-template-columns: 1fr 35px 35px !important;
            /* Force tight columns */
        }

        .menu-item span,
        .menu-header-row span {
            font-size: 0.95rem;
            /* Smaller text */
        }
    }

    .nav-button {
        display: flex !important;
    }

    .menu-scroll-container {
        height: auto;
    }

    .menu-scroll-container>div:first-of-type {
        height: auto;
    }

    .menu-section {
        padding: 12vh 0 0 0;
    }
}

/* Hover effect removed */

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(0.95);
    }
}

/* Add a rugged edge effect using mask or clip-path if desired, but texture does heavy lifting */

.card-header {
    text-align: center;
    border-bottom: 3px solid #3e2723;
    /* Dark brown */
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
    /* Sepia + Hue Rotate to get a rich brown tone */
}


.card-header h3 {
    margin: 0;
    color: #3e2723;
    font-size: 3rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.card-content {
    flex: 1;
    padding-right: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Use a serif font for that old-world feel */
    font-family: 'Georgia', serif;
    color: #4e342e;
}

.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-thumb {
    background-color: #6a3d35;
    border-radius: 3px;
}

/* --- Menu Grid Layout --- */
.menu-header-row {
    display: grid;
    grid-template-columns: 1fr 70px 70px;
    gap: 5px;
    /* Name | Half | Full */
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: 'Bebas Neue', sans-serif;
    color: #3e2723;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: bold;
    /* Bold headers */
}

.menu-header-row span {
    text-align: right;
}

.menu-header-row span:first-child {
    text-align: left;
}

/* Mobile specific header alignment */
@media screen and (max-width: 768px) {
    .menu-header-row {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 1.2rem;
        gap: 5px;
        font-weight: bold;
    }

    .menu-item {
        grid-template-columns: 2fr 1fr 1fr !important;
        gap: 5px !important;
        align-items: center !important;
    }

    .menu-item span:first-child {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        padding-right: 5px;
    }

    .menu-item .price {
        font-size: 1.2rem !important;
        text-align: center !important;
        padding: 0 !important;
        display: block !important;
        width: 100%;
    }

    .menu-header-row span {
        text-align: center !important;
    }

    .menu-header-row span:first-child {
        text-align: left !important;
    }

    /* --- Mobile Menu Focus Overlay --- */
    .menu-overlay-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 2000;
        /* Below focused card (2001) but above everything else */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .menu-overlay-mobile.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Focused Card State */
    /* Wrapper handles positioning and visibility of close button */
    /* Wrapper handles positioning and visibility of close button */
    .mobile-focus-wrapper {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 40px);
        max-width: 400px;
        /* Use flex to manage inner height correctly */
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: 80vh;
        z-index: 2001;
        background-color: transparent;
        pointer-events: auto;
        overflow: visible;
        animation: fadeScaleIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .mobile-focus-wrapper.closing {
        animation: fadeScaleOut 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
        pointer-events: none;
    }

    @keyframes fadeScaleIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    @keyframes fadeScaleOut {
        from {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        to {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
    }

    /* Inner card: flex-grow allows it to fill wrapper, valid height ensures scroll */
    .menu-card.mobile-focus-inner {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        /* Allow it to be determined by content or flex */
        min-height: 0;
        flex: 1 1 auto;
        /* Grow/shrink */
        margin: 0 !important;
        transform: none !important;
        overflow: hidden !important;
        pointer-events: auto !important;
        border-radius: 5px;
        display: flex !important;
        flex-direction: column;
    }

    .menu-card.mobile-focus-inner .card-content {
        overflow-y: auto !important;
        flex: 1 1 auto;
        /* Fill remaining space */
        min-height: 0;
        /* Crucial for nested flex scroll */
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure we can click cards to trigger this */
    /* Ensure we can click cards to trigger this */
    .menu-card {
        pointer-events: auto !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Close Button Style - Unified with Gallery */
    .mobile-menu-close-btn {
        position: absolute;
        top: -5px;
        right: 0px;
        width: 45px;
        height: 45px;
        background: url('assets/Parchment Texture.webp') center center no-repeat;
        background-size: 120% 120%;
        border: 3px solid #3e2723;
        color: #3e2723;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-weight: 900;
        z-index: 2005;
        cursor: pointer;
        outline: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
        -webkit-tap-highlight-color: transparent;
        transition: all 0.3s ease;
    }

    .mobile-menu-close-btn:active {
        transform: scale(0.95);
    }

    .mobile-menu-close-btn i {
        font-weight: 900;
        font-size: 26px;
    }
}

/* --- Tablet Specific Adjustment (User Request) --- */
@media screen and (min-width: 600px) and (max-width: 768px) {
    .menu-card {
        width: 80vw !important;
        /* 20% narrower than full width */
        max-width: 550px;
        /* Ensure it doesn't get too wide but allows 80vw to work */
        margin: 0 auto;
        /* Enhance centering */
    }
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr 70px 70px;
    /* Name | Half | Full */
    align-items: center;
    margin-bottom: 12px;
    gap: 5px;
    border-bottom: 1px dashed rgba(62, 39, 35, 0.2);
    padding-bottom: 4px;
    gap: 5px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.menu-item:active {
    background-color: rgba(139, 111, 71, 0.1);
    padding-left: 2px;
}

@media (hover: hover) {
    .menu-item:hover {
        background-color: rgba(139, 111, 71, 0.1);
        padding-left: 2px;
    }
}

.menu-item span:first-child {
    font-weight: bold;
    font-size: 1.05rem;
    /* Slightly adjust for fitting */
    text-align: left;
    white-space: normal;
    /* Allow text wrapping for long names */
    line-height: 1.1;
    overflow-wrap: break-word;
}

.menu-item .price {
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #3e2723;
    text-align: right;
    white-space: nowrap;
    display: block;
}

.menu-item .price.empty {
    visibility: hidden;
}



/* Single Price Variant (for non-half/full items) */
.menu-item.single-price {
    grid-template-columns: 1fr auto;
}

.close-btn {
    display: none;
    /* Hide Close Button via CSS */
}

/* --- Gallery Section --- */
.gallery-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #ffffff;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    /* Stronger shadow */
    text-align: center;
    line-height: 1.1;
    cursor: default;
    transition: transform 0.3s ease;
}

/* Global hover/active for gallery title so mobile gets it too */
.gallery-title:active {
    transform: scale(1.05);
}

@media (hover: hover) {
    .gallery-title:hover {
        transform: scale(1.05);
    }
}

/* Gallery title fade animations */
.gallery-title .word {
    display: inline-block;
    opacity: 0;
}

.gallery-title .word.white {
    color: #ffffff;
}

.gallery-title .word.from-top {
    animation: simpleFadeIn 1.2s ease forwards;
}

.gallery-title .word.from-bottom {
    animation: simpleFadeIn 1.2s ease forwards;
}

.gallery-title .word.exit-top {
    animation: simpleFadeOut 0.6s ease forwards;
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes simpleFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Binoculars Entrance/Exit - Fade only */
.binoculars-container {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.binoculars-container.visible {
    opacity: 1;
}

.binoculars-container.exit {
    opacity: 0;
    transition: opacity 0.6s ease;
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 0;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .gallery-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
        margin-bottom: 30px;
        text-align: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .gallery-content {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .binoculars-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .binoculars-img {
        width: 70vw;
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.gallery-content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.binoculars-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Rotation Effect on Click/Active (Global) */
.binoculars-container:active {
    transform: rotate(5deg);
}

/* Mobile Text Rotation */
@media (max-width: 768px) {
    /* .gallery-title:active rotation removed in favor of scale effect above */
}

.binoculars-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    display: block;
    max-width: 80vw;
    /* Responsive constraint */
}

.icon-overlay {
    position: absolute;
    top: 35%;
    /* Moved up slightly to center visually over binoculars */
    left: 40%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 80px;
    /* Same size as foliage icon */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    animation: pulse 2s infinite;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Story Section --- */
.story-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.story-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #8b6f47;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.story-content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* --- Interactive Gallery Overlay - Art Gallery --- */
#gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    /* Stable full screen, ignores address bar changes */
    z-index: 3000;
    background: linear-gradient(135deg, #1a1410 0%, #2d2419 50%, #1a1410 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

#gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Art Gallery Grid View */
.art-gallery-grid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.art-gallery-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #ffffff;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
}

.art-gallery-title.fade-in {
    animation: titleFadeIn 1s ease forwards;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Frames Container - Art Gallery Wall */
.frames-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px 40px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

/* Individual Framed Image */
.gallery-frame-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
    transform-origin: center center;
    opacity: 0;
}

.gallery-frame-item.fade-in {
    animation: elegantFadeIn 0.8s ease forwards;
}

.gallery-frame-item:active {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

@media (hover: hover) {
    .gallery-frame-item:hover {
        transform: translateY(-10px) scale(1.05);
        z-index: 10;
    }
}

@keyframes elegantFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Stagger animation delays - Applied dynamically via JS */
.gallery-frame-item:nth-child(1).fade-in {
    animation-delay: 0.1s;
}

.gallery-frame-item:nth-child(2).fade-in {
    animation-delay: 0.2s;
}

.gallery-frame-item:nth-child(3).fade-in {
    animation-delay: 0.3s;
}

.gallery-frame-item:nth-child(4).fade-in {
    animation-delay: 0.4s;
}

.gallery-frame-item:nth-child(5).fade-in {
    animation-delay: 0.5s;
}

.gallery-frame-item:nth-child(6).fade-in {
    animation-delay: 0.6s;
}

.gallery-frame-item:nth-child(7).fade-in {
    animation-delay: 0.7s;
}

.gallery-frame-item:nth-child(8).fade-in {
    animation-delay: 0.8s;
}

.gallery-frame-item:nth-child(9).fade-in {
    animation-delay: 0.9s;
}

.gallery-frame-item:nth-child(10).fade-in {
    animation-delay: 1s;
}

.gallery-frame-item:nth-child(11).fade-in {
    animation-delay: 1.1s;
}

.gallery-frame-item:nth-child(12).fade-in {
    animation-delay: 1.2s;
}

.gallery-frame-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.gallery-frame-wrapper .frame-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-frame-wrapper .thumbnail-img {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68%;
    height: 62%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}

.gallery-frame-item:active .thumbnail-img {
    transform: translate(-50%, -50%) scale(1.1);
}

@media (hover: hover) {
    .gallery-frame-item:hover .thumbnail-img {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Expanded View */
.gallery-expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1410 0%, #2d2419 50%, #1a1410 100%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.gallery-expanded.hidden {
    opacity: 0;
    pointer-events: none;
}

.expanded-frame-container {
    position: relative;
    width: 85vw;
    max-width: 900px;
    height: auto;
    animation: expandFrame 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes expandFrame {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.expanded-frame-container .expanded-frame {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.9));
}

.expanded-frame-container .expanded-content-img {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68%;
    height: 62%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Controls */
.gallery-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    border: 3px solid #8b6f47;
    color: #3e2723;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.gallery-close-btn:active {
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

@media (hover: hover) {
    .gallery-close-btn:hover {
        background: url('assets/Parchment Texture.webp') center center no-repeat;
        background-size: 120% 120%;
        transform: rotate(90deg) scale(1.15);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    }
}

.gallery-close-btn i {
    font-weight: 900;
}

/* Hide close button when in expanded view */
#gallery-overlay:has(.gallery-expanded:not(.hidden)) .gallery-close-btn {
    display: none;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    border: 3px solid #8b6f47;
    color: #3e2723;
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    font-weight: 900;
}

.gallery-nav-btn i {
    font-weight: 900;
    display: flex;
}

.gallery-nav-btn:active {
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: 120% 120%;
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

@media (hover: hover) {
    .gallery-nav-btn:hover {
        background: url('assets/Parchment Texture.webp') center center no-repeat;
        background-size: 120% 120%;
        transform: translateY(-50%) scale(1.2);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    }
}

.gallery-nav-btn.prev {
    left: 50px;
}

.gallery-nav-btn.next {
    right: 50px;
}

.back-to-gallery-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: cover;
    border: none;
    color: #3e2723;
    padding: 15px 35px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 3px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: bold;
    outline: none;
    white-space: nowrap;
}

.back-to-gallery-btn:active {
    background: url('assets/Parchment Texture.webp') center center no-repeat;
    background-size: cover;
    transform: translateX(-50%) translateY(-5px) scale(1.05);
}

@media (hover: hover) {
    .back-to-gallery-btn:hover {
        background: url('assets/Parchment Texture.webp') center center no-repeat;
        background-size: cover;
        transform: translateX(-50%) translateY(-5px) scale(1.05);
    }
}

.back-to-gallery-btn:focus {
    outline: none;
}

/* Swipe hint for mobile */
.swipe-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    z-index: 50;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: none;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .art-gallery-title {
        font-size: 2.5rem;
        letter-spacing: 6px;
        margin-bottom: 40px;
    }

    .art-gallery-grid {
        padding: 80px 20px 40px;
    }

    .frames-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding: 10px;
    }

    .gallery-frame-item:hover {
        transform: scale(1.02);
    }

    .expanded-frame-container {
        width: 95vw;
    }

    /* Hide prev/next buttons on mobile */
    .gallery-nav-btn {
        display: none;
    }

    /* Show swipe hint on mobile */
    .swipe-hint {
        display: block;
    }

    .gallery-close-btn {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .back-to-gallery-btn {
        bottom: 35px;
        padding: 12px 28px;
        font-size: 1.1rem;
    }
}

/* --- Location Section --- */
.location-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.location-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.location-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #8b6f47;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.location-content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}


/* --- Contact Section --- */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #8b6f47;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}