/* =========================================================
   REPRODUKTOLOG — SERVICES GRID V2
   ========================================================= */

/* SECTION */

.rp-services {
  --teal: #3ebfb3;
  --teal-dark: #079c98;
  --ink: #153349;
  --muted: #73838c;

  box-sizing: border-box !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;

  padding: 78px clamp(16px, 2.2vw, 36px) 90px;

  background:
    radial-gradient(
      ellipse at 0% 12%,
      rgba(62,191,179,.12),
      transparent 25%
    ),
    radial-gradient(
      ellipse at 100% 90%,
      rgba(62,191,179,.10),
      transparent 24%
    ),
    #fbf9f5;

  overflow: hidden;
}

.rp-services *,
.rp-services *::before,
.rp-services *::after {
  box-sizing: border-box;
}

/* CONTAINER */

.rp-services__container {
  width: 100%;
  max-width: 1440px;
  min-width: 0;

  margin-left: auto;
  margin-right: auto;
}

/* HEADING */

.rp-services__heading {
  text-align: center;

  width: 100%;
  max-width: 920px;

  margin: 0 auto 38px;
}

.rp-services__eyebrow {
  display: block;

  color: var(--teal-dark);

  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;

  letter-spacing: 3px;
}

.rp-services__heading h2 {
  margin: 12px 0 18px;

  color: var(--ink);

  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.13;

  letter-spacing: -.9px;
}

.rp-services__heading h2 em {
  color: var(--teal-dark);
  font-style: normal;
}

.rp-services__heading p {
  max-width: 760px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.65;
}

/* =========================================================
   GRID
   ========================================================= */

.rp-services__grid {
  display: grid;

  width: 100%;
  min-width: 0;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;

  align-items: stretch;
}

/* =========================================================
   SERVICE CARD
   ========================================================= */

.rp-service {
  position: relative;
  isolation: isolate;

  display: grid;

  grid-template-columns:
    90px
    minmax(0, 1fr);

  align-items: center;
  column-gap: 18px;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  min-height: 232px;

  padding: 76px 24px 28px;

  border: 1px solid rgba(19,91,85,.045);
  border-radius: 17px;

  background: rgba(255,255,255,.94);

  box-shadow:
    0 8px 35px rgba(30,68,61,.055);

  color: var(--ink) !important;

  text-decoration: none !important;

  overflow: hidden;

  transition:
    background .32s ease,
    transform .32s ease,
    box-shadow .32s ease,
    border-color .32s ease;
}

/* =========================================================
   LARGE BACKGROUND NUMBER
   ========================================================= */

