/* ============================================================
   Plaza Pérez & Taquería Pérez — mobile-first, warm & local
   Palette: terracotta + cream/masa + deep green
   ============================================================ */

:root {
  /* Brand */
  --clay:        #b8442a;   /* terracotta / cochinita */
  --clay-dark:   #8f3220;
  --clay-deep:   #6d2417;
  --masa:        #f7efe1;   /* cream / masa background */
  --masa-soft:   #fdf9f1;
  --green:       #2f6b4f;   /* deep green accent */
  --green-dark:  #235240;
  --gold:        #e2a13c;   /* warm highlight */
  --ink:         #2a2018;   /* warm near-black text */
  --ink-soft:    #6b5d4d;
  --line:        #e7d9c3;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 640px;
  --pad: 1.25rem;
  --radius: 16px;
  --tap: 56px;              /* min tap target height */
  --shadow: 0 6px 22px rgba(80, 40, 20, 0.14);
  --shadow-soft: 0 2px 10px rgba(80, 40, 20, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--masa);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tap) + env(safe-area-inset-bottom, 0px) + 12px); /* room for sticky bar */
}

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

a { color: inherit; }

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

/* ---------- Sticky quick-action bar ---------- */
.quickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(45, 32, 24, 0.92);
  backdrop-filter: blur(8px);
}
.quickbar__btn {
  flex: 1;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--clay);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: .01em;
}
.quickbar__btn--map { background: var(--green); }
.quickbar__btn:active { transform: translateY(1px); filter: brightness(.95); }
.quickbar__icon { font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--clay-deep);
}
.hero__media, .hero__placeholder { position: absolute; inset: 0; }
.hero__placeholder {
  background:
    radial-gradient(120% 90% at 50% 10%, #d9633f 0%, var(--clay-dark) 55%, var(--clay-deep) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__placeholder-label {
  color: rgba(255,255,255,.85);
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
  padding: 1rem;
}
.hero__placeholder-label small { opacity: .7; font-weight: 500; }

.hero__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 3.5rem 2.25rem;
  background: linear-gradient(to top, rgba(30,18,10,.92) 0%, rgba(30,18,10,.72) 45%, rgba(30,18,10,0) 100%);
}
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); color: #fff; }

.hero__pulse { margin: 0 0 1rem; }
.hero__pulse a {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #ffe9c9;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(255,233,201,.4);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.hero__pulse em { font-style: italic; }

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: .98;
  margin: 0 0 .35rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero__tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  font-style: italic;
  color: #ffdca8;
  margin: 0 0 .5rem;
}
.hero__sub {
  margin: 0 0 1.4rem;
  font-size: .98rem;
  color: rgba(255,255,255,.82);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--clay-deep); box-shadow: var(--shadow); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }

