/* Performance and Layout Optimizations */
* {
    box-sizing: border-box;
}

/* Optimize rendering performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
}

/* Ensure all containers don't exceed viewport width */
.max-w-7xl {
    max-width: 100%;
    width: 100%;
}

/* Fix for mobile viewport */
@media (max-width: 768px) {
    /* Ensure navbar is flush with top on mobile */
    nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 50 !important;
    }
    
    /* Remove any default margins/padding that could cause gaps */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container, .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Prevent any element from causing horizontal scroll */
    img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    /* Optimize image loading - handled by HTML attributes */
    
    /* Fix for text that might overflow */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Additional mobile fixes */
@media (max-width: 640px) {
    /* Ensure navbar sticks to top on mobile */
    nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove any default margins from body on mobile */
    body {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure main content starts below navbar */
    main {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Add padding to hero section to account for fixed navbar */
    #home {
        padding-top: 5rem; /* Adjust based on navbar height */
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    /* Ensure buttons don't overflow */
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Accessibility Improvements */
/* Focus styles for accessibility */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #DC2626;
    outline-offset: 2px;
    border-radius: 4px;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    .gradient-text {
        background: none;
        color: #000;
    }
    
    .bg-somari-light-red {
        background-color: #f3f4f6;
        border: 1px solid #000;
    }
}

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

/* Additional responsive improvements */
@media (max-width: 480px) {
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Touch target size for mobile */
@media (max-width: 768px) {
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Hamburger menu button styling */
#mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

#mobile-menu-btn:hover {
    background-color: rgba(220, 38, 38, 0.1) !important;
    transform: scale(1.05) !important;
}

#mobile-menu-btn:active {
    transform: scale(0.95) !important;
}

#mobile-menu-btn svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile Landscape Optimizations */
@media (max-width: 896px) and (orientation: landscape) {
    /* Navigation adjustments for mobile landscape */
    nav {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        height: auto;
        min-height: 3rem;
    }
    
    /* Ensure navbar doesn't overlap content */
    body {
        padding-top: 0;
    }
    
    nav .py-4 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    /* Logo adjustments to prevent cutting */
    nav img {
        height: 2rem !important;
        width: 2rem !important;
    }
    
    nav .text-lg {
        font-size: 1rem;
    }
    
    nav .text-xl {
        font-size: 1.125rem;
    }
    
    /* Ensure logo and text fit properly */
    nav .flex.items-center.space-x-2 {
        gap: 0.5rem;
    }
    
    nav .flex.items-center.space-x-3 {
        gap: 0.5rem;
    }
    
    /* Hero section adjustments for landscape */
    #home {
        min-height: 100vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        padding-top: 5rem; /* Increase space for fixed navbar */
        padding-bottom: 2rem; /* Add bottom padding to prevent cutting */
    }
    
    #home .relative.z-10 {
        padding: 0.5rem 0;
    }
    
    #home .text-5xl {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    #home .text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    #home .text-2xl {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    #home .text-3xl {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    #home .text-xl {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    #home .text-2xl {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    /* Reduce hero section padding and margins */
    #home .mb-8 {
        margin-bottom: 0.5rem;
    }
    
    #home .mb-6 {
        margin-bottom: 0.5rem;
    }
    
    #home .mb-4 {
        margin-bottom: 0.25rem;
    }
    
    #home .mb-12 {
        margin-bottom: 1rem;
    }
    
    #home .mb-3 {
        margin-bottom: 0.25rem;
    }
    
    /* Logo adjustments */
    #home img {
        height: 3rem !important;
        width: 3rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Button adjustments */
    #home .flex.flex-col.sm\\:flex-row {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    #home .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #home .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    /* Social media adjustments */
    #home .mt-6 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Ensure proper spacing for all elements */
    #home .relative.z-10 {
        padding: 1rem 0;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
    
    /* Floating elements adjustments */
    #home .absolute.top-16 {
        top: 0.5rem;
        width: 2rem;
        height: 2rem;
    }
    
    #home .absolute.bottom-16 {
        bottom: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #home .absolute.top-1\/2 {
        top: 30%;
        width: 1rem;
        height: 1rem;
    }
    
    /* Navigation adjustments */
    nav .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    /* Section padding adjustments */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Grid adjustments for landscape */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    /* Menu section cards */
    .grid.md\\:grid-cols-3 .bg-white {
        padding: 1rem;
    }
    
    /* Gallery adjustments */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    /* Location section */
    .grid.md\\:grid-cols-3 .bg-white {
        padding: 1rem;
    }
    
    /* Footer adjustments */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    /* Floating elements positioning */
    .absolute.top-20 {
        top: 1rem;
    }
    
    .absolute.bottom-20 {
        bottom: 1rem;
    }
    
    /* GoFood widget positioning */
    #gofood-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Button sizing for landscape */
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Specific mobile landscape for smaller screens */
@media (max-width: 736px) and (orientation: landscape) {
    /* Navigation ultra-compact for small landscape */
    nav {
        padding: 0.25rem 0;
    }
    
    nav .py-4 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    /* Ultra-small logo to prevent cutting */
    nav img {
        height: 1.5rem !important;
        width: 1.5rem !important;
    }
    
    nav .text-lg {
        font-size: 0.875rem;
    }
    
    nav .text-xl {
        font-size: 1rem;
    }
    
    /* Minimal spacing */
    nav .flex.items-center.space-x-2 {
        gap: 0.25rem;
    }
    
    nav .flex.items-center.space-x-3 {
        gap: 0.25rem;
    }
    
    /* Hero section ultra-compact for small landscape */
    #home {
        min-height: 100vh;
        padding: 0.5rem 0;
        margin-top: 0;
        padding-top: 4rem; /* Add space for compact navbar */
        padding-bottom: 1rem; /* Add bottom padding */
    }
    
    #home .relative.z-10 {
        padding: 0.5rem 0;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
    
    /* Further reduce hero section content */
    #home .text-5xl {
        font-size: 1.75rem;
        line-height: 1;
    }
    
    #home .text-7xl {
        font-size: 2rem;
        line-height: 1;
    }
    
    #home .text-2xl {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    #home .text-3xl {
        font-size: 1.25rem;
        line-height: 1.1;
    }
    
    #home .text-xl {
        font-size: 0.875rem;
        line-height: 1.2;
    }
    
    #home .text-2xl {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    /* Ultra-compact margins */
    #home .mb-8 {
        margin-bottom: 0.25rem;
    }
    
    #home .mb-6 {
        margin-bottom: 0.25rem;
    }
    
    #home .mb-4 {
        margin-bottom: 0.125rem;
    }
    
    #home .mb-12 {
        margin-bottom: 0.5rem;
    }
    
    #home .mb-3 {
        margin-bottom: 0.125rem;
    }
    
    /* Ultra-small logo */
    #home img {
        height: 3rem !important;
        width: 3rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Compact buttons */
    #home .flex.flex-col.sm\\:flex-row {
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    #home .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    #home .py-3 {
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }
    
    #home .text-base {
        font-size: 0.875rem;
    }
    
    #home .text-lg {
        font-size: 1rem;
    }
    
    /* Minimal social media */
    #home .mt-6 {
        margin-top: 0.25rem;
    }
    
    /* Hide floating elements on very small landscape */
    #home .absolute.top-16,
    #home .absolute.bottom-16,
    #home .absolute.top-1\/2 {
        display: none;
    }
}

