/* Custom Styles for Saray Sisjön - Compact & Mobile-First */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


/* Background Video Styling */
video {
    pointer-events: none;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.8s ease-in-out;
}

/* Ensure video doesn't cause layout shifts */
section video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #1a1a1a !important;
    transition: opacity 0.6s ease-in-out !important;
}

/* Make sure video is visible and plays */
section video[autoplay] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #1a1a1a !important;
}

/* Page header specific video styling */
.page-header video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    background-color: #1a1a1a !important;
}

/* Ensure section backgrounds are dark before video loads */
.page-header,
#home {
    background-color: #1a1a1a !important;
}

/* Make sure video is always visible */
.page-header video,
#home video {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Responsive image styling */
img[src*="logo.jpg"],
img[src*="pib2.jpg"] {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure images are responsive on all devices */
@media (max-width: 640px) {
    img[src*="logo.jpg"],
    img[src*="pib2.jpg"] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Optimize video performance on mobile */
@media (max-width: 768px) {
    section video {
        /* Ensure video covers properly on mobile */
        object-fit: cover !important;
        object-position: center !important;
        /* Optimize for mobile performance */
        transform: scale(1.05);
    }
    
    /* Optimize images on mobile */
    img[src*="logo.jpg"],
    img[src*="pib2.jpg"] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Reduce video quality on very small screens for better performance */
@media (max-width: 480px) {
    section video {
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.1);
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    section video {
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Home Section - 50% more compact */
#home {
    min-height: 50vh !important;
}

#home > div[class*="relative"][class*="z-10"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

#home div[class*="mb-8"] {
    margin-bottom: 1rem !important;
}

#home span[class*="mb-6"] {
    margin-bottom: 0.75rem !important;
}

#home p[class*="mb-10"] {
    margin-bottom: 1.25rem !important;
}

@media (min-width: 640px) {
    #home p[class*="mb-12"] {
        margin-bottom: 1.5rem !important;
    }
}

