/* ============================================================
   Anthony's Pizza — TV Menu Display
   Designed for 1920×1080 landscape · 16:9 · screen-burn safe
   Matches the site's cream/warm theme.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=Inter:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@1,500&display=swap');

:root {
  --bg: #fbf6ec;
  --bg-warm: #f3ecdc;
  --bg-deep: #ebe2cc;
  --bg-stripe: #e3d8bd;
  --surface: #fef9ef;
  --surface-2: #ffffff;
  --ink: #1c1411;
  --ink-2: #2a1f1a;
  --text: #221814;
  --muted: #6b5a4a;
  --faint: #a39379;
  --primary: #b8311f;
  --primary-deep: #7d1d12;
  --gold: #c89b2a;
  --gold-deep: #a8801c;
  --basil: #4a6638;
  --border: #cfc299;
  --divider: #dfd4b8;
  --shadow-soft: 0 8px 32px rgba(28, 20, 17, 0.10);
  --shadow-card: 0 20px 60px rgba(28, 20, 17, 0.18);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-script: 'Cormorant Garamond', 'Georgia', serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Master stage — fills the screen */
.tv-stage {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(200, 155, 42, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(184, 49, 31, 0.06), transparent 55%),
    var(--bg);
}

/* ============ HEADER ============ */
.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4vh 2.4vw;
  background: linear-gradient(180deg, rgba(28, 20, 17, 0.96) 0%, rgba(28, 20, 17, 0.93) 100%);
  color: var(--surface);
  border-bottom: 3px solid var(--gold);
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 1.2vw;
}

.tv-brand-mark {
  width: 5.6vh;
  height: 5.6vh;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2vh;
  color: var(--surface);
  letter-spacing: -0.04em;
  box-shadow: 0 4px 12px rgba(184, 49, 31, 0.4);
}

.tv-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2vh;
}

.tv-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3vh;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tv-brand-tagline {
  font-size: 1.4vh;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.tv-zone-pill {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  padding: 0.8vh 1.4vw;
  background: rgba(254, 249, 239, 0.08);
  border: 1px solid rgba(200, 155, 42, 0.35);
  border-radius: 999px;
  font-size: 1.6vh;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tv-zone-pill .dot {
  width: 0.9vh;
  height: 0.9vh;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: tv-pulse 2.4s ease-in-out infinite;
}

.tv-header-meta {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  font-size: 1.5vh;
  color: rgba(254, 249, 239, 0.85);
}

.tv-header-meta strong { color: var(--surface); font-weight: 700; }

/* ============ MAIN STAGE ============ */
.tv-main {
  position: relative;
  overflow: hidden;
}

.tv-slide {
  position: absolute;
  inset: 0;
  padding: 4vh 4vw;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(2vh);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

.tv-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tv-slide-eyebrow {
  font-size: 1.6vh;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.2vh;
}

.tv-slide-title {
  font-family: var(--font-display);
  font-size: 7vh;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.tv-slide-title .accent { color: var(--primary); font-style: italic; font-weight: 700; }
.tv-slide-title .gold { color: var(--gold-deep); }

.tv-slide-sub {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 2.6vh;
  color: var(--muted);
  margin-top: 1.4vh;
}

/* ============ HERO SLIDE ============ */
.tv-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4vw;
}

.tv-hero-text { padding-left: 2vw; }
.tv-hero-text .tv-slide-title { font-size: 9vh; }
.tv-hero-text .tv-slide-sub { font-size: 3vh; margin-top: 2.4vh; }

.tv-hero-image {
  width: 100%;
  height: 78vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-deep));
}

.tv-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ SIZE GRID (build your pizza, specialty pies) ============ */
.tv-size-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2vw;
  margin-top: 3vh;
}

.tv-size-cell {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 2vh 1vw;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.tv-size-cell-label {
  font-size: 1.7vh;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.tv-size-cell-price {
  font-family: var(--font-display);
  font-size: 3.6vh;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.6vh;
}

/* item list (2 column when many items) */
.tv-item-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vh 3vw;
  margin-top: 3vh;
}

.tv-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1.4vw;
  padding: 1vh 0;
  border-bottom: 1px dashed var(--divider);
}

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

.tv-item-name {
  font-family: var(--font-display);
  font-size: 2.4vh;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.tv-item-desc {
  font-size: 1.5vh;
  color: var(--muted);
  margin-top: 0.4vh;
  line-height: 1.35;
}

.tv-item-price {
  font-family: var(--font-display);
  font-size: 2.6vh;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.tv-footnote {
  margin-top: auto;
  padding-top: 2vh;
  font-size: 1.4vh;
  color: var(--faint);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--divider);
}

/* ============ CREATIONS SHOWCASE (image cards) ============ */
.tv-creations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1vh;
}

.tv-creations-highlight {
  background: var(--primary);
  color: var(--surface);
  padding: 0.8vh 1.4vw;
  border-radius: 999px;
  font-size: 1.6vh;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tv-creations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.6vw 1.6vw;
  margin-top: 3vh;
  flex: 1;
}

.tv-creation-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 4.2fr 5fr;
  align-items: stretch;
}

