/* Equipment slideshow (2026-11-13): Amigos-hero style banner in the Supported Equipment
   section. Native horizontal scroll-snap track (swipe / trackpad / shift+wheel / arrows /
   dots), copy on the left animates in each time its slide becomes current (.is-on),
   photo on the right cropped to fill (object-fit: cover), left edge fading into the panel.
   Per-slide crop: set --pos on the <img> (object-position), e.g. style="--pos: 50% 30%". */

.equip-slider { max-width: 1100px; margin: 56px auto 0; }
@media (max-width: 600px) { .equip-slider { margin-top: 32px; } }

.hero-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hs-track {
    display: flex;
    height: 440px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-track:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }

.hs-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

/* Copy */
.hs-cap {
    align-self: center;
    padding: 32px 24px 48px 48px;
    color: var(--white);
    position: relative;
    z-index: 1;
}
.hs-count {
    margin: 0 0 14px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--amber);
}
.hs-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
}
.hs-text {
    margin: 14px 0 0;
    max-width: 26em;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--silver);
}
.hs-link {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 20px;
    border-radius: 4px;
    background: var(--amber);
    color: var(--navy);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease;
}
.hs-link:hover { background: var(--amber-dark); }

/* Text moves in per slide (same motion as the Amigos hero) */
@keyframes hsTextIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hs-slide.is-on .hs-cap > * { animation: hsTextIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hs-slide.is-on .hs-cap > :nth-child(1) { animation-delay: 0.15s; }
.hs-slide.is-on .hs-cap > :nth-child(2) { animation-delay: 0.25s; }
.hs-slide.is-on .hs-cap > :nth-child(3) { animation-delay: 0.35s; }
.hs-slide.is-on .hs-cap > :nth-child(4) { animation-delay: 0.45s; }

/* Photo: cropped to fill, slow zoom while current */
.hs-media {
    position: relative;
    overflow: hidden;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%);
            mask-image: linear-gradient(to right, transparent 0%, #000 18%);
}
.hs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 50%);
    display: block;
    transform: scale(1);
    transition: transform 2.5s ease-out;
    -webkit-user-drag: none;
    user-select: none;
}
.hs-slide.is-on .hs-media img { transform: scale(1.03); }

/* Arrows + dots */
.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(8,35,61,0.65);
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}
.hero-slider:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
.hs-arrow:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-dots {
    position: absolute;
    left: 48px;
    bottom: 22px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.hs-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}
.hs-dots button.active { background: var(--amber); width: 22px; border-radius: 4px; }

/* Phones: photo on top, copy below */
@media (max-width: 760px) {
    .hs-track { height: auto; }
    .hs-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
    .hs-media { grid-row: 1; height: 260px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
    .hs-cap { grid-row: 2; padding: 8px 22px 56px; }
    .hs-dots { left: 22px; }
}
@media (hover: none) {
    .hs-arrow { display: none; }   /* phones/tablets swipe instead */
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide .hs-cap > * { animation: none !important; }
    .hs-media img { transition: none; transform: none !important; }
}
