/* ==========================================================================
   1. General Mobile & Responsive Core Enhancements
   ========================================================================== */
body {
    background-color: #f8f9fa; 
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #212529;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #212529;
}

/* Header/Logo Styles */
.restaurant-logo {
    max-width: 150px; 
    height: auto;
    border-radius: 50%; 
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. Landing Page Elements (index.php Fixes)
   ========================================================================== */
.hero-section {
    background-image:url('images/hero-bg.jpg');
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.whatsapp_float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 100;
}

/* Landing Page Entrance Animations */
.animate-fade-in, .animate-slide-up, .animate-zoom-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-fade-in.is-visible, .animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-zoom-in { transform: scale(0.9); }
.animate-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ==========================================================================
   3. Digital Menu Page Elements (menu.php Fixes)
   ========================================================================== */
/* Hero Slider Area */
.hero-carousel .carousel-item {
    height: 220px;
    background-color: #222;
}
.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Floating Info Card Overlay */
.restaurant-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.brand-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 16px;
    border: 2px solid #ffc107;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FIXED: Search Box Wrapper & Form Control Alignment */
.search-box-wrapper {
    position: relative;
    width: 100%;
}
.search-box-wrapper .form-control {
    border-radius: 50px;
    padding: 12px 20px 12px 45px !important; /* Pushes text past the absolute-positioned icon */
    border: 1px solid #e0e0e0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
}
.search-box-wrapper .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    outline: 0;
}
.search-box-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
    pointer-events: none;
}

/* Food Type Stamp Icon Elements */
.dietary-stamp {
    width: 16px;
    height: 16px;
    border: 2px solid #2e7d32;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin-bottom: 4px;
}
.dietary-stamp.non-veg {
    border-color: #c62828;
}
.dietary-dot {
    width: 6px;
    height: 6px;
    background-color: #2e7d32;
    border-radius: 50%;
}
.dietary-stamp.non-veg .dietary-dot {
    background-color: #c62828;
}

/* Dietary Selector Switch Panel Styling */
.dietary-filter-pill-box .btn {
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border: 1px solid #e9ecef;
    background-color: #fff;
    color: #212529;
    transition: all 0.2s ease;
}
.dietary-filter-pill-box .btn.active-veg {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}
.dietary-filter-pill-box .btn.active-nonveg {
    background-color: #ffebee;
    color: #c62828;
    border-color: #c62828;
}
.dietary-filter-pill-box .btn.active-all {
    background-color: #121212;
    color: #fff;
    border-color: #121212;
}

/* Smooth Visual Category Scroll Grid */
.visual-category-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: none;
}
.visual-category-container::-webkit-scrollbar { display: none; }

.visual-cat-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 85px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.visual-cat-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    background-color: #eee;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.visual-cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.visual-cat-card.active {
    transform: translateY(-4px);
}
.visual-cat-card.active .visual-cat-img-wrapper {
    border-color: #ffc107;
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35);
}
.visual-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
    color: #212529;
}

/* Premium Interactive Food Item Cards with Motion Profiles */
.menu-item-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    
    will-change: transform, box-shadow;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s ease;
                
    animation: cardEntrance 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
}
.menu-item-card:hover, .menu-item-card:active {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 193, 7, 0.15);
}
.menu-item-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 14px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.menu-item-card:hover .menu-item-img {
    transform: scale(1.04);
}

.category-title-header {
    font-weight: 800;
    font-size: 1.4rem;
    border-left: 4px solid #ffc107;
    padding-left: 10px;
    margin: 30px 0 15px;
}

/* Entrance Keyframes */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Delay Loops */
.food-item-wrapper:nth-child(1) .menu-item-card { animation-delay: 0.05s; }
.food-item-wrapper:nth-child(2) .menu-item-card { animation-delay: 0.10s; }
.food-item-wrapper:nth-child(3) .menu-item-card { animation-delay: 0.15s; }
.food-item-wrapper:nth-child(4) .menu-item-card { animation-delay: 0.20s; }
.food-item-wrapper:nth-child(5) .menu-item-card { animation-delay: 0.25s; }

.price {
    font-weight: bold;
    font-size: 1.1em;
    color: #2e7d32 !important; 
}

.developer-footer {
    background-color: #121212;
    color: #aaa;
    padding: 25px 0;
    font-size: 0.85rem;
    margin-top: 50px;
}
.developer-footer a {
    color: #ffc107;
    text-decoration: none;
}

/* Responsive Grid Overrides */
@media (max-width: 768px) {
    .container { padding: 0.75rem; }
    .table-img { width: 40px !important; height: 40px !important; }
}