/* ---------------------------------------------------------------------------
   Naughty Bean hero carousel  (Plato-style full-bleed slideshow)
   Rendered by templates/cms/sections/carousel.html + static/js/carousel.js
   Standalone stylesheet so it is served + compressed by WhiteNoise.
--------------------------------------------------------------------------- */
.nb-carousel {
  position: relative;
  width: 100%;
  background: var(--nb-light, #f3f3f3);
  overflow: hidden;
}

/* Plato uses a wide, cinematic banner on desktop that grows taller on small
   screens so portrait shots aren't over-cropped. */
.nb-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;          /* phones */
  overflow: hidden;
  outline: none;
}
@media (min-width: 640px)  { .nb-carousel-viewport { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .nb-carousel-viewport { aspect-ratio: 3 / 1; max-height: 720px; } }

.nb-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nb-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.nb-carousel-link { display: block; width: 100%; height: 100%; }

.nb-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.nb-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.5rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

/* Optional text overlay (blank by default -> clean Plato look). */
.nb-carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28));
}
.nb-carousel-overlay-inner { pointer-events: auto; color: #fff; width: 100%; }
.nb-carousel-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.nb-carousel-title {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.nb-carousel-cta { margin-top: 1.5rem; }

/* Prev / next arrows -- circular, translucent white (Plato). */
.nb-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nb-carousel-arrow:hover { background: #fff; }
.nb-carousel-arrow:active { transform: translateY(-50%) scale(0.94); }
.nb-carousel-arrow:focus-visible { outline: 2px solid var(--nb-accent, #c46649); outline-offset: 2px; }
.nb-carousel-arrow svg { width: 22px; height: 22px; }
.nb-carousel-prev { left: 16px; }
.nb-carousel-next { right: 16px; }
@media (max-width: 639px) { .nb-carousel-arrow { display: none; } }  /* swipe on mobile */

/* Pagination dots -- bottom-centre, active filled (Plato). */
.nb-carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 3;
}
.nb-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nb-carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }
.nb-carousel-dot.is-active { background: #fff; transform: scale(1.2); }
.nb-carousel-dot:focus-visible { outline: 2px solid var(--nb-accent, #c46649); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .nb-carousel-track { transition: none; }
}
