/* Pupusería La Bendición — tokens: --bg parchment, --ink charcoal, --accent terracotta. */

:root {
  --bg: #FAF4E9;
  --ink: #292420;
  --ink-soft: #5E554A;
  --accent: #BC5233;
  --accent-deep: #93391F;
  --line: #E7DAC4;
  --card: #FFFDF8;
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
h1 em, .brand-name em, .footer-brand em { font-style: italic; font-weight: 500; color: var(--accent); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1em; }
a { color: inherit; }
img, svg { display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 233, 0.95);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--accent-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.btn-primary { background: var(--accent); color: #FFF8EE; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.btn-full { width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-comal { width: 92px; height: 92px; color: var(--accent); margin: 0 auto 26px; }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 36rem; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 16px; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- comal divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  color: var(--accent);
}
.divider .rule { flex: 1; height: 1px; background: var(--line); }
.divider .rule:first-child { margin-left: max(24px, calc((100vw - var(--maxw)) / 2)); }
.divider .rule:last-child { margin-right: max(24px, calc((100vw - var(--maxw)) / 2)); }
.divider-comal { width: 46px; height: 46px; flex: none; }

/* ---------- menu ---------- */
.menu { padding: 64px 0; }
.section-head { max-width: 560px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.tablist {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 8px;
  overflow-x: auto;
}
.tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-deep); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabpanel { padding: 18px 0 8px; }
.menu-list { list-style: none; }
.menu-list li { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: none; }
.menu-row { display: flex; align-items: baseline; gap: 12px; }
.menu-row h3 { font-weight: 600; }
.dots { flex: 1; border-bottom: 2px dotted #C9B691; transform: translateY(-5px); min-width: 24px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--accent-deep); }
.menu-list p { color: var(--ink-soft); font-size: 1rem; margin: 4px 0 0; max-width: 40rem; }

/* ---------- catering ---------- */
.catering { padding: 64px 0; }
.catering-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}
.catering-list { list-style: none; margin: 22px 0; }
.catering-list li { padding-left: 28px; position: relative; margin-bottom: 14px; color: var(--ink-soft); }
.catering-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 13px; height: 13px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
}
.catering-list li strong { color: var(--ink); }
.fine-print { font-size: 0.95rem; color: var(--ink-soft); }

.demo-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 8px 20px rgba(41, 36, 32, 0.07);
}
.demo-form h3 { margin-bottom: 4px; }
.demo-note {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(188, 82, 51, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 10px 0 20px;
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  margin-top: 18px;
  background: rgba(188, 82, 51, 0.1);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- visit ---------- */
.visit { padding: 64px 0 96px; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 820px;
}
.visit-block h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.visit-block p { margin-bottom: 10px; }
.visit-block a { font-weight: 700; color: var(--accent-deep); }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.hours div:last-child { border-bottom: none; }
.hours dt { font-weight: 700; }
.hours dd { color: var(--ink-soft); text-align: right; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav a:hover { color: var(--accent-deep); }
.disclaimer { font-size: 0.88rem; color: var(--ink-soft); max-width: 56rem; margin: 0; }

/* ---------- reveal (JS sets the hidden state) ---------- */
.reveal { transition: opacity 0.38s ease-out, transform 0.38s ease-out; }
.reveal.in { opacity: 1 !important; transform: translateY(0) !important; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 760px; }
.legal-inner h2 { font-size: 1.55rem; margin: 1.8em 0 0.4em; }
.legal-inner p, .legal-inner li { color: var(--ink-soft); }
.legal-inner ul { padding-left: 1.4em; margin-bottom: 1em; }
.updated { font-size: 0.9rem; font-weight: 700; color: var(--accent-deep); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .catering-inner { grid-template-columns: 1fr; gap: 36px; }
  .visit-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero { padding: 60px 0 52px; }
  .field-row { grid-template-columns: 1fr; }
  .tab { padding: 10px 14px; font-size: 0.98rem; }
  .divider .rule:first-child { margin-left: 24px; }
  .divider .rule:last-child { margin-right: 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
