/* Changarro & Pupuseria — spec demo shell
   Plain CSS, no framework. Fonts: Anton (display) + Manrope (body),
   per the El Pueblo replication playbook.
   Layout intent checked at two viewports:
     390x844  phone  — single column, sticky call bar, hero 4/3
     1440x900 desktop — 1240px container, hero 16/9, 3-col gallery,
                        2-col menu, 3-col visit grid
   Mobile-first: base rules are the phone layout; min-width queries
   layer the desktop layout on top. */

:root {
  --ink: #221a14;
  --ink-soft: #57493c;
  --paper: #faf5ec;
  --paper-warm: #f3e9d7;
  --accent: #b3401e;        /* terracotta red */
  --accent-dark: #8c2f13;
  --gold: #d99a2b;
  --line: #e0d3bc;
  --slot-bg: #efe6d3;
  --max: 1240px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 76px; /* room for the mobile call bar */
}

a { color: var(--accent-dark); }

/* ---------- Preview marker ---------- */

.preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  font-size: 0.82rem;
}

.preview-tag {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.preview-text { opacity: 0.92; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
}

.wordmark {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark .amp { color: var(--accent); }

.site-nav { display: none; } /* phone: nav hidden, call button carries the header */

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 26px;
}

.site-nav a:hover { color: var(--accent); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { border-color: #fff; }

.btn-order {
  background: var(--paper-warm);
  color: var(--ink-soft);
  border-color: var(--line);
  border-style: dashed;
}

.btn-wide { width: 100%; }

.header-call { padding: 9px 18px; font-size: 0.92rem; }

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

.hero-media {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  aspect-ratio: 4 / 3;             /* phone intent at 390 wide */
  max-height: 82vh;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
}

/* Both layers fill the wrapper, so swapping the placeholder for the
   film later changes nothing about the layout. */
.hero-video,
.hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video { object-fit: cover; }

.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #3a2c1e, #221a14);
  color: var(--paper-warm);
}

.slot-label {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  border: 2px dashed var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
}

.slot-note { font-size: 0.85rem; opacity: 0.8; max-width: 34ch; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 13, 8, 0.12) 40%, rgba(20, 13, 8, 0.66));
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 28px;
  color: #fff;
}

.hero-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.motion-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(20, 13, 8, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.hero-facts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hero-facts a { color: var(--accent-dark); text-decoration: none; }
.hero-facts .dot { color: var(--gold); }

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px 8px;
}

.section-head h2 {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-head p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Gallery slots ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;      /* phone: one slot per row */
  gap: 20px;
  margin-top: 26px;
}

.slot { display: block; }

.slot-box {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(34, 26, 20, 0.045) 0 12px, transparent 12px 24px),
    var(--slot-bg);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.slot-box .slot-label {
  color: var(--ink-soft);
  border-color: var(--ink-soft);
  font-size: 0.8rem;
}

.slot figcaption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Captured photos replace .slot-box with an img.slot-img of the
   same aspect ratio, so the grid never moves. */
.slot-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Portrait captures in 4/3 slots: shift the cover crop window so
   signage in the upper part of the frame stays readable. */
.slot-img.obj-top { object-position: center 18%; }
.slot-img.obj-upper { object-position: center 36%; }

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

.menu { padding-bottom: 16px; }

.menu-list {
  list-style: none;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}

.menu-item .dish {
  font-family: "Anton", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.menu-item .dish-alt {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* No price element exists in the shell by design. The finished build
   adds a .price span here once the real menu is confirmed. */

.menu-note {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 26px;
}

.visit-block h3 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.visit-block address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hours-line { color: var(--ink-soft); font-weight: 600; }
.hours-line.hours-gap { margin-top: 12px; }
.hours-time { font-size: 1.3rem; font-weight: 800; }
.hours-note { color: var(--ink-soft); font-size: 0.92rem; }

.visit-actions .btn { margin-bottom: 10px; }

.order-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 28px 20px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-name { font-weight: 700; color: var(--ink); }
.footer-demo { margin-top: 6px; }

/* ---------- Mobile sticky call bar ---------- */

.mobile-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, 0.96);
  border-top: 1px solid var(--line);
}

/* ---------- Desktop layout: 1440x900 intent ---------- */

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-list { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-callbar { display: none; }
  .site-nav { display: block; }
  .site-header { padding: 20px 24px; }
  .wordmark { font-size: 1.45rem; }

  .hero-media {
    aspect-ratio: 16 / 9;          /* desktop intent at 1440 wide */
    border-radius: var(--radius);
  }

  .hero-content { padding: 40px 44px 44px; }
  .hero-title { font-size: clamp(3.4rem, 6vw, 5.2rem); }

  .section { padding: 72px 24px 8px; }
  .section-head h2 { font-size: 2.6rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
