/* RMN Hero Slider
   Intentionally inherits theme fonts and button styling (Flatsome-friendly).
*/

.rmn-hs {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 50px 50px;
  min-height: 100vh;

  /* Use theme colors when available (Flatsome often defines CSS vars). */
  background: linear-gradient(
    135deg,
    var(--primary-color, #0F172A) 0%,
    var(--secondary-color, #1E293B) 50%,
    var(--primary-color, #334155) 100%
  );

  /* Keep readable by default; you can override via CSS if needed. */
  color: var(--rmn-hs-text, #F8FAFC);
  font-family: inherit;
}

.rmn-hs__slides {
  width: 100%;
  position: relative;
}

.rmn-hs__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}

.rmn-hs__slide.is-active {
  opacity: 1;
  position: relative;
}

.rmn-hs__wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rmn-hs__content {
  max-width: 560px;
}

.rmn-hs__badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  /* Accent from theme */
  color: var(--primary-color, #93C5FD);
  margin-bottom: 22px;
}

.rmn-hs__title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  margin: 0 0 22px;
  color: currentColor;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rmn-hs__sub {
  font-size: 18px;
  line-height: 1.75;
  opacity: 0.9;
  margin-bottom: 32px;
}

.rmn-hs__sub p:last-child { margin-bottom: 0; }

.rmn-hs__cta .button {
  /* Let Flatsome / theme handle colors. */
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 800;
}

/* Image panel */
.rmn-hs__image {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.rmn-hs__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rmn-hs__img-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.12), rgba(255,255,255,0) 55%),
    rgba(255,255,255,0.06);
}

/* Navigation */
.rmn-hs__nav {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 10;
  align-items: center;
  user-select: none;
}

.rmn-hs__btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmn-hs__btn:hover,
.rmn-hs__btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
  outline: none;
}

.rmn-hs__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rmn-hs__dot {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmn-hs__dot-shape {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rmn-hs__dot.is-active .rmn-hs__dot-shape,
.rmn-hs__dot[aria-selected="true"] .rmn-hs__dot-shape {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .rmn-hs { padding: 100px 20px 56px; min-height: 92vh; }
  .rmn-hs__wrap { grid-template-columns: 1fr; gap: 26px; }
  .rmn-hs__sub { font-size: 16px; }
  .rmn-hs__image { height: 300px; border-radius: 18px; }
  .rmn-hs__nav { bottom: 26px; gap: 14px; }
}
