/* =========================================
SERVICES PAGE - HERO
========================================= */

.rm-services-hero {
  position: relative;
  min-height: calc(100svh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 20px;
  background: #081120;
}

.rm-services-hero__bg {
  position: absolute;
  inset: 0;
  background: url("/wp-content/uploads/bg-hero-serv.webp") center center / cover
    no-repeat;
  transform: scale(1.04);
}

.rm-services-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 12, 24, 0.92) 0%,
      rgba(5, 12, 24, 0.82) 42%,
      rgba(5, 12, 24, 0.58) 100%
    ),
    linear-gradient(180deg, rgba(8, 17, 32, 0.2) 0%, rgba(8, 17, 32, 0.72) 100%);
}

.rm-services-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: #ffffff;
}

.rm-services-hero__eyebrow,
.rm-services-intro__eyebrow,
.rm-service-section__eyebrow,
.rm-services-trust__eyebrow,
.rm-services-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  min-height: 38px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(197, 160, 33, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #e7c767;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rm-services-hero__title,
.rm-services-intro__title,
.rm-service-section__title,
.rm-services-trust__title,
.rm-services-cta__title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rm-services-hero__text,
.rm-services-intro__text,
.rm-service-section__text,
.rm-services-trust__text,
.rm-services-cta__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.rm-services-hero__text {
  max-width: 640px;
  margin: 0 0 28px;
}

.rm-services-hero__actions,
.rm-service-section__actions,
.rm-services-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================
SERVICES INTRO
========================================= */

.rm-services-intro {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(197, 160, 33, 0.07),
      transparent 24%
    ),
    linear-gradient(180deg, #08111f 0%, #0a1728 100%);
}

.rm-services-intro__bg,
.rm-service-section__bg,
.rm-services-trust__bg,
.rm-services-cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rm-services-intro__bg {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0) 42%
  );
}

.rm-services-intro__inner,
.rm-service-section__inner,
.rm-services-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.rm-services-intro__text {
  margin: 0 0 30px;
  max-width: 600px;
}

.rm-services-intro__mini-points {
  display: grid;
  gap: 16px;
}

.rm-services-intro__point {
  padding: 20px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.rm-services-intro__point strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.rm-services-intro__point span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
IMAGE SYSTEM
========================================= */

.rm-services-intro__image-wrap,
.rm-service-section__image-wrap,
.rm-services-cta__image-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.rm-services-intro__image-wrap::before,
.rm-service-section__image-wrap::before,
.rm-services-cta__image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(
      180deg,
      rgba(8, 17, 32, 0.04) 0%,
      rgba(8, 17, 32, 0.24) 100%
    );
}

.rm-services-intro__image,
.rm-service-section__image,
.rm-services-cta__image {
  width: 100%;
  height: 620px;
  display: block;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.06) saturate(1.04);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
}

/* =========================================
SERVICE SECTIONS
========================================= */

.rm-service-section {
  position: relative;
  padding: 120px 20px;
  background: linear-gradient(180deg, #0a1728 0%, #0b1a2d 100%);
}

.rm-service-section--reverse {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(197, 160, 33, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #0b1a2d 0%, #091321 100%);
}

.rm-service-section__bg {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0) 42%
  );
}

.rm-service-section--reverse .rm-service-section__media {
  order: 2;
}

.rm-service-section--reverse .rm-service-section__content {
  order: 1;
}

.rm-service-section__text {
  margin: 0 0 28px;
  max-width: 580px;
}

.rm-service-section__features {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.rm-service-section__feature {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.rm-service-section__feature::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #c5a021 0%, #f0d98a 100%);
  box-shadow: 0 0 0 4px rgba(197, 160, 33, 0.12);
}

/* =========================================
SERVICES TRUST
========================================= */

.rm-services-trust {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
  background:
    radial-gradient(
      circle at 16% 82%,
      rgba(197, 160, 33, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #091321 0%, #08111f 100%);
}

.rm-services-trust__bg {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0) 42%
  );
}

.rm-services-trust__heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.rm-services-trust__text {
  margin: 0;
}

.rm-services-trust__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rm-services-trust__item {
  position: relative;
  padding: 28px 24px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.rm-services-trust__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(197, 160, 33, 0.12) 0%,
      rgba(197, 160, 33, 0) 34%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0) 50%
    );
  z-index: 0;
}

