/* Door Restaurant - Complete iPhone-Optimized Stylesheet with All Features */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    /* iPhone-specific font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced CSS Custom Properties for iPhone */
:root {
    --vh: 1vh;
    --nav-height: 80px;
    --mobile-nav-height: 64px;
    /* Enhanced safe area support for Dynamic Island and home indicator */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --tuscan-orange: #C65102;
    --tuscan-orange-light: rgba(198, 81, 2, 0.8);
    --tuscan-orange-glow: rgba(198, 81, 2, 0.7);
    
    /* iPhone-optimized font sizes */
    --body-text-size: 18px;
    --body-text-size-small: 16px;
    --heading-h1-size: 32px;
    --heading-h2-size: 28px;
    --heading-h3-size: 24px;
    --button-text-size: 18px;
    --nav-text-size: 17px;
    --caption-text-size: 15px;
    
    /* Touch target sizes */
    --touch-target-min: 44px;
    --touch-target-optimal: 48px;
    --touch-spacing: 8px;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #0a0a0a;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    /* iPhone-specific optimizations */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Minimum 18px body text for iPhone */
    font-size: var(--body-text-size);
}

/* iPhone-optimized link styling */
a, a:link, a:visited, a:hover, a:active, a:focus {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-underline-offset: 0 !important;
    /* Enhanced touch targets */
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* iPhone-specific WebKit optimizations */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    /* Dynamic Island and notch support */
    .splash-page,
    .nav {
        padding-top: max(20px, calc(env(safe-area-inset-top) + 15px));
    }
    
    /* Home indicator support */
    .nav-links.active {
        padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 20px));
    }
}

/* Enhanced scrollbar for iPhone Safari */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =============== SIMPLIFIED SPLASH PAGE FOR IMAGE CLICK =============== */
.splash-page {
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 1.2s ease;
    /* Enhanced iPhone safe areas */
    padding-top: max(20px, calc(env(safe-area-inset-top) + 10px));
    padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
    padding-left: max(20px, calc(env(safe-area-inset-left) + 10px));
    padding-right: max(20px, calc(env(safe-area-inset-right) + 10px));
    /* iPhone performance optimizations */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
    contain: layout style paint;
}

.splash-page.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* Splash image container */
.splash-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.splash-image-container:hover {
    transform: scale(1.02);
}

.splash-image-container:active {
    transform: scale(0.98);
}

.splash-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire container */
    border-radius: 0; /* Remove rounded corners for full coverage */
    box-shadow: none; /* Remove shadow for full page effect */
    transition: all 0.3s ease;
}

/* Click to enter overlay */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.splash-image-container:hover .splash-overlay {
    opacity: 1;
}

.click-to-enter {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: pulse 2s infinite;
    font-family: 'Georgia', serif;
}

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

/* Enhanced Mobile Support for iPhone */
@media (max-width: 768px) {
    .splash-page {
        /* Enhanced iPhone safe area handling */
        padding-top: max(30px, calc(env(safe-area-inset-top) + 20px));
        padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 20px));
        padding-left: max(25px, calc(env(safe-area-inset-left) + 15px));
        padding-right: max(25px, calc(env(safe-area-inset-right) + 15px));
        
        /* iPhone touch optimization */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

    .splash-image {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fill entire screen on mobile too */
    }

    .click-to-enter {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
}

/* iPhone Pro models with Dynamic Island */
@media (max-width: 430px) {
    .splash-page {
        padding-top: max(40px, calc(env(safe-area-inset-top) + 30px));
    }
}

/* iPhone landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-page {
        padding-top: max(15px, calc(env(safe-area-inset-top) + 5px));
        padding-bottom: max(15px, calc(env(safe-area-inset-bottom) + 5px));
    }

    .splash-image {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fill entire screen in landscape too */
    }

    .click-to-enter {
        font-size: 1.2rem;
    }
}

