/* ==========================================================================
   LOLO'S ANTOJITOS — shared visual system
   Palette pulled from the logo: chili red, corn yellow, terracotta, cream.
   Mercado / hand-painted signage energy. Kraft paper, papel picado, stamps.
   ========================================================================== */

:root {
  --red: #C9351D;          /* chili red — logo oval */
  --red-deep: #8C1F10;     /* logo shadow red */
  --red-dark: #5E140A;     /* near-mole, footer */
  --yellow: #F4A91B;       /* corn yellow — "Lolo's" script */
  --yellow-bright: #FFC23C;/* logo highlight */
  --terracotta: #DD7A2B;   /* logo rim orange */
  --lime: #7BA428;         /* cilantro / lime accent — use sparingly */
  --cream: #FFF3DF;        /* logo white, warmed */
  --paper: #FBF0DB;        /* lighter paper panel */
  --kraft: #F1E1C2;        /* kraft paper base */
  --kraft-deep: #E5D0A8;
  --ink: #2B1408;          /* hand-painted brown-black */

  --font-display: "Alfa Slab One", "Georgia", serif;
  --font-brush: "Knewave", cursive;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --shadow-hard: 4px 4px 0 rgba(43, 20, 8, 0.9);
  --shadow-soft: 0 14px 32px -12px rgba(43, 20, 8, 0.45);
  --picado-h: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--kraft);
  /* kraft paper: soft fiber noise + gentle vignette */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 248, 230, 0.55), rgba(255, 248, 230, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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.06'/%3E%3C/svg%3E");
  text-wrap: pretty;
}

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

a { color: var(--red-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1em; max-width: 62ch; }

.kicker {
  font-family: var(--font-brush);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--red);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 0.35rem;
}
.kicker.on-dark { color: var(--yellow-bright); }

.brush { font-family: var(--font-brush); font-weight: 400; }

/* painted underline for headings */
.painted {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M4 9 C40 4 80 11 118 7 C156 3 196 10 216 6' fill='none' stroke='%23F4A91B' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.32em;
  padding-bottom: 0.18em;
}
.painted.red-stroke {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M4 9 C40 4 80 11 118 7 C156 3 196 10 216 6' fill='none' stroke='%23C9351D' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ skip link */
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 4px; z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 18px -8px rgba(43, 20, 8, 0.4);
}
.head-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 74px; height: auto; }
.brand .brand-word {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--red);
  line-height: 1; transform: rotate(-2deg);
}
.brand .brand-word small {
  display: block; font-family: var(--font-body); font-weight: 800;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-top: 0.25rem;
}

