/* ==========================================================================
   Tacos Ya Merito — rustic western theme
   Brand palette:
     Cream / masa   #FDF2B4
     Chile red      #B7212A
     Burnt orange   #D46E28
     Sun orange     #E48434
   ========================================================================== */

:root {
  --cream: #FDF2B4;
  --red: #B7212A;
  --red-dark: #8f171e;
  --orange: #D46E28;
  --orange-light: #E48434;
  --ink: #2b1a12;
  --ink-soft: #5a4636;
  --paper: #fffaf0;

  --font-display: "Rye", "Rockwell", Georgia, serif;
  --font-heading: "Alfa Slab One", "Rockwell", Georgia, serif;
  --font-body: "Bitter", Georgia, serif;

  --shadow: 0 10px 30px rgba(43, 26, 18, 0.18);
  --radius: 14px;
  --wrap: 1120px;
  /* height of the sticky site header — the menu category bar sticks below it */
  --header-h: 82px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  /* subtle desaturated paper grain (inline SVG) over the warm gradient wash */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    radial-gradient(circle at 15% -10%, rgba(228, 132, 52, 0.25), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(183, 33, 42, 0.14), transparent 40%);
  background-blend-mode: multiply, normal, normal;
  line-height: 1.65;
  font-size: 18px;
}

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

a { color: var(--red); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }

h1 { font-family: var(--font-display); font-weight: 400; }
h2 { font-family: var(--font-heading); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  background: rgba(183, 33, 42, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* -------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.btn--primary { background: var(--red); color: #fff; }
.btn--order { background: var(--orange-light); color: var(--ink); }
.btn--ghost { background: var(--cream); color: var(--ink); }

/* -------------------------------------------------- header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--red);
  border-bottom: 4px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 58px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.brand span {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.35rem;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-heading);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.nav-links .btn { color: var(--ink); font-size: 0.9rem; padding: 10px 18px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--cream); margin: 5px 0; border-radius: 2px; }

/* -------------------------------------------------- hero */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 20px 72px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 22px, var(--orange) 22px 44px);
  opacity: 0.9;
}
.hero-logo { width: min(360px, 78vw); margin: 0 auto 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--red); text-shadow: 2px 2px 0 rgba(43,26,18,.15); }
.hero p.lede { font-size: 1.25rem; max-width: 640px; margin: 0 auto 28px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------- status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 24px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 3px solid var(--ink);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #999; flex: none; }
.status.is-open .dot { background: #2e9d4f; box-shadow: 0 0 0 4px rgba(46,157,79,.2); }
.status.is-closed .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(183,33,42,.2); }
.status small { font-family: var(--font-body); color: var(--ink-soft); font-weight: 600; }

/* -------------------------------------------------- sections */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); }
.section-title p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

.band { background: var(--red); color: var(--cream); }
.band .section-title h2 { color: var(--cream); }
.band .section-title p { color: rgba(253, 242, 180, 0.85); }

/* about / feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card .ico { font-size: 2.4rem; margin-bottom: 10px; }
.card h3 { font-family: var(--font-heading); font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* menu callout */
.menu-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 4px dashed var(--orange);
  border-radius: var(--radius);
  padding: 40px;
}
.menu-callout img { border-radius: 10px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.menu-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  min-height: 260px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fff4d6 0 16px, #ffedc2 16px 32px);
  border: 3px dashed var(--orange); color: var(--ink-soft); padding: 24px;
}

/* hours */
.hours-table { width: 100%; max-width: 520px; margin: 0 auto; border-collapse: collapse; font-size: 1.05rem; }
.hours-table th, .hours-table td { padding: 12px 16px; text-align: left; }
.hours-table tr { border-bottom: 2px dotted rgba(253,242,180,.4); }
.band .hours-table tr.today { background: rgba(253, 242, 180, 0.16); border-radius: 8px; }
.hours-table td:last-child { text-align: right; font-family: var(--font-heading); }
.hours-table .closed { color: #ffd7d7; }
.badge-today {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  background: var(--cream); color: var(--red); padding: 2px 8px; border-radius: 999px; margin-left: 8px;
}

/* location / contact grid */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.info-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--red); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dotted rgba(90,70,54,.25); align-items: flex-start; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { font-size: 1.4rem; flex: none; }
.info-list a { text-decoration: none; font-weight: 700; }
.info-list a:hover { text-decoration: underline; }
.map-embed { width: 100%; height: 100%; min-height: 340px; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }

/* final CTA */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(253,242,180,.9); max-width: 560px; margin: 0 auto 24px; }

/* -------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-heading); color: var(--orange-light); margin: 0 0 14px; font-size: 1.05rem; }
.footer-grid a { color: var(--cream); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { height: 90px; margin-bottom: 12px; }
.footer-brand p { color: rgba(253,242,180,.75); font-size: 0.95rem; margin: 0; }

.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(253,242,180,.12); transition: background .15s ease, transform .15s ease;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; fill: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(253,242,180,.2);
  margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(253,242,180,.7);
}
.footer-bottom a { color: rgba(253,242,180,.7); }

/* -------------------------------------------------- papel picado banner */
.papel {
  height: 52px;
  background: url("../assets/papel-picado.svg") repeat-x left top;
  background-size: auto 100%;
}

