/* ============================================================
   Taqueria Yarelis — modernized static site (v2)
   Brand: maroon #8C0704 · green #199114 · gold #B87D1E
   Headings: Abril Fatface · Body: Poppins
   ============================================================ */

:root {
  --maroon: #8C0704;
  --maroon-dark: #6d0503;
  --maroon-deep: #480302;
  --green: #199114;
  --green-dark: #14760f;
  --gold: #c8902f;
  --gold-deep: #b87d1e;
  --cream: #fff8f0;
  --bg: #f7f3ee;
  --ink: #241b16;
  --muted: #6f6258;
  --line: #ece3d9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(30, 10, 5, 0.10);
  --shadow-lg: 0 26px 60px rgba(30, 10, 5, 0.20);
  --maxw: 1200px;
  --header-h: 88px;
  --serif: "Abril Fatface", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: .2px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .76rem;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.section { padding: 92px 0; }
.section--tight { padding: 60px 0; }
.center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(25,145,20,.32); }
.btn--green:hover { background: var(--green-dark); }
.btn--maroon { background: var(--maroon); color: #fff; box-shadow: 0 8px 22px rgba(140,7,4,.3); }
.btn--maroon:hover { background: var(--maroon-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--maroon); border-color: #fff; }
.btn--doordash { background: #ff3008; color: #fff; box-shadow: 0 8px 22px rgba(255,48,8,.3); }
.btn--doordash:hover { background: #e22a06; }
.btn--doordash img { height: 17px; width: auto; }

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--maroon-deep);
  color: rgba(255,255,255,.86);
  font-size: .8rem;
  letter-spacing: .3px;
}
.topbar .container { display: flex; justify-content: center; gap: 26px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { color: var(--gold); }
@media (max-width: 620px){ .topbar .container span:nth-child(3) { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--maroon);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 72px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); transition: transform .2s ease; }
.brand:hover img { transform: scale(1.04); }
.brand .brand-fallback { font-family: var(--serif); color: #fff; font-size: 1.35rem; line-height: 1; }
.brand-name { font-family: var(--serif); color: #fff; font-size: 1.5rem; line-height: .95; letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: #fff; font-weight: 500; font-size: 1rem; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .22s ease; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #160706;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video--mobile { display: none; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,6,4,.86) 0%, rgba(30,6,4,.55) 48%, rgba(30,6,4,.2) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 660px; color: #fff; padding: 70px 0; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 7px 12px; margin: 22px 0 0;
  color: rgba(255,255,255,.8);
  font-size: .74rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .star { color: var(--gold); }
.hero-meta .sep { color: var(--gold); opacity: .55; }
.hero-content h1 { font-size: clamp(1.4rem, 3.8vw, 2.4rem); line-height: 1.1; letter-spacing: 0; margin: 0 0 20px; text-shadow: 0 3px 20px rgba(0,0,0,.45); }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.15rem); line-height: 1.55; color: rgba(255,255,255,.92); margin: 0 0 26px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; }
.hero-social { display: flex; gap: 18px; margin: 24px 0 0; }
.hero-social a { color: #fff; opacity: .82; transition: opacity .2s ease, transform .2s ease; }
.hero-social a:hover { opacity: 1; transform: translateY(-2px); }
.hero-social svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.hero-content { margin: 0 auto; text-align: center; }
.hero-logo { width: clamp(230px, 56vw, 360px); height: auto; display: block; margin: 0 auto 18px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.55)); animation: logoBoing .85s ease-out .1s both; transform-origin: center bottom; }
@keyframes logoBoing {
  0%   { transform: scale(.25); opacity: 0; }
  55%  { transform: scale(1.14); opacity: 1; }
  70%  { transform: scale(.9); }
  84%  { transform: scale(1.06); }
  93%  { transform: scale(.98); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero-actions { justify-content: center; }
.hero-social { justify-content: center; }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; color: var(--maroon); }
.split p { color: var(--muted); margin: 0 0 18px; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-stack img, .media-stack .ph { aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-stack img:nth-child(1) { margin-top: 24px; }
.single-media { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Band ---------- */
.band {
  position: relative; color: #fff; text-align: center; padding: 130px 0;
  background-size: cover; background-position: center; background-color: #2a0a08;
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(26,7,5,.72), rgba(26,7,5,.72)); }
.band .container { position: relative; z-index: 1; }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 auto 18px; max-width: 900px; }
.band p { max-width: 680px; margin: 0 auto 28px; color: rgba(255,255,255,.92); font-size: 1.1rem; }
.band .eyebrow { color: var(--gold); }

/* ---------- Heavy hitters (text cards on maroon) ---------- */
.menu-band { background: var(--maroon); color: #fff; padding: 100px 0; }
.menu-band .section-head h2 { color: #fff; }
.menu-band .eyebrow { color: var(--gold); }
.hitters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hitter {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, background .2s ease;
}
.hitter:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.hitter img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-bottom: 3px solid var(--gold); }
.hitter .body { padding: 22px 24px 26px; }
.hitter h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.hitter .tag { font-size: .7rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); }
.hitter p { color: rgba(255,255,255,.82); font-size: .88rem; margin: 0; }
.menu-band .band-cta { text-align: center; margin-top: 48px; }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.loc-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; padding-bottom: 28px;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.loc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.loc-card .photo, .loc-card .photo-fallback { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-bottom: 5px solid var(--gold); }
.loc-card .photo-fallback {
  display: grid; place-items: center; gap: 10px;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
}
.loc-card .photo-fallback img { width: 92px; height: 92px; opacity: .96; }
.loc-card .photo-fallback span { color: rgba(255,255,255,.75); font-size: .76rem; font-weight: 600; letter-spacing: .4px; }
.loc-card h3 { font-size: 1.5rem; color: var(--ink); margin: 24px 18px 14px; }
.loc-meta { list-style: none; padding: 0; margin: 0 18px 16px; color: var(--muted); }
.loc-meta li { margin: 6px 0; font-size: .95rem; }
.loc-meta .phone a { color: var(--gold-deep); font-weight: 600; font-size: 1.08rem; }
.loc-hours { font-size: .85rem; color: var(--muted); }
.loc-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }

/* ---------- Menu page ---------- */
.page-hero { background: var(--maroon); color: #fff; text-align: center; padding: 76px 0 64px; }
.page-hero h1 { font-size: clamp(2.6rem,6vw,4.6rem); margin: 0; }
.page-hero p { color: rgba(255,255,255,.86); margin: 14px 0 0; }

.menu-nav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(247,243,238,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-nav .container { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; }
.menu-nav a {
  white-space: nowrap; font-size: .85rem; font-weight: 600; color: var(--maroon);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: background .18s ease, color .18s ease;
}
.menu-nav a:hover { background: var(--maroon); color: #fff; }
.menu-nav a.is-active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.menu-section { margin-bottom: 66px; scroll-margin-top: 170px; }
.menu-section > h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--maroon); text-align: center; margin: 0 0 8px; }
.menu-section .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px; }
.menu-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-item h4 { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; margin: 0 0 4px; color: var(--ink); }
.menu-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---------- About ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.value-card h3 { color: var(--maroon); font-size: 1.4rem; margin: 0 0 10px; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: #fff; padding: 54px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 76px; width: auto; }
.footer-brand p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.82); max-width: 320px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.9); font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.72); }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; padding: 8px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.socials a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.socials img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Branded placeholder (for missing dish/storefront photos) ---------- */
.ph {
  display: grid; place-items: center; text-align: center; gap: 8px;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: rgba(255,255,255,.8);
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .4px;
  padding: 18px; min-height: 120px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hitters, .loc-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .menu-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .brand img { height: 56px; }
  .hero-video--desktop { display: none; }
  .hero-video--mobile { display: block; }
  .hero { min-height: clamp(540px, 78vh, 700px); align-items: center; }
  .hero::after { background: rgba(20,5,3,.55); }
  .hero-content { padding: 20px 0; }
  .section { padding: 64px 0; }
  .hitters, .loc-grid, .value-grid { grid-template-columns: 1fr; }
  .band { padding: 92px 0; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-brand { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-brand img { height: 96px; }
  .footer-brand p { max-width: 320px; }
  .footer-nav { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .socials { justify-content: center; }
  .nav.is-open {
    display: flex; position: fixed; z-index: 260; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--maroon-dark); padding: 8px 24px 20px; box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav.is-open a::after { display: none; }
}

/* ---------- Mobile sticky order bar + responsive wordmark ---------- */
.order-bar { display: none; }
@media (max-width: 760px) {
  .brand-name { font-size: 1.15rem; }
  .order-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--maroon-dark);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -5px 20px rgba(0,0,0,.28);
  }
  .order-bar .btn { flex: 1; padding: 13px 8px; font-size: .85rem; box-shadow: none; }
  body { padding-bottom: 74px; }
}

/* ---------- Scroll behaviors: auto-hide header + reveal-on-scroll order bar ---------- */
.site-header { transition: transform .32s ease; }
body.header-hidden .site-header { transform: translateY(-100%); }
.menu-nav { transition: top .32s ease; }
body.header-hidden .menu-nav { top: 0; }
@media (max-width: 760px) {
  .order-bar { transform: translateY(130%); transition: transform .32s ease; }
  .order-bar.bar-visible { transform: translateY(0); }
}

/* ---------- Location card: Pickup + Delivery even side by side ---------- */
.loc-actions .action-row { display: flex; gap: 8px; }
.loc-actions .action-row .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; }
@media (max-width: 760px) {
  .loc-actions .action-row .btn { font-size: .85rem; gap: 5px; padding-left: 8px; padding-right: 8px; }
  .loc-actions .action-row .btn--doordash img { height: 14px; }
}