/* Global Compact Spacing - Applied to all pages */
section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 640px) {
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (min-width: 768px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Page Headers - Matching & Compact */
.page-header,
section[class*="pt-24"],
section[class*="pt-32"],
section[class*="pt-36"] {
    padding-top: 4rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
    .page-header,
    section[class*="pt-24"],
    section[class*="pt-32"],
    section[class*="pt-36"] {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 768px) {
    .page-header,
    section[class*="pt-24"],
    section[class*="pt-32"],
    section[class*="pt-36"] {
        padding-top: 6rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Consistent header styling */
.page-header h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
}

@media (min-width: 640px) {
    .page-header h1 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem !important;
    }
}

.page-header p {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

@media (min-width: 640px) {
    .page-header p {
        font-size: 1.125rem !important;
    }
}

/* Contact header now uses page-header class - unified styling above */

/* Section Headings - Compact */
section h2 {
    margin-bottom: 1rem !important;
    font-size: 1.75rem !important;
}

@media (min-width: 640px) {
    section h2 {
        font-size: 2rem !important;
        margin-bottom: 1.25rem !important;
    }
}

@media (min-width: 768px) {
    section h2 {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Section Content - Compact */
section .mb-12,
section .mb-16 {
    margin-bottom: 1rem !important;
}

@media (min-width: 640px) {
    section .mb-12 {
        margin-bottom: 1.25rem !important;
    }
    
    section .mb-16 {
        margin-bottom: 1.5rem !important;
    }
}

/* Grid Gaps - Compact */
section .gap-6,
section .gap-8 {
    gap: 1rem !important;
}

@media (min-width: 640px) {
    section .gap-6 {
        gap: 1.25rem !important;
    }
    
    section .gap-8 {
        gap: 1.5rem !important;
    }
}

/* Card Padding - Compact */
section .p-6,
section .p-8 {
    padding: 1rem !important;
}

@media (min-width: 768px) {
    section .p-6 {
        padding: 1.25rem !important;
    }
    
    section .p-8 {
        padding: 1.5rem !important;
    }
}

/* Dish Card Hover Effects */
.dish-card {
    transition: all 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Feature Icon */
.feature-icon {
    width: 50px;
    height: 50px;
}

@media (min-width: 640px) {
.feature-icon {
    width: 60px;
    height: 60px;
    }
}

/* Scrollbar Hide for Menu Navigation */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Menu Item Hover Effects */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

/* Mobile Optimizations - 100% Mobile-Friendly */
@media (max-width: 640px) {
    /* Compact spacing on mobile */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .page-header,
    section[class*="pt-24"],
    section[class*="pt-32"],
    section[class*="pt-36"] {
        padding-top: 3.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .page-header p {
        font-size: 0.875rem !important;
    }
    
    /* Smaller headings on mobile */
    section h1 {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    section h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Compact text on mobile */
    section p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Compact buttons on mobile */
    section a[class*="px-8"],
    section a[class*="px-10"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        font-size: 0.875rem !important;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    /* Compact cards on mobile */
    section .p-6,
    section .p-8 {
        padding: 0.875rem !important;
    }
    
    /* Compact gaps on mobile */
    section .gap-6,
    section .gap-8 {
        gap: 0.75rem !important;
    }
    
    section .mb-12,
    section .mb-16 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Compact menu navigation on mobile */
    .sticky.top-20 {
        top: 5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .sticky.top-20 a {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure fonts load properly */
.font-display {
    font-family: 'Playfair Display', serif !important;
}

/* Contact Section - 30% more compact */
.contact-section {
    padding-top: 1.23rem !important;
    padding-bottom: 1.23rem !important;
}

@media (min-width: 640px) {
    .contact-section {
        padding-top: 1.57rem !important;
        padding-bottom: 1.57rem !important;
    }
}

@media (min-width: 768px) {
    .contact-section {
        padding-top: 1.96rem !important;
        padding-bottom: 1.96rem !important;
    }
}

/* Contact header now uses page-header class - all headers unified */

.contact-info-card h2 {
    font-size: 1.4rem !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .contact-info-card h2 {
        font-size: 1.75rem !important;
    }
}

.contact-info-card > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.525rem !important;
    margin-bottom: 0.525rem !important;
}

.contact-info-card p {
    margin: 0 0 0.35rem 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

@media (min-width: 768px) {
    .contact-info-card p {
        font-size: 1.05rem !important;
    }
}

.contact-info-card a {
    margin: 0.35rem 0 0 0 !important;
    padding: 0 !important;
    display: inline-block;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

@media (min-width: 768px) {
    .contact-info-card a {
        font-size: 1.05rem !important;
    }
}

/* Contact info cards - design enhancements - 30% more compact */
.contact-info-card {
    position: relative;
    padding: 0.7rem !important;
    margin-bottom: 0.7rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 241, 235, 0.8) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(107, 125, 71, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .contact-info-card {
        padding: 0.875rem !important;
        margin-bottom: 0.875rem !important;
        border-radius: 0.5rem;
    }
    
    .contact-info-card > div:first-child {
        gap: 0.5rem;
        margin-bottom: 0.5rem !important;
    }
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(107, 125, 71, 0.2);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b7d47, #d4af37, #6b7d47);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

/* Contact icon containers - enhanced design */
.contact-icon {
    background: linear-gradient(135deg, #6b7d47 0%, #556030 100%) !important;
    box-shadow: 0 4px 8px rgba(107, 125, 71, 0.3);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(107, 125, 71, 0.4);
}

@media (max-width: 640px) {
    .contact-icon {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .contact-icon svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .contact-info-card h2 {
        font-size: 1rem !important;
    }
    
    .contact-info-card p,
    .contact-info-card a {
        font-size: 0.71rem !important;
    }
}

/* Contact spacing - compact */
.contact-section .space-y-6 {
    gap: 0.75rem !important;
}

.contact-section .space-y-8 {
    gap: 1rem !important;
}

.contact-section .space-y-10 {
    gap: 1.25rem !important;
}

.contact-section .mb-6 {
    margin-bottom: 0.75rem !important;
}

.contact-info-card .mb-6 {
    margin-bottom: 0.5rem !important;
}

.contact-section .mb-4 {
    margin-bottom: 0.5rem !important;
}

.contact-section .mt-4 {
    margin-top: 0.5rem !important;
}

.contact-section .mt-6 {
    margin-top: 0.75rem !important;
}

.contact-section .mt-8 {
    margin-top: 1rem !important;
}

.contact-section .gap-12 {
    gap: 2.1rem !important;
}

.contact-section .gap-16 {
    gap: 2.8rem !important;
}

.contact-section .space-y-3 {
    gap: 0.5rem !important;
}

.contact-section .space-y-3 > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.contact-section .text-lg {
    font-size: 0.71rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-lg {
        font-size: 0.84rem !important;
    }
}

.contact-section .text-xl {
    font-size: 0.84rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-xl {
        font-size: 0.94rem !important;
    }
}

.contact-section .text-2xl {
    font-size: 1.13rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-2xl {
        font-size: 1.5rem !important;
    }
}

.contact-section .text-3xl {
    font-size: 1.88rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-3xl {
        font-size: 2.25rem !important;
    }
}

.contact-section .text-4xl {
    font-size: 2.25rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-4xl {
        font-size: 2.81rem !important;
    }
}

.contact-section .text-5xl {
    font-size: 2.81rem !important;
}

@media (min-width: 768px) {
    .contact-section .text-5xl {
        font-size: 3.38rem !important;
    }
}

.contact-section h2 {
    font-size: 1.88rem !important;
    text-align: center;
    margin-bottom: 1rem !important;
}

@media (min-width: 640px) {
    .contact-section h2 {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 768px) {
    .contact-section h2 {
        font-size: 2.81rem !important;
    }
}

.contact-section h3 {
    font-size: 0.94rem !important;
}

@media (min-width: 640px) {
    .contact-section h3 {
        font-size: 1.13rem !important;
    }
}

.contact-section p {
    font-size: 0.88rem !important;
}

@media (min-width: 640px) {
    .contact-section p {
        font-size: 0.94rem !important;
    }
}

@media (min-width: 768px) {
    .contact-section p {
        font-size: 1.13rem !important;
    }
}

/* Mobile optimizations for contact section */
@media (max-width: 640px) {
    .page-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .page-header p {
        font-size: 0.875rem !important;
    }
    
    .contact-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Contact order card - enhanced design */
.contact-order-card {
    background: linear-gradient(135deg, #f5f1eb 0%, #e8e3db 100%) !important;
    border: 1px solid rgba(107, 125, 71, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: 1rem !important;
    transition: all 0.3s ease;
}

.contact-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b7d47, #d4af37, #6b7d47);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(107, 125, 71, 0.2);
}

.contact-order-card:hover::before {
    opacity: 1;
}

.contact-order-card h3 {
    font-size: 1.13rem !important;
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .contact-order-card h3 {
        font-size: 1.5rem !important;
    }
}

.contact-order-card p {
    font-size: 0.88rem !important;
    margin-bottom: 0.75rem !important;
}

@media (max-width: 640px) {
    .contact-order-card {
        padding: 0.875rem !important;
        border-radius: 0.5rem !important;
    }
    
    .contact-order-card h3 {
        font-size: 0.94rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .contact-order-card p {
        font-size: 0.66rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .contact-order-card a {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.66rem !important;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Map container - design enhancement */
.contact-map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(107, 125, 71, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    align-self: stretch;
}

.contact-map-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    border-color: rgba(107, 125, 71, 0.2);
}

@media (max-width: 1024px) {
    .contact-map-container {
        margin-top: 1.05rem;
        height: 280px !important;
    }
}

@media (max-width: 640px) {
    .contact-map-container {
        height: 210px !important;
        border-radius: 0.5rem;
        border-width: 1px;
    }
}

/* Directions section cards - design enhancement */
.directions-card,
.contact-section .bg-white.p-6,
.contact-section .bg-white.p-8 {
    border: 1px solid rgba(107, 125, 71, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    padding: 1.4rem !important;
    position: relative;
    overflow: hidden;
}

.directions-card::before,
.contact-section .bg-white.p-6::before,
.contact-section .bg-white.p-8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b7d47, #d4af37, #6b7d47);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.directions-card:hover,
.contact-section .bg-white.p-6:hover,
.contact-section .bg-white.p-8:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(107, 125, 71, 0.2);
}

.directions-card:hover::before,
.contact-section .bg-white.p-6:hover::before,
.contact-section .bg-white.p-8:hover::before {
    opacity: 1;
}

.directions-card .w-11,
.directions-card .w-14 {
    transition: all 0.3s ease;
}

.directions-card:hover .w-11,
.directions-card:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(107, 125, 71, 0.4);
}

@media (max-width: 640px) {
    .contact-section .bg-white.p-6,
    .contact-section .bg-white.p-8 {
        padding: 1rem !important;
        margin-bottom: 0.75rem;
    }
    
    .contact-section h2 {
        font-size: 1.31rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-section h3 {
        font-size: 0.84rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-section p {
        font-size: 0.66rem !important;
        line-height: 1.5 !important;
    }
    
    .contact-section .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .contact-section .w-16 svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
}

/* Better alignment for contact grid - top aligned and compact */
.contact-section .grid {
    align-items: start !important;
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .contact-section .grid {
        gap: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .contact-section .grid.lg\:grid-cols-2 {
        gap: 2.5rem !important;
        align-items: start !important;
    }
}

@media (max-width: 640px) {
    .contact-section .space-y-8,
    .contact-section .space-y-10 {
        gap: 1rem !important;
    }
    
    .contact-section .mb-6 {
        margin-bottom: 0.75rem !important;
    }
    
    .contact-section .gap-12,
    .contact-section .gap-16 {
        gap: 1.5rem !important;
    }
    
    .contact-section .grid {
        gap: 1rem !important;
    }
}

/* Menu Page - Compact & Mobile-Friendly */
.menu-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
    .menu-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 768px) {
    .menu-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

.menu-item {
    padding: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .menu-item {
        padding: 1rem !important;
    }
}

.menu-item h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .menu-item h3 {
        font-size: 1.25rem !important;
    }
}

.menu-item p {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

@media (min-width: 768px) {
    .menu-item p {
        font-size: 0.9375rem !important;
    }
}

/* About Page - Compact & Mobile-Friendly */
.about-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

@media (min-width: 640px) {
    .about-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (min-width: 768px) {
    .about-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

.about-section .space-y-3,
.about-section .space-y-4 {
    gap: 0.75rem !important;
}

@media (min-width: 768px) {
    .about-section .space-y-4 {
        gap: 1rem !important;
    }
}

.about-section .mb-10,
.about-section .mb-12,
.about-section .mb-16,
.about-section .mb-20 {
    margin-bottom: 1rem !important;
}

@media (min-width: 640px) {
    .about-section .mb-10 {
        margin-bottom: 1.25rem !important;
    }
    
    .about-section .mb-12 {
        margin-bottom: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .about-section .mb-12 {
        margin-bottom: 1.75rem !important;
    }
    
    .about-section .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .about-section .mb-20 {
        margin-bottom: 2.5rem !important;
    }
}

.about-section .gap-5,
.about-section .gap-6,
.about-section .gap-8,
.about-section .gap-12,
.about-section .gap-16 {
    gap: 1rem !important;
}

@media (min-width: 640px) {
    .about-section .gap-5 {
        gap: 1.25rem !important;
    }
    
    .about-section .gap-6 {
        gap: 1.5rem !important;
    }
}

@media (min-width: 768px) {
    .about-section .gap-6 {
        gap: 1.75rem !important;
    }
    
    .about-section .gap-8 {
        gap: 2rem !important;
    }
    
    .about-section .gap-12 {
        gap: 2.5rem !important;
    }
    
    .about-section .gap-16 {
        gap: 3rem !important;
    }
}

/* About page cards - consistent alignment */
.about-section .bg-white {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-section .bg-white.text-center {
    align-items: center;
}

.about-section .bg-white h3 {
    width: 100%;
}

/* Better alignment for about grid items */
.about-section .grid {
    align-items: start !important;
}

@media (min-width: 1024px) {
    .about-section .grid.lg\:grid-cols-2 {
        align-items: center !important;
    }
}

/* Footer - Compact */
footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 768px) {
    footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

footer .gap-8,
footer .gap-12 {
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    footer .gap-8 {
        gap: 2rem !important;
    }
    
    footer .gap-12 {
        gap: 2.5rem !important;
    }
}

/* Navigation - Mobile Optimized */
@media (max-width: 640px) {
    nav {
        height: 4rem !important;
    }
    
    nav .h-20 {
        height: 4rem !important;
    }
    
    #mobile-menu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
}

/* Sticky Menu - Mobile Optimized */
@media (max-width: 640px) {
    .sticky.top-20 {
        top: 4rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .sticky.top-20 a {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
}

/* Image and Media - Mobile Optimized */
@media (max-width: 640px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    iframe {
        max-width: 100%;
    }
}

/* Text Sizes - Mobile Optimized */
@media (max-width: 640px) {
    .text-4xl,
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
    
    .text-lg {
        font-size: 0.9375rem !important;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 640px) {
    /* Better touch targets */
    button, a, input[type="checkbox"], input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Compact spacing for mobile */
    .space-y-6 > * + * {
        margin-top: 1rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem !important;
    }
    
    /* Grid improvements */
    .grid {
        gap: 1rem !important;
    }
    
    /* Card padding */
    .p-6, .p-8, .p-12 {
        padding: 1rem !important;
    }
    
    /* Menu items */
    .menu-item {
        padding: 0.75rem !important;
    }
    
    /* Order page specific */
    .order-item {
        padding: 0.75rem !important;
    }
    
    /* Admin page */
    .admin-section {
        padding: 1rem !important;
    }
    
    .admin-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}
