/* =====================================================================
   PIZZA BONO — Promotions UI
   Announcement bar · homepage deals section · menu deals strip.
   Pulls entirely from the Trattoria design tokens in trattoria.css.
   ===================================================================== */

/* ---------- Announcement bar (top of every page) ---------- */
.promo-bar {
  background: linear-gradient(100deg, var(--red), var(--red-deep));
  color: #fff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease;
}
.promo-bar.in { max-height: 120px; opacity: 1; }
.promo-bar-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter);
  min-height: 46px;
}
.promo-bar .pb-spark { font-size: 1.1rem; flex: none; line-height: 1; }
.promo-bar .pb-msg { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; line-height: 1.3; }
.promo-bar .pb-msg b { font-weight: 800; font-size: 1rem; letter-spacing: .005em; }
.promo-bar .pb-sub { color: rgba(255,255,255,.82); font-size: .85rem; font-weight: 600; }
.promo-bar .pb-cta {
  margin-left: auto; flex: none;
  background: #fff; color: var(--red-deep);
  font-weight: 800; font-size: .85rem;
  padding: 8px 16px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.4);
}
.promo-bar .pb-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.promo-bar .pb-x {
  flex: none; background: rgba(255,255,255,.16); border: 0; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease;
}
.promo-bar .pb-x:hover { background: rgba(255,255,255,.3); }

@media (max-width: 620px) {
  .promo-bar.in { max-height: 160px; }
  .promo-bar-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 9px; }
  .promo-bar .pb-cta { margin-left: 0; order: 3; }
  .promo-bar .pb-x { order: 2; margin-left: auto; }
  .promo-bar .pb-msg { order: 1; width: 100%; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bar { transition: none; }
}

/* ---------- Homepage deals section ---------- */
.deals { padding: clamp(44px, 6vw, 76px) 0; background: var(--paper-2); }
.deals:empty { display: none; }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.deal-card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(36,31,27,.08);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deal-card .dc-pic { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-3); }
.deal-card .dc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.deal-card:hover .dc-pic img { transform: scale(1.05); }
.deal-card .dc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal-card .dc-badge {
  align-self: flex-start;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-tint);
  padding: 4px 11px; border-radius: var(--r-pill);
}
.deal-card h3 { font-size: 1.5rem; margin-top: 4px; }
.deal-card .dc-price { font-family: var(--serif); color: var(--red); line-height: 1; margin: 2px 0 4px; }
.deal-card .dc-price .amt { font-size: 2.4rem; }
.deal-card .dc-price em { font-style: normal; font-size: .5em; color: var(--ink-faint); }
.deal-card .dc-price .per { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink-faint); }
.deal-card .dc-blurb { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.deal-card .dc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.deal-card .dc-tag {
  font-size: .76rem; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid rgba(36,31,27,.1);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.deal-card .dc-today {
  font-size: .76rem; font-weight: 800; color: #fff; background: var(--green);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.deal-card .dc-cta { margin-top: auto; align-self: flex-start; }

/* staggered reveal for cards (only when motion is enabled) */
html.js-anim .deal-card.reveal { transition-delay: calc(var(--i, 0) * .08s); }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .deal-card.reveal { transition-delay: 0s; }
}

/* ---------- Menu deals strip ---------- */
.promo-strip {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 18px;
}
.promo-chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid rgba(36,31,27,.12);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  padding: 10px 16px 10px 13px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.promo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-chip .pc-price { font-family: var(--serif); color: var(--red); font-size: 1.5rem; line-height: 1; }
.promo-chip .pc-text { display: flex; flex-direction: column; line-height: 1.25; }
.promo-chip .pc-text b { font-weight: 800; font-size: .98rem; }
.promo-chip .pc-text small { color: var(--ink-faint); font-size: .78rem; }
