/* ==========================================================================
   Gringo's Taste — stylesheet
   Design language: ingredients, not clip art. The palette is drawn from the
   food itself (char, chili, mustard, pickle, bun) rather than a generic
   "restaurant brand" template. Signature motif: the dotted "menu-board"
   leader line between an item's name and its price, and a torn-ticket
   diagonal edge between sections — both borrowed from real order tickets
   and chalkboard menus rather than decoration for its own sake.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-char: #1B1210;        /* grill char / near-black background */
  --color-char-raised: #2A1D16; /* slightly-lifted dark surface */
  --color-cream: #FBEFDD;       /* bun cream / light background */
  --color-cream-dim: #F3E4CC;   /* subtle cream surface */
  --color-chili: #E1432B;       /* primary accent / CTAs */
  --color-chili-dark: #B92F1C;
  --color-mustard: #F2A93B;     /* secondary accent */
  --color-pickle: #7A8C3B;      /* tertiary accent, used sparingly */
  --color-ink: #241812;         /* body text on light */

  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --container-w: 1180px;

  --shadow-card: 0 10px 30px -14px rgba(27, 18, 16, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { max-width: 62ch; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-chili);
  margin-bottom: 0.6rem;
}

.text-muted { color: rgba(36, 24, 18, 0.62); }
.section-lede { font-size: 1.05rem; color: rgba(36, 24, 18, 0.75); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-chili);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-mustard);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--color-chili); color: #fff; }
.btn--primary:hover { background: var(--color-chili-dark); }

.btn--dark { background: var(--color-char); color: var(--color-cream); }
.btn--dark:hover { background: #000; }

.btn--ghost-light { border-color: rgba(251, 239, 221, 0.5); color: var(--color-cream); }
.btn--ghost-light:hover { border-color: var(--color-cream); background: rgba(251, 239, 221, 0.08); }

.btn--ghost-dark { border-color: rgba(36, 24, 18, 0.3); color: var(--color-ink); }
.btn--ghost-dark:hover { border-color: var(--color-ink); }

.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-char);
  color: var(--color-cream);
  border-bottom: 3px solid var(--color-chili);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-chili);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 0.95;
  color: var(--color-cream);
}
.brand__name em { font-style: normal; color: var(--color-mustard); }
.brand__logo { max-height: 2.6rem; width: auto; }

.nav-toggle {
  display: grid;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--color-cream); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-char);
  border-bottom: 3px solid var(--color-chili);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.primary-nav.is-open { max-height: 30rem; }
.primary-nav ul { display: flex; flex-direction: column; padding: 1rem 1.25rem 0; }
.primary-nav a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(251, 239, 221, 0.12);
}
.primary-nav a[aria-current="page"] { color: var(--color-mustard); }
.primary-nav__cta { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 1.6rem; }
  .primary-nav a { padding: 0.4rem 0; border-bottom: 2px solid transparent; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { border-color: var(--color-chili); }
  .primary-nav__cta { flex-direction: row; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-char);
  color: var(--color-cream);
  overflow: hidden;
  padding-block: 3.5rem 5rem;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4vw;
  min-height: 24px;
  background: var(--color-cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(242, 169, 59, 0.14);
  color: var(--color-mustard);
  border: 1px solid rgba(242, 169, 59, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { color: var(--color-cream); }
.hero h1 span { color: var(--color-chili); -webkit-text-stroke: 0; }
.hero__tagline { font-size: 1.15rem; color: rgba(251, 239, 221, 0.82); margin-top: 1rem; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.hero__social { display: flex; gap: 1rem; margin-top: 2rem; font-family: var(--font-mono); font-size: 0.85rem; }
.hero__social a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-cream); opacity: 0.85; }
.hero__social a:hover { opacity: 1; color: var(--color-mustard); }
.hero__social svg { width: 18px; height: 18px; fill: currentColor; }

.hero__media { position: relative; }
.hero__media .food-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-md); border: 3px solid rgba(242, 169, 59, 0.35); }

@media (min-width: 860px) {
  .hero { padding-block: 5rem 7rem; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: 3.5rem; }
.section--dark { background: var(--color-char); color: var(--color-cream); }
.section--dark h2 { color: var(--color-cream); }
.section--dark .eyebrow { color: var(--color-mustard); }
.section--raised { background: var(--color-cream-dim); }
.section__head { max-width: 42rem; margin-bottom: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }

@media (min-width: 860px) { .section { padding-block: 5.5rem; } }

/* Torn-ticket divider used between select sections for the signature diagonal cut */
.torn-edge-top { position: relative; }
.torn-edge-top::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3.5vw;
  min-height: 20px;
  background: inherit;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  transform: translateY(-99%);
}

