/* 5280 Street Tacos — design system (see ../site-brief.md) */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pacifico-latin.woff2') format('woff2');
}

:root {
  --navy: #16204d;
  --navy-2: #101638;
  --blue: #2a4b9b;
  --blue-soft: #c9d2ee;
  --cream: #faf3e4;
  --paper: #fffdf4;
  --red: #d63b2f;
  --red-ink: #a8241a;
  --yellow: #ffc93c;
  --yellow-2: #f0a92e;
  --green: #4c9a5c;
  --green-ink: #2e5e38;
  --ink: #2b2317;
  --ink-soft: #5c5240;
  --display: 'Fredoka', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --script: 'Pacifico', 'Brush Script MT', cursive;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red-ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--navy); font-family: var(--display);
  font-weight: 600; padding: .75rem 1.25rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-head :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(1080px, 92vw); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  background: var(--navy-2);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 201, 60, .5);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .6rem; gap: 1rem;
}
.head-mark {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: .45rem;
  letter-spacing: .02em;
}
.head-mark .co-c { width: 1.25em; height: 1.25em; }
.head-call {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--navy); background: var(--yellow); text-decoration: none;
  padding: .45rem 1.1rem; border-radius: 999px;
  white-space: nowrap;
}
.head-call:hover { background: #ffd45f; }
@media (max-width: 480px) {
  .site-head .wrap { gap: .5rem; }
  .head-mark { font-size: .95rem; white-space: nowrap; }
  .head-call { font-size: .85rem; padding: .4rem .75rem; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 50% -160px, #223066 0%, var(--navy) 60%),
    var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: flex; align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}
.hero-copy { flex: 0 1 420px; }
.hero-truck { flex: 1 1 0; min-width: 0; position: relative; }
@media (max-width: 880px) {
  .hero-grid { flex-direction: column; align-items: flex-start; }
  .hero-copy { flex: none; }
  .hero-truck { width: 100%; }
}
.hero-kicker {
  font-family: var(--script); font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--yellow); margin-bottom: .5rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700; line-height: .95;
  letter-spacing: .01em;
}
.hero h1 .line-1 {
  display: block; font-size: clamp(3.5rem, 9vw, 6rem); color: #fff;
}
.hero h1 .line-2 {
  display: flex; align-items: center; gap: .08em;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem); color: var(--yellow);
  letter-spacing: .06em; margin-top: .35rem;
}
.hero h1 .co-c { width: .95em; height: .95em; transform: translateY(.04em); }
.hero-sub {
  max-width: 42ch; margin: 1.4rem 0 0; color: var(--blue-soft);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}
.hero-cta {
  display: flex; gap: 1.25rem; align-items: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.btn-main {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  background: var(--yellow); color: var(--navy); text-decoration: none;
  padding: .8rem 2rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.pay-note {
  font-family: var(--display); font-weight: 500; font-size: .95rem;
  color: var(--blue-soft); letter-spacing: .02em;
}

/* ---- chalk truck ---- */
.truck-svg { width: 100%; height: auto; display: block; }
.truck-cap {
  font-family: var(--script); color: var(--blue-soft);
  text-align: center; font-size: clamp(1rem, 2.4vw, 1.2rem);
  padding: .5rem 0 0;
}
.truck-replay {
  position: absolute; bottom: 2px; right: 8px;
  font-family: var(--script); font-size: 1rem; color: var(--blue-soft);
  background: none; border: none; cursor: pointer; padding: .25rem .4rem;
}
.truck-replay:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) {
  .truck-replay { position: static; display: block; margin: 2px auto 0; }
}

/* sketch styling (chalk on navy) */
.t-sketch path, .t-sketch circle, .t-sketch rect {
  fill: none; stroke: var(--cream); stroke-width: 11;
  stroke-linecap: round; stroke-linejoin: round;
}
.t-sketch .thin { stroke-width: 7; }
.t-sketch text {
  fill: var(--cream); stroke: none;
  font-family: var(--display); font-weight: 700;
}
.t-sketch text.thin-txt { font-weight: 600; }

/* resting state: real photo visible, sketch hidden (animation is enhancement) */
.t-sketch { opacity: 0; }

html.js-anim .draw-run .t-photo {
  opacity: 0;
  animation: ph-in .5s ease 2.05s forwards;
}
html.js-anim .draw-run .t-sketch {
  opacity: 1;
  animation: sk-out .45s ease 2.2s forwards;
}
html.js-anim .draw-run .t-sketch .stroke {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .55s ease-out forwards;
  animation-delay: var(--d, 0s);
}
html.js-anim .draw-run .t-sketch .pop {
  opacity: 0;
  animation: pop-in .3s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { to { opacity: 1; } }
@keyframes ph-in { to { opacity: 1; } }
@keyframes sk-out { to { opacity: 0; } }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-kicker {
  font-family: var(--script); font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--red); text-align: center;
}
.on-dark .sec-kicker { color: var(--yellow); }
.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--navy); text-align: center; margin-top: .1rem;
}
.on-dark .sec-title { color: #fff; }
.sec-note { text-align: center; color: var(--ink-soft); max-width: 52ch; margin: .75rem auto 0; }

/* menu dishes (photo-led) */
.menu-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; margin-top: 2.5rem;
}
.menu-grid .dish { flex: 1 1 150px; max-width: 235px; margin: 0; }
.dish .ph {
  aspect-ratio: 1; overflow: hidden; border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(22, 32, 77, .12);
}
.dish img { width: 100%; height: 100%; object-fit: cover; }
.dish h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  color: var(--navy); text-align: center; margin-top: .75rem;
}
.dish figcaption p {
  color: var(--ink-soft); font-size: .88rem; line-height: 1.45;
  text-align: center; margin-top: .25rem;
}

