/* Stage Coach Family Restaurant — demo
   60/30/10 colour rule (Zain): 60% warm cream #FBF3E4 (backgrounds, large surfaces),
   30% deep diner green #1F4D3A (cards, sections, secondary surfaces),
   10% cherry red #C0392B (ONE accent: buttons, CTAs, highlights, links). */

:root {
  --cream: #FBF3E4;
  --cream-2: #F7ECD4;
  --green: #1F4D3A;
  --green-deep: #14382A;
  --red: #C0392B;
  --red-dark: #A93226;
  --ink: #2B2118;
  --muted: #6B5B49;
  --card: #FFFFFF;
  --line: #E3D5B8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 33, 24, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Libre Franklin", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--red); }
h1, h2, h3 { font-family: "Archivo Black", "Libre Franklin", sans-serif; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .35rem 0 .6rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 800;
  font-size: .78rem; color: var(--red);
}
.section-lede { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 36px; }

/* Demo badge */
.demo-badge {
  background: var(--green-deep); color: var(--cream);
  text-align: center; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px;
}

/* Header — green 30% band on cream */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green); color: var(--cream);
  box-shadow: 0 4px 18px rgba(20, 56, 42, .25);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; }
.brand-text span { font-size: .72rem; opacity: .85; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: var(--cream); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; font-size: .95rem;
}
.main-nav a:hover { background: rgba(251, 243, 228, .16); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* Buttons — red accent (10%) only */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 800; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-size: 1rem; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-dark); }
.btn-accent:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: rgba(192, 57, 43, .08); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* Hero — cream 60% */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); margin: .4rem 0 1rem; }
.hero h1 span { color: var(--red); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.trust-line { margin: 22px 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { color: var(--red); letter-spacing: .08em; font-size: 1.25rem; }
.stars .star-part { opacity: .4; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.open-now { margin-top: 18px; font-weight: 700; color: var(--green); }
.open-now::before { content: "● "; color: var(--red); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow); }
.hero-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; background: var(--green);
  color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem;
}
.hero-strip {
  margin-top: 56px; background: var(--green); color: var(--cream);
  padding: 14px 0; text-align: center; font-weight: 700; letter-spacing: .04em;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* Menu — cream with white cards */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.menu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.menu-card:hover { transform: translateY(-4px); }
.menu-card img { width: 100%; height: 210px; object-fit: cover; border-radius: 0; }
.menu-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card h3 { font-size: 1.25rem; }
.menu-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.menu-price { font-weight: 800; color: var(--red); }
.menu-tag {
  display: inline-block; align-self: flex-start; background: var(--cream-2);
  color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.add-btn { margin-top: 6px; align-self: flex-start; }
.menu-note { margin-top: 26px; color: var(--muted); font-size: .92rem; }

/* Order section — green 30% band */
.order-section { background: var(--green); color: var(--cream); }
.order-section .eyebrow { color: #F5C9A8; }
.order-section h2 { color: var(--cream); }
.order-section .section-lede { color: rgba(251, 243, 228, .82); }
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.step {
  background: rgba(251, 243, 228, .08); border: 1px solid rgba(251, 243, 228, .22);
  border-radius: var(--radius); padding: 20px;
}
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { font-size: .95rem; opacity: .88; }
.order-demo { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.qr-card {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.qr-card canvas { margin: 0 auto; display: block; border: 6px solid #fff; border-radius: 12px; }
.qr-label { font-weight: 800; margin-top: 12px; }
.qr-hint { color: var(--muted); font-size: .92rem; margin: 6px 0 16px; }
.view-toggle { display: flex; gap: 8px; justify-content: center; }
.toggle-btn {
  border: 2px solid var(--green); background: transparent; color: var(--green);
  font-weight: 800; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem;
}
.toggle-btn.active { background: var(--green); color: var(--cream); }
.order-panel {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); min-height: 320px;
}
.order-panel h3 { margin-bottom: 14px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; min-height: 64px; }
.cart-empty { color: var(--muted); }
.cart-item {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.cart-item span { flex: 1; font-weight: 600; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--green);
  background: #fff; color: var(--green); font-weight: 800; cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-weight: 700; }
.demo-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }

/* Tracker */
.tracker { margin-top: 22px; border-top: 2px dashed var(--line); padding-top: 18px; }
.tracker-title { font-size: 1.05rem; }
.tracker-steps { list-style: none; display: flex; gap: 6px; margin: 16px 0 10px; flex-wrap: wrap; }
.tracker-steps li {
  flex: 1; min-width: 76px; text-align: center; font-size: .85rem; font-weight: 700;
  padding: 10px 4px; border-radius: 999px; background: var(--cream-2); color: var(--muted);
  border: 2px solid transparent;
}
.tracker-steps li.done { background: var(--green); color: var(--cream); }
.tracker-steps li.current { background: var(--red); color: #fff; border-color: var(--red-dark); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.tracker-note { color: var(--muted); }
.tracker .btn { margin-top: 14px; }

/* Kitchen panel */
.ticket { background: #fff; border: 2px solid var(--green); border-radius: 12px; padding: 18px; }
.ticket-empty { color: var(--muted); }
.ticket-head { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 8px; }
.ticket ul { list-style: none; margin: 8px 0 14px; }
.ticket li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-actions .btn { padding: 9px 16px; font-size: .9rem; }

/* Visit — cream, hours card green */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.visit-grid address { font-style: normal; font-size: 1.15rem; margin: 14px 0 20px; line-height: 1.7; }
.visit-extra { color: var(--muted); margin-top: 16px; }
.hours-card { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hours-card h3 { margin-bottom: 14px; }
.hours-list div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(251, 243, 228, .25);
}
.hours-list dt { font-weight: 700; }
.hours-card .open-now { color: var(--cream); margin-top: 16px; }
.visit-photo { grid-column: 1 / -1; }
.visit-photo img { width: 100%; height: 340px; object-fit: cover; }

/* Reviews */
.reviews-section { background: var(--cream-2); text-align: center; }
.reviews-section .section-lede { margin: 0 auto; }
.rating-big { margin: 26px 0 10px; }
.rating-num { font-family: "Archivo Black", sans-serif; font-size: 4rem; color: var(--green); display: block; line-height: 1; }
.stars.big { font-size: 2rem; }
.reviews-note { color: var(--muted); max-width: 560px; margin: 12px auto 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 12px;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); word-break: break-word; }
.demo-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; max-width: 640px; box-shadow: var(--shadow);
}
.demo-form h3 { margin-bottom: 16px; }
.demo-tag {
  font-family: "Libre Franklin", sans-serif; font-size: .72rem; background: var(--cream-2);
  color: var(--green); padding: 4px 10px; border-radius: 999px; vertical-align: middle; letter-spacing: .06em;
}
.demo-form label { display: block; font-weight: 700; margin-bottom: 14px; }
.demo-form input, .demo-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; font: inherit; background: var(--cream);
}
.demo-form input:focus, .demo-form textarea:focus { outline: 3px solid rgba(192, 57, 43, .35); border-color: var(--red); }
.form-confirm { margin-top: 14px; color: var(--green); font-weight: 700; }

/* Footer — green deep */
.site-footer { background: var(--green-deep); color: var(--cream); padding: 40px 0; }
.site-footer a { color: #F5C9A8; }
.footer-inner p { margin-bottom: 10px; }
.footer-note { font-size: .88rem; opacity: .8; }

/* Reveal animation (JS adds .in) */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo img { height: 320px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .order-steps { grid-template-columns: repeat(2, 1fr); }
  .order-demo { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--green); flex-direction: column; padding: 12px 20px 18px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner .btn-sm { display: none; }
  .section { padding: 60px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .tracker-steps li.current { animation: none; }
  * { transition: none !important; }
}

/* Plating animation — before → after (cream section, green stage card) */
.plating-section { background: var(--cream-2); }
.plating-stage {
  background: var(--green); color: var(--cream); border-radius: var(--radius);
  padding: 30px 30px 26px; box-shadow: var(--shadow); text-align: center;
}
.plating-progress { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.plating-dot {
  font-weight: 800; font-size: .88rem; padding: 8px 16px; border-radius: 999px;
  background: rgba(251, 243, 228, .12); color: rgba(251, 243, 228, .75);
  border: 2px solid transparent;
}
.plating-dot.active { background: var(--red); color: #fff; }
.plating-svg { width: 100%; max-width: 800px; height: auto; margin: 0 auto; display: block; }
.plating-caption { margin: 6px 0 18px; font-size: 1.05rem; color: rgba(251, 243, 228, .9); }

/* Reserved ad-creative space — 16:9, cream/green/red 60-30-10 */
.adspace-section { background: var(--cream); }
.ad-space {
  background: var(--green); border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 16 / 9;
  display: grid; place-items: center; padding: 24px;
  border: 3px dashed rgba(251, 243, 228, .55); color: var(--cream);
  text-align: center;
}
.ad-space-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ad-space-badge {
  background: var(--red); color: #fff; font-weight: 800; letter-spacing: .18em;
  font-size: .8rem; padding: 7px 16px; border-radius: 999px;
}
.ad-space-title { font-family: "Archivo Black", sans-serif; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.25; }
.ad-space-note { color: rgba(251, 243, 228, .85); font-size: 1rem; max-width: 520px; }
.ad-space-ratio {
  font-weight: 800; letter-spacing: .2em; font-size: .85rem;
  border: 2px solid rgba(251, 243, 228, .5); padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 900px) {
  .ad-space { aspect-ratio: 16 / 10; }
}

/* Embedded map — green frame on cream, visible without clicking */
.visit-map { grid-column: 1 / -1; }
.visit-map iframe {
  width: 100%; height: 380px; border: 4px solid var(--green);
  border-radius: var(--radius); display: block; background: var(--cream-2);
}
.visit-map figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
