/* ---- Version 4 only: counter-service checkerboard -----------------------
   Structure follows the reference deli layout — full-bleed hero with a logo
   badge, then alternating 50/50 panels of photograph and flat colour, each
   carrying one oversized uppercase heading and a single outlined action.
   Hand-written CSS on The OG 1870's own tokens. */

/* Hero */
.v4-hero { position: relative; background: var(--espresso); }
.v4-hero img { width: 100%; height: clamp(420px, 78vh, 760px); object-fit: cover; }
.v4-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,24,19,.45) 0%, rgba(33,24,19,.05) 45%, rgba(33,24,19,.65) 100%);
}
.v4-badge {
  position: absolute; top: clamp(1rem, 3vw, 2.5rem); left: clamp(1rem, 3vw, 2.5rem);
  z-index: 2; width: clamp(88px, 11vw, 140px);
}
.v4-badge img { width: 100%; height: auto; border-radius: 50%; border: 4px solid var(--cream); }
.v4-hero__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1.5rem, 5vw, 3.5rem);
  text-align: center; padding-inline: 1rem;
}
.v4-hero__caption h1 {
  font-family: var(--font-label); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); font-size: clamp(1.2rem, 3.2vw, 2.4rem);
  margin: 0 auto; text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.v4-hero__caption .v4-sub {
  font-family: var(--font-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin: 0.4rem auto 0; max-width: none; opacity: .92;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}

/* Checkerboard */
.v4-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .v4-row { grid-template-columns: 1fr 1fr; } }

.v4-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  min-height: clamp(320px, 42vw, 520px);
}
.v4-panel h2 {
  font-family: var(--font-label); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 var(--s2); color: var(--cream);
}
.v4-panel p { color: var(--cream); margin: 0 auto var(--s3); max-width: 38ch; }
.v4-panel .v4-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-label); font-size: 1.05rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--cream); border: 2px solid var(--cream);
  padding: 0.75rem 1.8rem; border-radius: var(--radius); min-height: 44px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.v4-panel .v4-btn:hover { background: var(--cream); color: var(--red); }
.v4-panel .v4-btn + .v4-btn { margin-top: var(--s1); }

.v4-panel--red { background: var(--red); }
.v4-panel--dark { background: var(--espresso); }

/* Photo half */
.v4-photo { position: relative; min-height: clamp(280px, 42vw, 520px); overflow: hidden; }
.v4-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Brand-pattern half — the logo tiled, the way the reference tiles its crest */
.v4-pattern {
  background-color: var(--red-deep);
  background-image: url("/images/favicon.png");
  background-repeat: repeat;
  background-size: 108px 108px;
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
}
.v4-pattern::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(74, 16, 12, 0.55);
}
.v4-pattern .v4-panel { position: relative; z-index: 1; height: 100%; }

/* Keep the visual zig-zag on desktop, but never start a row with a photo
   stacked under its own caption on mobile. */
@media (min-width: 860px) {
  .v4-row--flip .v4-photo, .v4-row--flip .v4-pattern { order: 2; }
}

/* Hours strip */
.v4-hours { background: var(--cream); text-align: center; }
.v4-hours .container { padding-block: var(--s4); }
.v4-hours h2 {
  font-family: var(--font-label); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin: 0 0 var(--s2);
}
.v4-hours dl {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2) var(--s5); margin: 0;
}
.v4-hours div { min-width: 180px; }
.v4-hours dt {
  font-family: var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-size: 1rem;
}
.v4-hours dd { margin: 0; font-weight: 700; }
.v4-hours dd small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--text-muted); }
