/* ======================================================
   RMWL Who Is a Good Fit Profile Template
   File suggestion: /wp-content/themes/healthcoach-child/css/rmw-good-fit-profile.css

   Designed for profile pages such as /who-is-a-good-fit/perimenopause-weight-gain/
   ====================================================== */

:root {
  --rmwprofile-purple: #693189;
  --rmwprofile-gold: #b09b6e;
  --rmwprofile-yellow: #f9d905;
  --rmwprofile-black: #000000;
  --rmwprofile-white: #ffffff;
  --rmwprofile-text: #111111;
  --rmwprofile-muted: #46433b;
  --rmwprofile-soft-purple: #f4eef8;
  --rmwprofile-soft-purple-2: #faf6fc;
  --rmwprofile-soft-gold: #fffdef;
  --rmwprofile-border: rgba(105, 49, 137, 0.16);
  --rmwprofile-gold-border: rgba(176, 155, 110, 0.28);
  --rmwprofile-shadow: 0 18px 42px rgba(34, 16, 45, 0.14);
  --rmwprofile-soft-shadow: 0 10px 26px rgba(34, 16, 45, 0.06);
  --rmwprofile-radius-lg: 28px;
  --rmwprofile-radius-md: 22px;
}

.rmwprofile-page {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--rmwprofile-text);
  background: #ffffff;
  overflow: hidden;
}

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

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

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

.rmwprofile-page h1 {
  display: block !important;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

/* Keeps the designed profile H1 visible when the theme title is hidden globally. */
.page-title .rmwprofile-page h1,
.news-style-one .rmwprofile-page h1 {
  display: block !important;
}

.rmwprofile-page h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

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

.news-style-one .inner-box .rmwprofile-page h3 {
  font-size: 32px !important;
  line-height: 1.18 !important;
}

.rmwprofile-page h4 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.rmwprofile-page p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.rmwprofile-page a {
  color: var(--rmwprofile-purple);
}

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

.rmwprofile-lead {
  font-size: 21px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #111111;
}

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

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

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

.rmwprofile-btn:hover,
.rmwprofile-btn:focus {
  transform: translateY(-1px);
}

.rmwprofile-btn:focus,
.rmwprofile-text-link:focus,
.rmwprofile-faq-item summary:focus {
  outline: 3px solid var(--rmwprofile-yellow);
  outline-offset: 3px;
}

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

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

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

.rmwprofile-btn-outline:hover,
.rmwprofile-btn-outline:focus {
  background: var(--rmwprofile-purple);
  color: #ffffff !important;
}

.rmwprofile-btn-light {
  background: #ffffff;
  color: var(--rmwprofile-purple) !important;
  border: 2px solid #ffffff;
}

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

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

.rmwprofile-text-link span {
  display: inline-block;
  color: var(--rmwprofile-purple);
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
}

/* Intro profile feature */

.rmwprofile-intro {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(54px, 6vw, 86px) 0 clamp(42px, 5vw, 68px);
  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 46%, #f4eef8 100%);
}

.rmwprofile-intro::before {
  content: "";
  position: absolute;
  right: clamp(-170px, -9vw, -90px);
  top: 50%;
  width: clamp(440px, 48vw, 760px);
  height: clamp(440px, 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;
}

.rmwprofile-intro .rmwprofile-container {
  position: relative;
  z-index: 1;
}

.rmwprofile-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.rmwprofile-intro-copy {
  max-width: 760px;
}

.rmwprofile-intro-media {
  position: relative;
}

.rmwprofile-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--rmwprofile-radius-lg);
  box-shadow: var(--rmwprofile-shadow);
}

/* Layout */

.rmwprofile-section {
  padding: clamp(34px, 4vw, 54px) 0;
}