/* Performance Optimizations */
.splash-image-container {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Skip link removed */

/* =============== MAIN SITE STYLES =============== */
.main-site {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.main-site.active {
    opacity: 1;
}

/* =============== IPHONE-OPTIMIZED NAVIGATION =============== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    /* iPhone Dynamic Island and notch support */
    padding-top: max(20px, calc(env(safe-area-inset-top) + 15px));
    padding-left: max(20px, calc(env(safe-area-inset-left) + 10px));
    padding-right: max(20px, calc(env(safe-area-inset-right) + 10px));
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .nav {
        opacity: 0;
        transform: translateY(-100%);
        transition: all 0.3s ease;
    }

    .nav:hover,
    .nav.show-nav,
    body:hover .nav,
    .main-site:hover .nav {
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-site.active:hover .nav {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: #fff;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    /* iPhone touch target */
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-center {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(8px, 1.5vw, 20px); /* Reduced from 15px-35px to 8px-20px */
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
    max-width: 1000px;
    margin-left: auto;
    flex-wrap: nowrap; /* Prevent wrapping to ensure single row */
}

/* iPhone-optimized navigation links - tighter spacing for single row */
.nav-links a {
    color: #ccc;
    text-decoration: none !important;
    text-transform: lowercase;
    font-size: clamp(14px, 2vw, 17px); /* Slightly smaller font for better fit */
    letter-spacing: 0.5px; /* Reduced letter spacing */
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    /* Enhanced iPhone touch targets - reduced padding */
    padding: 8px 12px; /* Reduced from 12px 16px */
    border-radius: 8px;
    background: transparent;
    border: none !important;
    outline: none !important;
    min-height: var(--touch-target-min);
    min-width: auto; /* Allow flexible width */
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a::before {
    display: none;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* =============== ENHANCED MOBILE MENU FOR IPHONE =============== */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    background: transparent;
    border: none;
    /* iPhone-optimized touch target */
    padding: 12px;
    min-width: var(--touch-target-optimal); /* 48px */
    min-height: var(--touch-target-optimal); /* 48px */
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: background 0.3s ease;
    touch-action: manipulation;
    position: relative;
}

.mobile-menu span {
    width: 28px; /* Slightly larger for iPhone */
    height: 3px; /* Slightly thicker for visibility */
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform-origin: center;
    border-radius: 2px; /* Rounded ends */
}

/* Enhanced mobile menu animation for iPhone */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(25px);
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
}

/* iPhone touch feedback */
.mobile-menu:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.92);
    transition: all 0.1s ease;
}

/* =============== ENHANCED AUDIO BUTTONS FOR IPHONE =============== */
.audio-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* iPhone-optimized sizing */
    width: var(--touch-target-optimal); /* 48px */
    height: var(--touch-target-optimal); /* 48px */
    color: #fff !important;
    font-size: var(--button-text-size); /* 18px */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    user-select: none;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    touch-action: manipulation;
    -webkit-user-select: none;
    contain: layout style;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    color: #fff !important;
    transition: transform 0.2s ease;
}

/* iPhone touch feedback */
.audio-toggle:active {
    transform: scale(0.85);
    transition: transform 0.1s ease;
}

.audio-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Enhanced playing state */
.audio-toggle.playing {
    background: var(--tuscan-orange-light) !important;
    border-color: var(--tuscan-orange) !important;
    color: #fff !important;
    animation: audioPlaying 3s ease-in-out infinite alternate, pulseTuscanOrange 2s infinite;
    box-shadow: 0 0 15px rgba(198, 81, 2, 0.4);
}

@keyframes audioPlaying {
    0% {
        opacity: 0.8;
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }
}

.audio-toggle.playing:hover {
    animation-play-state: paused;
    transform: scale(1.15);
}

@keyframes pulseTuscanOrange {
    0% { box-shadow: 0 0 0 0 var(--tuscan-orange-glow); }
    70% { box-shadow: 0 0 0 10px rgba(198, 81, 2, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 81, 2, 0); }
}

/* Enhanced Splash Audio Button for iPhone */
.splash-audio-toggle {
    position: fixed !important;
    /* iPhone Dynamic Island positioning */
    top: max(25px, calc(env(safe-area-inset-top) + 20px)) !important;
    right: max(25px, calc(env(safe-area-inset-right) + 20px)) !important;
    background: rgba(70, 130, 180, 0.9) !important;
    border: 2px solid rgba(70, 130, 180, 1) !important;
    border-radius: 50% !important;
    /* iPhone-optimized sizing */
    width: var(--touch-target-optimal) !important; /* 48px */
    height: var(--touch-target-optimal) !important; /* 48px */
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    z-index: 99999 !important;
    font-family: 'Georgia', serif !important;
    -webkit-tap-highlight-color: transparent !important;
    overflow: hidden !important;
    user-select: none !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
    box-shadow: 0 4px 20px rgba(70, 130, 180, 0.3) !important;
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    contain: layout style !important;
}

.splash-audio-toggle:hover {
    background: rgba(70, 130, 180, 1) !important;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.splash-audio-toggle:active {
    transform: scale(0.85);
    transition: transform 0.1s ease;
}

.splash-audio-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Playing state with enhanced animation for splash */
.splash-audio-toggle.playing {
    background: rgba(70, 130, 180, 1) !important;
    animation: audioPlaying 3s ease-in-out infinite alternate, pulseBlueSplash 2s infinite !important;
    box-shadow: 0 6px 30px rgba(70, 130, 180, 0.5) !important;
}

.splash-audio-toggle.playing:hover {
    animation-play-state: paused !important;
    transform: scale(1.08) !important;
}

@keyframes pulseBlueSplash {
    0% { box-shadow: 0 0 0 0 rgba(70, 130, 180, 0.8), 0 6px 30px rgba(70, 130, 180, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(70, 130, 180, 0), 0 6px 30px rgba(70, 130, 180, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(70, 130, 180, 0), 0 6px 30px rgba(70, 130, 180, 0.5); }
}

/* Audio loading indicator */
.audio-toggle[data-loading="true"], 
.splash-audio-toggle[data-loading="true"] {
    animation: audioLoading 1.5s linear infinite;
    opacity: 0.7;
}

@keyframes audioLoading {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* =============== IPHONE-OPTIMIZED TYPOGRAPHY =============== */
h1, h2, h3, h4, h5, h6 {
    text-transform: lowercase;
    color: #000;
    line-height: 1.3; /* Better for iPhone reading */
}

/* iPhone font size hierarchy - removed bold effects */
h1 { 
    font-size: var(--heading-h1-size); /* 32px */
    font-weight: 300; /* Light weight, no bold */
}
h2 { 
    font-size: var(--heading-h2-size); /* 28px */
    font-weight: 300; /* Light weight, no bold */
}
h3 { 
    font-size: var(--heading-h3-size); /* 24px */
    font-weight: 300; /* Light weight, no bold */
}

p, .sub-links a, .menu-item p {
    color: #666;
    text-transform: lowercase;
    font-size: var(--body-text-size); /* 18px */
    line-height: 1.6;
}

/* Smaller text where appropriate */
.caption, .gallery-content p {
    font-size: var(--caption-text-size); /* 15px */
}

.section {
    background: #fff;
}

/* =============== LANDING PAGE - iPhone Optimized =============== */
.landing-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    top: 0;
    left: 0;
    padding-top: var(--nav-height);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    background: #fff;
}

/* Desktop specific */
@media (min-width: 769px) {
    .landing-page {
        height: auto;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        overflow-y: auto;
    }
}

/* iPhone landing page - force white background in ALL orientations */
@media (max-width: 768px) {
    .landing-page {
        background: #fff !important;
        background-image: none !important;
        background-color: #fff !important;
        /* iPhone safe area support */
        padding-top: max(calc(var(--mobile-nav-height) + 30px), calc(env(safe-area-inset-top) + var(--mobile-nav-height) + 20px));
        padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px));
        padding-left: max(20px, calc(env(safe-area-inset-left) + 15px));
        padding-right: max(20px, calc(env(safe-area-inset-right) + 15px));
        justify-content: flex-start;
        color: #000;
    }

    .landing-page .gallery-slider {
        background: #fff !important;
        background-image: none !important;
        background-color: #fff !important;
    }

    .landing-page *,
    .landing-content *,
    .landing-links * {
        background-image: none !important;
    }
}

.gallery-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #fff;
}

/* iPhone white background override */
@media (max-width: 768px) {
    .gallery-slider {
        background: #fff !important;
        z-index: -2;
    }

    .landing-page .gallery-slider {
        background: #fff !important;
        background-image: none !important;
        z-index: -2;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: #fff;
    position: relative;
}

.slide:nth-child(2) {
    background: #fff;
    position: relative;
}

.slide:nth-child(3) {
    background: #fff;
    position: relative;
}

.slide:nth-child(1)::before,
.slide:nth-child(2)::before,
.slide:nth-child(3)::before {
    display: none;
}

.landing-content {
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;
}

.landing-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 2vw, 8px);
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #fff;
    line-height: 1.2;
}