.rp-service__number {
  position: absolute;

  top: 7px;
  left: 25px;

  color: rgba(38,179,168,.12);

  font-family: Arial, sans-serif;
  font-size: clamp(64px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;

  letter-spacing: -5px;

  pointer-events: none;

  transition: color .3s ease;
}

.rp-service:nth-child(3n+2) .rp-service__number {
  color: rgba(244,118,142,.14);
}

.rp-service:nth-child(3n) .rp-service__number {
  color: rgba(89,165,231,.14);
}

/* =========================================================
   ICON
   ========================================================= */

.rp-service__icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 90px;
  height: 90px;

  border-radius: 25px;

  background: #e9f8f5;
  color: #0da9a4;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}

.rp-service__icon--pink {
  background: #fff0f2;
  color: #ef6d8a;
}

.rp-service__icon--blue {
  background: #eaf5ff;
  color: #59a9e9;
}

.rp-service__icon svg {
  display: block;

  width: 50px;
  height: 50px;

  stroke: currentColor;
  stroke-width: 2.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   TEXT
   ========================================================= */

.rp-service__copy {
  display: block;

  min-width: 0;

  padding-right: 4px;

  overflow-wrap: break-word;
}

.rp-service__copy strong {
  display: block;

  color: var(--ink);

  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.25;

  overflow-wrap: anywhere;

  transition: color .3s ease;
}

.rp-service__copy small {
  display: block;

  margin-top: 11px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.5;

  overflow-wrap: break-word;

  transition: color .3s ease;
}

/* =========================================================
   ARROW
   Always inside the card
   ========================================================= */

.rp-service__arrow {
  position: absolute;

  top: 22px;
  right: 22px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 1px solid #d8eae7;
  border-radius: 50%;

  background: #fff;
  color: var(--teal-dark);

  box-shadow:
    0 3px 10px rgba(0,0,0,.04);

  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease;
}

.rp-service__arrow svg {
  display: block;

  width: 21px;
  height: 21px;

  stroke: currentColor;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   WOW HOVER
   ========================================================= */

@media (hover: hover) {

  .rp-service:hover {
    transform: translateY(-9px) scale(1.012);

    border-color: transparent;

    background:
      radial-gradient(
        circle at 86% 16%,
        rgba(180,255,247,.42),
        transparent 36%
      ),
      linear-gradient(
        130deg,
        #087f83 0%,
        #12b7ae 60%,
        #05a39c 100%
      );

    box-shadow:
      0 22px 50px rgba(9,148,141,.27),
      0 0 28px rgba(62,191,179,.16);

    z-index: 2;
  }

  .rp-service:hover .rp-service__number {
    color: rgba(255,255,255,.22);
  }

  .rp-service:hover .rp-service__icon {
    background: rgba(255,255,255,.19);
    color: #fff;

    transform: scale(1.06);
  }

  .rp-service:hover .rp-service__copy strong,
  .rp-service:hover .rp-service__copy small {
    color: #fff;
  }

  .rp-service:hover .rp-service__arrow {
    background: #fff;
    color: #079c98;

    transform: translateX(3px);
  }
}

/* KEYBOARD FOCUS */

.rp-service:focus-visible {
  outline: 3px solid #087f83;
  outline-offset: 3px;
}

/* =========================================================
   LAPTOP — 1200px
   ========================================================= */

@media (max-width: 1200px) {

  .rp-service {
    grid-template-columns:
      72px
      minmax(0, 1fr);

    column-gap: 15px;

    padding: 72px 18px 24px;
  }

  .rp-service__icon {
    width: 72px;
    height: 72px;

    border-radius: 20px;
  }

  .rp-service__icon svg {
    width: 40px;
    height: 40px;
  }

  .rp-service__arrow {
    top: 20px;
    right: 18px;
  }

  .rp-service__copy strong {
    font-size: 17px;
  }

  .rp-service__copy small {
    font-size: 13px;
  }
}

/* =========================================================
   TABLET — 900px
   ========================================================= */

@media (max-width: 900px) {

  .rp-services {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .rp-services__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rp-service {
    min-height: 215px;
  }
}

/* =========================================================
   MOBILE — 600px
   ========================================================= */

@media (max-width: 600px) {

  .rp-services {
    padding: 52px 16px 64px;
  }

  .rp-services__heading {
    margin-bottom: 28px;
  }

  .rp-services__heading h2 {
    font-size: clamp(33px, 9vw, 43px);
  }

  .rp-services__heading p {
    font-size: 15px;
  }

  .rp-services__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rp-service {
    grid-template-columns:
      74px
      minmax(0, 1fr);

    column-gap: 16px;

    min-height: 170px;

    padding: 58px 18px 22px;
  }

  .rp-service__number {
    top: 6px;
    left: 20px;

    font-size: 60px;
  }

  .rp-service__icon {
    width: 74px;
    height: 74px;

    border-radius: 20px;
  }

  .rp-service__icon svg {
    width: 40px;
    height: 40px;
  }

  .rp-service__copy strong {
    font-size: 18px;
  }

  .rp-service__copy small {
    margin-top: 7px;

    font-size: 13px;
  }

  .rp-service__arrow {
    top: 17px;
    right: 17px;

    width: 34px;
    height: 34px;
  }

  .rp-service__arrow svg {
    width: 19px;
    height: 19px;
  }
}

/* =========================================================
   SMALL MOBILE — 380px
   ========================================================= */

@media (max-width: 380px) {

  .rp-service {
    grid-template-columns:
      60px
      minmax(0, 1fr);

    column-gap: 12px;

    padding-left: 14px;
    padding-right: 14px;
  }

  .rp-service__icon {
    width: 60px;
    height: 60px;

    border-radius: 16px;
  }

  .rp-service__icon svg {
    width: 34px;
    height: 34px;
  }

  .rp-service__copy strong {
    font-size: 16px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .rp-service,
  .rp-service *,
  .rp-service__number {
    transition: none !important;
  }

  .rp-service:hover {
    transform: none;
  }
}
