/* ===================================================== */
/*           MING'S FOOD HUB - FINAL CLEAN VERSION       */
/*   Short desc by default → Full desc on hover/tap      */
/*   Smooth fade + slide effect, no bugs, looks amazing  */
/* ===================================================== */

:root {
  --blue: #0a7cff;
  --sky: #87CEEB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #ffffff, var(--sky));
  color: #212529;
  line-height: 1.6;
}

header {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

h1 { margin: 0; font-size: 2.8rem; }

.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
section { margin-bottom: 4rem; }

h2 {
  text-align: center;
  color: var(--blue);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--blue);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.15); }

.card-img {
  height: 180px;
  background: var(--sky) center/cover no-repeat;
  transition: transform 0.5s ease;
}

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

.card-content { padding: 1rem; position: relative; min-height: 100px; }

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 1.3rem;
  text-align: center;
}

.short-desc {
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  transition: opacity 0.3s ease;
}

.long-desc {
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 0.8rem;
}

/* Show full description on hover/tap */
.card:hover .long-desc,
.card.active .long-desc {
  opacity: 1;
  max-height: 200px;
}

/* Hide short desc when full one appears */
.card:hover .short-desc,
.card.active .short-desc {
  opacity: 0;
}

/* Images */
.adobo          { background-image: url('https://images.unsplash.com/photo-1596797038530-2c107229654b?w=800&fit=crop'); }
.adobong-tuyo   { background-image: url('https://images.unsplash.com/photo-1627339923637-1b3b3a3f40fc?w=800&fit=crop'); }
.bicol-express  { background-image: url('https://images.unsplash.com/photo-1606496393962-218bd4e04974?w=800&fit=crop'); }
.tomato-salad   { background-image: url('https://images.unsplash.com/photo-1555939594-58056f625634?w=800&fit=crop'); }
.cucumber-salad { background-image: url('https://images.unsplash.com/photo-1563379922-2d3d0f7e1e6f?w=800&fit=crop'); }
.bananaque      { background-image: url('https://images.unsplash.com/photo-1606890734073-2d2c4d10c40c?w=800&fit=crop'); }
.turon          { background-image: url('https://images.unsplash.com/photo-1621939514646-56de34a9312c?w=800&fit=crop'); }
.gintonic       { background-image: url('https://images.unsplash.com/photo-1551751299-66f8d8bc07da?w=800&fit=crop'); }
.margarita      { background-image: url('https://images.unsplash.com/photo-1551024709-8f23befc6f87?w=800&fit=crop'); }
.mojito         { background-image: url('https://images.unsplash.com/photo-1541546007048-2f0f6a6792cf?w=800&fit=crop'); }

.no-img .card-img { display: none; }
.no-img .card-content { padding: 3rem 1rem; text-align: center; }

footer {
  text-align: center;
  padding: 2rem;
  background: var(--blue);
  color: white;
  margin-top: 5rem;
}

@media (max-width: 768px) {
  .card:active { transform: translateY(-5px); }
}