/* Taqueria Hernandez — demo build
   Style dossier: boutique-hospitality.md, day-mode primary (Estela-style warm cream),
   blended per dossier's "Heritage Serif" note for a real, pre-2010 family restaurant.
   Fonts: EB Garamond (display) / Inter Tight (body) / Oswald (accent) — the
   free-licensed trio the dossier verifies live on Eleven Madison Park & Death & Co. */

:root {
  --bh-ground: #F7EFE0;
  --bh-surface: #FFFBF3;
  --bh-ink: #231B15;
  --bh-ink-secondary: #6B5C48;
  --bh-accent-brass: #7A6440; /* darkened from dossier's #957C55 — verified 4.5:1+ for text/button use per WCAG AA */
  --bh-accent-ember: #B5502F;
  --bh-border: #E2D4BC;
  --bh-success: #5C6E3F;
  --bh-error: #9C4128;

  --bh-font-display: "EB Garamond", Georgia, serif;
  --bh-font-body: "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bh-font-accent: "Oswald", "Arial Narrow", sans-serif;

  --bh-margin-desktop: 120px;
  --bh-margin-mobile: 20px;
  --bh-gutter: 34px;
  --bh-radius: 2px;
  --bh-radius-frame: 0px;
  --bh-border-width: 1px;

  --bh-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --bh-duration-reveal: 580ms;
  --bh-duration-state: 220ms;

  --side-pad: var(--bh-margin-mobile);
}

@media (min-width: 900px) {
  :root { --side-pad: var(--bh-margin-desktop); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bh-ground);
  color: var(--bh-ink);
  font-family: var(--bh-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bh-ink);
  color: var(--bh-ground);
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--bh-font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.skip-link:focus {
  left: var(--side-pad);
  top: 12px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bh-accent-brass);
  outline-offset: 2px;
}

/* ============ Nav ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 239, 224, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: var(--bh-border-width) solid var(--bh-border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--bh-font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--bh-ink);
  line-height: 1;
}
.wordmark small {
  display: block;
  font-family: var(--bh-font-accent);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bh-ink-secondary);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: none;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--bh-font-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 860px) {
  .nav-links { display: flex; align-items: center; }
}
.nav-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color var(--bh-duration-state) var(--bh-ease), color var(--bh-duration-state) var(--bh-ease);
}
.nav-links a:hover { border-color: var(--bh-accent-brass); color: var(--bh-accent-brass); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.btn-order {
  font-family: var(--bh-font-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bh-accent-brass);
  color: #FFFBF3;
  border: none;
  padding: 12px 22px;
  border-radius: var(--bh-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--bh-duration-state) var(--bh-ease), transform var(--bh-duration-state) var(--bh-ease);
}
.btn-order:hover { background: #5c4a2f; }
.btn-order:active { transform: scale(0.98); }
.cart-count {
  background: var(--bh-ink);
  color: var(--bh-ground);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }

.hamburger {
  display: inline-flex;
  background: none;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius);
  padding: 10px 12px;
  cursor: pointer;
}
@media (min-width: 860px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bh-ink);
  margin: 3px 0;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-surface);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--side-pad) 20px;
  font-family: var(--bh-font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
.mobile-menu li { border-top: 1px solid var(--bh-border); }
.mobile-menu a { display: block; padding: 14px 0; text-decoration: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #FFFBF3;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,27,21,0.15) 0%, rgba(35,27,21,0.30) 55%, rgba(35,27,21,0.86) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px var(--side-pad) 64px;
  max-width: 720px;
}
.eyebrow {
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E7C89C;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--bh-font-display);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.5;
  max-width: 46ch;
  color: #F1E6D3;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--bh-font-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  background: var(--bh-accent-brass);
  color: #FFFBF3;
  border: none;
  padding: 15px 28px;
  border-radius: var(--bh-radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--bh-duration-state) var(--bh-ease);
}
.btn-primary:hover { background: #5c4a2f; }
.btn-secondary {
  font-family: var(--bh-font-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  background: transparent;
  color: #FFFBF3;
  border: 1px solid rgba(255,251,243,0.6);
  padding: 15px 28px;
  border-radius: var(--bh-radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--bh-duration-state) var(--bh-ease), background var(--bh-duration-state) var(--bh-ease);
}
.btn-secondary:hover { border-color: #FFFBF3; background: rgba(255,251,243,0.08); }

/* ============ Section shell ============ */
section { padding: 88px 0; }
.section-label {
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bh-accent-brass);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--bh-font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
  margin: 0 0 20px;
  max-width: 20ch;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--bh-duration-reveal) var(--bh-ease), transform var(--bh-duration-reveal) var(--bh-ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 150ms linear; }
}

