:root {
  --blue: #173a73;
  --red: #d72638;
  --yellow: #ffd166;
  --cream: #fff8eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(23, 58, 115, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff8eb 0%, #fffdf7 45%, #eef6ff 100%);
}

.hero {
  min-height: 82vh;
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 209, 102, 0.95), transparent 20%),
    radial-gradient(circle at 12% 82%, rgba(255, 122, 69, 0.7), transparent 24%),
    linear-gradient(135deg, rgba(23, 58, 115, 0.98), rgba(215, 38, 56, 0.9));
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 42px;
  align-items: center;
  max-width: 1160px;
  margin: 92px auto 40px;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 18px 0;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.92;
}

.intro {
  max-width: 700px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.primary {
  color: var(--blue);
  background: var(--yellow);
}

.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.hero-card {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  background:
    linear-gradient(rgba(23, 58, 115, 0.04), rgba(23, 58, 115, 0.04)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Lechon%20Cebu%20(whole)%20in%20MCIA%2C%20Cebu.jpg?width=900") center / cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
  z-index: -1;
}

.steam,
.hero-dish {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.steam {
  top: 22px;
  left: 22px;
  padding: 9px 14px;
  color: #9a3412;
  background: var(--yellow);
}

.hero-dish {
  padding: 12px 16px;
}

.hero-dish-one {
  right: 22px;
  top: 34%;
}

.hero-dish-two {
  left: 24px;
  bottom: 78px;
}

.hero-dish-three {
  right: 28px;
  bottom: 26px;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: -72px auto 56px;
}

.controls,
.featured,
.card {
  border: 1px solid rgba(23, 58, 115, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.controls {
  padding: 24px;
  margin-bottom: 24px;
}

.controls label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
}

input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #d8e5f7;
  border-radius: 18px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(255, 209, 102, 0.8);
  border-color: var(--blue);
}

.result-count {
  margin: 12px 0 0;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
}

.featured.hidden {
  display: none;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(23, 58, 115, 0.22);
}

.photo-wrap {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dish-color-one), var(--dish-color-two));
}

.photo-wrap img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.featured-photo,
.featured-photo img {
  min-height: 260px;
  height: 100%;
  border-radius: 22px;
}

.photo-wrap figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  color: white;
  background: rgba(17, 24, 39, 0.78);
  font-size: 0.72rem;
  line-height: 1.35;
}

.photo-wrap a {
  color: #fff7c2;
  font-weight: 800;
}

.photo-fallback {
  display: none;
  min-height: 240px;
  place-items: center;
  font-size: 4.5rem;
}

.image-failed img {
  display: none;
}

.image-failed .photo-fallback {
  display: grid;
}

.card-body {
  padding: 22px;
}

.location {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
}

h2,
h3 {
  margin: 0 0 12px;
  color: var(--blue);
}

.description,
.miss-note {
  line-height: 1.6;
}

.ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ingredients li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1c7;
  color: #744b00;
  font-size: 0.9rem;
  font-weight: 700;
}

.miss-note {
  padding: 14px;
  border-left: 5px solid var(--yellow);
  border-radius: 12px;
  background: #fffaf0;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero-content,
  .featured {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .intro {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    min-height: 320px;
  }
}

@media (max-width: 650px) {
  .hero-content {
    margin-top: 70px;
  }

  .nav {
    align-items: flex-start;
    gap: 16px;
  }

  .dish-grid {
    grid-template-columns: 1fr;
  }
}