.rm-services-trust__item strong,
.rm-services-trust__item span {
  position: relative;
  z-index: 2;
  display: block;
}

.rm-services-trust__item strong {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rm-services-trust__item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.72;
}

/* =========================================
SERVICES CTA
========================================= */

.rm-services-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
  background: #08111f;
}

.rm-services-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(197, 160, 33, 0.1),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 80%,
      rgba(197, 160, 33, 0.08),
      transparent 22%
    ),
    linear-gradient(180deg, #08111f 0%, #0a1728 100%);
}

.rm-services-cta__text {
  margin: 0 0 28px;
  max-width: 560px;
}

/* =========================================
HOVER EFFECTS
========================================= */

@media (hover: hover) {
  .rm-services-intro__image-wrap:hover,
  .rm-service-section__image-wrap:hover,
  .rm-services-cta__image-wrap:hover {
    transform: translateY(-6px);
    box-shadow:
      0 40px 95px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .rm-services-intro__image-wrap:hover .rm-services-intro__image,
  .rm-service-section__image-wrap:hover .rm-service-section__image,
  .rm-services-cta__image-wrap:hover .rm-services-cta__image {
    transform: scale(1.08);
    filter: brightness(0.98) contrast(1.08) saturate(1.06);
  }

  .rm-services-trust__item:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 33, 0.26);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(197, 160, 33, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

/* =========================================
GLOBAL REVEAL CLASSES
========================================= */

.sr-item,
.sr-left {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: transform, opacity;
}

.sr-item {
  transform: translateY(70px);
}

.sr-left {
  transform: translateX(-90px);
}

.sr-item.is-visible,
.sr-left.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================
TABLET
========================================= */

@media (max-width: 1100px) {
  .rm-services-intro,
  .rm-service-section,
  .rm-services-trust,
  .rm-services-cta {
    padding: 100px 20px;
  }

  .rm-services-intro__inner,
  .rm-service-section__inner,
  .rm-services-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rm-service-section--reverse .rm-service-section__media,
  .rm-service-section--reverse .rm-service-section__content {
    order: initial;
  }

  .rm-services-trust__row {
    grid-template-columns: 1fr;
  }

  .rm-services-intro__image,
  .rm-service-section__image,
  .rm-services-cta__image {
    height: 460px;
  }
}

/* =========================================
MOBILE
========================================= */

@media (max-width: 767px) {
  .rm-services-hero {
    min-height: calc(100svh - 90px);
    padding: 40px 16px;
  }

  .rm-services-hero__title,
  .rm-services-intro__title,
  .rm-service-section__title,
  .rm-services-trust__title,
  .rm-services-cta__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .rm-services-hero__text,
  .rm-services-intro__text,
  .rm-service-section__text,
  .rm-services-trust__text,
  .rm-services-cta__text {
    font-size: 15px;
    line-height: 1.7;
  }

  .rm-services-hero__actions,
  .rm-services-cta__actions {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .rm-services-hero__actions .vc-btn,
  .rm-services-cta__actions .vc-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .rm-services-intro,
  .rm-service-section,
  .rm-services-trust,
  .rm-services-cta {
    padding: 84px 16px;
  }

  .rm-services-intro__image,
  .rm-service-section__image,
  .rm-services-cta__image {
    height: 360px;
  }

  .rm-service-section__feature {
    padding: 14px 16px 14px 42px;
  }
}

@media (max-width: 480px) {
  .rm-services-hero {
    padding: 36px 12px;
  }

  .rm-services-intro,
  .rm-service-section,
  .rm-services-trust,
  .rm-services-cta {
    padding: 78px 12px;
  }

  .rm-services-hero__eyebrow,
  .rm-services-intro__eyebrow,
  .rm-service-section__eyebrow,
  .rm-services-trust__eyebrow,
  .rm-services-cta__eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .rm-services-intro__image,
  .rm-service-section__image,
  .rm-services-cta__image {
    height: 300px;
  }
}
