/* ==============================
   🌿 Global Base
============================== */
:root {
  --irish-green: #02220d;
  --gold: #f5d97c;
  --cream: #fafafa;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: var(--irish-green);
  overflow-x: hidden;
}

/* ==============================
   🌿 Header Reset
============================== */
header {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--irish-green);
  border: none;
  position: relative;
  z-index: 10;
}

/* ✅ ดึง Hero ให้ชิด Header จริง */
header + main.menu-page {
  margin-top: -70px; /* ปรับให้พอดีกับความสูงของ header */
}

/* ==============================
   🌿 Hero Section
============================== */
.menu-hero {
  position: relative;
  background: url('../images/menu/hero_menu.png') center top / cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.menu-hero .overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 40px 20px;
}

.menu-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.menu-hero p {
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==============================
   🌿 Menu Section
============================== */
.menu-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  background-color: var(--irish-green);
}

.menu-section {
  margin-bottom: 70px;
}

.menu-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

/* เส้นทองใต้หัวข้อ */
.menu-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

.menu-section h2 .th {
  font-family: 'Inter', sans-serif;
  color: #ddd;
  font-size: 1rem;
  margin-left: 8px;
}

/* ==============================
   🌿 Menu Grid
============================== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* ✅ ปรับ card ให้กว้างขึ้น */
  gap: 30px;
}

/* ==============================
   🌿 Menu Card
============================== */
.menu-card {
  display: flex;
  flex-direction: column; /* ✅ รูปอยู่บน ข้อความอยู่ล่าง */
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  min-height: 480px; /* ✅ ให้ความสูงเท่า ๆ กัน */
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==============================
   🌿 Menu Image
============================== */
.menu-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--gold);
}

/* ==============================
   🌿 Menu Info
============================== */
.menu-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #064d1b;
  font-family: 'Playfair Display', serif;
}

.menu-info .en {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.6rem;
}

.menu-info .desc {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.menu-info .price {
  font-size: 1rem;
  font-weight: bold;
  color: #0c5a20;
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 25px;
  display: inline-block;
  margin: 0 auto;
}

.price-alt {
  color: #555;
  font-style: italic;
}

/* ==============================
   🌿 Responsive
============================== */

/* 📱 Tablet */
@media (max-width: 1024px) {
  .menu-container {
    padding: 60px 20px;
  }
  .menu-img img {
    height: 200px;
  }
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .menu-hero {
    height: 50vh;
  }

  header + main.menu-page {
    margin-top: -60px;
  }

  .menu-hero h1 {
    font-size: 2.2rem;
  }

  .menu-hero p {
    font-size: 1rem;
  }

  .menu-section h2 {
    font-size: 1.6rem;
  }

  .menu-grid {
    grid-template-columns: 1fr; /* ✅ แสดงเป็นคอลัมน์เดียวบนมือถือ */
    gap: 20px;
  }

  .menu-card {
    min-height: auto;
  }

  .menu-img img {
    height: 200px;
  }

  .menu-info {
    padding: 1rem;
  }
}

/* ==============================
   🌿 Navbar alignment fix for Menu Page
============================== */
body.page-menu .site-header {
  padding: 16px 40px !important;
}

body.page-menu .main-nav ul {
  gap: 24px;
}

/* ==============================
   🌿 Adjust spacing between Hero and Menu
============================== */
body.page-menu main {
  padding-top: 0 !important;
}

body.page-menu .menu-hero {
  margin-top: 0 !important;
}

body.page-menu .menu-container {
  padding-top: 0 !important;
}