/* ============================================
   JONNY'S DHABA v2 - ElCamino-Inspired Elegant Styles
   ============================================ */

/* CSS Variables - Enhanced with ElCamino aesthetic */
:root {
    /* Warm, sophisticated palette */
    --color-spice-50: #FFF9F2;
    --color-spice-100: #FFF5E6;
    --color-spice-200: #FFE4C4;
    --color-clay-400: #D97B5C;
    --color-clay-500: #C75D3A;
    --color-clay-600: #B54D2E;
    --color-deep-500: #6B2D3A;
    --color-deep-600: #5A2531;
    --color-deep-700: #4A1E27;
    --color-deep-800: #3A171E;
    --color-saffron-300: #FFE082;
    --color-saffron-400: #FFD166;
    --color-saffron-500: #E6A623;
    --color-saffron-600: #CC9020;
    --color-sage-400: #7A9E7E;
    --color-sage-500: #5C8560;
    --color-charcoal-500: #616161;
    --color-charcoal-700: #2D2D2D;
    
    /* Enhanced typography hierarchy */
    --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Lato', 'DM Sans', sans-serif;
    
    /* Refined transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Elegant spacing */
    --section-padding: 120px 0;
    --content-max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-spice-50);
    color: var(--color-charcoal-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ELEGANT NAVIGATION - ElCamino Inspired
   ============================================ */

#navbar {
    background: transparent;
    transition: all var(--transition-base);
}

#navbar.scrolled {
    background: rgba(74, 30, 39, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(230, 166, 35, 0.2);
}

/* Enhanced logo styling */
#navbar .font-display {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(230, 166, 35, 0.2);
    transition: all var(--transition-base);
}

/* Sophisticated nav links */
.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-saffron-500), var(--color-clay-500));
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--color-deep-800);
    transform: translateY(-1px);
}

/* Enhanced language buttons */
.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--color-saffron-500);
    color: var(--color-charcoal-700);
    border-color: var(--color-saffron-500);
    box-shadow: 0 2px 8px rgba(230, 166, 35, 0.4);
}

/* Mobile menu enhancements */
#mobile-menu {
    background: rgba(74, 30, 39, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(230, 166, 35, 0.3);
}

#mobile-menu a {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-base);
}

#mobile-menu a:hover {
    color: white;
    background: rgba(230, 166, 35, 0.2);
    transform: translateX(4px);
}

/* ============================================
   ENHANCED HERO SECTION - ElCamino Inspired
   ============================================ */

#home {
    position: relative;
    overflow: hidden;
}

/* Hero background with elegant gradient */
#home .absolute.inset-0.bg-gradient-to-br {
    background: linear-gradient(135deg, 
        rgba(74, 30, 39, 0.95) 0%,
        rgba(107, 45, 58, 0.9) 40%,
        rgba(199, 93, 58, 0.85) 100%);
}

/* Ken Burns effect for hero background */
.hero-ken-burns {
    animation: kenBurns 12s ease-out infinite alternate;
}

/* Enhanced hero typography */
#home h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

#home h1 .font-display {
    font-weight: 700;
    line-height: 0.9;
}

/* Elegant tagline styling */
#home .inline-flex.items-center.gap-2 {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sophisticated scroll indicator */
.scroll-indicator {
    animation: elegantBounce 3s ease-in-out infinite;
}

@keyframes elegantBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* Enhanced CTA buttons */
#home .group {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

#home .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

#home .group:hover::before {
    left: 100%;
}

/* ============================================
   SOPHISTICATED ANIMATIONS - ElCamino Inspired
   ============================================ */

/* Ken Burns effect for hero images */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Enhanced reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    will-change: transform, opacity;
}

.reveal-up {
    animation: elegantSlideUp 0.8s ease-out forwards;
    animation-play-state: paused;
}

.reveal-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-play-state: paused;
}

.reveal-right {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-play-state: paused;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    animation-play-state: running;
}

/* Staggered animation delays */
.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   ELEGANT MENU CARDS - ElCamino Inspired
   ============================================ */

.menu-card {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(230, 166, 35, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-saffron-500), var(--color-clay-500));
    transition: left 0.6s ease;
}

.menu-card:hover::before {
    left: 0;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 166, 35, 0.2);
}

/* Signature rolls card special styling */
.menu-card[data-category="rolls"] {
    background: linear-gradient(135deg, var(--color-saffron-500), var(--color-saffron-600));
    color: var(--color-charcoal-700);
    position: relative;
}