.rmwprofile-soft-section,
.rmwprofile-faq-section {
  background:
    radial-gradient(circle at 86% 18%, rgba(105, 49, 137, 0.055), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbf8fd 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.rmwprofile-section-heading {
  max-width: none;
  margin-bottom: 28px;
}

.rmwprofile-section-heading-wide {
  max-width: none;
}

.rmwprofile-split-panel,
.rmwprofile-factor-grid,
.rmwprofile-help-card,
.rmwprofile-tool-list,
.rmwprofile-rights-grid,
.rmwprofile-questionnaire-card {
  display: grid;
  gap: 18px;
}

.rmwprofile-split-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--rmwprofile-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(105, 49, 137, 0.13);
  box-shadow: var(--rmwprofile-soft-shadow);
}

.rmwprofile-note-card,
.rmwprofile-gold-card,
.rmwprofile-factor-card,
.rmwprofile-help-card,
.rmwprofile-questionnaire-card,
.rmwprofile-faq-item,
.rmwprofile-cta-card {
  border-radius: var(--rmwprofile-radius-md);
  border: 1px solid rgba(105, 49, 137, 0.13);
  background: #ffffff;
  box-shadow: var(--rmwprofile-soft-shadow);
}

.rmwprofile-note-card {
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 88% 10%, rgba(176, 155, 110, 0.18), transparent 34%),
    var(--rmwprofile-soft-gold);
  border-color: var(--rmwprofile-gold-border);
}

.rmwprofile-gold-card {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--rmwprofile-soft-gold);
  border-color: var(--rmwprofile-gold-border);
}

.rmwprofile-check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.rmwprofile-check-list li {
  position: relative;
  padding-left: 30px !important;
  list-style: none !important;
  font-size: 16px;
  line-height: 1.55;
}

.rmwprofile-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rmwprofile-purple);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.rmwprofile-factor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rmwprofile-factor-card {
  padding: 24px 22px;
}

.rmwprofile-factor-card h3 {
  font-size: 20px;
}

.rmwprofile-factor-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--rmwprofile-muted);
}

.rmwprofile-factor-card-highlight {
  background:
    radial-gradient(circle at 88% 12%, rgba(176, 155, 110, 0.22), transparent 34%),
    var(--rmwprofile-soft-gold);
  border-color: var(--rmwprofile-gold-border);
}

.rmwprofile-factor-card-highlight h3 {
  color: var(--rmwprofile-purple);
}

.rmwprofile-factor-card-highlight p {
  color: var(--rmwprofile-text);
  font-weight: 700;
}

.rmwprofile-help-stack {
  display: grid;
  gap: 22px;
}

.rmwprofile-help-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: stretch;
  overflow: hidden;
}

.rmwprofile-help-card-reverse {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

.rmwprofile-help-card-reverse .rmwprofile-help-content {
  order: 2;
}

.rmwprofile-help-card-reverse img {
  order: 1;
}

.rmwprofile-help-content {
  padding: clamp(26px, 4vw, 42px);
}

.rmwprofile-help-content h3 {
  font-size: 30px;
  line-height: 1.16;
}

.news-style-one .inner-box .rmwprofile-help-content h3 {
  font-size: 30px !important;
  line-height: 1.16 !important;
}

.rmwprofile-step-number {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--rmwprofile-purple);
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.rmwprofile-help-card:nth-child(even) .rmwprofile-step-number {
  background: #87734A;
}

.rmwprofile-help-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.rmwprofile-help-content ul {
  margin: 12px 0 18px !important;
  padding-left: 24px !important;
  list-style: disc !important;
}

.rmwprofile-help-content li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.55;
  list-style: disc !important;
}

.rmwprofile-tool-list {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.rmwprofile-tool-list > div {
  padding: 20px;
  border-radius: 18px;
  background: var(--rmwprofile-soft-purple-2);
  border: 1px solid rgba(105, 49, 137, 0.11);
}

.rmwprofile-tool-list p {
  font-size: 15.5px;
  line-height: 1.55;
}

.rmwprofile-success-list {
  margin-top: 0 !important;
}

.rmwprofile-results-note {
  max-width: 980px;
  margin: 18px auto 0 !important;
  color: var(--rmwprofile-muted);
  text-align: center;
}

.rmwprofile-questionnaire-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 88% 16%, rgba(176, 155, 110, 0.18), transparent 34%),
    var(--rmwprofile-soft-gold);
  border-color: var(--rmwprofile-gold-border);
}

/* FAQs */

.rmwprofile-accordion-list {
  display: grid;
  gap: 14px;
}

.rmwprofile-faq-item {
  overflow: hidden;
}

.rmwprofile-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 22px 24px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--rmwprofile-purple);
}

.rmwprofile-faq-item summary::-webkit-details-marker {
  display: none;
}