/* iPhone-optimized landing logo - WHITE ON WHITE EMBOSSED */
@media (max-width: 768px) {
    .landing-content h1 {
        font-size: clamp(3rem, 12vw, 4.5rem); /* Larger for iPhone */
        letter-spacing: clamp(3px, 3vw, 7px);
        margin-bottom: 40px; /* More space */
        line-height: 1.1;
        color: #fff !important;
        text-shadow: 
            1px 1px 0px #f0f0f0,
            2px 2px 0px #e8e8e8,
            3px 3px 0px #e0e0e0,
            4px 4px 0px #d8d8d8,
            5px 5px 0px #d0d0d0,
            6px 6px 10px rgba(200,200,200,0.3) !important;
        /* iPhone touch target */
        min-height: var(--touch-target-optimal);
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
}

.landing-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 5vw, 80px);
    margin: 40px auto;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

.landing-link {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    margin-bottom: 30px;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch optimization */
    padding: 15px;
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.landing-link:hover {
    transform: translateY(-5px);
}

.landing-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.landing-link h3 {
    font-size: clamp(1.6rem, 4vw, 2.2rem); /* Larger for iPhone */
    margin-bottom: 25px;
    text-transform: lowercase;
    letter-spacing: clamp(1px, 1vw, 3px);
    color: #000;
    font-weight: 300;
    line-height: 1.3;
}

.sub-links {
    display: flex;
    flex-direction: column;
    gap: var(--touch-spacing); /* 8px spacing */
    align-items: center;
}

.sub-links a {
    color: #ccc;
    text-decoration: none !important;
    font-size: clamp(1rem, 3vw, 1.2rem); /* iPhone-optimized */
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: lowercase;
    /* iPhone touch targets */
    padding: 12px 16px;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sub-links a:hover {
    color: #fff;
}

.sub-links a:active {
    color: #000;
    background: rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* =============== ENHANCED GALLERY FOR IPHONE =============== */
.css-gallery {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 40px auto 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #f8f8f8;
    will-change: auto;
}

.css-gallery .gallery-nav,
.css-gallery .gallery-dots,
.css-gallery .gallery-dot {
    isolation: isolate;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    pointer-events: none;
}

.gallery-slide img {
    transition: opacity 0.3s ease;
}

.gallery-slide img[data-loading="true"] {
    opacity: 0.5;
}

.gallery-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white;
    z-index: 2;
}

.gallery-content h3 {
    font-size: var(--heading-h3-size); /* 24px */
    margin-bottom: 10px;
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #fff;
    line-height: 1.3;
}

.gallery-content p {
    font-size: var(--body-text-size); /* 18px */
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    color: #fff;
    line-height: 1.5;
}

/* iPhone-optimized gallery controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    /* iPhone touch targets */
    width: var(--touch-target-optimal); /* 48px */
    height: var(--touch-target-optimal); /* 48px */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px; /* Larger for iPhone */
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.9);
    transition: transform 0.1s ease;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* iPhone-optimized gallery dots */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px; /* More space for iPhone */
    z-index: 3;
}

