/* ============================================================
   SALEM'S MARKET & GRILL — "Spice Route" design system
   Warm bazaar editorial: terracotta, saffron, pomegranate on sand.
   Edit the tokens below to re-theme the whole site.
   ============================================================ */

:root {
  /* Color tokens */
  --sand:        #FAF3E7;   /* page background */
  --sand-deep:   #F1E4CE;   /* alternating band */
  --cream:       #FFFBF2;   /* cards */
  --terracotta:  #B9472A;   /* primary action */
  --terracotta-d:#96371F;   /* primary hover */
  --saffron:     #E8A33D;   /* accent */
  --saffron-soft:#F6DFB7;   /* accent wash */
  --pomegranate: #6E1D28;   /* deep accent, footer */
  --pom-deep:    #571520;   /* footer gradient end */
  --ink:         #2B1F1A;   /* headings/text */
  --ink-soft:    #5F5048;   /* muted text */
  --line:        rgba(43, 31, 26, 0.14);

  /* Type */
  --font-display: "Young Serif", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(43, 31, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 31, 26, 0.16);
  --container: 1180px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1.1em; }
.muted { color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; z-index: 2000; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eight-point star divider ---------- */
.star-rule {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 18px; color: var(--terracotta);
}
.star-rule::before, .star-rule::after {
  content: ""; height: 1px; flex: 0 0 44px; background: currentColor; opacity: .45;
}
.star-rule svg { width: 16px; height: 16px; flex: none; }
.star-rule .kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--terracotta);
}
.star-rule.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 243, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(43,31,26,.08); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 24px; max-width: 1340px; margin: 0 auto;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1;
}
.brand .brand-est {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terracotta);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.94rem;
  padding: 10px 13px; border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.main-nav > a:hover { background: var(--sand-deep); }
.main-nav > a[aria-current="page"] { color: var(--terracotta); }

.nav-group { position: relative; }
.nav-group > button {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 0.94rem;
  color: var(--ink); background: none; border: 0;
  padding: 10px 13px; border-radius: 10px; cursor: pointer;
}
.nav-group > button:hover { background: var(--sand-deep); }
.nav-group > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-group.open > button svg { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 1001;
}
.nav-group.open .nav-drop { display: block; }
.nav-drop a {
  display: block; padding: 11px 14px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem;
}
.nav-drop a:hover { background: var(--saffron-soft); }
.nav-drop a span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  padding: 14px 26px; border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-d); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--sand); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #d99327; }
.btn svg { width: 16px; height: 16px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; min-height: 44px; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 12px; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--sand-deep); }
.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 1500;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .drawer-scrim {
  position: absolute; inset: 0; background: rgba(43, 31, 26, 0.55);
}
.mobile-drawer .drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--sand); padding: 22px; overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-panel a {
  display: block; padding: 13px 12px; text-decoration: none;
  color: var(--ink); font-weight: 600; border-radius: 10px; font-size: 1.02rem;
}
.drawer-panel a:hover { background: var(--sand-deep); }
.drawer-panel .drawer-label {
  margin: 18px 12px 4px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta);
}
.drawer-panel .btn { width: 100%; margin-top: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--pomegranate); color: var(--sand);
  padding: clamp(84px, 12vw, 150px) 0 clamp(56px, 8vw, 96px);
}
.page-hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.34;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,21,26,.25) 0%, rgba(67,18,28,.72) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: rgba(255, 248, 236, .92); }
.page-hero .star-rule { color: var(--saffron); }
.page-hero .star-rule .kicker { color: var(--saffron); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(255,248,236,.75); position: relative; z-index: 2; }
.breadcrumbs a { color: rgba(255,248,236,.9); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--saffron); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: 0 2px 10px rgba(43,31,26,.04);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--saffron-soft); color: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
}
.card .card-icon svg { width: 26px; height: 26px; }

.photo-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 10px rgba(43,31,26,.05);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.photo-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photo-card .photo-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.photo-card .photo-body .btn, .photo-card .photo-body .text-link { margin-top: auto; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--terracotta); text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 15px; height: 15px; }

