/* ============================================
   Ma Rew — Modern One-Page Design (Light)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --clr-bg: #faf8f4;
  --clr-bg-warm: #f1ede6;
  --clr-bg-card: #ffffff;
  --clr-gold: #a8863a;
  --clr-gold-light: #c9a55a;
  --clr-gold-dim: rgba(168,134,58,.08);
  --clr-text: #4a443b;
  --clr-text-muted: #8a8278;
  --clr-heading: #2c2620;
  --clr-border: rgba(168,134,58,.18);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --max-w: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

a { color: var(--clr-gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--clr-gold-light); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* section divider */
.divider {
  width: 48px; height: 1px;
  background: var(--clr-gold);
  margin: 0 auto 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-gold);
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--clr-heading);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center;
  gap: 0;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav-logo img {
  height: 36px; width: auto;
  filter: none;
  transition: filter .4s ease;
}
.nav.scrolled .nav-logo img {
  filter: brightness(0.2) sepia(1) saturate(0.6) hue-rotate(10deg);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--clr-heading);
  letter-spacing: 1px;
}
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color .4s, background .3s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav.scrolled .nav-links a { color: var(--clr-text-muted); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--clr-gold); background: var(--clr-gold-dim); }

/* nav order button */
.nav-cta {
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--clr-gold), #96762e);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  white-space: nowrap;
  margin-left: 8px;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168,134,58,.3);
  color: #fff;
}

/* hamburger */
.nav-toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--clr-text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/cropped-maew-mum-colour.jpg') center/cover no-repeat;
  transform: scale(1.08);
  animation: heroSlow 25s ease-in-out infinite alternate;
}
@keyframes heroSlow {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44,38,32,.3) 0%,
    rgba(44,38,32,.55) 50%,
    rgba(250,248,244,.98) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}
.hero-content .hero-logo {
  max-width: 280px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.35));
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content .hero-tag {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-content .hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 16px; line-height: 1.8;
  margin-bottom: 40px;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; border-radius: 6px;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--clr-gold), #96762e);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168,134,58,.3);
  color: #fff;
}
.btn-outline {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--clr-gold-dim);
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

/* scroll indicator */
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: bounce 2.5s ease infinite;
}
.hero-scroll svg { width: 28px; height: 28px; stroke: var(--clr-gold); opacity: .6; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(14px); }
}

/* ---------- Intro ---------- */
.intro { padding: var(--section-pad) 0; }

/* ---------- Food Gallery Parallax Band ---------- */
.food-band {
  line-height: 0;
}
.food-band img {
  width: 100%;
  display: block;
}

/* ---------- Our Food Section ---------- */
.food-section { padding: var(--section-pad) 0; }
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.food-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.1);
}
.food-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.food-image:hover img { transform: scale(1.05); }
.food-text blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--clr-gold);
  border-left: 2px solid var(--clr-gold);
  padding-left: 24px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.food-text p {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ---------- Ma Rew Story ---------- */
.story-section {
  padding: var(--section-pad) 0;
  background: var(--clr-bg-warm);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.story-grid.reverse { direction: rtl; }
.story-grid.reverse > * { direction: ltr; }
.story-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.1);
}
.story-image img {
  width: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.story-image:hover img { transform: scale(1.04); }
.story-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--clr-heading);
  margin-bottom: 8px;
}
.story-text .story-rule {
  width: 40px; height: 1px;
  background: var(--clr-gold);
  margin-bottom: 24px;
}
.story-text p {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ---------- Menu Section ---------- */
.menu-section { padding: var(--section-pad) 0; }
.menu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.menu-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-gold);
  box-shadow: 0 12px 40px rgba(168,134,58,.1);
}
.menu-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  stroke: var(--clr-gold); fill: none;
}
.menu-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--clr-heading);
  margin-bottom: 10px;
}
.menu-card p {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}
.menu-card .btn { width: 100%; justify-content: center; }

/* ---------- Contact / Info ---------- */
.contact-section {
  padding: var(--section-pad) 0;
  background: var(--clr-bg-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-gold);
  box-shadow: 0 8px 30px rgba(168,134,58,.08);
}
.contact-icon {
  width: 40px; height: 40px;
  stroke: var(--clr-gold); fill: none;
  margin: 0 auto 16px;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400;
  color: var(--clr-heading);
  margin-bottom: 8px;
}
.contact-card p, .contact-card a {
  font-size: 14px; color: var(--clr-text-muted);
}
.contact-card a { color: var(--clr-gold); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 48px 0 32px;
  background: var(--clr-bg-warm);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 14px;
}
.footer-col p {
  color: var(--clr-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer-col a { color: var(--clr-gold); font-size: 14px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
  text-align: center;
  font-size: 12px;
  color: var(--clr-text-muted);
  opacity: .5;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(250,248,244,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s ease, opacity .3s;
    border-bottom: 1px solid var(--clr-border);
    margin-left: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    padding: 14px 0; font-size: 14px;
    color: var(--clr-text-muted);
  }
  .nav-links a:hover { color: var(--clr-gold); background: none; }
  .nav-links a.active { color: var(--clr-gold); background: none; }
  .nav-toggle { display: flex; }

  /* show Order Takeaway button left of hamburger */
  .nav-cta {
    display: inline-flex;
    margin-right: 12px;
  }

  /* food image below text on mobile */
  .food-grid { grid-template-columns: 1fr; }
  .food-image { order: 2; }
  .food-text { order: 1; }

  .story-grid { grid-template-columns: 1fr; }
  .story-grid.reverse { direction: ltr; }

  .menu-cards { grid-template-columns: 1fr; max-width: 380px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 36px; }
  .hero-content .hero-logo { max-width: 200px; }
}