/* Big tap-to-call blocks */
.phone-block { margin-top: 1.4rem; }
.btn--call {
  width: 100%;
  flex-direction: column;
  gap: 2px;
  min-height: 76px;
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--call-green { background: var(--green); }
.btn__label { font-size: .82rem; font-weight: 600; opacity: .9; letter-spacing: .03em; text-transform: uppercase; }
.btn__num { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; }

/* ---------- Sections ---------- */
.section { padding-block: 3rem; }
.section--hours { background: var(--masa-soft); border-block: 1px solid var(--line); }
.section--taqueria { background: var(--masa); }
.section--plaza { background: var(--masa-soft); border-block: 1px solid var(--line); }
.section--map { background: var(--masa); }

.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.02;
  margin: 0 0 .3rem;
  color: var(--clay-dark);
}
.section__kicker { margin: 0; color: var(--green); font-weight: 700; }
.section__lead { font-size: 1.05rem; color: var(--ink); margin: .6rem 0 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(47,107,79,.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: .6rem;
}

/* ---------- Hours ---------- */
.hours-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
.hours-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.hours-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hours-card h3 { font-family: var(--display); font-size: 1.3rem; margin: 0; color: var(--clay-dark); }
.hours-card__time { font-size: 1.35rem; font-weight: 800; margin: .4rem 0 .1rem; }
.hours-card__note { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.status {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status--open   { background: #e2f2e8; color: var(--green-dark); }
.status--closed { background: #f6e2db; color: var(--clay-dark); }

/* ---------- Menu ---------- */
#menu { margin-top: 2.5rem; }
.menu__title { font-family: var(--display); font-size: 1.7rem; color: var(--clay-dark); margin: 0 0 .2rem; }
.menu__note { margin: 0 0 1.4rem; color: var(--ink-soft); font-style: italic; }
.menu { display: grid; gap: 1.6rem; }
.menu-group__title {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin: 0 0 .6rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--line);
}
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.menu-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.menu-item__name { font-weight: 600; }
.menu-item__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-3px); }
.menu-item__price { font-weight: 800; color: var(--clay); white-space: nowrap; }
.menu-item__price--tbd { font-size: .9rem; font-weight: 600; font-style: italic; color: var(--ink-soft); }

/* House specialties */
.menu-item--star {
  background: rgba(226,161,60,.12);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: .55rem .7rem;
  margin-inline: -.7rem;
}
.menu-item__tag {
  flex-basis: 100%;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--clay-dark);
  text-transform: uppercase;
}
/* Weekend-only item */
.menu-item--weekend {
  background: rgba(47,107,79,.1);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: .55rem .7rem;
  margin-inline: -.7rem;
}
.menu-item__tag--weekend { color: var(--green-dark); }

.menu-group__foot { margin: .8rem 0 0; font-size: .88rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Section header photo ---------- */
.section-photo {
  margin: 1.2rem 0 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #efe1cb, #e6d3b6);
  border: 1px dashed #c9b391;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #967950;
  font-weight: 600;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.section-photo.has-img .slot-label { display: none; }

/* ---------- Services chips ---------- */
.services__title {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin: 1.6rem 0 .7rem;
}
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.service-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .95rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

/* ---------- Galleries ---------- */
.gallery__title { font-family: var(--display); font-size: 1.4rem; color: var(--clay-dark); margin: 2.2rem 0 1rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #efe1cb, #e6d3b6);
  border: 1px dashed #c9b391;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #967950;
  font-size: .8rem;
  font-weight: 600;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.gallery__item { position: relative; }
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item.has-img .slot-label { display: none; }

/* Caption: hidden until a real photo loads, then a label bar */
.gallery__caption { display: none; }
.gallery__item.has-img .gallery__caption {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .5rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(20,12,6,.82), rgba(20,12,6,0));
}

/* ---------- Address ---------- */
.address-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
}
.address-card:active { filter: brightness(.98); }
.address-card__pin { font-size: 2rem; }
.address-card__text { display: flex; flex-direction: column; }
.address-card__text strong { font-size: 1.2rem; }
.address-card__cta { color: var(--green); font-weight: 700; margin-top: .3rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #f0e4d2;
  padding-block: 2.5rem 1.5rem;
}
.footer__grid { display: grid; gap: 1.6rem; }
.footer__col h4 {
  margin: 0 0 .6rem;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__brand { font-family: var(--display); font-size: 1.4rem; margin: 0 0 .6rem; color: #fff; }
.footer__brand span { color: var(--gold); }
.footer__link, .footer__social {
  display: block;
  color: #f0e4d2;
  text-decoration: none;
  padding: 8px 0;
  min-height: 40px;
}
.footer__link:active { color: #fff; }
.footer__hours { margin: .35rem 0; font-size: .95rem; }
.footer__hours--all { color: var(--gold); font-weight: 700; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.footer__social span {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  border-radius: 8px; font-weight: 900; font-family: var(--display);
}
.footer__legal {
  margin: 2rem 0 0;
  text-align: center;
  font-size: .82rem;
  color: #b6a48d;
}

/* ---------- Tablet / desktop niceties ---------- */
@media (min-width: 620px) {
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .menu { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .quickbar { max-width: 420px; left: 50%; transform: translateX(-50%); right: auto; border-radius: 16px 16px 0 0; }
}

@media (min-width: 900px) {
  .btn--call { max-width: 380px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
