/* ==========================================================================
   foodpanda design clone — homepage styles
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #eaf1ff 0%, #f6f9ff 70%, #fff 100%); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 540px; padding: 48px var(--gutter); }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 900; letter-spacing: -1.2px; max-width: 580px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { margin-top: 16px; color: var(--text-2); font-size: 17px; max-width: 480px; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 24px; margin-top: 26px; color: var(--text-2); font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-s); font-size: 15px; }

/* hero artwork */
.hero-art { position: relative; height: 470px; }
.hero-blob {
  position: absolute; inset: 8% 4% 4% 8%;
  background: radial-gradient(circle at 30% 30%, #dbeafe, #bfdbfe 60%, #93c5fd);
  border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%;
  animation: blob 12s ease-in-out infinite;
}
.float-card { position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-l); overflow: hidden; padding: 6px; animation: float 6s ease-in-out infinite; }
.float-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.fc-1 { width: 250px; height: 250px; left: 2%; top: 4%; }
.fc-2 { width: 190px; height: 190px; right: 4%; top: 16%; animation-delay: -2s; }
.fc-3 { width: 210px; height: 160px; left: 24%; bottom: 2%; animation-delay: -4s; }
.fc-label {
  position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px;
  font-weight: 800; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis;
}
.rider-chip {
  position: absolute; right: 0; bottom: 16%; background: #fff; border-radius: 999px; padding: 8px 16px 8px 8px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-l); font-weight: 800; font-size: 13px;
  animation: float 7s ease-in-out infinite; animation-delay: -1s;
}
.rider-chip .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--secondary-100); display: grid; place-items: center; font-size: 18px; }
.rider-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%; }
  50% { border-radius: 54% 46% 52% 48% / 45% 55% 45% 55%; }
}

/* ---------- Cuisines ---------- */
.cuisine-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none; }
.cuisine-row::-webkit-scrollbar { display: none; }
.cuisine { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; }
.cuisine .ic {
  width: 74px; height: 74px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 32px;
  transition: .15s; border: 2px solid transparent;
}
.cuisine:hover .ic { background: var(--primary-50); transform: translateY(-2px); }
.cuisine.active .ic { background: var(--primary-100); border-color: var(--primary); }
.cuisine span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.cuisine.active span { color: var(--primary); }

/* ---------- Restaurants ---------- */
.restaurants { padding-top: 0; }
.rest-count { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 32px var(--gutter) 40px; min-height: 0; gap: 28px; }
  .hero h1 { font-size: 38px; }
  .hero-art { height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .fc-1 { width: 200px; height: 200px; }
  .fc-2 { width: 150px; height: 150px; }
  .fc-3 { width: 170px; height: 130px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 10px 18px; margin-top: 22px; }
  /* smaller, non-overlapping artwork on phones */
  .hero-art { height: 260px; }
  .fc-1 { width: 140px; height: 140px; }
  .fc-2 { width: 110px; height: 110px; }
  .fc-3 { width: 112px; height: 88px; left: 0; bottom: 0; }
  .fc-label { left: 10px; bottom: 10px; font-size: 11px; padding: 4px 9px; max-width: calc(100% - 20px); }
  .fc-extra { display: none; }
  .rider-chip { bottom: 8%; font-size: 12px; padding: 6px 12px 6px 6px; gap: 8px; }
  .rider-chip .dot { width: 30px; height: 30px; font-size: 15px; }
}