/* iPhone 14 Pro Max and similar large landscape screens - SPECIFIC */
@media (max-width: 932px) and (orientation: landscape) and (min-height: 400px) {
    /* Navigation adjustments for iPhone 14 Pro Max landscape */
    nav {
        padding: 0.25rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        height: auto;
        min-height: 2.5rem;
    }
    
    nav .py-4 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    /* Ultra-small logo to prevent cutting */
    nav img {
        height: 1.25rem !important;
        width: 1.25rem !important;
    }
    
    nav .text-lg {
        font-size: 0.75rem;
    }
    
    nav .text-xl {
        font-size: 0.875rem;
    }
    
    /* Minimal spacing */
    nav .flex.items-center.space-x-2 {
        gap: 0.125rem;
    }
    
    nav .flex.items-center.space-x-3 {
        gap: 0.125rem;
    }
    
    /* Hide navigation text on very small screens if needed */
    nav .hidden.md\\:flex {
        display: none;
    }
    
    /* Show mobile menu button */
    nav .md\\:hidden {
        display: block;
    }
    
    /* Hero section for iPhone 14 Pro Max landscape */
    #home {
        min-height: 100vh !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 2.5rem !important; /* Minimal space for navbar */
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }
    
    #home .relative.z-10 {
        padding: 0 !important;
        margin: 0 !important;
        max-height: calc(100vh - 2.5rem) !important;
        height: calc(100vh - 2.5rem) !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Minimal font sizes for iPhone 14 Pro Max */
    #home .text-5xl {
        font-size: 1rem !important;
        line-height: 1 !important;
    }
    
    #home .text-7xl {
        font-size: 1.25rem !important;
        line-height: 1 !important;
    }
    
    #home .text-2xl {
        font-size: 0.625rem !important;
        line-height: 1 !important;
    }
    
    #home .text-3xl {
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }
    
    #home .text-xl {
        font-size: 0.5rem !important;
        line-height: 1 !important;
    }
    
    #home .text-2xl {
        font-size: 0.625rem !important;
        line-height: 1 !important;
    }
    
    /* Ultra-compact margins */
    #home .mb-8 {
        margin-bottom: 0.0625rem !important;
    }
    
    #home .mb-6 {
        margin-bottom: 0.0625rem !important;
    }
    
    #home .mb-4 {
        margin-bottom: 0.03125rem !important;
    }
    
    #home .mb-12 {
        margin-bottom: 0.125rem !important;
    }
    
    #home .mb-3 {
        margin-bottom: 0.03125rem !important;
    }
    
    /* Tiny logo */
    #home img {
        height: 1.5rem !important;
        width: 1.5rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    /* Minimal buttons */
    #home .flex.flex-col.sm\\:flex-row {
        gap: 0.125rem;
        margin-top: 0.25rem;
    }
    
    #home .px-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #home .py-3 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    #home .text-base {
        font-size: 0.75rem;
    }
    
    #home .text-lg {
        font-size: 0.875rem;
    }
    
    /* Hide social media on ultra-small screens */
    #home .mt-6 {
        display: none;
    }
    
    /* Ensure all content fits */
    #home .max-w-3xl {
        max-width: 100%;
    }
    
    /* Single column layout for very small landscape */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    /* Reduce section padding */
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Smaller buttons */
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-4 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Ultra-small mobile landscape (iPhone landscape) */
@media (max-width: 667px) and (orientation: landscape) {
    /* Navigation extreme compact for iPhone landscape */
    nav {
        padding: 0.125rem 0;
    }
    
    nav .py-4 {
        padding-top: 0.125rem;
        padding-bottom: 0.125rem;
    }
    
    /* Tiny logo to prevent cutting */
    nav img {
        height: 1.25rem !important;
        width: 1.25rem !important;
    }
    
    nav .text-lg {
        font-size: 0.75rem;
    }
    
    nav .text-xl {
        font-size: 0.875rem;
    }
    
    /* Minimal spacing */
    nav .flex.items-center.space-x-2 {
        gap: 0.125rem;
    }
    
    nav .flex.items-center.space-x-3 {
        gap: 0.125rem;
    }
    
    /* Hide navigation text on very small screens if needed */
    nav .hidden.md\\:flex {
        display: none;
    }
    
    /* Show mobile menu button */
    nav .md\\:hidden {
        display: block;
    }
    
    /* Extreme compact layout for very small landscape screens */
    #home {
        min-height: 100vh;
        padding: 0.25rem 0;
        margin-top: 0;
        padding-top: 3rem; /* Add space for ultra-compact navbar */
        padding-bottom: 0.5rem; /* Add bottom padding */
    }
    
    #home .relative.z-10 {
        padding: 0.25rem 0;
        max-height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
    
    /* Minimal font sizes */
    #home .text-5xl {
        font-size: 1.5rem;
        line-height: 0.9;
    }
    
    #home .text-7xl {
        font-size: 1.75rem;
        line-height: 0.9;
    }
    
    #home .text-2xl {
        font-size: 0.875rem;
        line-height: 1;
    }
    
    #home .text-3xl {
        font-size: 1rem;
        line-height: 1;
    }
    
    #home .text-xl {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    #home .text-2xl {
        font-size: 0.875rem;
        line-height: 1.1;
    }
    
    /* Minimal margins */
    #home .mb-8 {
        margin-bottom: 0.125rem;
    }
    
    #home .mb-6 {
        margin-bottom: 0.125rem;
    }
    
    #home .mb-4 {
        margin-bottom: 0.0625rem;
    }
    
    #home .mb-12 {
        margin-bottom: 0.25rem;
    }
    
    #home .mb-3 {
        margin-bottom: 0.0625rem;
    }
    
    /* Tiny logo */
    #home img {
        height: 2.5rem !important;
        width: 2.5rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    /* Minimal buttons */
    #home .flex.flex-col.sm\\:flex-row {
        gap: 0.125rem;
        margin-top: 0.25rem;
    }
    
    #home .px-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #home .py-3 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    #home .text-base {
        font-size: 0.75rem;
    }
    
    #home .text-lg {
        font-size: 0.875rem;
    }
    
    /* Hide social media on ultra-small screens */
    #home .mt-6 {
        display: none;
    }
    
    /* Ensure all content fits */
    #home .max-w-3xl {
        max-width: 100%;
    }
    
    /* Single column layout for very small landscape */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    /* Reduce section padding */
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Smaller buttons */
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-4 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Mobile landscape for very wide screens */
@media (min-width: 640px) and (max-width: 896px) and (orientation: landscape) {
    /* Keep 3-column layout for wider landscape screens */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .grid.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    /* Footer back to 3 columns */
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Additional mobile landscape improvements */
@media (max-width: 896px) and (orientation: landscape) {
    /* Navigation improvements */
    nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile menu improvements */
    #mobile-menu {
        max-height: 50vh;
        overflow-y: auto;
    }
    
    /* Section titles */
    .text-4xl.md\\:text-5xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
    
    /* Card padding adjustments */
    .bg-white.rounded-2xl {
        padding: 1rem;
    }
    
    /* Gallery image heights */
    .h-64 {
        height: 12rem;
    }
    
    /* Map height adjustments */
    iframe {
        height: 16rem !important;
    }
    
    /* Footer improvements */
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Better spacing for landscape */
    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }
    
    .space-y-2 > * + * {
        margin-top: 0.25rem;
    }
}