.gallery-dot {
    width: 16px; /* Larger for iPhone */
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    /* iPhone touch targets */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    padding: 14px; /* Creates larger touch area */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-dot:hover {
    transform: scale(1.3);
    opacity: 0.8;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

.gallery-dot:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.gallery-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.gallery-container.swiping .gallery-track {
    transition: none;
}

.gallery-slide.fade-in {
    animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== COMING SOON PAGE STYLES - iPhone Enhanced =============== */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.coming-soon-title {
    font-size: var(--heading-h1-size); /* 32px for iPhone */
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    animation: slideInFromTop 1s ease-out;
}

.coming-soon-subtitle {
    font-size: var(--heading-h3-size); /* 24px for iPhone */
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    line-height: 1.5;
    text-transform: lowercase;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.coming-soon-message {
    font-size: var(--body-text-size); /* 18px for iPhone */
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
    text-transform: lowercase;
    line-height: 1.5;
    animation: fadeIn 1s ease-out 0.6s both;
}

.back-button {
    display: inline-block;
    padding: 18px 30px; /* iPhone-optimized padding */
    background-color: transparent;
    color: #333;
    text-decoration: none !important;
    border: 2px solid #333;
    border-radius: 12px; /* iPhone-style radius */
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: slideInFromBottom 1s ease-out 0.9s both;
    min-height: var(--touch-target-optimal);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--button-text-size); /* 18px */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.back-button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
    background: #fff;
    display: none;
    min-height: calc(100vh - var(--nav-height));
}

.section.active {
    display: block;
}

/* Enhanced Page Logo (above section titles) - HIDDEN */
.page-logo {
    display: none !important; /* Remove DOOR64 logo from under navigation on all pages */
}

/* Desktop-specific sizing - reduced by 20% - NO BOLD */
@media (min-width: 769px) {
    .page-logo {
        display: none !important; /* Keep hidden on desktop too */
    }
    
    .landing-content h1 {
        font-size: clamp(3.2rem, 8vw, 6.4rem); /* Reduced by 20% from 4rem-8rem */
        letter-spacing: clamp(3.2px, 2.4vw, 9.6px); /* Reduced by 20% */
        margin-bottom: 50px;
        font-weight: 300; /* No bold effect */
    }
    
    .section-title,
    .coming-soon-title,
    .section h1,
    .section > .container > h1 {
        font-size: clamp(2.8rem, 6.4vw, 4.8rem); /* Reduced by 20% from 3.5rem-6rem */
        margin-bottom: 50px;
        font-weight: 300; /* No bold effect */
    }
    
    /* All other headings no bold */
    .menu-description h3,
    .chef-philosophy h3,
    .spirit-category h3 {
        font-weight: 300;
    }
}

.page-logo:hover {
    opacity: 0.8;
}

.page-logo::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.1);
    text-shadow: none;
    z-index: -1;
}

/* Center all section titles */
.section-title,
.coming-soon-title,
.section h1,
.section > .container > h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Center landing page title */
.landing-content h1 {
    text-align: center !important;
    margin: 0 auto 40px auto !important;
    display: block !important;
    width: 100% !important;
}

/* Center menu section titles */
.menu-description h3,
.chef-philosophy h3,
.spirit-category h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Mobile-specific logo centering */
@media (max-width: 768px) {
    .page-logo {
        font-size: clamp(3rem, 12vw, 4.5rem); /* Changed to match landing page */
        margin: 0 auto 30px auto !important;
        letter-spacing: clamp(3px, 3vw, 5px);
        text-align: center !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        width: calc(100% - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        position: relative !important;
        margin-left: max(0px, env(safe-area-inset-left)) !important;
        margin-right: max(0px, env(safe-area-inset-right)) !important;
        text-shadow: 
            1px 1px 0px #f0f0f0,
            2px 2px 0px #e8e8e8,
            3px 3px 0px #e0e0e0,
            4px 4px 0px #d8d8d8,
            5px 5px 0px #d0d0d0,
            6px 6px 10px rgba(200,200,200,0.3);
    }
    
    .section-title,
    .coming-soon-title,
    .menu-description h3,
    .chef-philosophy h3,
    .spirit-category h3,
    .landing-content h1 {
        text-align: center !important;
        margin: 0 auto 30px auto !important;
        width: calc(100% - 40px) !important;
        max-width: 100% !important;
    }
}

/* Space Section */
.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.space-item {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid #000;
    text-align: center;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.space-item:hover {
    transform: translateY(-5px);
}

.space-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.space-item h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #000;
}

.space-item p {
    color: #666;
    font-size: var(--body-text-size);
    line-height: 1.6;
}

/* Menu Items */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.menu-item {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #000;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.menu-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.menu-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #000;
}

.menu-item p {
    color: #666;
    font-size: var(--body-text-size);
    line-height: 1.6;
}

.menu-item .price {
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Sub Navigation Tabs */
.sub-nav {
    text-align: center;
    margin-bottom: 50px;
}

.sub-nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.sub-nav-link {
    color: #666;
    text-decoration: none !important;
    font-size: 1.1em;
    text-transform: lowercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-min);
    touch-action: manipulation;
}

.sub-nav-link:hover {
    color: #000;
    background: rgba(0,0,0,0.05);
}

.sub-nav-link:active {
    background: rgba(0,0,0,0.1);
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Breadcrumb Navigation */
.breadcrumb {
    text-align: center;
    margin-bottom: 30px;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none !important;
    font-size: 1.1em;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-min);
    padding: 8px 12px;
    touch-action: manipulation;
}

.breadcrumb-link:hover {
    color: #000;
}

/* Tasting Menu Content */
.tasting-menu-content {
    margin-bottom: 60px;
}

.menu-description {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.menu-description h3 {
    font-size: 2em;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #000;
    line-height: 1.3;
}

.menu-description p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.price-highlight {
    font-size: 1.5em;
    color: #000;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Chef's Philosophy */
.chef-philosophy {
    margin-top: 60px;
}

.chef-philosophy h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #000;
    line-height: 1.3;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.philosophy-item {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #000;
    text-align: center;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.philosophy-item h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #000;
    line-height: 1.3;
}

.philosophy-item p {
    color: #666;
    line-height: 1.6;
    font-size: var(--body-text-size);
}

/* Spirits Categories */
.spirits-categories {
    margin-top: 50px;
}

.spirit-category {
    margin-bottom: 50px;
}

.spirit-category h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #000;
    line-height: 1.3;
}

.spirit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.spirit-item {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #000;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.spirit-item h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #000;
    line-height: 1.3;
}

.spirit-item p {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    font-size: var(--body-text-size);
    line-height: 1.6;
}

.spirit-item .price {
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
}

/* Cocktail and Zero-Proof Content */
.cocktail-content,
.zero-proof-content {
    margin-bottom: 60px;
}

/* Events */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    background: #f8f8f8;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 4px solid #000;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.event-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.event-date {
    color: #000;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: var(--body-text-size);
}

.event-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: lowercase;
    color: #000;
    line-height: 1.3;
}

.event-item p {
    color: #666;
    font-size: var(--body-text-size);
    line-height: 1.6;
}

/* Gallery Grid for Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    text-align: center;
    transition: transform 0.3s ease;
    text-transform: lowercase;
    -webkit-tap-highlight-color: transparent;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover::before {
    opacity: 0;
}

.gallery-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.gallery-item span {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.contact-card h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #000;
    line-height: 1.3;
}

.contact-card p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links a {
    color: #000;
    font-size: 1.2em;
    text-decoration: none !important;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-min);
    padding: 8px 12px;
    touch-action: manipulation;
}

.social-links a:hover {
    color: #666;
}

.social-links a:active {
    background: rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Reservation Form */
.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: #000;
    font-size: var(--body-text-size);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    color: #000;
    -webkit-appearance: none;
    -webkit-border-radius: 5px;
    /* iPhone optimization */
    min-height: var(--touch-target-min);
    touch-action: manipulation;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: lowercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Georgia', serif;
    -webkit-tap-highlight-color: transparent;
    /* iPhone touch targets */
    min-height: var(--touch-target-optimal);
    touch-action: manipulation;
}

