/* ============================================================
   WALL OF DELIVERY — CUSTOMER PHOTOS SECTION
   ============================================================ */
.wall {
  position: relative;
  width: 100%;
  padding: 120px 48px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #081222 0%, #0a1628 50%, #060e1e 100%);
  overflow: hidden;
  isolation: isolate;
}
.wall__divider {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(640px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.45) 50%, transparent 100%);
}
.wall__glow {
  position: absolute;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.wall__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================
   HEADER + STAT STRIP
   ============================================================ */
.wall__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 76px;
}
.wall__stat-strip {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 30px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wall__stat-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 13.5px;
  color: var(--ink-mute);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.wall__stat-strip li:last-child { border-right: none; }
.wall__stat-strip li strong {
  font-weight: 900;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   POLAROID WALL GRID
   ============================================================ */
.wall__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding: 20px 0 60px;
  margin-bottom: 60px;
  perspective: 1200px;
}

/* Tilt every other row slightly differently for that "pinned-to-wall" feel */
.wall__gallery > :nth-child(1) { transform: rotate(var(--tilt, 0deg)) translateY(0); }
.wall__gallery > :nth-child(2) { transform: rotate(var(--tilt, 0deg)) translateY(20px); }
.wall__gallery > :nth-child(3) { transform: rotate(var(--tilt, 0deg)) translateY(-6px); }
.wall__gallery > :nth-child(4) { transform: rotate(var(--tilt, 0deg)) translateY(12px); }
.wall__gallery > :nth-child(5) { transform: rotate(var(--tilt, 0deg)) translateY(-8px); }
.wall__gallery > :nth-child(6) { transform: rotate(var(--tilt, 0deg)) translateY(16px); }

/* ============================================================
   POLAROID CARD
   ============================================================ */
.polaroid {
  position: relative;
  background: linear-gradient(180deg, #f5ede2 0%, #efe6d8 100%);
  padding: 14px 14px 22px;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 22px 36px rgba(0, 0, 0, 0.35),
    0 8px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
  cursor: pointer;
}
.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 35%),
    radial-gradient(ellipse at 10% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-14px) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 32px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 166, 35, 0.35),
    0 0 24px rgba(245, 166, 35, 0.25);
  z-index: 5;
}

/* Decorative tape strip */
.polaroid__tape {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 90px; height: 22px;
  background:
    linear-gradient(180deg, rgba(245, 230, 180, 0.55) 0%, rgba(220, 200, 140, 0.55) 100%);
  border-left: 1px dashed rgba(0, 0, 0, 0.06);
  border-right: 1px dashed rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  z-index: 3;
}
.polaroid--tilt-r .polaroid__tape {
  left: auto; right: 14px;
  transform: rotate(38deg);
}

/* Decorative pin */
.polaroid__pin {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b 0%, #c92a2a 70%, #8a1414 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  z-index: 3;
}
.polaroid__pin::after {
  content: "";
  position: absolute;
  top: 60%; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 1px;
}

/* ============================================================
   PHOTO AREA
   ============================================================ */
.polaroid__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.92);
}
.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease);
  filter: saturate(1.05) contrast(1.04);
}
.polaroid:hover .polaroid__photo img {
  transform: scale(1.05);
}

/* Soft vignette overlay */
.polaroid__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.25) 100%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

/* City pin chip */
.polaroid__city {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 7px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  z-index: 2;
}
.polaroid__city svg {
  width: 11px; height: 11px;
  color: var(--accent);
}

/* Date stamp */
.polaroid__date {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.85);
  padding: 4px 8px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

/* Lift city/date chips above the image */
.polaroid__city,
.polaroid__date { z-index: 2; }

/* ============================================================
   CAPTION AREA (below photo)
   ============================================================ */
.polaroid__caption {
  padding: 16px 8px 4px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.polaroid__quote {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.polaroid__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2a2a2a;
  margin-bottom: 3px;
}
.polaroid__meta {
  font-size: 11px;
  font-weight: 500;
  color: #6a6a6a;
  letter-spacing: 0.04em;
}

/* ============================================================
   MARQUEE — more from the wall (auto-scroll)
   ============================================================ */
.wall__marquee {
  position: relative;
  margin: 8px 0 60px;
  padding: 0;
}
.wall__marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  padding-left: 4px;
}
.wall__marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.wall__marquee-track {
  position: relative;
  display: flex;
  gap: 14px;
  overflow: hidden;
  width: 100%;
  /* Edge fade so the loop doesn't snap visually */
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.wall__marquee-row {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  animation: marqueeScroll 60s linear infinite;
}
.wall__marquee:hover .wall__marquee-row {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 14px)); }
}

.wall__marquee-row figure {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease-out);
  cursor: pointer;
}
.wall__marquee-row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out), filter 0.4s var(--ease);
  filter: saturate(0.95) brightness(0.92);
}
.wall__marquee-row figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}
.wall__marquee-row figure:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 166, 35, 0.25), 0 0 18px rgba(245, 166, 35, 0.2);
  z-index: 2;
}
.wall__marquee-row figure:hover img {
  filter: saturate(1.1) brightness(1);
  transform: scale(1.08);
}

/* ============================================================
   FOOTER — EAST COUNTY MINI-MAP + CTA
   ============================================================ */