.rmwprofile-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rmwprofile-soft-purple);
  color: var(--rmwprofile-purple);
  font-size: 24px;
  line-height: 1;
}

.rmwprofile-faq-item[open] summary::after {
  content: "–";
}

.rmwprofile-faq-content {
  padding: 0 24px 22px;
}

.rmwprofile-faq-content p {
  color: var(--rmwprofile-muted);
}

/* CTA */

.rmwprofile-cta-section {
  padding-top: clamp(22px, 3vw, 36px);
}

.rmwprofile-cta-card {
  padding: clamp(32px, 5vw, 54px);
  background: linear-gradient(135deg, #693189 0%, #4f146a 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--rmwprofile-shadow);
}

.rmwprofile-cta-card h2,
.rmwprofile-cta-card p {
  color: #ffffff;
}

.rmwprofile-cta-card h2 {
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.rmwprofile-cta-card p {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.rmwprofile-cta-card .rmwprofile-kicker {
  color: var(--rmwprofile-yellow);
}

/* Testimonials */

.rmwprofile-testimonials-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(circle at 86% 8%, rgba(176, 155, 110, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbf7fd 100%);
}

.rmwprofile-testimonial-rotator {
  position: relative;
  max-width: 920px;
}

.rmwprofile-testimonial-stage {
  display: grid;
}

.rmwprofile-testimonial-slide {
  grid-area: 1 / 1;
  background: #ffffff;
  border: 1px solid rgba(105, 49, 137, 0.16);
  border-radius: var(--rmwprofile-radius-md);
  box-shadow: var(--rmwprofile-soft-shadow);
  padding: clamp(30px, 5vw, 52px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rmwprofile-testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rmwprofile-card-label {
  color: #87734A !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
}

.rmwprofile-testimonial-slide blockquote {
  margin: 0;
}

.rmwprofile-testimonial-slide blockquote p {
  color: var(--rmwprofile-purple);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.34 !important;
}

.rmwprofile-testimonial-slide cite {
  color: var(--rmwprofile-text);
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 18px;
}

.rmwprofile-testimonial-note {
  font-size: 14px !important;
  margin-top: 22px !important;
  opacity: 0.88;
}

.rmwprofile-testimonial-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rmwprofile-testimonial-controls button {
  align-items: center;
  background: #87734A;
  border: 2px solid #87734A;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.rmwprofile-testimonial-controls button.is-active {
  background: #87734A;
  border-color: #87734A;
  box-shadow: 0 0 0 4px rgba(105, 49, 137, 0.18);
  color: #ffffff;
}

.rmwprofile-testimonial-controls button:focus-visible {
  outline: 3px solid var(--rmwprofile-yellow);
  outline-offset: 3px;
}

.rmwprofile-faq-item[open] summary::after {
  content: "-";
}

@media (max-width: 1120px) {
  .rmwprofile-factor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmwprofile-tool-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .rmwprofile-container {
    width: min(calc(100% - 36px), 900px);
  }

  .rmwprofile-intro-grid,
  .rmwprofile-split-panel,
  .rmwprofile-help-card,
  .rmwprofile-help-card-reverse,
  .rmwprofile-questionnaire-card {
    grid-template-columns: 1fr;
  }

  .rmwprofile-help-card-reverse .rmwprofile-help-content,
  .rmwprofile-help-card-reverse img {
    order: initial;
  }

  .rmwprofile-help-card img {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .rmwprofile-factor-grid {
    grid-template-columns: 1fr;
  }

  .rmwprofile-intro::before {
    right: -220px;
    top: 42%;
    width: 520px;
    height: 520px;
    opacity: 0.06;
  }

  .rmwprofile-button-row,
  .rmwprofile-button-row-center {
    align-items: stretch;
  }

  .rmwprofile-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .rmwprofile-container {
    width: min(calc(100% - 28px), 540px);
  }

  .rmwprofile-page h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .rmwprofile-intro-media img {
    border-radius: 22px;
  }

  .rmwprofile-help-content,
  .rmwprofile-questionnaire-card,
  .rmwprofile-split-panel {
    padding: 24px 20px;
  }

  .rmwprofile-faq-item summary {
    padding: 20px;
    font-size: 17px;
  }

  .rmwprofile-faq-content {
    padding: 0 20px 20px;
  }
}
