/* Sài Gòn Restaurant Ngọc Anh
   Colors come from the printed menu: crimson banners, gold lotus, cream paper. */

:root {
  color-scheme: light;

  --crimson: #8e1b1f;
  --crimson-deep: #641115;
  --crimson-soft: #f6e4df;
  --gold: #c9973f;
  --gold-light: #ecd08f;
  --gold-deep: #8a6420;
  --cream: #fbf5ea;
  --ivory: #fffdf8;
  --ink: #2b1b17;
  --muted: #6c5a52;
  --line: #eadcc6;
  --veg: #2f6b3a;
  --veg-soft: #e3f0e2;

  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --header-h: 68px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(60, 20, 10, .06), 0 2px 8px rgba(60, 20, 10, .05);
  --shadow-md: 0 6px 24px rgba(60, 20, 10, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--crimson); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-gold { background: var(--gold); color: #2b1a05; }
.btn-gold:hover { background: var(--gold-light); }
.btn-light { background: var(--ivory); color: var(--crimson-deep); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-crimson { background: var(--crimson); color: #fff; }
.btn-crimson:hover { background: var(--crimson-deep); }
.btn-outline { border-color: var(--crimson); color: var(--crimson); background: transparent; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--crimson-deep);
  color: #fff;
  box-shadow: 0 2px 12px rgba(40, 5, 5, .25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--gold-light); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.05rem var(--font-display); letter-spacing: .01em; }
.brand-sub { font-size: .8rem; color: var(--gold-light); letter-spacing: .12em; text-transform: uppercase; }

.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { color: #fff; text-decoration: none; font-weight: 500; opacity: .9; }
.header-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201, 151, 63, .28), transparent 55%),
    linear-gradient(160deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: #fff;
  text-align: center;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ecd08f' stroke-width='1.5'%3E%3Cpath d='M40 10c10 10 10 20 0 30-10-10-10-20 0-30zM40 40c10 10 10 20 0 30-10-10-10-20 0-30zM10 40c10-10 20-10 30 0-10 10-20 10-30 0zM40 40c10-10 20-10 30 0-10 10-20 10-30 0z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; padding-top: 64px; padding-bottom: 72px; }

.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px;
  border: 1px solid rgba(236, 208, 143, .5); border-radius: 999px;
  color: var(--gold-light); font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.hero-title { font-family: var(--font-display); font-weight: 700; }
.hero-title-top { display: block; font-size: clamp(1.6rem, 5vw, 2.6rem); }
.hero-title-name {
  display: block; font-size: clamp(3.2rem, 13vw, 6.25rem); line-height: 1.05;
  color: var(--gold-light);
}
.hero-tagline {
  margin-top: 14px; font: italic 600 clamp(1.1rem, 3.4vw, 1.4rem) var(--font-display);
  color: #fff;
}
.hero-lede { max-width: 38rem; margin: 16px auto 0; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin: 0 auto 36px; text-align: center; }
.section-head h2, .visit-info h2 { font: 700 clamp(2rem, 5vw, 2.6rem) var(--font-display); color: var(--crimson-deep); }
.section-head p:last-child { margin-top: 12px; color: var(--muted); }
.section-kicker {
  margin-bottom: 6px; color: var(--gold-deep);
  font-weight: 600; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Made for sharing cards ---------- */

.favorite-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.favorite-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 22px 22px; min-height: 180px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.favorite-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}
.favorite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.favorite-vi { font: 700 1.35rem var(--font-display); color: var(--crimson-deep); }
.favorite-en { color: var(--muted); }
.favorite-price { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 1.15rem; color: var(--crimson); }
.favorite-price small { font-weight: 500; font-size: .85rem; color: var(--muted); }

/* ---------- Menu ---------- */

.menu-section { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.menu-tools {
  position: sticky; top: var(--header-h); z-index: 40;
  padding: 12px 0;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.search-wrap { position: relative; max-width: 560px; margin: 0 auto 10px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
#menuSearch {
  width: 100%; min-height: 48px; padding: 10px 16px 10px 46px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: 400 1rem var(--font-body); color: var(--ink);
}
#menuSearch:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 151, 63, .25); }

.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px;
  scrollbar-width: none; justify-content: flex-start;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 40px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 .95rem var(--font-body); color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--crimson); border-color: var(--crimson); color: #fff; }

.menu-status { min-height: 1.6em; margin: 18px 0 6px; color: var(--muted); font-size: .95rem; text-align: center; }

.menu-category { margin-top: 28px; }
.category-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--crimson);
}
.category-head h3 { font: 700 1.6rem var(--font-display); color: var(--crimson-deep); }
.category-en { display: inline-block; margin-left: 6px; font: 500 1rem var(--font-body); color: var(--muted); }
.category-note { font-size: .9rem; color: var(--gold-deep); font-weight: 500; }

.dish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.dish {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dish:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.dish-vi { font-weight: 600; font-size: 1.08rem; }
.dish-en { color: var(--muted); font-size: .95rem; }
.dish-note { margin-top: 2px; color: var(--muted); font-size: .85rem; font-style: italic; }
.dish-price { text-align: right; font-weight: 700; font-size: 1.1rem; color: var(--crimson); white-space: nowrap; }
.dish-unit { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }

.tag {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.tag-veg { background: var(--veg-soft); color: var(--veg); }

.menu-empty {
  margin: 32px auto 0; max-width: 30rem; padding: 28px; text-align: center;
  background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius);
}
.menu-empty p + p { margin-top: 6px; color: var(--muted); }
.menu-footnote { margin-top: 32px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- How to order ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  padding: 28px 24px; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--crimson); color: var(--gold-light);
  font: 700 1.3rem var(--font-display);
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
.order-cta { margin-top: 32px; text-align: center; }

/* ---------- Visit ---------- */

.visit-section { background: var(--crimson-soft); }
.visit-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.visit-list { margin: 22px 0 0; display: grid; gap: 16px; }
.visit-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.visit-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.visit-list a { font-weight: 600; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 4px solid #fff;
  box-shadow: var(--shadow-md); background: var(--line);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Thanks + footer ---------- */

.thanks { padding: 56px 0; text-align: center; background: var(--cream); }
.thanks-mark { width: 52px; height: 52px; margin: 0 auto 12px; color: var(--gold); }
.thanks-vi { font: italic 600 clamp(1.25rem, 4vw, 1.6rem) var(--font-display); color: var(--crimson-deep); }
.thanks-en { margin-top: 6px; color: var(--muted); }

.site-footer { background: var(--crimson-deep); color: rgba(255, 255, 255, .85); padding: 32px 0; font-size: .95rem; }
.site-footer a { color: var(--gold-light); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.footer-name { font: 700 1.15rem var(--font-display); color: #fff; margin-bottom: 4px; }
.footer-credit { font-size: .88rem; }

/* ---------- Toast (desktop phone-link message) ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 24px; border-radius: 14px;
  background: var(--ink); color: #fff; text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast strong { font-size: 1.1rem; }
.toast span { font-size: .88rem; color: var(--gold-light); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile quick-action bar ---------- */

.mobile-bar { display: none; }

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .header-nav { display: none; }
  .header-call { margin-left: auto; padding: 8px 12px; }
  .header-call span { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: .98rem; }

  .hero-inner { padding-top: 44px; padding-bottom: 52px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }

  .dish { padding: 14px 14px; }
  .favorite-card { min-height: 0; padding: 22px 20px 18px; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ivory); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(60, 20, 10, .1);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 64px; color: var(--crimson-deep); text-decoration: none; font-size: .82rem; font-weight: 600;
  }
  .mobile-bar .icon { width: 22px; height: 22px; }
  .mobile-bar-call { background: var(--crimson); color: #fff !important; }
}

@media (min-width: 768px) {
  .dish-list { grid-template-columns: 1fr 1fr; }
  .chip-row { justify-content: center; flex-wrap: wrap; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
