/* ==========================================================================
   MR. PAPA — edwardsanthony.com
   Style: Neo-Brutalist Retro Diner / Panamanian Street Food Delivery
   Palette: Warm Cream Paper (#FFF8EC), Tomato Red (#E6392E), Mustard (#FFB703),
            Basil Green (#1B7F5C), Ink Black (#181412)
   ========================================================================== */

:root {
  --bg-cream: #FFF8EC;
  --bg-paper: #FFFDF7;
  --bg-sand: #F7EBCE;
  --ink: #181412;
  --ink-muted: #554D47;
  --red: #E6392E;
  --red-dark: #C4271D;
  --yellow: #FFB703;
  --green: #1B7F5C;
  --border: 2.5px solid #181412;
  --shadow: 5px 5px 0 #181412;
  --shadow-sm: 3px 3px 0 #181412;
  --shadow-lg: 8px 8px 0 #181412;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(24, 20, 18, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Marquee Top Bar */
.ticker-bar {
  background: var(--ink);
  color: var(--yellow);
  border-bottom: var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 28s linear infinite;
}

.ticker-track span::after {
  content: "★";
  margin-left: 36px;
  color: var(--red);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-paper);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
}

.brand-stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #FFFDF7;
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  transform: rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.main-nav a:hover {
  background: var(--bg-sand);
  border-color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-red {
  background: var(--red);
  color: #FFFDF7;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-white {
  background: var(--bg-paper);
  color: var(--ink);
}

.btn-green {
  background: var(--green);
  color: #FFFDF7;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 10px;
  background: var(--bg-paper);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 46px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0 var(--ink);
}

.sticker-yellow { background: var(--yellow); }
.sticker-red { background: var(--red); color: #FFFDF7; }
.sticker-green { background: #D7F5E9; color: var(--ink); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.7vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  display: inline-block;
  background: var(--yellow);
  padding: 0 10px 4px;
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.2deg);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 540px;
}

.stat-ticket {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.stat-ticket strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-ticket span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--ink);
}

.floating-seal {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFDF7;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(10deg);
  font-family: var(--font-display);
  line-height: 1.05;
}

.floating-seal span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.floating-seal strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-caption-strip {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 6px;
}

/* Section Headers */
.section {
  padding: 68px 0;
}

.section-band {
  background: var(--bg-sand);
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-dark {
  background: var(--ink);
  color: #FFFDF7;
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Menu Controls */
.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tab {
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--bg-paper);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.12s ease;
}

.cat-tab:hover {
  background: var(--bg-sand);
}

.cat-tab.active {
  background: var(--ink);
  color: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--red);
}

.menu-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-search, .menu-sort {
  padding: 10px 14px;
  border: var(--border);
  border-radius: 12px;
  background: var(--bg-paper);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-search {
  min-width: 220px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.dish-card {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.dish-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.dish-img-wrap {
  position: relative;
  border-bottom: var(--border);
  overflow: hidden;
  background: var(--bg-sand);
}

.dish-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-img-wrap img {
  transform: scale(1.04);
}

.dish-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}

.dish-price-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--red);
  color: #FFFDF7;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.dish-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 4px;
}

.dish-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.dish-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex: 1;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dish-servings {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.btn-add {
  padding: 9px 14px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* How It Works / 3 Ticket Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border);
  background: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* Coverage & Zones */
.zones-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.zone-table {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.zone-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.7fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.92rem;
  align-items: center;
}

.zone-row:last-child {
  border-bottom: none;
}

.zone-row.zone-head {
  background: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.info-box-dark {
  background: #231E1B;
  border: 2.5px solid var(--yellow);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--yellow);
  color: #FFFDF7;
}

.info-box-dark h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--yellow);
}

.info-box-dark p {
  color: #E2DBD2;
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.info-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: #F4EFE7;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary {
  background: var(--bg-sand);
  border-bottom: 2px solid var(--ink);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 16px 22px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #F4EFE7;
  padding: 56px 0 30px;
  border-top: var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1.5px solid rgba(255, 248, 236, 0.16);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col p, .footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #D7CFC4;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #A89F94;
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 18, 0.58);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--bg-paper);
  border-left: var(--border);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 20px 22px;
  background: var(--yellow);
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.close-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg-paper);
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
}

.drawer-body {
  padding: 20px 22px;
  flex: 1;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-muted);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  margin-bottom: 10px;
}

.cart-item-info h4 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
}

.cart-item-info span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--red);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--bg-paper);
  font-weight: 800;
  cursor: pointer;
}

.checkout-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--ink);
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg-cream);
  font-size: 0.92rem;
}

.drawer-summary {
  padding: 16px 22px 20px;
  border-top: var(--border);
  background: var(--bg-sand);
}

.sum-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.sum-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 2px solid var(--ink);
  margin-bottom: 14px;
}

.order-confirm-box {
  background: #D7F5E9;
  border: var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.order-confirm-box h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 90px);
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  z-index: 200;
  transition: transform 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.toast.show {
  transform: translate(-50%, 0);
}

/* Legal subpages */
.legal-card {
  background: var(--bg-paper);
  border: var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

.legal-card p, .legal-card li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 20px;
}

@media (max-width: 1080px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid, .zones-layout, .steps-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-paper);
    border-bottom: var(--border);
    padding: 14px 22px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-seal { width: 84px; height: 84px; right: 6px; top: -14px; }
}
