/* css/menu.css */

/* MENU SECTION
-------------------------------------------------- */
.menu-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}
.menu-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 1rem;
}
.menu-nav a {
    text-decoration: none;
    color: var(--text-color);
    background: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.menu-nav a:hover {
    background: var(--primary-color);
    color: #fff;
}
.menu-nav a.active {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.menu-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 350px;
}
.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.menu-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.menu-item:hover img {
    transform: scale(1.1);
}
.menu-item-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    color: #fff;
}
.menu-item-overlay strong {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.menu-item-content {
    padding: 1.5rem;
}
.menu-item-content h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 0.25rem;
}
.menu-item-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}
/* Style for order button inside menu cards */
.menu-item .order-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
}

/* RESPONSIVE STYLES FOR MENU SECTION
-------------------------------------------------- */
/* Keep a neat horizontal row for screens ≤768px */
@media (max-width: 768px) {
  .menu-nav {
    overflow-x: auto;           /* enable sideways scroll */
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;          /* vertical breathing room */
    margin: 0 auto 1.5rem;
    text-align: center;
    scrollbar-width: none;      /* hide scrollbar (Firefox) */
  }
  .menu-nav::-webkit-scrollbar {
    display: none;              /* hide scrollbar (WebKit) */
  }

  .menu-nav ul {
    display: inline-flex;       /* keep items in one row */
    gap: 1rem;                  /* consistent spacing */
    padding: 0 1rem;            /* side padding for nice edges */
    scroll-snap-type: x mandatory;
  }

  .menu-nav li {
    flex: 0 0 auto;             /* prevent shrinking */
    scroll-snap-align: center;  /* each link snaps nicely */
  }

  .menu-nav li a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;        /* keep text on one line */
    border-radius: 6px;
    background: #f8f8f8;        /* optional subtle background */
    transition: background 0.2s ease;
  }

  .menu-nav li a:hover,
  .menu-nav li a:focus {
    background: #e3e3e3;
  }
}