/* full line-up */
.menu-lineup {
  max-width: 64ch; margin: 2.75rem auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(22, 32, 77, .15); text-align: center;
}
.lineup-cats {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  color: var(--navy); letter-spacing: .02em;
}
.lineup-cats span { font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.lineup-meats, .lineup-drinks { color: var(--ink-soft); font-size: .95rem; margin-top: .55rem; }

/* ---------- specials ---------- */
.specials { background: var(--navy); color: var(--cream); position: relative; }
.specials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem; margin-top: 2.5rem; align-items: stretch;
}
.special-card {
  background: var(--cream); color: var(--ink);
  border-radius: 14px;
  padding: 2rem 1.75rem; position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.special-card .flag {
  display: block; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  color: var(--red-ink); letter-spacing: .16em; text-transform: uppercase;
}
.special-card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  color: var(--red-ink); text-align: center; margin-top: .35rem;
}
.special-card p { margin-top: .8rem; text-align: center; color: var(--ink-soft); }
.specials .mascot-kiss { width: 130px; margin: 2.25rem auto 0; }

/* ---------- find us ---------- */
.find-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-top: 2.5rem; align-items: center;
}
@media (max-width: 760px) { .find-grid { grid-template-columns: 1fr; } }
.hours-board {
  background: var(--navy); color: var(--cream); border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(22,32,77,.15);
}
.hours-board h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--yellow); text-align: center; margin-bottom: 1.1rem;
}
.hours-board table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours-board td, .hours-board th {
  padding: .42rem 0; text-align: left; font-weight: 400;
}
.hours-board th { font-family: var(--display); font-weight: 600; }
.hours-board td { text-align: right; color: var(--blue-soft); }
.hours-board tr.open td { color: #fff; font-weight: 600; }
.hours-board tr + tr { border-top: 1px solid rgba(201,210,238,.18); }
.hours-board tr.today th, .hours-board tr.today td { color: var(--yellow); }
.addr { text-align: center; }
.addr .truck-illo { width: min(340px, 80%); margin: 0 auto 1.5rem; }
.addr h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.addr p { margin-top: .4rem; color: var(--ink-soft); }
.btn-dir {
  display: inline-block; margin-top: 1.25rem;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  background: var(--navy); color: var(--cream); text-decoration: none;
  padding: .7rem 1.7rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(22,32,77,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-dir:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,32,77,.25); }
.cash-note {
  margin-top: 1.5rem; display: inline-block;
  font-family: var(--display); font-weight: 600; color: var(--ink-soft);
  letter-spacing: .1em; text-transform: uppercase; font-size: .85rem;
}

/* ---------- catering ---------- */
.catering { background: #cc3226; color: #fff; text-align: center; }
.catering .sec-kicker { color: var(--yellow); }
.catering .sec-title { color: #fff; }
.catering p { max-width: 48ch; margin: 1rem auto 0; color: #ffffff; }
.catering .btn-main { margin-top: 1.75rem; display: inline-block; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-2); color: var(--blue-soft); padding: 3rem 0 2.25rem; }
.foot-grid {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  align-items: center;
}
.foot-mark { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.2rem; }
.foot-mark .co-c { width: 1.4em; height: 1.4em; }
.site-foot a { color: var(--blue-soft); }
.site-foot a:hover { color: #fff; }
.foot-meta { font-size: .92rem; line-height: 1.9; }
.foot-legal { width: 100%; border-top: 1px solid rgba(201,210,238,.2); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }

/* ---------- reveal (JS-gated; resting state = visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal { opacity: 0; transform: translateY(20px); }
  html.js-anim .reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
}

/* ---------- legal pages ---------- */
.legal-main { padding: clamp(2.5rem, 6vw, 4rem) 0; max-width: 70ch; }
.legal-main h1 { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: clamp(2rem, 5vw, 2.6rem); }
.legal-main h2 { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.35rem; margin-top: 2rem; }
.legal-main p, .legal-main li { margin-top: .75rem; color: var(--ink-soft); }
.legal-main ul { padding-left: 1.25rem; }
.legal-main .updated { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
