/* ======================================================
   Rochester Medical Weight Loss
   Our Services landing page
   URL: /our-services/
   ====================================================== */

.rmwservices-page {
  --rmwservices-purple: #693189;
  --rmwservices-purple-dark: #4f146a;
  --rmwservices-gold: #b09b6e;
  --rmwservices-dark-gold: #87734a;
  --rmwservices-yellow: #f9d905;
  --rmwservices-white: #ffffff;
  --rmwservices-text: #111111;
  --rmwservices-muted: #46433b;
  --rmwservices-soft-purple: #f4eef8;
  --rmwservices-soft-gold: #fffdef;
  --rmwservices-border: rgba(105, 49, 137, 0.16);
  --rmwservices-shadow: 0 16px 38px rgba(34, 16, 45, 0.1);
  --rmwservices-soft-shadow: 0 9px 24px rgba(34, 16, 45, 0.07);
  overflow: hidden;
  background: var(--rmwservices-white);
  color: var(--rmwservices-text);
  font-family: "Open Sans", Arial, sans-serif;
}

.rmwservices-page *,
.rmwservices-page *::before,
.rmwservices-page *::after {
  box-sizing: border-box;
}

.rmwservices-container {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
}

.rmwservices-page h1,
.rmwservices-page h2,
.rmwservices-page h3 {
  margin-top: 0;
  color: var(--rmwservices-purple);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

.rmwservices-page h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
}

.rmwservices-page h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.14;
}

.rmwservices-page h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.24;
}

.rmwservices-page p,
.rmwservices-page li {
  font-size: 17px;
  line-height: 1.65;
}

.rmwservices-page p {
  margin: 0 0 16px;
}

.rmwservices-kicker {
  margin: 0 0 10px !important;
  color: var(--rmwservices-gold) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

.rmwservices-lead {
  max-width: 880px;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.rmwservices-heading {
  max-width: 1080px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.rmwservices-section {
  padding: clamp(46px, 6vw, 78px) 0;
}

.rmwservices-section-soft {
  background:
    radial-gradient(circle at 88% 12%, rgba(105, 49, 137, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #faf6fc 100%);
}

/* Hero */

.rmwservices-hero {
  position: relative;
  width: 100vw;
  overflow: hidden;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: clamp(58px, 7vw, 96px) 0 clamp(44px, 5vw, 70px);
  background:
    radial-gradient(circle at 78% 24%, rgba(105, 49, 137, 0.13), transparent 34%),
    radial-gradient(circle at 10% 86%, rgba(176, 155, 110, 0.14), transparent 28%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 42%, #f4eef8 100%);
}

.rmwservices-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-160px, -8vw, -80px);
  width: clamp(420px, 48vw, 760px);
  height: clamp(420px, 48vw, 760px);
  transform: translateY(-50%);
  background-image: url("/wp-content/themes/healthcoach-child/images/flower-purple.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.085;
  pointer-events: none;
}

.rmwservices-hero .rmwservices-container {
  position: relative;
  z-index: 1;
}

.rmwservices-hero-inner {
  max-width: 980px;
}

/* Buttons and text links */

.rmwservices-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.rmwservices-button-row-center {
  justify-content: center;
}

.rmwservices-btn {
  display: inline-flex !important;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rmwservices-btn:hover,
.rmwservices-btn:focus {
  transform: translateY(-2px);
}

.rmwservices-btn-gold {
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--rmwservices-gold) 0%, var(--rmwservices-dark-gold) 100%);
  box-shadow: 0 8px 20px rgba(105, 49, 137, 0.16);
  color: var(--rmwservices-white) !important;
}

.rmwservices-btn-gold:hover,
.rmwservices-btn-gold:focus {
  border-color: var(--rmwservices-dark-gold);
  background: var(--rmwservices-white);
  color: var(--rmwservices-dark-gold) !important;
}

.rmwservices-btn-purple {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #8b2fb2 0%, var(--rmwservices-purple-dark) 100%);
  box-shadow: 0 8px 20px rgba(105, 49, 137, 0.18);
  color: var(--rmwservices-white) !important;
}

.rmwservices-btn-purple:hover,
.rmwservices-btn-purple:focus {
  border-color: var(--rmwservices-purple);
  background: var(--rmwservices-white);
  color: var(--rmwservices-purple) !important;
}

.rmwservices-btn-outline {
  border: 2px solid var(--rmwservices-purple);
  background: var(--rmwservices-white);
  color: var(--rmwservices-purple) !important;
}

.rmwservices-btn-outline:hover,
.rmwservices-btn-outline:focus {
  background: var(--rmwservices-purple);
  color: var(--rmwservices-white) !important;
}

.rmwservices-btn-dark-outline {
  border: 2px solid var(--rmwservices-white);
  background: transparent;
  color: var(--rmwservices-white) !important;
}

.rmwservices-btn-dark-outline:hover,
.rmwservices-btn-dark-outline:focus {
  border-color: var(--rmwservices-white);
  background: var(--rmwservices-white);
  color: var(--rmwservices-purple) !important;
}

.rmwservices-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--rmwservices-purple) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 5px;
}

.rmwservices-text-link::after {
  content: none;
}

.rmwservices-text-link span[aria-hidden="true"] {
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
}

/* Core paths */

.rmwservices-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rmwservices-path-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--rmwservices-border);
  border-radius: 24px;
  background: var(--rmwservices-white);
  box-shadow: var(--rmwservices-shadow);
}

