/* SSPICE Pizza — marketing site styles. Red/white, following Papa John's
   functional layout patterns. This site is customer-facing only and does
   not contain any staff/POS/admin routes or code. */

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

:root {
  --sspice-red: #E21836;
  --sspice-red-hover: #C8122D;
  --sspice-ink: #111827;
  --sspice-cream: #F8F6F0;
  --sspice-coral-tint: #FAECE7;
  --sspice-coral-text: #993C1D;
  --sspice-green-tint: #EAF3DE;
  --sspice-green-text: #3B6D11;
  --sspice-muted: #5F5E5A;
  --sspice-border: #E7E5DD;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--sspice-ink);
  background: #F1EFE8;
}

.sans { font-family: Arial, Helvetica, sans-serif; }

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

.site {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

@media (min-width: 640px) {
  .site { max-width: 720px; box-shadow: 0 0 40px rgba(0,0,0,0.06); }
}

@media (min-width: 1024px) {
  .site { max-width: 1180px; }
  header.topbar { padding: 16px 40px; }
  nav.tabs { padding: 12px 40px; }
  .hero { height: 380px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 32px 40px; }
  .section-title { font-size: 20px; }
  .cats { padding: 20px 40px; }
  .cta-band { padding: 24px 40px; }
  .grid-2 { grid-template-columns: repeat(4, 1fr) !important; gap: 18px !important; }
  .icon-row { justify-content: flex-start; gap: 28px !important; }
  .footer-cols { grid-template-columns: repeat(4, 1fr) !important; gap: 40px !important; }
  footer.site-footer { padding: 40px; }
}

@media (max-width: 360px) {
  header.topbar { padding: 10px 12px; gap: 6px; }
  .logo-wrap img { max-width: 110px !important; height: 20px !important; }
  .btn-primary { padding: 7px 10px !important; font-size: 10px !important; }
}
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--sspice-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wordmark { font-weight: 700; font-size: 17px; color: var(--sspice-red); }
.veg-badge {
  font-family: Arial, sans-serif;
  background: var(--sspice-green-tint);
  color: var(--sspice-green-text);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.btn-primary {
  font-family: Arial, sans-serif;
  background: var(--sspice-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--sspice-red-hover); }

nav.tabs {
  display: flex;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--sspice-border);
  overflow-x: auto;
  font-family: Arial, sans-serif;
}
nav.tabs a {
  font-size: 12px;
  color: var(--sspice-muted);
  white-space: nowrap;
  padding-bottom: 4px;
}
nav.tabs a.active {
  color: var(--sspice-red);
  font-weight: 600;
  border-bottom: 2px solid var(--sspice-red);
}

/* Hero */
.hero {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.10) 0%, rgba(20,10,5,0.30) 55%, rgba(15,8,4,0.88) 100%);
}
.hero-text { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; z-index: 2; padding: 0 20px; }
.hero-eyebrow { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 2px; color: #F0997B; margin-bottom: 8px; }
.hero-title { font-size: 26px; font-weight: 700; line-height: 1.25; }
.hero-sub { font-family: Arial, sans-serif; font-size: 11px; color: #eee; margin-top: 8px; }

/* Category strip */
.cats { display: flex; gap: 8px; padding: 16px 20px; overflow-x: auto; font-family: Arial, sans-serif; }
.cat-pill {
  background: var(--sspice-coral-tint);
  color: var(--sspice-coral-text);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 14px;
  white-space: nowrap;
}
.cat-pill.muted { background: #F1EFE8; color: var(--sspice-muted); }

/* Sections */
.section { padding: 20px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.body-text { font-family: Arial, sans-serif; font-size: 12px; color: var(--sspice-muted); line-height: 1.7; margin-bottom: 16px; }
.photo-block { width: 100%; height: 160px; background-size: cover; background-position: center; border-radius: 10px; margin-bottom: 14px; }

.quote-box { background: var(--sspice-cream); border-top: 1px solid var(--sspice-border); padding: 18px 20px; }
.quote { font-family: Arial, sans-serif; font-size: 12px; font-style: italic; color: var(--sspice-muted); line-height: 1.6; }
.quote-by { font-family: Arial, sans-serif; font-size: 10px; color: #888780; margin-top: 8px; }

/* Menu cards */
.menu-item {
  border: 1px solid var(--sspice-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  font-family: Arial, sans-serif;
}
.menu-item .thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--sspice-coral-tint); flex-shrink: 0; }
.menu-item .name-row { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.menu-item .name { font-size: 13px; font-weight: 600; }
.menu-item .price { font-size: 12px; font-weight: 600; white-space: nowrap; }
.menu-item .desc { font-size: 11px; color: var(--sspice-muted); margin-top: 2px; line-height: 1.4; }
.menu-item .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 10px; border: 1px solid var(--sspice-border); border-radius: 10px; padding: 3px 8px; color: var(--sspice-muted); }

.category-heading { font-size: 14px; font-weight: 700; margin: 20px 0 12px; font-family: Arial, sans-serif; }
[id] { scroll-margin-top: 110px; }

/* CTA band */
.cta-band { padding: 14px 20px; background: #F1EFE8; text-align: center; }

/* Footer */
footer.site-footer { background: var(--sspice-ink); color: #D3D1C7; padding: 28px 20px; font-family: Arial, sans-serif; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: #F0997B; margin-bottom: 10px; letter-spacing: 0.3px; }
.footer-col a, .footer-col div { display: block; font-size: 12px; color: #D3D1C7; line-height: 2.1; }
.footer-bottom { border-top: 1px solid #444441; padding-top: 16px; font-size: 10px; color: #888780; line-height: 1.9; text-align: center; }

/* Store info card */
.info-card { border: 1px solid var(--sspice-border); border-radius: 10px; padding: 14px; margin-bottom: 20px; font-family: Arial, sans-serif; }
.info-row { display: flex; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-note { background: var(--sspice-green-tint); border-radius: 10px; padding: 12px 14px; font-size: 11px; color: var(--sspice-green-text); font-family: Arial, sans-serif; }

/* Signup popup */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 20px;
}
.popup-overlay.open { display: flex; }
.popup-card { background: #fff; border-radius: 14px; width: 100%; max-width: 320px; padding: 28px 24px; text-align: center; position: relative; font-family: Arial, sans-serif; }
.popup-close { position: absolute; top: 14px; right: 16px; font-size: 16px; color: #888780; background: none; border: none; cursor: pointer; }
.popup-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.popup-sub { font-size: 12px; color: var(--sspice-muted); margin-bottom: 20px; line-height: 1.5; }
.phone-input-row { display: flex; align-items: center; border: 1px solid var(--sspice-border); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; text-align: left; }
.phone-input-row span.prefix { font-size: 13px; color: var(--sspice-muted); margin-right: 8px; }
.phone-input-row input { border: none; outline: none; font-size: 13px; width: 100%; font-family: Arial, sans-serif; }
.popup-note { font-size: 10px; color: #888780; line-height: 1.5; margin-top: 12px; }
.popup-error { font-size: 11px; color: var(--sspice-red); margin-top: -6px; margin-bottom: 12px; display: none; }

.loading-text { font-family: Arial, sans-serif; font-size: 12px; color: var(--sspice-muted); padding: 20px; text-align: center; }
