/* ======================================================
   RMWL New Direction FAQ Page
   File suggestion: /wp-content/themes/healthcoach-child/css/rmw-new-direction-faqs.css

   Notes:
   - Uses unique .rmwfaq-* classes to avoid older .rmw-* / .rmwnd-* conflicts.
   - Designed for WPBakery Raw HTML body content.
   - No main page images required.
   ====================================================== */

:root {
  --rmwfaq-purple: #693189;
  --rmwfaq-gold: #b09b6e;
  --rmwfaq-yellow: #f9d905;
  --rmwfaq-black: #000000;
  --rmwfaq-white: #ffffff;
  --rmwfaq-text: #111111;
  --rmwfaq-soft-purple: #f4eef8;
  --rmwfaq-soft-purple-2: #faf6fc;
  --rmwfaq-soft-gold: #fffdef;
  --rmwfaq-border: rgba(105, 49, 137, 0.16);
  --rmwfaq-shadow: 0 16px 38px rgba(34, 16, 45, 0.10);
  --rmwfaq-radius-lg: 28px;
  --rmwfaq-radius-md: 20px;
}

/* ======================================================
   Page Shell
   ====================================================== */

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

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

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

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

/* ======================================================
   Typography
   ====================================================== */

.rmwfaq-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(--rmwfaq-gold);
}

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

.rmwfaq-page h1 {
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

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

.rmwfaq-page h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  margin-bottom: 10px;
}

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

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

/* ======================================================
   Buttons + Text Links
   ====================================================== */

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

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

.rmwfaq-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-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.rmwfaq-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);
}

.rmwfaq-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);
}

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

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

.rmwfaq-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 5px;
}

/* ======================================================
   Hero
   ====================================================== */

.rmwfaq-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(50px, 6vw, 86px) 0 clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 82% 24%, rgba(105,49,137,0.13), transparent 34%),
    radial-gradient(circle at 10% 85%, rgba(176,155,110,0.13), transparent 26%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 42%, #f4eef8 100%);
}

.rmwfaq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.rmwfaq-hero-copy {
  max-width: 760px;
}

.rmwfaq-hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--rmwfaq-radius-lg);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(105,49,137,0.13);
  box-shadow: var(--rmwfaq-shadow);
}

.rmwfaq-hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(105,49,137,0.07);
  pointer-events: none;
}

.rmwfaq-hero-panel h3,
.rmwfaq-hero-panel p,
.rmwfaq-hero-panel ul {
  position: relative;
  z-index: 1;
}

.rmwfaq-hero-panel h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 12px;
}

.rmwfaq-hero-panel ul,
.rmwfaq-hero-panel li {
  list-style: none !important;
  list-style-type: none !important;
}

.rmwfaq-hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.rmwfaq-hero-panel li {
  position: relative;
  padding-left: 28px !important;
  font-size: 16px;
  line-height: 1.45;
}

.rmwfaq-hero-panel li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rmwfaq-purple);
  font-weight: 900;
}

/* ======================================================
   Topic Cards / Jump Links
   ====================================================== */

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

.rmwfaq-section-compact {
  padding: clamp(20px, 3vw, 32px) 0;
}

.rmwfaq-topic-strip {
  position: relative;
  z-index: 2;
  margin-top: -18px;
}

.rmwfaq-topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.rmwfaq-topic-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 130px;
  padding: 22px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(105,49,137,0.13);
  box-shadow: 0 10px 26px rgba(34,16,45,0.07);
  text-decoration: none !important;
  color: #111111 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rmwfaq-topic-card:hover,
.rmwfaq-topic-card:focus {
  transform: translateY(-3px);
  border-color: rgba(105,49,137,0.34);
  box-shadow: 0 16px 34px rgba(34,16,45,0.12);
}

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

.rmwfaq-topic-card:nth-child(even) .rmwfaq-topic-icon {
  background: var(--rmwfaq-gold);
}

.rmwfaq-topic-card h3 {
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 0;
}