.wall__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.wall__map {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.wall__map-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.wall__map-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

/* ----- Route line: drawn on scroll-in, then stays as dashed ----- */
.wall__map-path {
  stroke: rgba(245, 166, 35, 0.5);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  /* Total path length is ~270 — slightly over-sized to ensure full draw */
  stroke-dashoffset: 280;
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.3));
}
.wall__map.is-revealed .wall__map-path {
  animation: drawRoute 1.6s var(--ease-out) 0.1s forwards;
}
@keyframes drawRoute {
  0%   { stroke-dasharray: 0 280; stroke-dashoffset: 0; }
  60%  { stroke-dasharray: 280 0; }
  100% { stroke-dasharray: 4 5;   stroke-dashoffset: 0; }
}

/* ----- City pin groups ----- */
.wall__map-pin { opacity: 0; transform-origin: center; }
.wall__map.is-revealed .wall__map-pin {
  animation: pinPop 0.55s var(--ease-out) calc(0.4s + var(--d, 0s)) forwards;
}
@keyframes pinPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pin dot */
.wall__map-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transform-origin: center;
  transform-box: fill-box;
}
.wall__map.is-revealed .wall__map-dot {
  animation: pinPulse 2.6s ease-in-out calc(1.4s + var(--d, 0s)) infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Radar pulse ring on each pin */
.wall__map-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.wall__map.is-revealed .wall__map-ring {
  animation: radar 2.6s ease-out calc(1.4s + var(--d, 0s)) infinite;
}
@keyframes radar {
  0%   { opacity: 0.7; transform: scale(0.6); stroke-width: 2; r: 5; }
  100% { opacity: 0;   transform: scale(3.2); stroke-width: 0.5; r: 5; }
}

/* Pin label */
.wall__map-dots text {
  fill: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-anchor: middle;
  letter-spacing: 0.04em;
}

/* ----- Glowing delivery orb that traces the route ----- */
.wall__map-orb-group {
  opacity: 0;
}
.wall__map.is-revealed .wall__map-orb-group {
  animation: orbFadeIn 0.5s ease 1.8s forwards;
}
@keyframes orbFadeIn {
  to { opacity: 1; }
}
.wall__map-orb {
  fill: #fff7e4;
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 12px var(--accent-glow));
}
.wall__map-orb-glow {
  fill: var(--accent);
  opacity: 0.35;
  filter: blur(2px);
  animation: orbHalo 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes orbHalo {
  0%, 100% { transform: scale(1);   opacity: 0.3; }
  50%      { transform: scale(1.6); opacity: 0.6; }
}

.wall__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 100px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.wall__cta svg {
  width: 16px; height: 16px;
  transition: transform 0.25s var(--ease);
}
.wall__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
  transform: translateY(-2px);
}
.wall__cta:hover svg { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wall { padding: 100px 36px; }
  .wall__gallery { gap: 30px 22px; }
}

@media (max-width: 920px) {
  .wall { padding: 88px 28px; }
  .wall__header { margin-bottom: 56px; }
  .wall__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }
  .wall__marquee-row figure { width: 140px; }
  .wall__footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 24px;
    gap: 24px;
  }
  .wall__map { max-width: none; }
  .wall__cta { justify-content: center; }
}

@media (max-width: 600px) {
  .wall { padding: 72px 20px; }
  .wall__header { margin-bottom: 44px; }
  .wall__stat-strip { padding: 10px 14px; }
  .wall__stat-strip li {
    font-size: 12px;
    padding: 0 12px;
  }
  .wall__stat-strip li strong { font-size: 14px; }
  .wall__gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wall__gallery > article {
    transform: rotate(var(--tilt, 0deg)) !important;
    translate: 0 0 !important;
  }
  .polaroid { padding: 12px 12px 18px; }
  .polaroid__quote { font-size: 20px; }
  .polaroid__city, .polaroid__date { font-size: 9.5px; }
  .wall__map-dots text { font-size: 8px; }
  .wall__marquee-row figure { width: 120px; }
  .wall__marquee-row { gap: 10px; }
  .wall__marquee-track { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid {
    transform: none !important;
    transition: box-shadow 0.2s linear !important;
  }
  .wall__gallery > * {
    transform: none !important;
    translate: 0 0 !important;
  }
  .polaroid:hover {
    transform: translateY(-6px) !important;
  }
  .wall__marquee-row { animation: none !important; }
  .wall__marquee-dot { animation: none !important; }
}

/* Make all customer photos look clickable */
.polaroid__photo,
.wall__marquee-row figure {
  cursor: zoom-in;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(5, 13, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}

.lightbox__figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #050d1c;
}
.lightbox__img.is-loading { opacity: 0.4; filter: blur(4px); }

/* Close button */
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
  transform: rotate(90deg);
}

/* Prev/Next arrows */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  backdrop-filter: blur(10px);
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
}
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(4px); }

/* Counter */
.lightbox__counter {
  position: absolute;
  top: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(10px);
}
.lightbox__counter-sep { color: var(--ink-faint); }
.lightbox__counter #lb-current { color: var(--accent); }

/* Body scroll-lock when lightbox is open */
body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox__nav {
    width: 44px; height: 44px;
  }
  .lightbox__nav svg { width: 18px; height: 18px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lightbox__counter { top: 18px; font-size: 12px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__figure,
  .lightbox__close,
  .lightbox__nav {
    transition: opacity 0.2s linear, visibility 0s linear !important;
    transform: none !important;
  }
  .lightbox.is-open .lightbox__figure { transform: none !important; }
}
