/* ===========================================================
   Don Juan Deli & Grocery — Design tokens
   Palette pulled from the real storefront: awning red + wordmark blue
   =========================================================== */
:root {
  --red: #C41E2A;
  --red-deep: #8C141D;
  --blue: #1F3FA0;
  --blue-deep: #16296E;
  --cream: #F6EFE4;
  --paper: #FFFDF8;
  --ink: #241C15;
  --ink-soft: #4A3F32;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --shadow-card: 0 6px 20px rgba(36, 28, 21, 0.12);
  --shadow-card-hover: 0 12px 28px rgba(36, 28, 21, 0.18);
  --container: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-display);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 0.5em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ===========================================================
   Candy-stripe divider — the awning trim, translated
   =========================================================== */
.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 18px,
    var(--paper) 18px 36px
  );
}

/* ===========================================================
   Header / nav
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.brand-don {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}
.brand-sub {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--red); }
.nav-call {
  background: var(--red);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-call:hover { background: var(--red-deep); transform: translateY(-1px); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 3px solid var(--red);
    display: none;
    gap: 0.9rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-call { text-align: center; }
  /* Progressive enhancement: without JS, keep nav links reachable */
  html:not(.js) .site-nav {
    display: flex;
    position: static;
    border-bottom: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 14, 8, 0.92) 0%,
    rgba(20, 14, 8, 0.55) 45%,
    rgba(20, 14, 8, 0.15) 75%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  color: var(--paper);
}
.hero-locator {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F2C9A9;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 14ch;
  color: var(--paper);
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.hero-copy {
  max-width: 52ch;
  font-size: 1.1rem;
  color: #F4EFE6;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--paper);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
/* Outline variant used on light backgrounds (e.g. catering section) */
.catering-section .btn-outline,
.grocery-section .btn-outline {
  color: var(--ink);
  border-color: var(--ink);
}
.catering-section .btn-outline:hover,
.grocery-section .btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   About strip
   =========================================================== */
.about {
  padding: 4.5rem 1.25rem;
  background: var(--paper);
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.about-text h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===========================================================
   Menu section — signature order-ticket cards
   =========================================================== */
.menu-section {
  padding: 5rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.menu-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.menu-note a { color: var(--red); font-weight: 700; }

.menu-feature,
.menu-hotfood {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 0 0 3.5rem;
}
.menu-hotfood { direction: rtl; }
.menu-hotfood > * { direction: ltr; }
.menu-feature img,
.menu-hotfood img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.menu-feature-text h3,
.menu-hotfood-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--blue);
}
@media (max-width: 780px) {
  .menu-feature, .menu-hotfood {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ticket-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ticket-header {
  font-family: var(--font-display);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
}
.ticket-header-red { background: var(--red); }
.ticket-header-blue { background: var(--blue); }

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.1rem;
  flex: 1;
}
.ticket-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.9rem;
  border-bottom: 1px dashed rgba(36, 28, 21, 0.18);
  font-size: 0.98rem;
}
.ticket-list li:last-child { border-bottom: none; }
.ticket-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
}

.ticket-footnote {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
}

.menu-board-figure {
  margin: 3rem auto 0;
  max-width: 640px;
  text-align: center;
}
.menu-board-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  opacity: 0.94;
}
.menu-board-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===========================================================
   Grocery section
   =========================================================== */
.grocery-section {
  background: var(--blue);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.grocery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  display: block;
}
.grocery-text {
  padding: 3.5rem 3rem;
}
.grocery-text .eyebrow { color: #F2C9A9; }
.grocery-text h2 { color: var(--paper); }
.grocery-text p { color: #E7EBF7; }
@media (max-width: 860px) {
  .grocery-section { grid-template-columns: 1fr; }
  .grocery-photo img { min-height: 260px; }
  .grocery-text { padding: 2.5rem 1.5rem; }
}

/* ===========================================================
   Catering
   =========================================================== */
.catering-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  text-align: center;
}
.catering-copy {
  font-size: 1.05rem;
}
.catering-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===========================================================
   Reviews
   =========================================================== */
.reviews-section {
  background: var(--paper);
  padding: 5rem 1.25rem;
}
.reviews-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--cream);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin: 0;
}
.review-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}
.reviews-more {
  text-align: center;
  margin-top: 2rem;
  font-weight: 700;
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.faq-item {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.faq-item p { margin-top: 0.75rem; margin-bottom: 0; color: var(--ink-soft); }

/* ===========================================================
   Visit / contact
   =========================================================== */
.visit-section {
  padding: 5rem 1.25rem;
  background: var(--cream);
}
.visit-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.visit-info address {
  font-style: normal;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: block;
}
.visit-directions {
  display: inline-block;
  margin-left: 0.75rem;
  font-weight: 700;
}
.hours-table {
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 360px;
}
.hours-table caption {
  text-align: left;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--red);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px dashed rgba(36,28,21,0.18);
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.contact-list li { margin-bottom: 0.4rem; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.visit-note { font-size: 0.9rem; color: var(--ink-soft); }

.contact-form {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.contact-form h3 {
  font-size: 1.2rem;
  color: var(--blue);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 2px solid rgba(36,28,21,0.3);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
}
.form-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--ink);
  color: #D9CFC0;
  padding: 3rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .brand-don { display: block; }
.footer-brand .brand-sub { display: block; margin-top: 0.25rem; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a, .footer-contact a {
  color: #D9CFC0;
  text-decoration: none;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--paper); text-decoration: underline; }
.footer-contact p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.footer-copy {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  text-align: center;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===========================================================
   Scroll reveal (progressive enhancement)
   =========================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
