.tft-slider {
  --tft-near-black: #14150F;
  --tft-olive-black: #1B1D14;
  --tft-olive-grey: #25271B;
  --tft-green: #6B7A4B;
  --tft-ink: #E8E8E5;
  --tft-muted: #C7C8BE;

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 78vh;
  min-height: 460px;
  max-height: 780px;
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  isolation: isolate;
}

.tft-slider__track { position: relative; width: 100%; height: 100%; }

.tft-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
  z-index: 1;
}
.tft-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 900ms ease, visibility 0s linear 0s;
  z-index: 2;
}

.tft-slider__bg {
  position: absolute;
  inset: -20px;
  transform: scale(1.06);
  transition: transform 7000ms linear;
}
.tft-slider__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://tf-tactical.com/wp-content/uploads/2026/09/tf-contour-original.png');
  background-size: cover;
  background-position: center;
  filter: invert(1) brightness(0.7) contrast(0.85);
  opacity: 0.18;
  pointer-events: none;
}
.tft-slider__slide.is-active .tft-slider__bg { transform: scale(1); }


.tft-slider__slide.tone-a .tft-slider__bg { background: var(--tft-near-black); }

/* Temporary shared photo background across all 3 slides until individual images are provided */
.tft-slider__slide.tone-a .tft-slider__bg,
.tft-slider__slide.tone-b .tft-slider__bg,
.tft-slider__slide.tone-c .tft-slider__bg {
  background-image:
    linear-gradient(90deg, rgba(20,21,15,0.88) 0%, rgba(20,21,15,0.6) 45%, rgba(20,21,15,0.25) 100%),
    url('https://tf-tactical.com/wp-content/uploads/2026/09/Slider-Image-1-scaled.png');
  background-size: cover;
  background-position: center;
}
.tft-slider__bg::before {
  display: none;
}

.tft-slider__slide.tone-b .tft-slider__bg { background: var(--tft-olive-black); }
.tft-slider__slide.tone-c .tft-slider__bg { background: var(--tft-olive-grey); }

.tft-slider__slide::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -6%;
  width: 34%;
  height: 160%;
  background: rgba(107, 122, 75, 0.14);
  transform: rotate(16deg);
  z-index: 1;
}

.tft-slider__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 min(8vw, 96px);
  color: var(--tft-ink);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 700ms ease 200ms, opacity 700ms ease 200ms;
}
.tft-slider__slide.is-active .tft-slider__content {
  transform: translateY(0);
  opacity: 1;
}

.tft-slider__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tft-green);
}
.tft-slider__heading {
  margin: 0 0 16px;
  font-family: 'Bahnschrift', 'Arial Narrow', 'Segoe UI Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}
.tft-slider__desc {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tft-muted);
  max-width: 520px;
}
.tft-slider__btn {
  display: inline-block;
  background: var(--tft-green);
  color: var(--tft-near-black);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  transition: opacity 150ms ease, transform 150ms ease;
}
.tft-slider__btn:hover { opacity: 0.85; transform: translateY(-1px); }
.tft-slider__btn:focus-visible { outline: 2px solid var(--tft-ink); outline-offset: 3px; }

.tft-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 21, 15, 0.45);
  border: 1px solid rgba(232, 232, 229, 0.25);
  color: var(--tft-ink);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.tft-slider__arrow:hover { background: rgba(107, 122, 75, 0.6); border-color: var(--tft-green); }
.tft-slider__arrow:focus-visible { outline: 2px solid var(--tft-ink); outline-offset: 2px; }
.tft-slider__arrow--prev { left: 20px; }
.tft-slider__arrow--next { right: 20px; }

.tft-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.tft-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 232, 229, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.tft-slider__dot.is-active { background: var(--tft-green); transform: scale(1.25); }
.tft-slider__dot:focus-visible { outline: 2px solid var(--tft-ink); outline-offset: 3px; }

.tft-slider__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(232, 232, 229, 0.12);
  z-index: 4;
}
.tft-slider__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--tft-green);
}
.tft-slider__progress-bar.is-animating {
  transition: width linear;
}

@media (max-width: 780px) {
  .tft-slider { height: 92vh; min-height: 520px; }
  .tft-slider__arrow { width: 36px; height: 36px; }
  .tft-slider__content { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tft-slider__bg { transition: none; transform: none !important; }
  .tft-slider__slide, .tft-slider__content { transition: opacity 300ms ease; }
  .tft-slider__progress-bar.is-animating { transition: none; }
}

/* ---- Video slide (slide 1): full-bleed video, light overlay, no diagonal accent ---- */
.tft-slider__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background: #14150F;
}
.tft-slider__slide.has-video .tft-slider__bg {
  inset: 0 !important; z-index: 1; transform: none !important; transition: none !important;
  background: linear-gradient(180deg, rgba(20,21,15,0.38) 0%, rgba(20,21,15,0.10) 45%, rgba(20,21,15,0.48) 100%) !important;
}
.tft-slider__slide.has-video::after { display: none !important; }