/* ============ Family Story ============ */
.story {
  background: var(--bh-surface);
  border-top: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 940px) {
  .story-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--bh-gutter); }
}
.story-copy p { color: var(--bh-ink-secondary); font-size: 17px; max-width: 58ch; }
.story-media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}
.story-media img.tall { grid-row: span 2; aspect-ratio: 3/4; object-fit: cover; }
.story-media img.wide { aspect-ratio: 4/3; object-fit: cover; }
.story-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--bh-font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--bh-accent-brass);
}
.stat .label {
  font-family: var(--bh-font-accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bh-ink-secondary);
  margin-top: 6px;
}

/* ============ Menu (Tasting Menu Ledger) ============ */
.menu-section { background: var(--bh-ground); }
.menu-intro { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 8px; }
.menu-note { color: var(--bh-ink-secondary); font-size: 14px; max-width: 46ch; }

.menu-ledger {
  max-width: var(--bh-measure-menu, 720px);
  margin: 48px auto 0;
}
.menu-category { margin-bottom: 52px; }
.menu-category-media {
  aspect-ratio: 16/8;
  overflow: hidden;
  margin-bottom: 22px;
}
.menu-category-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-category h3 {
  font-family: var(--bh-font-accent);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bh-border);
  padding-bottom: 12px;
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  color: var(--bh-ink);
}
.menu-category .cat-price {
  color: var(--bh-ink-secondary);
  font-weight: 400;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(226,212,188,0.6);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-name {
  font-family: var(--bh-font-display);
  font-size: 20px;
  font-weight: 500;
}
.menu-item-desc {
  font-size: 14px;
  color: var(--bh-ink-secondary);
  margin-top: 3px;
}
.menu-item-right { display: flex; align-items: baseline; gap: 16px; flex-shrink: 0; }
.menu-item-price {
  font-family: var(--bh-font-accent);
  font-size: 18px;
  font-weight: 300;
}
.btn-add {
  font-family: var(--bh-font-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--bh-accent-brass);
  color: var(--bh-accent-brass);
  padding: 7px 12px;
  border-radius: var(--bh-radius);
  cursor: pointer;
  min-height: 32px;
  transition: background var(--bh-duration-state) var(--bh-ease), color var(--bh-duration-state) var(--bh-ease);
  white-space: nowrap;
}
.btn-add:hover { background: var(--bh-accent-brass); color: #FFFBF3; }
.btn-add.added { background: var(--bh-success); border-color: var(--bh-success); color: #fff; }

.menu-callout {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  padding: 24px 28px;
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--bh-ink-secondary);
}
.menu-callout strong { color: var(--bh-ink); font-family: var(--bh-font-display); font-size: 18px; display:block; margin-bottom: 6px; }

/* ============ Catering ============ */
.catering {
  background: var(--bh-ink);
  color: #F3E9D8;
}
.catering .section-label { color: #E7C89C; }
.catering .section-title { color: #FFFBF3; }
.catering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 940px) {
  .catering-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.catering-copy p { color: #C9B99B; font-size: 17px; max-width: 54ch; }
.catering-list { list-style: none; padding: 0; margin: 28px 0; }
.catering-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(243,233,216,0.15);
  display: flex;
  gap: 14px;
  font-size: 15px;
}
.catering-list li:last-child { border-bottom: 1px solid rgba(243,233,216,0.15); }
.catering-list .mark {
  font-family: var(--bh-font-accent);
  color: var(--bh-accent-brass);
  flex-shrink: 0;
}
.catering-media img { aspect-ratio: 4/3; object-fit: cover; }

/* ============ Hours / Location ============ */
.visit { background: var(--bh-surface); border-top: 1px solid var(--bh-border); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 940px) {
  .visit-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.visit-block h3 {
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bh-accent-brass);
  margin: 0 0 16px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--bh-border);
  font-size: 15px;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--bh-ink-secondary); }
address { font-style: normal; font-size: 16px; line-height: 1.7; }
.visit-block a.plain { text-decoration: none; border-bottom: 1px solid var(--bh-accent-brass); }
.visit-block p.badge {
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bh-ink-secondary);
  margin-top: 18px;
}

/* ============ Contact / footer CTA ============ */
.contact-cta {
  background: var(--bh-ground);
  text-align: center;
  border-top: 1px solid var(--bh-border);
}
.contact-cta .section-title { margin: 0 auto 26px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

footer.site-footer {
  background: var(--bh-ink);
  color: #C9B99B;
  padding: 40px 0;
  font-size: 13px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-grid a { text-decoration: none; color: #E7C89C; }
.footer-note {
  font-family: var(--bh-font-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ============ Cart Drawer ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,27,21,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bh-duration-state) var(--bh-ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--bh-surface);
  z-index: 301;
  transform: translateX(100%);
  transition: transform var(--bh-duration-reveal) var(--bh-ease);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--bh-border);
}
.drawer.open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .drawer, .overlay { transition: none; }
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--bh-margin-mobile);
  border-bottom: 1px solid var(--bh-border);
}
.drawer-header h2 {
  font-family: var(--bh-font-display);
  font-size: 24px;
  margin: 0;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  color: var(--bh-ink);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 0 var(--bh-margin-mobile); }
.drawer-footer { border-top: 1px solid var(--bh-border); padding: 20px var(--bh-margin-mobile) 26px; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bh-border);
}
.cart-line-name { font-family: var(--bh-font-display); font-size: 17px; }
.cart-line-meta { font-size: 13px; color: var(--bh-ink-secondary); margin-top: 4px; }
.qty-stepper { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-stepper button {
  width: 26px; height: 26px;
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  border-radius: var(--bh-radius);
  cursor: pointer;
  font-family: var(--bh-font-accent);
}
.cart-empty { padding: 60px 0; text-align: center; color: var(--bh-ink-secondary); }
.cart-empty a { color: var(--bh-accent-brass); }

.totals-row { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; color: var(--bh-ink-secondary); }
.totals-row.total { font-size: 20px; color: var(--bh-ink); font-family: var(--bh-font-display); padding-top: 12px; border-top: 1px solid var(--bh-border); margin-top: 6px; }
.demo-banner {
  background: #F1E6D3;
  border: 1px solid var(--bh-border);
  color: var(--bh-ink-secondary);
  font-size: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-family: var(--bh-font-accent);
  letter-spacing: 0.03em;
}
.btn-block {
  width: 100%;
  font-family: var(--bh-font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  background: var(--bh-accent-brass);
  color: #FFFBF3;
  border: none;
  padding: 16px;
  border-radius: var(--bh-radius);
  cursor: pointer;
  min-height: 48px;
}
.btn-block:disabled { background: var(--bh-border); color: var(--bh-ink-secondary); cursor: not-allowed; }
.btn-block:hover:not(:disabled) { background: #5c4a2f; }

/* Checkout view inside drawer */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--bh-font-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bh-ink-secondary);
  margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--bh-border);
  background: transparent;
  padding: 10px 2px;
  font-size: 16px;
  font-family: var(--bh-font-body);
  color: var(--bh-ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-bottom: 2px solid var(--bh-accent-brass);
}
.field-error { color: var(--bh-error); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid input { border-bottom-color: var(--bh-error); }
.field.invalid .field-error { display: block; }

.pickup-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.pickup-toggle button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--bh-border);
  background: transparent;
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--bh-radius);
}
.pickup-toggle button.active { background: var(--bh-ink); color: var(--bh-ground); border-color: var(--bh-ink); }

.back-link {
  background: none;
  border: none;
  font-family: var(--bh-font-accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bh-ink-secondary);
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.confirm-state { text-align: center; padding: 40px 0; }
.confirm-state .mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bh-success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}
.confirm-state h3 { font-family: var(--bh-font-display); font-size: 26px; margin: 0 0 10px; }
.confirm-state p { color: var(--bh-ink-secondary); font-size: 14px; margin: 0 0 6px; }
.order-number { font-family: var(--bh-font-accent); letter-spacing: 0.08em; }

[aria-live] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