.rmwservices-card-image,
.rmwservices-support-image {
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--rmwservices-soft-purple);
}

.rmwservices-card-image {
  aspect-ratio: 16 / 10;
}

.rmwservices-card-image img,
.rmwservices-support-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rmwservices-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.rmwservices-card-content p,
.rmwservices-support-content p {
  margin-bottom: 4px;
}

.rmwservices-path-card:hover .rmwservices-card-image img,
.rmwservices-path-card:focus-within .rmwservices-card-image img,
.rmwservices-support-card:hover .rmwservices-support-image img,
.rmwservices-support-card:focus-within .rmwservices-support-image img {
  transform: scale(1.03);
}

/* Support cards */

.rmwservices-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rmwservices-support-heading {
  max-width: none;
}

.rmwservices-support-heading h2 {
  white-space: nowrap;
}

.rmwservices-support-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--rmwservices-border);
  border-radius: 24px;
  background: var(--rmwservices-white);
  box-shadow: var(--rmwservices-soft-shadow);
}

.rmwservices-support-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

/* How a plan is chosen */

.rmwservices-plan-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(176, 155, 110, 0.13), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--rmwservices-soft-gold) 100%);
}

.rmwservices-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rmwservices-step-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 26px;
  border: 1px solid rgba(135, 115, 74, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--rmwservices-soft-shadow);
}

.rmwservices-step-card > span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rmwservices-dark-gold);
  color: var(--rmwservices-white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.rmwservices-step-card p {
  margin-bottom: 0;
}

/* Guidance card and closing CTA */

.rmwservices-guidance-section {
  padding-top: clamp(36px, 5vw, 62px);
}

.rmwservices-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(105, 49, 137, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 18%, rgba(105, 49, 137, 0.1), transparent 32%),
    linear-gradient(135deg, var(--rmwservices-soft-gold) 0%, #ffffff 65%);
  box-shadow: var(--rmwservices-shadow);
}

.rmwservices-guidance-card .rmwservices-button-row {
  max-width: 390px;
  justify-content: flex-end;
  margin-top: 0;
}

.rmwservices-cta {
  padding: clamp(46px, 6vw, 76px) 0;
  background: linear-gradient(145deg, var(--rmwservices-purple) 0%, var(--rmwservices-purple-dark) 100%);
  color: var(--rmwservices-white);
  text-align: center;
}

.rmwservices-cta h2,
.rmwservices-cta p {
  display: block;
  width: 100%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  color: var(--rmwservices-white);
  text-align: center !important;
}

.rmwservices-cta .rmwservices-kicker {
  display: block;
  width: 100%;
  margin-right: auto !important;
  margin-left: auto !important;
  color: var(--rmwservices-yellow) !important;
  text-align: center !important;
}

/* Accessibility */

.rmwservices-page a:focus,
.rmwservices-page button:focus {
  outline: 3px solid var(--rmwservices-yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rmwservices-page *,
  .rmwservices-page *::before,
  .rmwservices-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .rmwservices-support-heading h2 {
    white-space: normal;
  }

  .rmwservices-path-grid,
  .rmwservices-step-grid {
    grid-template-columns: 1fr;
  }

  .rmwservices-support-card {
    grid-template-columns: 1fr;
  }

  .rmwservices-support-image {
    aspect-ratio: 16 / 8;
  }

  .rmwservices-guidance-card {
    grid-template-columns: 1fr;
  }

  .rmwservices-guidance-card .rmwservices-button-row {
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .rmwservices-container {
    width: min(calc(100% - 30px), 620px);
  }

  .rmwservices-hero::before {
    right: -230px;
    width: 500px;
    height: 500px;
    opacity: 0.055;
  }

  .rmwservices-support-grid {
    grid-template-columns: 1fr;
  }

  .rmwservices-button-row {
    display: grid;
  }

  .rmwservices-btn {
    width: 100%;
  }

  .rmwservices-card-content,
  .rmwservices-support-content,
  .rmwservices-step-card {
    padding: 22px;
  }

  .rmwservices-step-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rmwservices-step-card > span {
    width: 42px;
    height: 42px;
  }
}
