/* =========================================================
   TACOMATT — Custom CSS
   Tailwind v4 handles utility classes via the browser script.
   This file owns the textures, motion, and one-off bits
   utilities can't express cleanly.
   ========================================================= */

/* ---------- Film-grain overlay ---------- */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- Halftone dot pattern ---------- */
.halftone {
  background-image: radial-gradient(rgba(245, 236, 217, 0.18) 1px, transparent 1.4px);
  background-size: 14px 14px;
  background-position: 0 0;
}

/* ---------- Outlined ("text-stroke") display type ---------- */
.text-stroke {
  color: transparent;
  -webkit-text-stroke: 2px #f5ecd9;
}
@media (min-width: 1024px) {
  .text-stroke { -webkit-text-stroke-width: 3px; }
}

/* ---------- TICKER / MARQUEE ---------- */
.ticker {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: ticker-scroll 120s linear infinite;
  will-change: transform;
}
.ticker__item {
  flex: none;
  padding-right: 2.5rem;
  display: inline-flex;
  align-items: center;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- Crunchy-taco rating row ----------
   .taco-row builds 5 SVG tacos via JS in main.js / directory.js.
   The styling lives here so any page can use the row.
*/
.taco-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.taco-row svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}
.taco-row .taco--off { color: rgba(245, 236, 217, 0.18); }
.taco-row .taco--on  { color: var(--color-saffron, #f4a83a); }
.taco-row.is-large svg { width: 2rem; height: 2rem; }

/* ---------- Restaurant card image fallback ---------- */
.card-img {
  background-color: #1c1917;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(244, 168, 58, 0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(230, 57, 70, 0.18), transparent 55%);
}

/* ---------- Smooth nav bg on scroll ---------- */
#nav.is-scrolled {
  background: rgba(10, 9, 7, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 236, 217, 0.08);
}

/* ---------- Form: native autofill bg ---------- */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #f5ecd9;
  -webkit-box-shadow: 0 0 0 30px #131110 inset;
  caret-color: #f5ecd9;
}

/* ---------- Reveal-on-load: stagger ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Custom scrollbar (subtle) ---------- */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: #0a0907; }
  ::-webkit-scrollbar-thumb {
    background: #1c1917;
    border: 3px solid #0a0907;
  }
  ::-webkit-scrollbar-thumb:hover { background: #2a2724; }
}