/* Very specific mobile landscape fixes */
@media (max-width: 736px) and (orientation: landscape) {
    /* Even more compact layout */
    .text-4xl.md\\:text-5xl {
        font-size: 1.75rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    /* Reduce all margins and padding */
    .mb-16 {
        margin-bottom: 1rem;
    }
    
    .mb-12 {
        margin-bottom: 0.75rem;
    }
    
    .mb-8 {
        margin-bottom: 0.5rem;
    }
    
    .mb-6 {
        margin-bottom: 0.5rem;
    }
    
    .mb-4 {
        margin-bottom: 0.25rem;
    }
    
    /* Gallery adjustments */
    .h-64 {
        height: 10rem;
    }
    
    /* Map height */
    iframe {
        height: 12rem !important;
    }
    
    /* Card content spacing */
    .space-y-3 > * + * {
        margin-top: 0.25rem;
    }
    
    .space-y-2 > * + * {
        margin-top: 0.125rem;
    }
}

/* EXTREME FIX for iPhone 14 Pro Max Landscape 932x430 */
@media (max-width: 932px) and (orientation: landscape) and (min-height: 400px) and (max-height: 450px) {
    /* Force ultra-compact layout for iPhone 14 Pro Max */
    nav {
        height: 2rem !important;
        min-height: 2rem !important;
        padding: 0.125rem 0 !important;
    }
    
    nav .py-4 {
        padding: 0.125rem 0 !important;
    }
    
    nav img {
        height: 1rem !important;
        width: 1rem !important;
    }
    
    nav .text-lg, nav .text-xl {
        font-size: 0.625rem !important;
    }
    
    #home {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 2rem !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }
    
    #home .relative.z-10 {
        height: calc(100vh - 2rem) !important;
        max-height: calc(100vh - 2rem) !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }
    
    #home img {
        height: 1.25rem !important;
        width: 1.25rem !important;
        margin-bottom: 0.0625rem !important;
    }
    
    #home .text-7xl {
        font-size: 1rem !important;
        line-height: 1 !important;
    }
    
    #home .text-5xl {
        font-size: 0.875rem !important;
        line-height: 1 !important;
    }
    
    #home .text-3xl {
        font-size: 0.5rem !important;
        line-height: 1 !important;
    }
    
    #home .text-2xl {
        font-size: 0.4375rem !important;
        line-height: 1 !important;
    }
    
    #home .text-xl {
        font-size: 0.375rem !important;
        line-height: 1 !important;
    }
    
    #home .mb-8, #home .mb-6, #home .mb-4, #home .mb-12, #home .mb-3 {
        margin-bottom: 0.03125rem !important;
    }
    
    #home .flex.flex-col.sm\\:flex-row {
        gap: 0.03125rem !important;
        margin-top: 0.0625rem !important;
    }
    
    #home .px-6 {
        padding-left: 0.125rem !important;
        padding-right: 0.125rem !important;
    }
    
    #home .py-3 {
        padding-top: 0.0625rem !important;
        padding-bottom: 0.0625rem !important;
    }
    
    #home .text-base, #home .text-lg {
        font-size: 0.375rem !important;
    }
    
    #home .mt-6 {
        display: none !important;
    }
}