.menu-card[data-category="rolls"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23000" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    opacity: 0.3;
}

/* Enhanced filter buttons */
.filter-btn {
    background: var(--color-spice-50);
    color: var(--color-deep-700);
    border: 1px solid rgba(74, 30, 39, 0.15);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 166, 35, 0.1), transparent);
    transition: left 0.6s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: var(--color-spice-100);
    border-color: rgba(74, 30, 39, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--color-deep-700);
    color: var(--color-spice-50);
    border-color: var(--color-deep-700);
    box-shadow: 0 4px 20px rgba(74, 30, 39, 0.3);
    transform: translateY(-2px);
}

/* Menu card typography enhancements */
.menu-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.menu-card .text-xs.font-semibold.uppercase {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    color: white;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    color: white;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-saffron-500);
    box-shadow: 0 0 0 3px rgba(230, 166, 35, 0.1);
}

/* Form validation */
.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

input.error,
select.error,
textarea.error {
    border-color: #dc2626 !important;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-spice-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-clay-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-clay-600);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: var(--color-saffron-500);
    color: white;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .font-display {
        letter-spacing: -0.02em;
    }
    
    .menu-card {
        margin-bottom: 1rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

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

/* ============================================
   FONT DISPLAY CLASS
   ============================================ */

.font-display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   HERO ENHANCEMENTS
   ============================================ */

#home h1 span {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   STORY SECTION IMAGE EFFECTS
   ============================================ */

#story .relative img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

#story .relative:hover img {
    transform: scale(1.03);
}

/* ============================================
   MENU CARD ENHANCEMENTS
   ============================================ */

.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-saffron-500), var(--color-clay-500));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.menu-card:hover::before {
    opacity: 1;
}

/* ============================================
   SIGNATURE DISH HIGHLIGHT
   ============================================ */

.menu-card[data-category="rolls"]::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-deep-700), var(--color-deep-500));
}

/* ============================================
   BUTTON POLISH
   ============================================ */

button, a {
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:focus-visible,
.lang-btn:focus-visible {
    outline: 2px solid var(--color-saffron-500);
    outline-offset: 2px;
}

/* ============================================
   RESERVATION FORM POLISH
   ============================================ */

#reservation-form input,
#reservation-form select,
#reservation-form textarea {
    transition: all var(--transition-base);
}

#reservation-form input:hover,
#reservation-form select:hover,
#reservation-form textarea:hover {
    border-color: var(--color-saffron-400);
}

/* ============================================
   GALLERY OVERLAY EFFECT
   ============================================ */

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 30, 39, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

/* ============================================
   REVIEW CARD HOVER
   ============================================ */

#reviews .bg-white {
    transition: all var(--transition-base);
}

#reviews .bg-white:hover {
    transform: translateY(-4px);
}

/* ============================================
   FOOTER LINK UNDERLINE EFFECT
   ============================================ */

footer a {
    position: relative;
}

footer ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-saffron-400);
    transition: width var(--transition-base);
}

footer ul a:hover::after {
    width: 100%;
}

/* ============================================
   SMOOTH PAGE LOAD
   ============================================ */

body {
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
}

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

/* ============================================
   GRADIENT UTILITIES - ElCamino Inspired
   ============================================ */

.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

.bg-gradient-conic {
    background: conic-gradient(var(--tw-gradient-stops));
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SOPHISTICATED SECTION STYLING
   ============================================ */

/* Enhanced section backgrounds with texture */
.section-textured {
    position: relative;
}

.section-textured::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(230, 166, 35, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(199, 93, 58, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Elegant quote styling for testimonials */
.testimonial-quote {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -15px;
    font-family: var(--font-display);
    font-size: 80px;
    color: rgba(230, 166, 35, 0.2);
    line-height: 1;
    font-weight: 700;
}

/* Enhanced gallery styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all var(--transition-base);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(74, 30, 39, 0) 0%,
        rgba(74, 30, 39, 0.1) 50%,
        rgba(74, 30, 39, 0.3) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Sophisticated button styling */
.btn-elegant {
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-base);
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-elegant:hover::before {
    left: 100%;
}

/* Enhanced footer styling */
footer {
    background: linear-gradient(135deg, 
        var(--color-deep-800) 0%, 
        var(--color-deep-700) 50%,
        var(--color-deep-800) 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(230, 166, 35, 0.5), 
        transparent);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #navbar,
    .whatsapp-float,
    .lightbox,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}