/* ============================================================
   MAMA SAID PIZZA CO. — Brand System (light theme)
   Palette:  Process Black #2C2A29 | PMS 710 #AB2328
             PMS 7624 #802F2D     | Warm Gray 2 #CBC4BC
             Cream/tan backgrounds per current site
   Type:     Alfa Slab One (display) / Oswald (condensed) / Helvetica (body)
   ============================================================ */

/* ---- Brand webfonts (licensed, self-hosted in /fonts) ---- */
@font-face {
  font-family: 'Ridgeline';
  src: url('../fonts/Ridgeline.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Benton Sans';
  src: url('../fonts/BentonSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Benton Sans';
  src: url('../fonts/BentonSans-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Benton Sans Cond';
  src: url('../fonts/BentonSansCond-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --black: #2C2A29;
  --black-deep: #201e1d;
  --red: #AB2328;
  --red-deep: #802F2D;
  --gray: #CBC4BC;
  --cream: #F2EDE5;
  --cream-deep: #E7E0D5;
  --white: #F4F1ED;
  --display: 'Ridgeline', 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --condensed: 'Benton Sans Cond', 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Benton Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

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

/* Subtle grunge/noise overlay (brand texture, 2019 guidelines) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---- Type ---- */
h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--black);
  line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 {
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1.15rem;
  color: var(--black);
  line-height: 1.2;
}

.eyebrow {
  color: var(--red);
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .85rem;
  display: block;
  margin-bottom: .75rem;
}
.note { font-size: .85rem; opacity: .75; font-style: italic; }

/* ---- Checkerboard divider (menu brand motif) ---- */
.checker {
  height: 18px;
  background:
    repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%)
    0 0 / 36px 36px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1rem;
  text-decoration: none;
  padding: .95em 2.2em;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); color: var(--white); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--red); color: var(--white); }
.hero .btn--ghost, .band--red .btn--ghost { color: var(--white); border-color: var(--white); }
.hero .btn--ghost:hover, .band--red .btn--ghost:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--big { font-size: 1.15rem; padding: 1.1em 2.6em; }

/* Small text link under a CTA (e.g. delivery option) */
.cta-alt { display: block; margin-top: 1rem; font-size: .95rem; }
.cta-alt a { color: inherit; }
.band--red .cta-alt a, .hero .cta-alt a { color: var(--white); }

/* ---- Header (stays dark — white logo) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 30, 29, .97);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo img { height: 44px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .9rem;
  text-decoration: none;
  color: var(--gray);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav .btn { padding: .7em 1.6em; font-size: .9rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--black-deep);
    padding: 1.5rem;
    border-bottom: 3px solid var(--red);
  }
  .site-nav.open { display: flex; }
}

/* ---- Hero (photo with dark overlay — text stays light) ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(32,30,29,.5), rgba(32,30,29,.75));
  z-index: 1;
}
.hero .hero-inner { position: relative; z-index: 2; padding: 4rem 1.25rem; max-width: 780px; }
.hero h1 { color: var(--white); }
.hero p.tagline { font-size: 1.15rem; margin: 1rem 0 2rem; color: var(--cream); }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
section.band { padding: 4.5rem 1.25rem; position: relative; }
.band .wrap { max-width: var(--max); margin: 0 auto; }
.band--red { background: var(--red); }
.band--red h1, .band--red h2, .band--red h3, .band--red p, .band--red .eyebrow, .band--red a { color: var(--white); }
.band--deep { background: var(--cream-deep); }
.center { text-align: center; }

/* Info strip (hours / address / phone) */
.info-strip { background: var(--red); padding: 1.5rem 1.25rem; }
.info-strip .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.info-strip h3 { color: var(--white); font-size: .85rem; margin-bottom: .3rem; }
.info-strip p, .info-strip a { color: var(--white); font-size: .95rem; text-decoration: none; }
.info-strip a:hover { text-decoration: underline; }

/* ---- Panel (rounded outline boxes, from the menu design) ---- */
.panel {
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 1.5rem 0;
  background: rgba(255,255,255,.35);
}
.band--red .panel { border-color: var(--white); background: transparent; }

/* ---- Image slots (placeholders — swap for real photos) ---- */
.img-slot {
  border: 2px dashed var(--red);
  border-radius: 14px;
  background: rgba(171, 35, 40, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  aspect-ratio: 4 / 3;
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--red-deep);
}
.band--red .img-slot { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.img-slot--wide { aspect-ratio: 16 / 7; }
.img-slot--tall { aspect-ratio: 3 / 4; }
/* When a real photo replaces a slot, use: <img class="site-photo"> */
.site-photo { width: 100%; height: auto; object-fit: cover; border-radius: 14px; display: block; }
/* Photo that stretches to exactly match a sibling grid column's height:
   the wrapper takes the row height; the img absolutely fills it. */
.photo-fill-wrap { position: relative; min-height: 320px; border-radius: 14px; overflow: hidden; }
.photo-fill-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Faded brand illustration behind a section's content (menu intro) */
.watermark { position: relative; }
.watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/god-hands.webp') center 55% / min(440px, 80%) no-repeat;
  opacity: .12;
  pointer-events: none;
}
.watermark > * { position: relative; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

/* ---- Menu ---- */
.menu-nav {
  position: sticky;
  top: 63px;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px solid var(--red);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  white-space: nowrap;
}
.menu-nav a {
  display: block;
  padding: .85rem 1rem;
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .82rem;
  color: var(--black);
  text-decoration: none;
}
.menu-nav a:hover { color: var(--red); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .5rem 2.5rem;
  margin-top: 1.5rem;
}
.menu-item { padding: .9rem 0; border-bottom: 1px solid rgba(44,42,41,.15); }
.menu-item h3 { display: inline; font-size: 1.05rem; }
.menu-item .price {
  font-family: var(--condensed);
  font-weight: 600;
  color: var(--red);
  letter-spacing: .05em;
  margin-left: .5rem;
  white-space: nowrap;
}
.band--red .menu-item .price { color: var(--white); }
.band--red .menu-item { border-color: rgba(244,241,237,.3); }
.menu-item p { font-size: .92rem; opacity: .85; margin-top: .25rem; }
.menu-section-note { margin-top: 1.25rem; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
.photo-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
}
.photo-grid .img-slot { aspect-ratio: 1; }

/* ---- Reviews ---- */
.review-stars { color: var(--red); font-size: 1.6rem; letter-spacing: .2em; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.review-card {
  border: 2px solid rgba(44,42,41,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.5);
  padding: 1.5rem;
  font-style: italic;
}
.review-card cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; opacity: .7; }

/* ---- Forms ---- */
form.brand-form { display: grid; gap: 1rem; max-width: 640px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label {
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--black);
  display: block;
  margin-bottom: .35rem;
}
.band--red label { color: var(--white); }
input, select, textarea {
  width: 100%;
  padding: .8em 1em;
  background: #fff;
  border: 1px solid var(--gray);
  color: var(--black);
  font-family: var(--body);
  font-size: 1rem;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.band--red input:focus, .band--red select:focus, .band--red textarea:focus { outline-color: var(--black-deep); }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #2e7d32; }
.band--red .form-status.ok { color: #d9f2da; }
.form-status.err { color: var(--red-deep); }
.band--red .form-status.err { color: #ffd9d9; }

/* Inline email signup */
.signup-inline { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem auto 0; }
.signup-inline input { flex: 1; }
@media (max-width: 560px) { .signup-inline { flex-direction: column; } }

/* ---- Delivery chooser modal ---- */
#delivery-modal {
  border: 2px solid var(--red);
  border-radius: 14px;
  background: var(--cream);
  color: var(--black);
  padding: 2rem;
  max-width: 400px;
  width: calc(100% - 2.5rem);
  position: relative;
}
#delivery-modal::backdrop { background: rgba(32, 30, 29, .65); }
.delivery-options { display: grid; gap: .75rem; margin-top: 1.25rem; }
.delivery-options .btn { text-align: center; }
.modal-close {
  position: absolute;
  top: .5rem; right: .8rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
}
.modal-close:hover { color: var(--red); }

/* ---- Sticky mobile order bar ---- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--black-deep);
  border-top: 3px solid var(--red);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 1rem .5rem;
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  font-size: .95rem;
  color: var(--white);
}
.mobile-cta a.order { background: var(--red); flex: 1.3; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 58px; }
}

/* ---- Footer (stays dark — white logo, strong close) ---- */
.site-footer {
  background: var(--black-deep);
  color: var(--gray);
  padding: 3.5rem 1.25rem 2rem;
  border-top: 3px solid var(--red);
}
.site-footer .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h3 { font-size: .85rem; margin-bottom: .75rem; color: var(--red); }
.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer address { font-style: normal; }
.site-footer .legal {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(203,196,188,.15);
  font-size: .8rem;
  opacity: .6;
  text-align: center;
}