.submit-btn:hover {
    background: #333;
}

.submit-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* =============== IPHONE-SPECIFIC MOBILE STYLES =============== */
@media (max-width: 768px) {
    :root {
        --nav-height: var(--mobile-nav-height);
        /* iPhone-specific overrides */
        --body-text-size: 18px;
        --heading-h1-size: 32px;
        --heading-h2-size: 28px;
        --heading-h3-size: 24px;
        --button-text-size: 18px;
        --nav-text-size: 17px;
    }

    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff !important;
        font-size: var(--body-text-size);
    }

    /* iPhone Navigation - Enhanced */
    .nav {
        padding: 15px 0;
        height: var(--mobile-nav-height);
        opacity: 1;
        transform: translateY(0);
        position: fixed;
        top: 0;
        /* Enhanced iPhone safe area support */
        padding-top: max(15px, calc(env(safe-area-inset-top) + 10px));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid #ddd;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
        /* iPhone safe area support */
        padding-left: max(20px, calc(env(safe-area-inset-left) + 15px));
        padding-right: max(20px, calc(env(safe-area-inset-right) + 15px));
        max-width: 100%;
        min-height: var(--touch-target-min);
    }

    .nav-logo {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        color: #000;
        text-shadow: none;
        flex-shrink: 0;
        order: 1;
        min-height: var(--touch-target-min);
        padding: 8px 12px;
        display: flex; /* Show on mobile */
        align-items: center;
        text-decoration: none !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: pointer;
        transition: opacity 0.3s ease;
        font-family: 'Georgia', serif;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .nav-left-section {
        flex-direction: row;
        gap: var(--touch-spacing); /* 8px spacing */
        align-items: center;
        width: auto;
        justify-content: flex-end;
        order: 2;
        margin-left: auto;
        margin-right: var(--touch-spacing);
    }

    /* Enhanced mobile menu button for iPhone */
    .mobile-menu {
        display: flex;
        order: 3;
        margin-left: var(--touch-spacing);
        width: var(--touch-target-optimal); /* 48px */
        height: var(--touch-target-optimal); /* 48px */
        padding: 12px;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
        transition: background 0.3s ease;
        background: transparent;
        border: 2px solid transparent;
    }

    .mobile-menu:active {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(0.92);
        transition: all 0.1s ease;
    }

    .mobile-menu:focus-visible {
        border-color: rgba(0, 0, 0, 0.3);
        outline: none;
    }

    .mobile-menu span {
        background: #000;
        width: 28px;
        height: 3px;
        border-radius: 2px;
    }

    /* iPhone-optimized audio toggle */
    .audio-toggle {
        width: var(--touch-target-optimal); /* 48px */
        height: var(--touch-target-optimal); /* 48px */
        font-size: var(--button-text-size);
        border-color: rgba(0, 0, 0, 0.3);
        color: #000;
        background: rgba(0, 0, 0, 0.1);
        border-width: 2px;
    }

    .audio-toggle:hover {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(0, 0, 0, 0.5);
        transform: scale(1.1);
    }

    .audio-toggle:active {
        transform: scale(0.85);
        transition: transform 0.1s ease;
    }

    /* iPhone Navigation Links - Enhanced Overlay */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--mobile-nav-height);
        /* iPhone safe area positioning */
        top: max(var(--mobile-nav-height), calc(env(safe-area-inset-top) + var(--mobile-nav-height)));
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        /* iPhone home indicator support */
        padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 30px));
        gap: 0;
        border-top: 1px solid #ddd;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        justify-content: flex-start;
        backdrop-filter: blur(20px);
        z-index: 999;
        height: calc(100vh - var(--mobile-nav-height));
        /* Account for Dynamic Island */
        height: calc(100vh - max(var(--mobile-nav-height), calc(env(safe-area-inset-top) + var(--mobile-nav-height))));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex !important; /* Added !important - this is the key fix */
        animation: slideInFromTop 0.3s ease-out;
    }

    /* iPhone-optimized navigation link items */
    .nav-links a {
        font-size: var(--button-text-size); /* 18px */
        padding: 18px 20px; /* Larger padding for iPhone */
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: center;
        min-height: var(--touch-target-optimal); /* 48px */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        background: transparent;
        margin-bottom: var(--touch-spacing);
        border-radius: 8px;
        letter-spacing: 1px;
    }

    .nav-links a:active {
        background: rgba(0,0,0,0.1);
        color: #000;
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Landing page iPhone adjustments */
    .landing-links {
        flex-direction: column;
        gap: 40px; /* More space for iPhone */
        margin: 40px 0;
        width: 100%;
        padding: 0;
    }

    .landing-link {
        min-width: auto;
        max-width: none;
        width: 100%;
        min-height: var(--touch-target-optimal);
        padding: 20px 15px; /* More padding for iPhone */
        margin-bottom: var(--touch-spacing);
    }

    .landing-link h3 {
        font-size: clamp(1.6rem, 6vw, 2rem); /* iPhone-optimized */
        letter-spacing: clamp(2px, 3vw, 5px);
        margin-bottom: 25px;
        color: #000;
        line-height: 1.2;
    }

    .sub-links a {
        font-size: var(--button-text-size); /* 18px */
        padding: 15px 20px; /* iPhone-optimized padding */
        min-height: var(--touch-target-optimal);
        color: #666;
        margin-bottom: var(--touch-spacing);
    }

    /* iPhone gallery optimization */
    .css-gallery {
        height: 350px; /* Slightly larger for iPhone */
        margin: 40px auto 50px;
        border-radius: 16px; /* iPhone-style radius */
        /* iPhone image sizing */
        max-width: min(430px, calc(100vw - 40px)); /* Account for largest iPhone */
    }

    .gallery-content {
        bottom: 25px;
        left: 25px;
        right: 25px;
        padding: 15px;
        background: rgba(0,0,0,0.3);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }

    .gallery-content h3 {
        font-size: var(--heading-h3-size); /* 24px */
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .gallery-content p {
        font-size: var(--body-text-size); /* 18px */
        line-height: 1.5;
    }

    .gallery-nav {
        width: var(--touch-target-optimal); /* 48px */
        height: var(--touch-target-optimal); /* 48px */
        font-size: 22px; /* Larger for iPhone */
    }

    .gallery-nav.prev {
        left: 20px;
    }

    .gallery-nav.next {
        right: 20px;
    }

    .gallery-dots {
        bottom: 20px;
        gap: 20px; /* More space for iPhone */
    }

    .gallery-dot {
        width: 14px;
        height: 14px;
        /* Enhanced iPhone touch targets */
        min-width: var(--touch-target-min);
        min-height: var(--touch-target-min);
        padding: 15px; /* Creates 44px touch area */
        margin: 0 4px; /* Additional spacing */
    }

    .page-logo {
        font-size: clamp(2rem, 8vw, 2.8rem); /* iPhone-optimized */
        margin-bottom: 30px;
        letter-spacing: clamp(3px, 3vw, 5px);
        color: #fff;
        text-shadow: 
            1px 1px 0px #f0f0f0,
            2px 2px 0px #e8e8e8,
            3px 3px 0px #e0e0e0,
            4px 4px 0px #d8d8d8,
            5px 5px 0px #d0d0d0,
            6px 6px 10px rgba(200,200,200,0.3);
        min-height: var(--touch-target-min);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .section-title {
        font-size: clamp(2.2rem, 10vw, 3rem); /* iPhone-optimized */
        margin-bottom: 60px;
        line-height: 1.2;
    }

    /* iPhone-optimized content sections */
    .menu-grid,
    .space-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px; /* iPhone-optimized spacing */
        padding: 0 15px;
    }

    .space-item,
    .menu-item {
        padding: 25px 20px;
        margin: 0 10px var(--touch-spacing);
        /* iPhone touch targets */
        min-height: var(--touch-target-optimal);
        border-radius: 12px; /* iPhone-style radius */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .space-item h3,
    .menu-item h3 {
        font-size: var(--heading-h3-size); /* 24px */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .space-item p,
    .menu-item p {
        font-size: var(--body-text-size); /* 18px */
        line-height: 1.6;
    }

    .section {
        padding: max(calc(var(--mobile-nav-height) + 40px), calc(env(safe-area-inset-top) + var(--mobile-nav-height) + 30px)) 0 max(80px, calc(env(safe-area-inset-bottom) + 50px));
        min-height: calc(100vh - var(--mobile-nav-height));
        background: #fff !important;
    }

    /* iPhone form optimization */
    .reservation-form,
    .contact-card {
        margin: 0 15px;
        padding: 30px 25px;
        border-radius: 16px; /* iPhone-style radius */
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--body-text-size); /* 18px - prevents zoom */
        padding: 18px 15px;
        border-radius: 12px;
        min-height: var(--touch-target-optimal);
        border: 2px solid #ddd;
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #000;
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    .submit-btn {
        padding: 20px;
        font-size: var(--button-text-size); /* 18px */
        border-radius: 12px;
        min-height: var(--touch-target-optimal);
        letter-spacing: 1px;
        font-weight: 600;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* iPhone social links optimization */
    .social-links {
        gap: var(--touch-spacing); /* 8px minimum */
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        font-size: var(--button-text-size); /* 18px */
        padding: 15px 20px;
        min-height: var(--touch-target-optimal);
        min-width: var(--touch-target-optimal);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: background 0.3s ease;
        margin: 4px; /* Additional spacing */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* iPhone sub-navigation optimization */
    .sub-nav-links {
        flex-direction: column;
        gap: var(--touch-spacing); /* 8px spacing */
        align-items: center;
        padding: 0 15px;
    }

    .sub-nav-link {
        font-size: var(--button-text-size); /* 18px */
        padding: 18px 25px;
        min-height: var(--touch-target-optimal);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 350px;
        border: 2px solid #ddd;
        border-radius: 12px;
        margin-bottom: var(--touch-spacing);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .breadcrumb-link {
        font-size: var(--button-text-size); /* 18px */
        padding: 15px 20px;
        min-height: var(--touch-target-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        touch-action: manipulation;
    }

    /* iPhone menu description optimization */
    .menu-description h3 {
        font-size: clamp(1.8rem, 8vw, 2.4rem); /* iPhone-optimized */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .menu-description p {
        font-size: var(--body-text-size); /* 18px */
        padding: 0 15px;
        line-height: 1.6;
    }

    .price-highlight {
        font-size: clamp(1.4rem, 6vw, 1.8rem); /* iPhone-optimized */
        line-height: 1.3;
    }

    /* iPhone philosophy and spirit sections */
    .philosophy-grid,
    .spirit-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .philosophy-item,
    .spirit-item {
        margin: 0 10px var(--touch-spacing);
        padding: 25px 20px;
        border-radius: 12px;
        min-height: var(--touch-target-optimal);
    }

    .philosophy-item h4,
    .spirit-item h4 {
        font-size: 20px; /* iPhone-optimized */
        line-height: 1.3;
    }

    .philosophy-item p,
    .spirit-item p {
        font-size: var(--body-text-size); /* 18px */
        line-height: 1.6;
    }

    .spirit-category h3 {
        font-size: clamp(1.6rem, 6vw, 2rem); /* iPhone-optimized */
        line-height: 1.3;
    }

    /* Enhanced event items for iPhone */
    .event-item {
        padding: 30px 25px;
        margin: 0 15px var(--touch-spacing);
        border-radius: 12px;
        min-height: var(--touch-target-optimal);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .event-date {
        font-size: var(--body-text-size); /* 18px */
        margin-bottom: 12px;
    }

    .event-item h3 {
        font-size: var(--heading-h3-size); /* 24px */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .event-item p {
        font-size: var(--body-text-size); /* 18px */
        line-height: 1.6;
    }
}

/* =============== IPHONE-SPECIFIC DEVICE OPTIMIZATIONS =============== */

/* iPhone 14/15 Standard (390×844) */
@media only screen and (max-width: 390px) and (min-height: 800px) {
    :root {
        --safe-area-top: max(47px, env(safe-area-inset-top)); /* Dynamic Island */
        --safe-area-bottom: max(34px, env(safe-area-inset-bottom)); /* Home indicator */
    }
    
    .splash-image {
        max-width: 80%;
        max-height: 70%;
    }

    .landing-content h1 {
        font-size: clamp(2.8rem, 12vw, 3.8rem);
        margin-bottom: 35px;
    }
    
    .splash-audio-toggle {
        top: max(20px, calc(env(safe-area-inset-top) + 8px)) !important;
        right: max(20px, calc(env(safe-area-inset-right) + 8px)) !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }
}

/* iPhone 14/15 Plus/Pro Max (430×932) */
@media (min-width: 391px) and (max-width: 430px) {
    :root {
        --safe-area-top: max(59px, env(safe-area-inset-top)); /* Dynamic Island on Pro Max */
        --safe-area-bottom: max(34px, env(safe-area-inset-bottom));
    }

    .splash-image {
        max-width: 90%;
        max-height: 80%;
    }

    .landing-content h1 {
        font-size: clamp(3.2rem, 10vw, 4.5rem); /* Larger for Plus models */
        letter-spacing: clamp(3px, 3vw, 8px);
        margin-bottom: 45px;
    }

    .page-logo {
        font-size: clamp(2.2rem, 6vw, 3rem);
        margin-bottom: 35px;
        letter-spacing: clamp(3px, 3vw, 6px);
    }

    .space-item,
    .menu-item {
        padding: 35px 30px;
    }
}

/* iPhone landscape orientation - optimized */
@media (max-width: 768px) and (orientation: landscape) {
    body,
    .main-site,
    .section,
    .landing-page {
        background: #fff !important;
    }

    .nav {
        background: rgba(255, 255, 255, 0.98) !important;
        height: 56px; /* Compact for landscape */
        padding: 8px 0;
    }

    .nav-logo {
        font-size: 1.1rem;
        color: #000 !important;
    }

    .mobile-menu {
        width: 40px;
        height: 40px;
    }

    .audio-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .landing-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 25px;
        color: #fff !important;
        text-shadow: 
            1px 1px 0px #f0f0f0,
            2px 2px 0px #e8e8e8,
            3px 3px 0px #e0e0e0,
            4px 4px 0px #d8d8d8,
            5px 5px 0px #d0d0d0,
            6px 6px 10px rgba(200,200,200,0.3) !important;
    }

    .landing-links {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .landing-link {
        min-width: 200px;
        max-width: 250px;
        flex: 0 1 auto;
    }

    .landing-link h3 {
        color: #000 !important;
    }

    .sub-links a {
        color: #666 !important;
    }

    * {
        background-image: none !important;
    }

    .gallery-slider,
    .slide,
    .landing-page,
    #landing {
        background: #fff !important;
        background-image: none !important;
        background-color: #fff !important;
        z-index: auto;
    }
}

/* =============== QUOTE RESPONSES - IPHONE OPTIMIZED =============== */
.quote-responses {
    position: fixed !important;
    /* iPhone home indicator positioning */
    bottom: max(40px, calc(env(safe-area-inset-bottom) + 30px)) !important;
    left: max(20px, calc(env(safe-area-inset-left) + 15px)) !important;
    right: max(20px, calc(env(safe-area-inset-right) + 15px)) !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 25px !important;
    border-radius: 16px !important; /* iPhone-style radius */
    border: 2px solid #ffffff !important;
    text-align: center !important;
    font-size: var(--body-text-size) !important; /* 18px */
    line-height: 1.5 !important;
    display: none !important;
    z-index: 99999 !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3) !important;
    font-family: 'Georgia', serif !important;
    margin: 0 auto !important;
    max-width: 600px !important;
    backdrop-filter: blur(15px) !important;
}

.quote-responses.show {
    display: block !important;
    animation: quoteFadeIn 0.5s ease-out !important;
}

@keyframes quoteFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-text {
    font-style: italic !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: var(--body-text-size) !important; /* 18px */
    line-height: 1.5 !important;
}

/* =============== ACCESSIBILITY ENHANCEMENTS FOR IPHONE =============== */

/* Enhanced focus states for iPhone */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.8);
    outline-offset: 3px;
    border-radius: 4px;
}

.audio-toggle:focus-visible,
.splash-audio-toggle:focus-visible,
.mobile-menu:focus-visible,
.gallery-nav:focus-visible,
.gallery-dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
    z-index: 10;
}

.nav-links a:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.8);
    outline-offset: 3px;
    background: rgba(0, 0, 0, 0.05);
}

/* Accessibility: Reduce motion for users who prefer it */
@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;
    }
    
    .audio-toggle.playing {
        background: var(--tuscan-orange-light) !important;
        border-color: var(--tuscan-orange) !important;
        animation: none !important;
    }
    
    .splash-audio-toggle.playing {
        background: rgba(70, 130, 180, 1) !important;
        animation: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .audio-toggle, 
    .splash-audio-toggle {
        border: 3px solid currentColor !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000 !important;
    }
    
    .gallery-nav {
        border: 3px solid rgba(255, 255, 255, 1) !important;
        background: rgba(0, 0, 0, 0.95) !important;
    }
    
    .mobile-menu {
        border: 2px solid #000 !important;
    }
}

/* =============== DISABLE HOVER EFFECTS ON IPHONE =============== */
@media (hover: none) and (pointer: coarse) {
    /* Remove all hover transforms that could interfere with touch */
    .space-item:hover,
    .menu-item:hover,
    .landing-link:hover,
    .gallery-item:hover,
    .gallery-nav:hover,
    .audio-toggle:hover,
    .nav-links a:hover {
        transform: none !important;
        background-color: initial !important;
        filter: initial !important;
        opacity: initial !important;
        border-color: initial !important;
        color: initial !important;
        animation-play-state: running !important;
        box-shadow: initial !important;
    }
    
    /* Keep essential playing animations */
    .audio-toggle.playing {
        animation: audioPlaying 3s ease-in-out infinite alternate, pulseTuscanOrange 2s infinite;
    }
    
    .splash-audio-toggle.playing {
        animation: audioPlaying 3s ease-in-out infinite alternate, pulseBlueSplash 2s infinite !important;
    }
}

/* =============== PERFORMANCE OPTIMIZATIONS FOR IPHONE =============== */

/* Hardware acceleration for smoother animations */
.audio-toggle,
.splash-audio-toggle,
.gallery-nav,
.mobile-menu,
.gallery-track,
.nav-links,
.splash-image-container {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
}

/* Remove will-change when not needed */
.audio-toggle:not(.playing):not(:hover):not(:active),
.splash-audio-toggle:not(.playing):not(:hover):not(:active) {
    will-change: auto;
}

/* iPhone-specific performance optimizations */
@supports (-webkit-touch-callout: none) {
    .gallery-track {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .gallery-slide {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Better image performance on iPhone */
        background-attachment: scroll;
    }
}

/* Throttled hover effects for desktop only */
@media (min-width: 769px) and (hover: hover) {
    .css-gallery:hover {
        --gallery-paused: true;
    }
    
    .gallery-nav,
    .audio-toggle,
    .nav-links a,
    .landing-link,
    .space-item,
    .menu-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* =============== CONTENT SPACING FOR IPHONE READABILITY =============== */
@media (max-width: 768px) {
    /* Enhanced spacing for iPhone readability */
    .container {
        padding: 0 max(20px, calc(env(safe-area-inset-left) + 15px)) 0 max(20px, calc(env(safe-area-inset-right) + 15px));
    }
    
    p + p {
        margin-top: 1em; /* Better paragraph spacing */
    }
    
    h3 + p {
        margin-top: 0.8em;
    }
    
    /* Button spacing */
    .submit-btn + .submit-btn,
    .back-button + .back-button {
        margin-top: var(--touch-spacing);
    }
    
    /* Form spacing */
    .form-group + .form-group {
        margin-top: 20px;
    }
    
    /* Menu item spacing */
    .menu-item + .menu-item,
    .space-item + .space-item,
    .event-item + .event-item {
        margin-top: 15px;
    }
    
    /* Enhanced touch targets for all interactive elements */
    .nav-links a,
    .sub-links a,
    .sub-nav-link,
    .breadcrumb-link,
    .social-links a,
    .gallery-nav,
    .gallery-dot,
    .mobile-menu,
    .audio-toggle,
    .splash-audio-toggle,
    .landing-link,
    .space-item,
    .menu-item,
    .submit-btn,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .back-button,
    .event-item,
    .contact-card,
    .philosophy-item,
    .spirit-item {
        min-width: var(--touch-target-min);
        min-height: var(--touch-target-min);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* =============== IMAGE OPTIMIZATION FOR IPHONE =============== */
@media (max-width: 768px) {
    /* Responsive images for iPhone */
    img {
        max-width: 100%;
        height: auto;
        /* iPhone-optimized image sizing */
        max-width: min(410px, calc(100vw - 40px));
    }
    
    .gallery-slide {
        /* Ensure images load properly on iPhone */
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Better performance on iPhone */
    }
}

/* Safe area improvements for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .splash-audio-toggle {
        top: max(25px, calc(env(safe-area-inset-top) + 20px)) !important;
        right: max(25px, calc(env(safe-area-inset-right) + 20px)) !important;
    }
    
    .nav {
        padding-top: max(15px, calc(env(safe-area-inset-top) + 10px));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        .nav-links.active {
            padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 30px));
            top: max(var(--mobile-nav-height), calc(env(safe-area-inset-top) + var(--mobile-nav-height)));
        }
        
        .section {
            padding-top: max(calc(var(--mobile-nav-height) + 40px), calc(env(safe-area-inset-top) + var(--mobile-nav-height) + 30px));
            padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 50px));
        }
        
        .landing-page {
            padding-top: max(calc(var(--mobile-nav-height) + 30px), calc(env(safe-area-inset-top) + var(--mobile-nav-height) + 20px));
            padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px));
        }
    }
}

/* Dark mode support for iPhone */
@media (prefers-color-scheme: dark) {
    .audio-toggle:not(.playing) {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    @media (max-width: 768px) {
        .audio-toggle:not(.playing) {
            background: rgba(255, 255, 255, 0.9);
            color: #000;
        }
    }
}

/* =============== FINAL IPHONE POLISH =============== */
@media (max-width: 768px) {
    /* Remove any remaining blue highlights on iPhone */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Ensure consistent font rendering on iPhone */
    body, 
    input, 
    textarea, 
    select, 
    button {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Optimize scrolling for iPhone */
    .nav-links.active {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y mandatory;
        overscroll-behavior: contain;
    }
    
    .nav-links a {
        scroll-snap-align: start;
    }
    
    /* Force white backgrounds on all iPhone orientations */
    body,
    .main-site,
    .section,
    .landing-page,
    .landing-page *,
    .landing-content,
    .space-grid,
    .menu-grid,
    .events-list,
    .contact-info {
        background: #fff !important;
        background-image: none !important;
    }

    .landing-page::before,
    .section::before,
    .main-site::before,
    body::before {
        display: none !important;
    }
}

/* Debug information for iPhone testing (hidden by default) */
@media (max-width: 768px) {
    body::after {
        content: "iPhone Optimized: Font 18px, Touch 44-48px, Safe Areas Active";
        position: fixed;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 5px 10px;
        font-size: 12px;
        z-index: 10000;
        display: none; /* Hidden by default */
    }
    
    /* Show debug info when needed */
    body.debug::after {
        display: block;
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End Complete iPhone-Optimized Door Restaurant Stylesheet */