/* ---------- Food photo / placeholder ---------- */
.food-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-cream-dim);
}
.food-photo--placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: repeating-linear-gradient(135deg, var(--color-cream-dim), var(--color-cream-dim) 10px, #ecdcc1 10px, #ecdcc1 20px);
  border: 2px dashed rgba(36, 24, 18, 0.25);
  color: rgba(36, 24, 18, 0.55);
}
.food-photo--placeholder svg { width: 42px; height: 42px; color: rgba(36, 24, 18, 0.35); }
.food-photo--placeholder span { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.section--dark .food-photo--placeholder { background: repeating-linear-gradient(135deg, var(--color-char-raised), var(--color-char-raised) 10px, #1f1510 10px, #1f1510 20px); border-color: rgba(251, 239, 221, 0.2); color: rgba(251, 239, 221, 0.55); }
.section--dark .food-photo--placeholder svg { color: rgba(251, 239, 221, 0.35); }

/* ---------- Featured / food grid ---------- */
.food-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .food-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .food-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.food-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.food-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.food-card__cat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-chili); }
.food-card h3 { margin-top: 0.3rem; font-size: 1.15rem; }
.food-card p { font-size: 0.92rem; color: rgba(36, 24, 18, 0.7); margin-top: 0.4rem; }
.food-card__price { font-family: var(--font-mono); font-weight: 700; color: var(--color-chili-dark); margin-top: 0.7rem; display: block; }

/* ---------- About / intro split ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.split--reverse .split__media { order: -1; }
@media (min-width: 860px) { .split--reverse .split__media { order: 2; } }

/* ---------- Category nav (menu page) ---------- */
.category-nav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--color-cream);
  border-bottom: 1px solid rgba(36, 24, 18, 0.12);
  padding-block: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-nav__list { display: flex; gap: 0.6rem; padding-inline: 1.25rem; width: max-content; margin-inline: auto; }
.category-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(36, 24, 18, 0.2);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.category-nav a:hover, .category-nav a.is-active { background: var(--color-chili); border-color: var(--color-chili); color: #fff; }

/* ---------- Menu list ---------- */
.menu-category { padding-block: 3rem; scroll-margin-top: 130px; }
.menu-category:not(:last-child) { border-bottom: 1px solid rgba(36, 24, 18, 0.1); }
.menu-category__head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.6rem; }
.menu-category__head h2 { color: var(--color-chili-dark); }

.menu-items { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .menu-items { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.2rem; } }

.menu-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  align-items: flex-start;
}
.menu-item .food-photo { width: 84px; height: 84px; flex-shrink: 0; aspect-ratio: 1/1; border-radius: 10px; }
.menu-item .food-photo--placeholder span { display: none; }
.menu-item .food-photo--placeholder svg { width: 26px; height: 26px; }
.menu-item__info { flex: 1; min-width: 0; }
.menu-item__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.menu-item__row h3 { font-family: var(--font-body); font-weight: 700; text-transform: none; font-size: 1.02rem; letter-spacing: 0; }
/* Signature: dotted "menu-board" leader line between name and price */
.menu-item__leader { flex: 1 1 20px; min-width: 20px; border-bottom: 2px dotted rgba(36, 24, 18, 0.3); height: 0.5rem; align-self: end; }
.menu-item__price { font-family: var(--font-mono); font-weight: 700; color: var(--color-chili-dark); white-space: nowrap; }
.menu-item p { font-size: 0.9rem; color: rgba(36, 24, 18, 0.68); margin-top: 0.35rem; }
.menu-item__unavailable { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--color-pickle); margin-top: 0.35rem; display: inline-block; }

.menu-note {
  font-size: 0.85rem;
  color: rgba(36, 24, 18, 0.6);
  border-left: 3px solid var(--color-mustard);
  padding-left: 0.9rem;
  margin-bottom: 2rem;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid .food-photo { aspect-ratio: 1/1; }
.gallery-grid .food-photo--placeholder span { font-size: 0.65rem; }

.social-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-char);
  color: var(--color-cream);
  border-radius: var(--radius-md);
}
.social-cta h2 { color: var(--color-cream); }
.social-cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-chili); }
.contact-list dd { margin: 0.2rem 0 0; font-size: 1.02rem; }
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 320px;
  background: var(--color-cream-dim);
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-embed__placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.map-embed__placeholder p { font-size: 0.88rem; color: rgba(36, 24, 18, 0.65); max-width: 32rem; }

.hours-list { display: grid; gap: 0.5rem; font-size: 0.95rem; }
.hours-list li { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(251, 239, 221, 0.2); padding-bottom: 0.4rem; }
.contact-card .hours-list li { border-bottom-color: rgba(36, 24, 18, 0.15); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 68ch; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.6rem; text-transform: none; font-family: var(--font-body); font-weight: 800; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: rgba(36, 24, 18, 0.82); margin-bottom: 0.9rem; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; }
.legal-content a { color: var(--color-chili-dark); text-decoration: underline; }

/* ---------- Final CTA band ---------- */
.final-cta {
  text-align: center;
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-chili), var(--color-chili-dark));
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.9); margin-inline: auto; margin-top: 0.6rem; }
.final-cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.75rem; }
.final-cta .btn--dark:hover { background: var(--color-char); }
.final-cta .btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-char); color: rgba(251, 239, 221, 0.85); padding-block: 3.5rem 1.5rem; }
.footer__grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer__col h2 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mustard); margin-bottom: 0.9rem; }
.brand__name--footer { font-size: 1.4rem; display: block; margin-bottom: 0.6rem; color: var(--color-cream); }
.footer__col address { font-style: normal; }
.footer__col p, .footer__col address { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a:hover { color: var(--color-mustard); }
.footer__map-link { display: inline-block; margin-top: 0.4rem; color: var(--color-mustard); font-weight: 600; font-size: 0.9rem; }

.social-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.social-links a { display: inline-flex; align-items: center; gap: 0.5rem; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
.social-links a:hover { color: var(--color-mustard); }
.social-links__pending { font-size: 0.85rem; color: rgba(251, 239, 221, 0.5); }

.footer__bottom { border-top: 1px solid rgba(251, 239, 221, 0.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.82rem; color: rgba(251, 239, 221, 0.55); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
