/* M.Y. Chockdee Oriental Market & Restaurant */

:root {
  --primary: #c81d25;      /* Filipino-flag red */
  --primary-dark: #97141a;
  --accent: #f5b700;       /* golden yellow, echoes storefront sign */
  --navy: #0b2545;
  --ink: #201a14;
  --paper: #fff8ee;
  --cream: #fffaf1;
  --line: rgba(32, 26, 20, 0.1);
  --shadow: 0 18px 40px rgba(32, 20, 10, 0.16);
  --radius: 1.1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-dark);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-order {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 29, 37, 0.45);
}
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200, 29, 37, 0.55); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Top bar / Nav ---------- */
.topbar {
  background: var(--navy);
  color: #f2e9d8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--accent); }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}
.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav .btn-order { padding: 0.7rem 1.4rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11,20,35,0.72), rgba(11,20,35,0.55) 45%, rgba(11,20,35,0.85)),
    url('../images/gallery-05.jpg');
  background-size: cover;
  background-position: center;
}
.hero .wrap {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 780px;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 620px;
  color: #f2ecdf;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-stats {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 0.9rem 1.3rem;
  min-width: 140px;
}
.hero-stat strong { display: block; font-size: 1.5rem; font-family: 'Poppins', sans-serif; }
.hero-stat span { font-size: 0.82rem; color: #dcd3bf; }

/* ---------- Sections ---------- */
main section { padding: 5rem 0; }
.section-heading { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading.left { margin: 0 0 2.5rem; text-align: left; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.7rem; }
.section-heading p { color: rgba(32, 26, 20, 0.68); font-size: 1.05rem; }

.section-alt { background: var(--cream); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { margin: 0 0 1.1rem; color: rgba(32,26,20,0.82); }
.about-photo {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 420px; object-fit: cover; }
.about-badges { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(32,20,10,0.06);
}

/* ---------- Menu ---------- */
.menu-tabs-note { text-align: center; color: rgba(32,26,20,0.6); margin-top: -1.5rem; margin-bottom: 2.5rem; }
.menu-categories { display: flex; flex-direction: column; gap: 2.6rem; }
.menu-category h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}
.menu-category .cat-desc { color: rgba(32,26,20,0.6); margin-bottom: 1.3rem; font-size: 0.95rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.menu-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 24px rgba(32,20,10,0.05);
}
.menu-item h4 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.menu-item p { margin: 0; font-size: 0.9rem; color: rgba(32,26,20,0.62); }
.menu-item .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark, #8a6400);
  background: #fff3d0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.gallery-grid a { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .tall img { height: 100%; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 12px 28px rgba(32,20,10,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars { color: var(--accent); letter-spacing: 0.1em; font-size: 1.05rem; }
blockquote p { margin: 0; color: rgba(32,26,20,0.82); font-size: 0.97rem; }
blockquote cite { font-weight: 700; font-style: normal; color: var(--navy); font-size: 0.9rem; }

/* ---------- Contact / Hours ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.contact-panel {
  background: var(--navy);
  color: #f2ecdf;
  border-radius: 1.5rem;
  padding: 2.2rem;
}
.contact-panel h3 { color: #fff; margin-bottom: 1rem; }
.contact-panel a.link { text-decoration: underline; }
.hours-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: none; }
.map-embed {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.contact-order {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #d9cfc0;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; }
.footer-col a { display: block; text-decoration: none; margin-bottom: 0.5rem; color: #d9cfc0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(217,207,192,0.7);
}

/* ---------- Mobile floating CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 35, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: #fff;
  color: var(--ink);
  border-radius: 1.4rem;
  max-width: 440px;
  width: 100%;
  padding: 1.9rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-top h2 { font-size: 1.4rem; }
.modal-close {
  border: 0;
  background: rgba(32,26,20,0.08);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-card p { color: rgba(32,26,20,0.75); margin: 1rem 0 0; }
.modal-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo img { height: 300px; }
  .menu-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .tall { grid-row: span 1; }
  .gallery-grid .tall img { height: 230px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-cta { display: block; }
  .hero .wrap { padding: 5rem 1.25rem 3rem; min-height: 68vh; }
  .topbar .wrap { font-size: 0.78rem; justify-content: center; text-align: center; }
  main section { padding: 3.5rem 0; }
}