.tv-creation-card-img {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-deep));
  position: relative;
}

.tv-creation-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-creation-card-body {
  padding: 1.8vh 1.4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tv-creation-card-name {
  font-family: var(--font-display);
  font-size: 2.5vh;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.tv-creation-card-desc {
  font-size: 1.4vh;
  color: var(--muted);
  margin-top: 0.6vh;
  line-height: 1.4;
}

/* ============ BOROUGH SPECIALS ============ */
.tv-borough-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.5vw;
  margin-top: 3vh;
  flex: 1;
}

.tv-borough-card {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--surface);
  border-radius: 18px;
  padding: 2.4vh 1.6vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.tv-borough-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200, 155, 42, 0.15), transparent 60%);
  pointer-events: none;
}

.tv-borough-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.tv-borough-name {
  font-family: var(--font-display);
  font-size: 2.8vh;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tv-borough-price {
  font-family: var(--font-display);
  font-size: 4.2vh;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.tv-borough-save {
  display: inline-block;
  background: var(--primary);
  color: var(--surface);
  padding: 0.5vh 1vw;
  border-radius: 6px;
  font-size: 1.3vh;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 0.8vh;
  width: max-content;
}

.tv-borough-desc {
  font-size: 1.6vh;
  color: rgba(254, 249, 239, 0.88);
  margin-top: 1.4vh;
  line-height: 1.45;
  position: relative;
}

/* ============ DELIVERY ZONE ============ */
.tv-delivery {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4vw;
  margin-top: 3vh;
  flex: 1;
}

.tv-delivery-headline {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--surface);
  border-radius: 24px;
  padding: 3.6vh 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.tv-delivery-radius {
  font-family: var(--font-display);
  font-size: 9vh;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.tv-delivery-radius-sub {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 3vh;
  color: rgba(254, 249, 239, 0.85);
  margin-top: 1.6vh;
}

.tv-delivery-min {
  margin-top: 3vh;
  padding-top: 2.2vh;
  border-top: 1px solid rgba(254, 249, 239, 0.25);
  font-size: 2vh;
  color: rgba(254, 249, 239, 0.92);
}

.tv-delivery-min strong { font-size: 2.4vh; color: var(--gold); }

.tv-delivery-tiers {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.8vh 2vw;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.tv-delivery-tiers-head {
  font-family: var(--font-display);
  font-size: 2.6vh;
  font-weight: 800;
  margin-bottom: 1.4vh;
  color: var(--ink);
}

.tv-tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.2vh 0;
  border-bottom: 1px dashed var(--divider);
}
.tv-tier-row:last-child { border-bottom: none; }
.tv-tier-miles { font-size: 2vh; color: var(--ink); font-weight: 600; }
.tv-tier-fee { font-family: var(--font-display); font-size: 2.6vh; font-weight: 800; color: var(--primary); }

/* ============ WINGS BOARD ============ */
.tv-wings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6vw;
  margin-top: 3vh;
  flex: 1;
}

.tv-wings-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 2.4vh 1.4vw;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.tv-wings-card-title {
  font-family: var(--font-display);
  font-size: 2.6vh;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  padding-bottom: 1.4vh;
  border-bottom: 2px solid var(--gold);
}

.tv-wings-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vh 1vw;
  margin-top: 2vh;
}

.tv-wings-tier {
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 1vh 0.6vw;
  text-align: center;
}

.tv-wings-tier-qty {
  font-size: 1.5vh;
  color: var(--muted);
  font-weight: 600;
}

.tv-wings-tier-price {
  font-family: var(--font-display);
  font-size: 2.4vh;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.2vh;
}

/* ============ ORDER CTA ============ */
.tv-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6vw;
  margin-top: 3vh;
  flex: 1;
}

.tv-order-card {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 3vh 1.4vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.tv-order-icon {
  width: 9vh;
  height: 9vh;
  background: var(--primary);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2vh;
  font-size: 4.5vh;
  box-shadow: 0 6px 20px rgba(184, 49, 31, 0.35);
}

.tv-order-label {
  font-size: 1.6vh;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.tv-order-value {
  font-family: var(--font-display);
  font-size: 2.8vh;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1vh;
  line-height: 1.2;
  word-break: break-word;
}

/* ============ HOURS CARD ============ */
.tv-hours-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 3.6vh 3vw;
  margin-top: 3vh;
  border: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  align-items: center;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.tv-hours-block { display: flex; flex-direction: column; gap: 2vh; }

.tv-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.6vh 0;
  border-bottom: 1px dashed var(--divider);
}

.tv-hours-days {
  font-family: var(--font-display);
  font-size: 3vh;
  font-weight: 700;
  color: var(--ink);
}

.tv-hours-time {
  font-family: var(--font-display);
  font-size: 3vh;
  font-weight: 800;
  color: var(--primary);
}

.tv-location-block {
  text-align: center;
  border-left: 2px solid var(--divider);
  padding-left: 3vw;
}

.tv-location-icon {
  font-size: 6vh;
  color: var(--gold);
  margin-bottom: 1.4vh;
}

.tv-location-addr {
  font-family: var(--font-display);
  font-size: 2.6vh;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.tv-location-hood {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 2.2vh;
  color: var(--muted);
  margin-top: 1vh;
}

.tv-location-phone {
  font-family: var(--font-display);
  font-size: 4vh;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-top: 2vh;
}

/* ============ FOOTER ============ */
.tv-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 1.6vh 2.4vw;
  background: var(--ink);
  color: rgba(254, 249, 239, 0.85);
  border-top: 3px solid var(--gold);
  font-size: 1.5vh;
}

.tv-footer-cell { display: flex; align-items: center; gap: 0.8vw; }
.tv-footer-cell.center { justify-content: center; }
.tv-footer-cell.right { justify-content: flex-end; }
.tv-footer-cell strong { color: var(--gold); font-weight: 700; font-size: 1.7vh; }

.tv-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--gold);
  width: 0;
  transition: width 11s linear;
  z-index: 10;
}