.band { background: var(--sand-deep); }
.band-dark { background: var(--pomegranate); color: var(--sand); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: rgba(255, 248, 236, 0.78); }

/* ---------- Quick answer / AEO blocks ---------- */
.quick-answer {
  background: var(--saffron-soft); border-left: 5px solid var(--saffron);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin: 0 0 34px;
}
.quick-answer strong { font-weight: 800; }
.quick-answer p:last-child { margin-bottom: 0; }

.facts-table { width: 100%; border-collapse: collapse; margin: 0 0 34px; }
.facts-table th, .facts-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts-table th { width: 34%; font-weight: 700; white-space: nowrap; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-wrap {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px;
}
.facts-wrap .facts-table { margin: 0; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-note {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: var(--saffron-soft); font-size: 0.92rem;
}

/* ---------- Notice banner (renovation etc.) ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #FDEBDD; border: 1px solid rgba(185, 71, 42, .35);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--terracotta); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 22px 4px; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-item button svg { width: 18px; height: 18px; flex: none; color: var(--terracotta); transition: transform .25s ease; }
.faq-item.open button svg { transform: rotate(45deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item .faq-a p { padding: 0 4px 22px; margin: 0; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field label .req { color: var(--terracotta); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 13px 15px; min-height: 48px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--saffron); outline: 3px solid rgba(232, 163, 61, .35); outline-offset: 0;
}
.form-help { font-size: 0.84rem; color: var(--ink-soft); }
.form-success {
  display: none; background: #EAF3E4; border: 1px solid #9CBA8A;
  border-radius: var(--radius); padding: 20px 24px; margin-top: 18px;
}
.form-success.show { display: block; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote-card .stars { color: var(--saffron); display: flex; gap: 3px; }
.quote-card .stars svg { width: 17px; height: 17px; }
.quote-card blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: 1.12rem; line-height: 1.45;
}
.quote-card cite { font-style: normal; font-size: 0.9rem; color: var(--ink-soft); margin-top: auto; }
.quote-card cite strong { color: var(--ink); display: block; font-size: 0.97rem; }

/* ---------- Press ---------- */
.press-item {
  display: flex; gap: 22px; align-items: baseline;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
}
.press-item .press-year {
  flex: none; width: 64px; font-weight: 800; color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}
.press-item h3 { font-size: 1.18rem; margin: 0 0 4px; }
.press-item .press-outlet { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Stats / counters ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--terracotta); line-height: 1; font-variant-numeric: tabular-nums;
}
.band-dark .stat .stat-num { color: var(--saffron); }
.stat .stat-label { margin-top: 10px; font-size: 0.95rem; color: inherit; }

/* ---------- Order frames (Toast / Uber Eats) ---------- */
.order-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.order-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--saffron); }
.order-card .order-tag {
  align-self: flex-start; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--saffron-soft); color: var(--terracotta);
  border-radius: 999px; padding: 6px 13px;
}
.order-card h3 { margin: 6px 0 2px; }

/* ---------- Menu ---------- */
.menu-section { margin-bottom: 46px; }
.menu-section h3 {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.menu-section h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-item { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .menu-name { font-weight: 700; }
.menu-item .menu-desc { font-size: 0.92rem; color: var(--ink-soft); margin: 2px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--pomegranate) 0%, var(--pom-deep) 100%);
  color: rgba(255, 248, 236, 0.88); margin-top: 0;
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px; padding: clamp(56px, 7vw, 84px) 0 44px;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer .brand-name { font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 248, 236, 0.88); text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(255, 248, 236, 0.18);
  padding: 22px 0; font-size: 0.85rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255, 248, 236, 0.6);
}
.footer-star { color: var(--saffron); margin: 0 6px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .photo-card:hover, .order-card:hover { transform: none; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-outline { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .press-item { flex-direction: column; gap: 6px; }
  .press-item .press-year { width: auto; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
