/* ==========================================================================
   RackMaster content sections — RevSlider replacement
   Dependency-free. Content lives in sections.php.
   ========================================================================== */

.rm-sec {
  --rm-blue:   #34aadc;
  --rm-navy:   #181f40;
  --rm-navy-2: #171f40;
  --rm-white:  #ffffff;
  --rm-ink:    #0f1424;

  --rm-font:    "Manrope", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --rm-display: "Urbanist", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --rm-max:  1240px;
  --rm-pad:  clamp(20px, 5vw, 60px);

  box-sizing: border-box;
  clear: both;
  font-family: var(--rm-font);
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
}
.rm-sec *,
.rm-sec *::before,
.rm-sec *::after { box-sizing: inherit; }

/* The theme styles bare h2/p/img/button globally — neutralise inside sections. */
.rm-sec h2,
.rm-sec p { margin: 0; padding: 0; }
.rm-sec h2::after,
.rm-sec h2::before { content: none; display: none; }
.rm-sec img { border: 0; box-shadow: none; display: block; max-width: 100%; }
.rm-sec a { box-shadow: none; text-decoration: none; }
.rm-sec ul { list-style: none; margin: 0; padding: 0; }
.rm-sec li { margin: 0; }
.rm-sec li::before { content: none; }

.rm-sec__inner {
  margin: 0 auto;
  max-width: var(--rm-max);
  min-width: 0;          /* flex/grid children must be allowed to shrink */
  padding-inline: var(--rm-pad);
  position: relative;
  width: 100%;
  z-index: 2;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.rm-sec .rm-btn {
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  font-family: var(--rm-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
  padding: 16px 30px;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.rm-sec .rm-btn:focus-visible { outline: 3px solid var(--rm-white); outline-offset: 3px; }
.rm-sec .rm-btn:hover { transform: translateY(-2px); }

.rm-sec .rm-btn--primary { background: var(--rm-blue); border-color: var(--rm-blue); color: #fff; }
.rm-sec .rm-btn--primary:hover { background: #2496c4; border-color: #2496c4; color: #fff; }

.rm-sec .rm-btn--ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.rm-sec .rm-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--rm-ink); }

.rm-sec .rm-btn--onblue { background: #fff; border-color: #fff; color: var(--rm-ink); }
.rm-sec .rm-btn--onblue:hover { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.rm-hero {
  align-items: center;
  color: #fff;
  display: flex;
  isolation: isolate;
  min-height: clamp(520px, 82vh, 900px);
  overflow: hidden;
}
.rm-hero__media {
  inset: 0;
  position: absolute;
  z-index: 0;
}
.rm-sec .rm-hero__media img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}
/* Scrim: keeps the copy legible on any photo, weighted to the text side. */
.rm-hero__media::after {
  background:
    linear-gradient(100deg, rgba(10,14,28,.86) 0%, rgba(10,14,28,.62) 42%, rgba(10,14,28,.18) 72%, rgba(10,14,28,.05) 100%),
    linear-gradient(to top, rgba(10,14,28,.55) 0%, rgba(10,14,28,0) 45%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.rm-sec .rm-hero__eyebrow {
  color: var(--rm-blue);
  font-family: var(--rm-display);
  font-size: clamp(17px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: .005em;
  margin: 0 0 .35em;
}
.rm-sec .rm-hero__title {
  color: #fff;
  font-family: var(--rm-display);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: .98;
  margin: 0 0 .5em;
  max-width: 15ch;
  text-wrap: balance;
}
.rm-sec .rm-hero__lede {
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  margin: 0 0 2em;
  max-width: 48ch;
}
.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Strip (headline band) ───────────────────────────────────────────────── */

.rm-strip {
  background: var(--rm-navy);
  padding-block: clamp(38px, 6vw, 62px);
  text-align: center;
}
.rm-sec .rm-strip__title {
  color: var(--rm-blue);
  font-family: var(--rm-display);
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.rm-sec .rm-strip__sub {
  color: #fff;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
  margin: .5em 0 0;
  text-wrap: balance;
}

/* ── Videos ──────────────────────────────────────────────────────────────── */

.rm-videos {
  background: var(--rm-navy-2);
  padding-block: clamp(48px, 7vw, 84px);
}
.rm-sec .rm-videos__title {
  color: #fff;
  font-family: var(--rm-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 clamp(24px, 3.5vw, 44px);
  text-align: center;
}
.rm-videos__grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
/* A lone video shouldn't stretch the full container width. */
.rm-videos__grid:has(> :only-child) {
  margin-inline: auto;
  max-width: 860px;
}

/* Click-to-load facade: nothing from YouTube until the viewer asks for it. */
.rm-sec .rm-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}
.rm-sec .rm-video img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .4s ease, opacity .25s ease;
  width: 100%;
}
.rm-video:hover img { transform: scale(1.04); }
.rm-video::after {
  background: rgba(0,0,0,.15);
  content: "";
  inset: 0;
  position: absolute;
  transition: background .25s ease;
}
.rm-video:hover::after { background: rgba(0,0,0,.02); }
.rm-video__play {
  align-items: center;
  background: rgba(20,25,45,.72);
  border-radius: 50%;
  display: flex;
  height: 74px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background .2s ease, transform .2s ease;
  width: 74px;
  z-index: 2;
}
.rm-video:hover .rm-video__play { background: var(--rm-blue); transform: translate(-50%, -50%) scale(1.08); }
.rm-video__play svg { height: 26px; margin-left: 4px; width: 26px; }
.rm-video:focus-visible { outline: 3px solid var(--rm-blue); outline-offset: 3px; }
.rm-video iframe { border: 0; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 3; }

/* ── Notice (blue call-out band) ─────────────────────────────────────────── */

.rm-notice {
  background: var(--rm-blue);
  color: #fff;
  padding-block: clamp(44px, 6vw, 76px);
}
.rm-notice__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  justify-content: space-between;
}
.rm-notice__body { flex: 1 1 min(100%, 520px); }
.rm-sec .rm-notice__title {
  color: #fff;
  font-family: var(--rm-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}
.rm-sec .rm-notice__text {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
  opacity: .95;
}
.rm-notice__cta { flex: 0 0 auto; }
.rm-notice .rm-btn { text-transform: uppercase; }

/* ── Cards (was the "USPs" carousel) ─────────────────────────────────────── */

.rm-cards {
  background: linear-gradient(180deg, #4a4a4a 0%, #2b2b2b 100%);
  padding-block: clamp(48px, 7vw, 88px);
}
.rm-cards__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.rm-card {
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 44px);
}
.rm-sec .rm-card__title {
  color: var(--rm-blue);
  font-family: var(--rm-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
}
.rm-sec .rm-card__text {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.68;
  margin: 0 0 2em;
}
.rm-card__cta { margin-top: auto; }

/* ── Features (icon grid) ────────────────────────────────────────────────── */

.rm-features {
  background: #191f40;
  padding-block: clamp(48px, 7vw, 88px);
}
.rm-sec .rm-features__title {
  color: #fff;
  font-family: var(--rm-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 clamp(28px, 4vw, 52px);
  text-align: center;
}
.rm-features__grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.rm-feature { text-align: center; }
.rm-feature__icon {
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto clamp(14px, 1.8vw, 20px);
  overflow: hidden;
  width: clamp(76px, 9vw, 104px);
}
.rm-sec .rm-feature__icon img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.rm-sec .rm-feature__name {
  color: #fff;
  font-family: var(--rm-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  margin: 0 0 .25em;
}
.rm-sec .rm-feature__meta {
  color: rgba(255, 255, 255, .62);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.45;
  margin: 0;
}

/* ── List (was "Included") ───────────────────────────────────────────────── */

.rm-list {
  background: #e8e8e8;
  padding-block: clamp(44px, 6vw, 80px);
}
.rm-sec .rm-list__title {
  color: var(--rm-ink);
  font-family: var(--rm-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 clamp(24px, 3.4vw, 44px);
  text-align: center;
}
.rm-list__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.rm-list__item {
  align-items: center;
  background: #fff;
  border-radius: 6px;
  color: var(--rm-ink);
  display: flex;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
}
.rm-list__item::before {
  background: var(--rm-blue);
  border-radius: 50%;
  color: #fff;
  content: "\2713";
  display: grid;
  flex: 0 0 auto;
  font-size: 13px;
  height: 22px;
  place-items: center;
  width: 22px;
}

/* ── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .rm-sec .rm-btn { font-size: 14px; padding: 14px 18px; }
  .rm-hero__actions { gap: 10px; }
  /* Three CTAs will not sit on one phone row — let each take the full width
     rather than spilling past the viewport edge. */
  .rm-hero__actions .rm-btn { flex: 1 1 100%; text-align: center; }
  .rm-notice__inner { gap: 26px; }
  .rm-notice__cta { flex: 1 1 100%; }
  .rm-notice__cta .rm-btn { display: block; text-align: center; }
  .rm-card__cta .rm-btn { display: block; text-align: center; }
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .rm-sec *,
  .rm-sec *::before,
  .rm-sec *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .rm-sec .rm-btn:hover,
  .rm-video:hover img { transform: none; }
}

/* ── Hero: multi-slide ───────────────────────────────────────────────────── */

.rm-hero--multi {
  align-items: stretch;   /* .rm-hero sets center, which shrinks grid items */
  display: grid;
}
.rm-hero--compact {
  min-height: clamp(420px, 58vh, 620px);
}
.rm-hero__slide {
  align-items: center;
  display: flex;
  grid-area: 1 / 1;
  min-width: 0;
  position: relative;
}
/* Without JS the first slide simply shows — no animation is required for the
   content to be readable, and every slide is in the HTML for crawlers. */
.rm-hero--multi .rm-hero__slide {
  opacity: 0;
  transition: opacity .7s ease;
  visibility: hidden;
}
.rm-hero--multi .rm-hero__slide:first-child {
  opacity: 1;
  visibility: visible;
}
.rm-hero--multi.is-ready .rm-hero__slide {
  opacity: 0;
  visibility: hidden;
}
.rm-hero--multi.is-ready .rm-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.rm-hero__dots {
  bottom: clamp(16px, 3vw, 30px);
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}
.rm-sec .rm-hero__dot {
  background: rgba(255, 255, 255, .38);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 11px;
  margin: 0;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
  width: 11px;
}
.rm-sec .rm-hero__dot:hover { background: rgba(255, 255, 255, .7); }
.rm-sec .rm-hero__dot[aria-selected="true"] {
  background: var(--rm-blue);
  transform: scale(1.2);
}
.rm-sec .rm-hero__dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* The compact (home) hero carries longer headlines than the product heroes,
   so it needs a smaller display size to stay on a sensible number of lines. */
.rm-sec .rm-hero--compact .rm-hero__title {
  font-size: clamp(32px, 5vw, 62px);
  max-width: 18ch;
}
.rm-sec .rm-hero--compact .rm-hero__lede {
  margin-bottom: 1.6em;
}

@media (prefers-reduced-motion: reduce) {
  .rm-hero--multi .rm-hero__slide { transition: none; }
}

/* ── THEME OVERRIDES ─────────────────────────────────────────────────────────
   Betheme's base.css carries `#Content img { height: auto }` — an ID selector,
   so no class-based rule of ours can outrank it. Any section placed inside
   #Content (i.e. anything built in Page Builder, such as the home hero) would
   otherwise render its cover images at their natural ratio and leave a gap.
   WooCommerce's `.woocommerce-page img { height:auto }` is the same problem on
   product pages. These two declarations are the only !important in the file.
   ────────────────────────────────────────────────────────────────────────── */

.rm-sec .rm-hero__media img,
.rm-sec .rm-video img {
  height: 100% !important;
  width: 100% !important;
}
.rm-sec .rm-feature__icon img {
  height: 100% !important;
  width: 100% !important;
}