@keyframes tv-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

/* Screen burn-in safeguard: subtle slow drift on the whole stage */
.tv-stage::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 70%, rgba(0, 0, 0, 0.04) 100%);
  animation: tv-drift 900s linear infinite;
}

@keyframes tv-drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 4px); }
  50% { transform: translate(4px, 4px); }
  75% { transform: translate(4px, -4px); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   HERO-ITEM SLIDE — 1-up cinematic, big photo + single item
   ============================================================ */
.tv-hero-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4vh;
  align-items: center;
  height: 100%;
  padding: 1vh 2vw;
}

.tv-hero-item-image {
  position: relative;
  width: 100%;
  height: 78vh;
  max-height: 80vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 50px rgba(50, 20, 10, 0.32),
    0 8px 20px rgba(184, 49, 31, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  background: #2a1a13;
}

.tv-hero-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle drift to prevent burn-in on 1-photo slides */
  animation: tv-img-drift 22s ease-in-out infinite alternate;
}

@keyframes tv-img-drift {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

.tv-hero-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4vh;
  padding-right: 1vw;
}

.tv-hero-item-name {
  font-size: 7.2vh;
  line-height: 1.02;
  margin: 0;
}

.tv-hero-item-desc {
  font-family: var(--tv-font-serif-soft, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 3.4vh;
  line-height: 1.32;
  color: var(--tv-ink-soft, #4a3a31);
  margin: 0.4vh 0 0.8vh 0;
  max-width: 95%;
}

.tv-hero-item-price {
  font-family: var(--tv-font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 800;
  font-size: 8vh;
  color: var(--tv-primary, #b8311f);
  line-height: 1;
  margin-top: 1vh;
  letter-spacing: -0.02em;
}

.tv-hero-item-price-note {
  font-family: var(--tv-font-sans, 'Inter', sans-serif);
  font-size: 2.2vh;
  font-weight: 500;
  color: var(--tv-ink-soft, #4a3a31);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -0.6vh;
}

/* ============================================================
   ITEM-MOSAIC SLIDE — 2 or 3 cards per slide, each photo-driven
   ============================================================ */
.tv-mosaic-grid {
  display: grid;
  gap: 2.4vw;
  margin-top: 2.4vh;
  flex: 1;
  min-height: 0;
}

.tv-mosaic-2 { grid-template-columns: 1fr 1fr; }
.tv-mosaic-3 { grid-template-columns: 1fr 1fr 1fr; }
.tv-mosaic-1 { grid-template-columns: 1fr; max-width: 60%; margin-left: auto; margin-right: auto; }

.tv-mosaic-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(50, 20, 10, 0.18),
    0 4px 10px rgba(184, 49, 31, 0.10),
    inset 0 0 0 1px rgba(200, 155, 42, 0.18);
}

.tv-mosaic-img {
  width: 100%;
  height: 0;
  padding-bottom: 62%;
  position: relative;
  background: #2a1a13;
  overflow: hidden;
}

.tv-mosaic-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tv-mosaic-body {
  padding: 2.4vh 1.8vw 2.6vh 1.8vw;
  display: flex;
  flex-direction: column;
  gap: 0.6vh;
  flex: 1;
}

.tv-mosaic-name {
  font-family: var(--tv-font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 700;
  font-size: 3.6vh;
  line-height: 1.1;
  color: var(--tv-ink, #2a1a13);
}

.tv-mosaic-desc {
  font-family: var(--tv-font-serif-soft, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 2.5vh;
  line-height: 1.32;
  color: var(--tv-ink-soft, #4a3a31);
  flex: 1;
}

.tv-mosaic-price {
  font-family: var(--tv-font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 800;
  font-size: 4.2vh;
  color: var(--tv-primary, #b8311f);
  line-height: 1;
  margin-top: 0.6vh;
  letter-spacing: -0.01em;
}

/* When only 2 cards, give them more breathing room */
.tv-mosaic-2 .tv-mosaic-name { font-size: 4.2vh; }
.tv-mosaic-2 .tv-mosaic-desc { font-size: 2.8vh; }
.tv-mosaic-2 .tv-mosaic-price { font-size: 5vh; }
.tv-mosaic-2 .tv-mosaic-img { padding-bottom: 58%; }