/* ======================================================
   FAQ Groups + Accordions
   ====================================================== */

.rmwfaq-group {
  background:
    radial-gradient(circle at 86% 18%, rgba(105, 49, 137, 0.055), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbf8fd 100%);
}

.rmwfaq-group-alt {
  background:
    radial-gradient(circle at 14% 20%, rgba(176, 155, 110, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffdef 100%);
}

.rmwfaq-group-heading {
  max-width: 880px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.rmwfaq-group-heading p:last-child {
  font-size: 18px;
  line-height: 1.6;
}

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

.rmwfaq-item {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(105, 49, 137, 0.13);
  box-shadow: 0 10px 26px rgba(34, 16, 45, 0.06);
  overflow: hidden;
}

.rmwfaq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--rmwfaq-purple);
}

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

.rmwfaq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(105, 49, 137, 0.08);
  color: var(--rmwfaq-purple);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.rmwfaq-item[open] summary {
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fd 100%);
}

.rmwfaq-item[open] summary::after {
  content: "–";
  background: var(--rmwfaq-purple);
  color: #ffffff;
}

.rmwfaq-answer {
  padding: 0 26px 24px;
}

.rmwfaq-answer p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.rmwfaq-answer p:last-child {
  margin-bottom: 0;
}

.rmwfaq-answer ul,
.rmwfaq-answer li {
  list-style: none !important;
  list-style-type: none !important;
}

.rmwfaq-answer ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 !important;
  padding: 0 !important;
}

.rmwfaq-answer li {
  position: relative;
  display: block !important;
  padding-left: 28px !important;
  font-size: 16px;
  line-height: 1.45;
}

.rmwfaq-answer li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rmwfaq-purple);
  font-weight: 900;
}

.rmwfaq-inline-callout {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdef 0%, #ffffff 100%);
  border: 1px solid rgba(176,155,110,0.34);
}

.rmwfaq-inline-callout h3 {
  margin-bottom: 8px;
}

/* ======================================================
   Related Links + CTA
   ====================================================== */

.rmwfaq-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rmwfaq-related-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(105,49,137,0.13);
  box-shadow: 0 10px 26px rgba(34,16,45,0.06);
  text-decoration: none !important;
  color: #111111 !important;
}

.rmwfaq-related-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.rmwfaq-related-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.rmwfaq-cta-band {
  margin: 18px auto 0;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--rmwfaq-radius-lg);
  background: linear-gradient(135deg, #693189 0%, #4f146a 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--rmwfaq-shadow);
}

.rmwfaq-cta-band h2,
.rmwfaq-cta-band p {
  color: #ffffff;
}

.rmwfaq-cta-band p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.rmw-cta-heading-center {
  display: block !important;
  width: 100% !important;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
/* CTA spacing refinement */
.rmwnd-cta-band,
.rmwmeal-cta-band,
.rmwfaq-cta-band {
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 48px);
  padding-left: clamp(27px, 3.6vw, 43px);
  padding-right: clamp(27px, 3.6vw, 43px);
}

/* CTA heading + paragraph width/alignment */
.rmwnd-cta-band h2,
.rmwmeal-cta-band h2,
.rmwfaq-cta-band h2 {
  max-width: 1140px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.rmwnd-cta-band p,
.rmwmeal-cta-band p,
.rmwfaq-cta-band p {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
/* ======================================================
   Responsive
   ====================================================== */

@media (max-width: 1180px) {
  .rmwfaq-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmwfaq-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .rmwfaq-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rmwfaq-topic-grid,
  .rmwfaq-related-grid {
    grid-template-columns: 1fr;
  }

  .rmwfaq-topic-card {
    min-height: auto;
  }
}

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

  .rmwfaq-page h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .rmwfaq-button-row {
    align-items: stretch;
  }

  .rmwfaq-btn {
    width: 100%;
  }

  .rmwfaq-item summary {
    padding: 20px 18px;
  }

  .rmwfaq-answer {
    padding: 0 18px 22px;
  }
}
