/*
 * Slideshow-page treatment — shared by /mobile-stage and /showroom.
 * Loaded via @push('styles') on both pages. Both pages are EB-only, so
 * this lives under assets/eb/. Brand accents use the --brand-* tokens
 * (resources/css/eb/brand.css); never hardcode brand hex here.
 */

/* =================================================================
   1. HERO COPY BLOCK (block-driven copy from `blocks`)
   ================================================================= */
.stage-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.stage-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.stage-hero__city {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-accent-text, var(--brand-primary)); /* the accent AS TEXT on white is 3.58:1; AA pink (WAVE, 2026-09-21) */
    margin-bottom: 0.5rem;
}

.stage-hero__title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #212529;
    margin-bottom: 1.25rem;
}

.stage-hero__description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.75rem;
}

.stage-hero__description p {
    margin-bottom: 1rem;
}

.stage-hero__description p:last-child {
    margin-bottom: 0;
}

.stage-hero__cta {
    margin-bottom: 0;
}

/* =================================================================
   2. SLIDER
   ================================================================= */
.stage-slider {
    position: relative;
    overflow: hidden;
}

.stage-slider__swiper {
    width: 100%;
}

.stage-slider__empty {
    text-align: center;
    color: #6b6b75; /* 5.27:1 on white; #777 was 4.48:1 (WAVE, 2026-09-21) */
    padding: 3rem 0;
    margin: 0;
}

.stage-slide {
    position: relative;
    overflow: hidden;
    background-color: #f4f4f4;
}

.stage-slide__picture {
    display: block;
    line-height: 0;
}

.stage-slide__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reserve media space to prevent CLS. Aspect ratios mirror the source
   art per page so the box matches the delivered crop. */
.stage-slider--mobile-stage .stage-slide {
    aspect-ratio: 2102 / 1000;
}

.stage-slider--showroom .stage-slide {
    aspect-ratio: 2560 / 1000;
}

/* Swiper nav arrows — white for contrast over full-bleed photography
   (neutral, not a brand accent). */
.stage-slider .swiper-button-prev,
.stage-slider .swiper-button-next {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.stage-slider .swiper-button-prev:hover,
.stage-slider .swiper-button-next:hover {
    opacity: 1;
}

/* Swiper pagination dots — active bullet carries the brand accent. */
.stage-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.stage-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--brand-primary);
}

/* Visible keyboard focus for the interactive Swiper controls. */
.stage-slider .swiper-button-prev:focus-visible,
.stage-slider .swiper-button-next:focus-visible,
.stage-slider .swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* =================================================================
   3. RESPONSIVE — mobile crops are near-square, so swap the ratio
      at the Bootstrap breakpoints where the mobile source is served.
   ================================================================= */
@media (max-width: 767.98px) {
    .stage-hero {
        padding: 2rem 0 1.5rem;
    }

    .stage-hero__title {
        font-size: 1.75rem;
    }

    .stage-slider--mobile-stage .stage-slide {
        aspect-ratio: 1450 / 1000;
    }

    .stage-slider--showroom .stage-slide {
        aspect-ratio: 1 / 1;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Showroom ships a dedicated 1920×1080 tablet crop. */
    .stage-slider--showroom .stage-slide {
        aspect-ratio: 1920 / 1080;
    }
}

/* =================================================================
   4. AUTOPLAY PAUSE/PLAY TOGGLE (WCAG 2.2.2 Pause, Stop, Hide)
      Revealed by the stage-slider JS only when the carousel is
      auto-advancing (never under prefers-reduced-motion).
   ================================================================= */
.stage-slider__autoplay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.stage-slider__autoplay:hover {
    background: rgba(0, 0, 0, 0.75);
}

.stage-slider__autoplay:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* The accessible name ("Pause slideshow" / "Play slideshow") lives here —
   hidden visually but kept in the accessibility tree. */
.stage-slider__autoplay-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pause glyph (default — slideshow playing): two vertical bars. */
.stage-slider__autoplay-icon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 16px;
}

.stage-slider__autoplay-icon::before,
.stage-slider__autoplay-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 16px;
    background: currentColor;
}

.stage-slider__autoplay-icon::before {
    left: 2px;
}

.stage-slider__autoplay-icon::after {
    right: 2px;
}

/* Play glyph (slideshow paused): single triangle. */
.stage-slider__autoplay.is-paused .stage-slider__autoplay-icon::after {
    display: none;
}

.stage-slider__autoplay.is-paused .stage-slider__autoplay-icon::before {
    left: 3px;
    width: 0;
    height: 0;
    background: transparent;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

/* =================================================================
   5. REDUCED MOTION — respect the user preference.
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    .stage-slider .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}
