/* ==========================================================================
   1. MINIMAL MOBILE NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0; /* Tighter padding for mobile screens */
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px; /* Reduced gap to fit clean headers side-by-side on mobile */
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 4px; /* Increases touch target profile */
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:active {
    color: var(--text);
}


/* ==========================================================================
   2. HERO INTERFACE
   ========================================================================== */
.hero {
    position: relative;
    padding: 40px 0 32px;
    overflow: hidden;
    text-align: center;
}

/* Scaled ambient decoration glow safely away from viewport boundaries */
.hero::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(249, 115, 22, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    top: -100px;
    right: -50px;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.08);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: "Fraunces", serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    padding-bottom: 14px;
}

.hero-highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 480px;
    margin-inline: auto;
}


/* ==========================================================================
   3. SEARCH UTILITIES (The Core Engine)
   ========================================================================== */
.search-wrapper {
    margin-bottom: 32px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    margin-left: 12px;
    flex-shrink: 0;
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

.search-input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    padding: 12px 8px;
}

.search-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:active {
    background: var(--primary-hover);
}

/* Horizontal swipe filters for tags on mobile instead of wrapping awkwardly */
.search-suggestions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    scrollbar-width: none; /* Hide scrollbars */
}

.search-suggestions::-webkit-scrollbar {
    display: none;
}

.search-suggestions span {
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
}


/* ==========================================================================
   4. DISCOVERY MODE CARDS
   ========================================================================== */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.mode-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s, border-color 0.2s;
}

.mode-card:active {
    transform: scale(0.98);
    border-color: var(--primary);
}

.mode-icon {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mode-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.mode-card p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.3;
}


/* ==========================================================================
   5. CUISINE CARDS (Kinetic Touch Slider)
   ========================================================================== */
.cuisine-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hides scrollbar on Firefox */
}

.cuisine-scroll::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome, Safari, and Opera */
}

.cuisine-card {
    flex: 0 0 auto;
    width: 130px;
    padding: 18px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    text-decoration: none; /* Clears default link underlines */
    
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Micro-interaction tailored for mobile thumb presses */
.cuisine-card:active {
    transform: scale(0.96);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.cuisine-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    transition: color 0.2s ease;
}

/* Highlights the category name slightly when active */
.cuisine-card:active .cuisine-name {
    color: var(--primary);
}

.cuisine-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}


/* ==========================================================================
   6. FEATURED CAROUSEL SLIDER (Added & Integrated)
   ========================================================================== */
.featured-carousel-wrapper {
    position: relative;
    width: 100%;
}

.featured-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Kinetic magnetic slider feel */
    padding: 5px 5px 15px 5px;
    scrollbar-width: none; /* Hides horizontal bars on Firefox */
}

.featured-scroll-track::-webkit-scrollbar {
    display: none; /* Hides horizontal bars on Chrome/Safari */
}

.featured-card {
    flex: 0 0 290px; /* Prevents cards from crushing smaller */
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.featured-img-container {
    position: relative;
    height: 155px;
    background: #f7f7f7;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffb100;
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card-body {
    padding: 14px;
}

.featured-card-body h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Text clipping security fallback */
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.feat-rating {
    font-weight: 600;
}

.feat-price {
    color: #777;
}

/* Mobile responsive scaling adjustments for standard viewports */
@media (max-width: 480px) {
    .featured-card {
        flex: 0 0 250px;
    }
}


/* ==========================================================================
   7. SECTION HEADERS
   ========================================================================== */
.section-header {
    display: flex;
    flex-direction: column; /* Stacked by default on mobile so long text doesn't smash */
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
    position: relative;
}

.section-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.section-header h2 {
    font-family: "Fraunces", serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-header p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 90%;
}

.section-link, .see-all {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 0; /* Creates an easier tap target on mobile screens */
    transition: color 0.2s ease, transform 0.2s ease;
}

.section-link:active, .see-all:active {
    color: var(--primary-hover);
    transform: translateX(3px); /* Micro-nudge forward when tapped */
}


/* ==========================================================================
   8. RESTAURANT GRID & FEED CARDS
   ========================================================================== */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.restaurant-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.restaurant-image {
    height: 200px; /* Perfect golden ratio height on mobile viewports */
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-content {
    padding: 20px;
}

.restaurant-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.restaurant-tag {
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.restaurant-rating {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f59e0b;
}

.restaurant-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--text);
}

.restaurant-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.restaurant-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}


/* ==========================================================================
   9. CARD BUTTON GROUP INTERFACES
   ========================================================================== */
.card-button-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-card {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-card.primary {
    background: var(--primary);
    color: white;
}

.btn-card.primary:hover {
    background: var(--primary-hover);
}

.btn-card.secondary {
    background: #f3f4f6;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-card.secondary:hover {
    background: #e5e7eb;
}


/* ==========================================================================
   10. CTA BUTTON (Primary Mobile Action)
   ========================================================================== */
.cta-wrap {
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Spans full width on mobile for easy thumb-tapping */
    max-width: 320px; /* Caps size gracefully on larger screens */
    margin-inline: auto;
    
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary);
    color: white !important;
    border: none;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:active {
    transform: scale(0.98);
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}


/* ==========================================================================
   11. GLOBAL SITE FOOTER BLOCK
   ========================================================================== */
.site-footer {
    background: #0f172a;
    padding: 48px 0 32px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-icon {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
}

.footer-description {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}


/* ==========================================================================
   12. RESPONSIVE SCALING UPGRADE (Tablets & Desktops Media Overrides)
   ========================================================================== */
@media (min-width: 640px) {
    .mode-grid {
        grid-template-columns: repeat(2, 1fr); /* Split views cleanly on medium devices */
    }
}

@media (min-width: 768px) {
    .nav-links { gap: 28px; }
    .hero { padding: 80px 0 40px; }
    
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .restaurant-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}