.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.main-nav a {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.85rem; text-decoration: none; color: var(--ink);
  padding: 0.55rem 0.8rem; border-radius: 6px;
}
.main-nav a:hover { background: var(--yellow); }
.main-nav a[aria-current="page"] {
  background: var(--red); color: var(--cream);
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.head-actions { display: flex; gap: 0.6rem; align-items: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 0.95rem; line-height: 1;
  padding: 0.95rem 1.5rem; min-height: 48px;
  border: 3px solid var(--ink); border-radius: 10px;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 rgba(43, 20, 8, 0.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(43, 20, 8, 0.9); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 0.6rem 1rem; min-height: 44px; font-size: 0.82rem; box-shadow: 3px 3px 0 rgba(43, 20, 8, 0.9); }

/* ----------------------------------------------------------- papel picado */
.picado {
  height: var(--picado-h);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='30' viewBox='0 0 128 30'%3E%3Crect width='128' height='2.5' y='0' fill='%232B1408'/%3E%3Cg fill-rule='evenodd'%3E%3Cpath fill='%23C9351D' d='M2 1h60v19l-7.5 7-7.5-7-7.5 7-7.5-7-7.5 7-7.5-7-7.5 7-7.5-7zM24 7a4 4 0 108 0 4 4 0 10-8 0zM38 11a3 3 0 106 0 3 3 0 10-6 0zM14 12a2.5 2.5 0 105 0 2.5 2.5 0 10-5 0z'/%3E%3Cpath fill='%23F4A91B' d='M66 1h60v19l-7.5 7-7.5-7-7.5 7-7.5-7-7.5 7-7.5-7-7.5 7-7.5-7zM88 7a4 4 0 108 0 4 4 0 10-8 0zM102 11a3 3 0 106 0 3 3 0 10-6 0zM78 12a2.5 2.5 0 105 0 2.5 2.5 0 10-5 0z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.picado.flip { transform: scaleY(-1); }

/* ----------------------------------------------------------------- ticker */
.ticker {
  background: var(--red);
  color: var(--cream);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden;
  padding: 0.55rem 0;
  margin: 1.5rem 0;
}
.ticker-track {
  display: flex; gap: 2.2rem; width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  text-transform: uppercase; white-space: nowrap;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-track span::after { content: "✶"; color: var(--yellow-bright); margin-left: 2.2rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ----------------------------------------------------------------- layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.panel { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.panel-red { background: var(--red); color: var(--cream); }
.panel-red p { color: var(--cream); }
.panel-yellow { background: var(--yellow); }
.panel-paper { background: var(--paper); }
.panel-dark { background: var(--red-dark); color: var(--cream); }

/* ------------------------------------------------------------ photo frame */
.photo-frame {
  background: var(--cream);
  padding: 10px 10px 14px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.tilt-l { transform: rotate(-2.2deg); }
.photo-frame .caption {
  font-family: var(--font-brush); font-size: 1rem;
  text-align: center; padding-top: 8px; color: var(--red-deep);
}

/* ----------------------------------------------------------------- stamp */
.stamp {
  position: absolute;
  display: grid; place-items: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--yellow);
  border: 3px dashed var(--red-deep);
  color: var(--red-deep);
  font-family: var(--font-display); font-size: 0.72rem;
  line-height: 1.15; text-transform: uppercase;
  transform: rotate(9deg);
  box-shadow: 3px 3px 0 rgba(43, 20, 8, 0.85);
  padding: 0.5rem;
  z-index: 3;
}
.sticker {
  display: inline-block;
  font-family: var(--font-brush);
  background: var(--red); color: var(--cream);
  padding: 0.3rem 0.9rem 0.4rem; border-radius: 999px;
  transform: rotate(-3deg);
  box-shadow: 2px 3px 0 rgba(43, 20, 8, 0.85);
  font-size: 1.05rem;
}
.sticker.yellow { background: var(--yellow); color: var(--ink); }

/* --------------------------------------------------------------- chips etc */
.hours-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.hours-chips li {
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1rem; font-weight: 700; font-size: 0.92rem;
  box-shadow: 2px 2px 0 rgba(43, 20, 8, 0.8);
}
.hours-chips li strong { color: var(--red-deep); }

/* ----------------------------------------------------------------- footer */
.site-foot { background: var(--red-dark); color: var(--cream); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.site-foot h3 { color: var(--yellow-bright); font-size: 1.1rem; margin-bottom: 0.8rem; }
.site-foot a { color: var(--cream); }
.site-foot p { color: rgba(255, 243, 223, 0.92); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: 0.18rem 0; }
.foot-logo { width: 120px; margin-bottom: 0.75rem; }
.foot-bottom {
  border-top: 1px solid rgba(255, 243, 223, 0.25);
  padding: 1.1rem 0 calc(1.1rem + 64px); /* clear the mobile bar */
  font-size: 0.85rem; color: rgba(255, 243, 223, 0.7);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
@media (min-width: 721px) {
  .foot-bottom { padding-bottom: 1.1rem; }
}

/* --------------------------------------------------------- mobile call bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: none;
  background: var(--ink);
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; border-radius: 9px;
  font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none;
}
.mobile-bar .mb-call { background: var(--yellow); color: var(--ink); }
.mobile-bar .mb-dir { background: var(--red); color: var(--cream); }
.mobile-bar .mb-menu { background: var(--cream); color: var(--ink); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .main-nav a { padding: 0.5rem 0.55rem; font-size: 0.78rem; }
  .head-actions .btn-call-desktop { display: none; }
}
@media (max-width: 720px) {
  .head-inner { padding: 0.4rem 0.9rem; gap: 0.6rem; flex-wrap: wrap; }
  .brand img { width: 56px; }
  .brand .brand-word { font-size: 1.05rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .head-actions { margin-left: auto; }
  .head-actions .btn-order-desktop { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