/* -------------------------------------------------- fee comparison (marketplace pages) */
.fee-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.fee-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.fee-card p { color: var(--ink); }
.fee-card h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-top: 0; }
.fee-card--bad { border-color: var(--red); }
.fee-card--good { border-color: #2e9d4f; }
.fee-total { font-family: var(--font-heading); font-size: 2.4rem; line-height: 1; margin: 4px 0 16px; }
.fee-card--bad .fee-total { color: var(--red); }
.fee-card--good .fee-total { color: #2e9d4f; }
.fee-line { margin: 12px 0; }
.fee-line b { display: flex; justify-content: space-between; margin-bottom: 5px; font-family: var(--font-body); }
.fee-bar { height: 12px; border-radius: 999px; background: rgba(43, 26, 18, 0.1); overflow: hidden; }
.fee-bar > i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.fee-card--good .fee-bar > i { background: #2e9d4f; }

/* -------------------------------------------------- review widgets */
.hero-reviews { margin-top: 22px; display: flex; justify-content: center; }
.reviews-section { text-align: center; }
.reviews-section emr-simple-carousel { display: block; margin: 0 auto; }

/* -------------------------------------------------- cross-link chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-block;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.chip:hover { background: var(--orange-light); }

/* -------------------------------------------------- hand-drawn divider */
.divider {
  height: 40px;
  margin: 8px auto;
  background: url("../assets/divider.svg") no-repeat center;
  background-size: 600px 40px;
}

/* -------------------------------------------------- rough-notation accents */
.rough-annotation { pointer-events: none; }
[data-annotate] { position: relative; }
/* keep the circled phrase on one line so the annotation hugs just those words */
[data-annotate="circle"] { white-space: nowrap; }

/* -------------------------------------------------- hero media */
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-grid .hero-copy { text-align: left; }
.hero-grid .hero-cta { justify-content: flex-start; }
.hero-grid h1 { text-align: left; }
.hero-photo {
  position: relative;
  border: 5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
  aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--red); color: #fff;
  font-family: var(--font-heading); font-size: 0.8rem;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink);
}

/* -------------------------------------------------- card photos */
.card--photo { padding: 0; overflow: hidden; text-align: left; }
.card--photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--ink); }
.card--photo .card-body { padding: 22px 24px 26px; }
.card--photo h3 { margin-top: 0; }

/* -------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(43,26,18,.82), transparent);
  color: var(--cream); font-family: var(--font-heading); font-size: 0.85rem;
  padding: 24px 14px 12px;
}

/* -------------------------------------------------- menu cards (sun-orange) */
.menu-card {
  background: var(--orange-light);
  color: var(--ink);
}
.menu-card h3 { color: var(--ink); }
.menu-card p { color: var(--ink); }
.menu-card .price {
  display: inline-block;
  background: var(--cream);
  color: var(--red);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.8em;
  white-space: nowrap;
  vertical-align: middle;
}

/* priced item rows with a dotted leader between name and price */
.menu-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.menu-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(43, 26, 18, 0.25);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { flex: 1 1 auto; }
.menu-list .price { flex: none; font-family: var(--font-heading); }

/* -------------------------------------------------- menu page */
/* sticky category bar — sits directly under the site header */
.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 14px rgba(43, 26, 18, 0.12);
}
.menu-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.menu-nav .chip { flex: none; }
.menu-nav .chip.is-active {
  background: var(--red);
  color: var(--cream);
}

/* anchor targets clear both sticky bars */
.menu-cat { scroll-margin-top: calc(var(--header-h) + 72px); }
.menu-cat + .menu-cat { margin-top: 48px; padding-top: 40px; border-top: 2px dotted rgba(253, 242, 180, 0.35); }
.menu-cat .section-title { margin-bottom: 28px; }

/* categories with one or two cards stay centred instead of hugging the left column */
.cards--one { grid-template-columns: minmax(0, 460px); justify-content: center; }
.cards--two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }

.menu-photo { max-width: 620px; margin: 0 auto; }
.menu-photo img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow); }

/* -------------------------------------------------- responsive */
@media (max-width: 900px) {
  .cards, .cards--one, .cards--two { grid-template-columns: 1fr; }
  .menu-callout, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-copy, .hero-grid h1 { text-align: center; }
  .hero-grid .hero-cta { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .fee-compare { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  /* tighter hero + smaller logo so content comes up sooner */
  .hero { padding: 28px 16px 48px; }
  .hero-logo { width: min(210px, 52vw); }
  .hero-grid { gap: 24px; }
  /* larger, easier-to-tap menu button */
  .nav-toggle {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
  }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--red); border-bottom: 4px solid var(--ink);
    padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 8px 0; }
  .nav-links .btn { margin-top: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  /* one swipeable row of categories instead of a tall wrapped block */
  .menu-nav-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 16px;
  }
  .menu-nav-inner::-webkit-scrollbar { display: none; }
}

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