/* ===== Cafe Trang Bistro — redesign proposal ===== */

:root {
  --ink: #1b1613;
  --ink-soft: #2c2521;
  --cream: #faf3e6;
  --cream-dim: #f1e6d3;
  --paper: #fffaf2;
  --chili: #c62e2e;
  --chili-dark: #9c2222;
  --gold: #d9a441;
  --text: #2a2320;
  --text-muted: #6b5f56;
  --border: rgba(27, 22, 19, 0.12);
  --shadow: 0 20px 45px -20px rgba(27, 22, 19, 0.35);
  --radius: 18px;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 14px;
}
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: var(--chili-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost.on-dark { border-color: rgba(250,243,230,0.5); color: var(--cream); }
.btn-ghost.on-dark:hover { background: var(--cream); color: var(--ink); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* Badges */
.badge-gf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 6px;
}

/* ===== Proposal banner ===== */
.proposal-banner {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
}
.proposal-banner strong { font-weight: 800; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 230, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand span { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chili); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--chili); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .nav-cta .btn span.full { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  color: var(--chili);
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-tags span {
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
}
.hero-media {
  position: relative;
}
.hero-media img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--ink);
  width: 100%;
  height: auto;
}
.hero-float {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-float strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.hero-float small { font-size: 0.78rem; color: rgba(250,243,230,0.75); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-float { left: 12px; bottom: -18px; }
}

/* ===== Category strip ===== */
.category-strip {
  background: var(--ink);
  padding: 26px 0;
}
.category-strip .container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-strip .container::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250,243,230,0.25);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
}
.chip:hover { background: var(--chili); border-color: var(--chili); }

/* ===== Gallery / signature dishes ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.g-1 { grid-column: span 3; grid-row: span 3; }
.g-2 { grid-column: span 3; grid-row: span 2; }
.g-3 { grid-column: span 2; grid-row: span 2; }
.g-4 { grid-column: span 2; grid-row: span 2; }
.g-5 { grid-column: span 2; grid-row: span 2; }
.g-6 { grid-column: span 3; grid-row: span 2; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6 { grid-column: span 1; grid-row: span 2; }
}

/* ===== Story / about ===== */
.story {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.story .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.story img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 20px 0;
  font-style: italic;
}
@media (max-width: 860px) {
  .story .container { grid-template-columns: 1fr; }
}

/* ===== Locations ===== */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.loc-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loc-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.loc-meta { color: var(--text-muted); font-size: 0.92rem; }
.loc-meta strong { color: var(--text); display: block; font-weight: 600; }
.loc-hours { font-size: 0.88rem; color: var(--text-muted); }
.loc-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.loc-hours div:last-child { border-bottom: none; }
.loc-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.loc-phone {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--chili);
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: rgba(250,243,230,0.75); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(250,243,230,0.8);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,243,230,0.15);
}
.footer-grid h4 { color: var(--cream); font-size: 1rem; margin-bottom: 16px; }
.footer-grid .brand { color: var(--cream); margin-bottom: 12px; }
.footer-grid p { font-size: 0.92rem; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250,243,230,0.55);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Menu page ===== */
.menu-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 40px;
  text-align: center;
}
.menu-hero h1 { color: var(--cream); }
.menu-hero p { color: rgba(250,243,230,0.75); max-width: 560px; margin: 0 auto; }
.menu-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  background: rgba(250,243,230,0.08);
  border: 1px solid rgba(250,243,230,0.2);
  padding: 8px 16px;
  border-radius: 999px;
}
.menu-nav {
  position: sticky;
  top: 65px;
  z-index: 90;
  background: var(--cream-dim);
  border-bottom: 1px solid var(--border);
}
.menu-nav .container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.menu-nav .container::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--paper);
}
.menu-nav a:hover { color: var(--chili); border-color: var(--chili); }

.menu-section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.menu-section:last-of-type { border-bottom: none; }
.menu-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.menu-section-head h2 { margin-bottom: 0; }
.menu-note { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }

.menu-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.menu-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .menu-cols, .menu-cols.cols-3 { grid-template-columns: 1fr; }
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 1.02rem;
}
.menu-list li:last-child { border-bottom: none; }
.menu-list .item-name { font-weight: 600; }
.menu-list .item-sub { color: var(--text-muted); font-size: 0.85rem; display: block; font-weight: 400; }

.build-steps { display: flex; flex-direction: column; gap: 26px; }
.build-step { display: flex; gap: 18px; }
.step-num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--serif);
}
.step-body h4 { margin-bottom: 6px; font-size: 1.05rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border);
}

.menu-photo-note {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.menu-photo-note img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.menu-photo-note p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Locations page */
.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 44px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); }
.page-hero p { color: rgba(250,243,230,0.75); max-width: 560px; margin: 0 auto; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
