/* ── Smart River Hero Slider ──────────────────────────────── */

.srh-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 420px;
  height: 70vh;
  max-height: 820px;
  background: #111;
  user-select: none;
}

/* ── Track ────────────────────────────────────────────────── */

.srh-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Slide ────────────────────────────────────────────────── */

.srh-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.srh-slide.is-active  { opacity: 1; z-index: 1; }
.srh-slide.is-leaving { opacity: 0; z-index: 0; }

/* ── Background image ─────────────────────────────────────── */

.srh-bg--img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.srh-slide.is-active .srh-bg--img {
  transform: scale(1);
}

/* ── Background video ─────────────────────────────────────── */

.srh-bg--video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srh-bg--embed {
  position: absolute;
  inset: -30%;
  pointer-events: none;
}

.srh-bg--embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Overlay ──────────────────────────────────────────────── */

.srh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Content ──────────────────────────────────────────────── */

.srh-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(24px, 6vw, 100px);
  max-width: 900px;
}

.srh-content--center {
  align-items: center;
  text-align: center;
  max-width: 100%;
  padding-left: clamp(24px, 8vw, 160px);
  padding-right: clamp(24px, 8vw, 160px);
}

.srh-content--right {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

/* Text colour variants */
.srh-content--light .srh-title,
.srh-content--light .srh-subtitle { color: #fff; }

.srh-content--dark .srh-title,
.srh-content--dark .srh-subtitle  { color: #111; }

/* ── Title ────────────────────────────────────────────────── */

.srh-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.srh-slide.is-active .srh-title {
  opacity: 1;
  transform: translateY(0);
}

/* ── Subtitle ─────────────────────────────────────────────── */

.srh-subtitle {
  margin: 0 0 28px;
  font-size: clamp(14px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.srh-content--center .srh-subtitle { max-width: 100%; }

.srh-slide.is-active .srh-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA ──────────────────────────────────────────────────── */

.srh-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s,
              background 0.2s, box-shadow 0.2s, translate 0.2s;
}

.srh-slide.is-active .srh-cta {
  opacity: 1;
  transform: translateY(0);
}

.srh-cta:hover {
  background: #15803d;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.45);
  translate: 0 -2px;
  color: #fff;
}

.srh-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: translate 0.2s;
}

.srh-cta:hover svg { translate: 3px 0; }

/* Light text variant CTA */
.srh-content--dark .srh-cta {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ── Arrows ───────────────────────────────────────────────── */

.srh-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, scale 0.15s;
  outline: none;
}

.srh-arrow--prev { left: 20px; }
.srh-arrow--next { right: 20px; }

.srh-arrow:hover { background: rgba(255, 255, 255, 0.28); scale: 1.08; }
.srh-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.srh-arrow svg { width: 22px; height: 22px; }

/* ── Dots ─────────────────────────────────────────────────── */

.srh-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.srh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, scale 0.25s, width 0.25s;
  outline: none;
}

.srh-dot.is-active {
  background: #fff;
  border-color: #fff;
  width: 24px;
  border-radius: 4px;
}

.srh-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Progress bar ─────────────────────────────────────────── */

.srh-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  transition: width linear;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .srh-hero {
    height: 65vw;
    min-height: 320px;
    max-height: 520px;
  }

  .srh-arrow { width: 38px; height: 38px; }
  .srh-arrow--prev { left: 10px; }
  .srh-arrow--next { right: 10px; }
  .srh-arrow svg   { width: 18px; height: 18px; }

  .srh-content { padding: 24px 16px; }

  .srh-cta { padding: 11px 20px; }
}

@media (max-width: 480px) {
  .srh-arrow { display: none; }
  .srh-dots  { bottom: 14px; }
}
