/* ======================================================
   RMWL Technology for Weight Loss Page
   File suggestion: /wp-content/themes/healthcoach-child/css/rmw-technology-weight-loss.css
   Uses unique .rmwtech-* classes to avoid conflicts.
   ====================================================== */

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

.rmwtech-page {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--rmwtech-text);
  background: #fff;
  overflow: hidden;
}
.rmwtech-page *, .rmwtech-page *::before, .rmwtech-page *::after { box-sizing: border-box; }
.rmwtech-page a { color: var(--rmwtech-purple); }
.rmwtech-container { width: min(calc(100% - 48px), 1180px); margin: 0 auto; }

.rmwtech-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: .08em;
  text-transform: uppercase;
  color: var(--rmwtech-gold);
}
.rmwtech-page h1, .rmwtech-page h2, .rmwtech-page h3 { margin-top: 0; font-family: "Montserrat", Arial, sans-serif; color: var(--rmwtech-purple); }
.rmwtech-page h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 22px; }
.rmwtech-page h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 18px; }
.rmwtech-page h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin-bottom: 10px; }
.rmwtech-page p { font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.rmwtech-lead { font-size: 20px !important; line-height: 1.45 !important; font-weight: 700 !important; color: #111; }

.rmwtech-button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.rmwtech-button-row-center { justify-content: center; }
.rmwtech-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 .18s ease, box-shadow .18s ease, background .18s ease;
}
.rmwtech-btn:hover, .rmwtech-btn:focus { transform: translateY(-1px); }
.rmwtech-btn-gold { background: linear-gradient(135deg, #c8a85a 0%, #a7843d 100%); color: #fff !important; border: 2px solid transparent; box-shadow: 0 8px 20px rgba(105,49,137,.16); }
.rmwtech-btn-purple { background: linear-gradient(135deg, #8b2fb2 0%, #4f146a 100%); color: #fff !important; border: 2px solid transparent; box-shadow: 0 8px 20px rgba(105,49,137,.18); }
.rmwtech-btn-outline { background: #fff; color: var(--rmwtech-purple) !important; border: 2px solid var(--rmwtech-purple); }
.rmwtech-btn-outline:hover, .rmwtech-btn-outline:focus { background: var(--rmwtech-purple); color: #fff !important; }
.rmwtech-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 */
.rmwtech-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0; background: radial-gradient(circle at 78% 34%, rgba(105,49,137,.12), transparent 36%), linear-gradient(90deg, #fff 0%, #fff 42%, #f4eef8 100%); }
.rmwtech-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.95fr) minmax(320px,.85fr); gap: clamp(34px,5vw,74px); align-items: center; min-height: 560px; padding-top: clamp(42px,5vw,78px); padding-bottom: 0; }
.rmwtech-hero-copy { max-width: 650px; }
.rmwtech-hero-media { position: relative; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.rmwtech-hero-watermark { position: absolute; width: min(78%, 560px); right: 40%; top: 16%; opacity: .10; filter: saturate(.7); pointer-events: none; }
.rmwtech-hero-person { position: relative; z-index: 2; max-height: 560px; max-width: 100%; object-fit: contain; object-position: bottom center; }

/* Feature Strip */
.rmwtech-feature-strip { position: relative; z-index: 2; margin-top: 0; }
.rmwtech-feature-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border: 1px solid rgba(105,49,137,.13); border-radius: var(--rmwtech-radius-lg); box-shadow: var(--rmwtech-shadow); overflow: hidden; }
.rmwtech-feature-item { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 26px 24px; align-items: start; }
.rmwtech-feature-item + .rmwtech-feature-item { border-left: 1px solid rgba(176,155,110,.45); }
.rmwtech-icon-circle { width: 50px; height: 50px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, #8e49aa 0%, var(--rmwtech-purple) 72%); color: #fff; font-family: "Montserrat", Arial, sans-serif; font-size: 14px; font-weight: 800; line-height: 1; }
.rmwtech-icon-circle.rmwtech-icon-gold { background: radial-gradient(circle at 30% 25%, #d0b36c 0%, var(--rmwtech-gold) 72%); color: #fff; }
.rmwtech-feature-item h3 { font-size: 20px; margin-bottom: 6px; color: #111; }
.rmwtech-feature-item p { font-size: 15px; line-height: 1.45; margin: 0; }

/* Sections */
.rmwtech-section { padding: clamp(34px, 4vw, 54px) 0; }
.rmwtech-section-compact { padding: clamp(20px, 3vw, 32px) 0; }
.rmwtech-section-soft { background: radial-gradient(circle at 72% 35%, rgba(105,49,137,.08), transparent 34%), linear-gradient(180deg, #fff 0%, #fbf8fd 100%); }
.rmwtech-section-gold { background: radial-gradient(circle at 14% 20%, rgba(176,155,110,.10), transparent 28%), linear-gradient(180deg, #fff 0%, #fffdef 100%); }
.rmwtech-heading { max-width: 1000px; margin-bottom: clamp(24px,3vw,38px); }
.rmwtech-heading p:last-child { font-size: 18px; line-height: 1.6; }

/* Split + Image Panels */
.rmwtech-split-card { display: grid; grid-template-columns: minmax(0,.95fr) minmax(320px,.85fr); gap: clamp(30px,4vw,60px); align-items: center; background: linear-gradient(135deg, #fff 0%, #fbf7fd 100%); border: 1px solid var(--rmwtech-border); border-radius: var(--rmwtech-radius-lg); box-shadow: 0 12px 30px rgba(34,16,45,.07); padding: clamp(28px,4vw,52px); }
.rmwtech-image-panel { overflow: hidden; border-radius: 24px; background: rgba(105,49,137,.06); border: 1px solid rgba(176,155,110,.28); box-shadow: 0 10px 24px rgba(34,16,45,.07); }
.rmwtech-image-panel img { width: 100%; aspect-ratio: 4/3; height: auto; display: block; object-fit: cover; object-position: center; }
.rmwtech-results-image img { object-fit: contain; background: #fff; padding: 14px; }

/* Lists */
.rmwtech-page .rmwtech-check-list, .rmwtech-page .rmwtech-check-list li { list-style: none !important; list-style-type: none !important; list-style-image: none !important; }
.rmwtech-page .rmwtech-check-list { margin: 16px 0 0 !important; padding-left: 0 !important; display: grid; gap: 0; }
.rmwtech-page .rmwtech-check-list li { display: block !important; position: relative !important; padding-left: 30px !important; margin-left: 0 !important; margin-bottom: 8px !important; background: none !important; font-size: 16px; line-height: 1.45; }
.rmwtech-page .rmwtech-check-list li::marker { content: "" !important; font-size: 0 !important; }
.rmwtech-page .rmwtech-check-list li::before { content: "\2713" !important; position: absolute !important; left: 0 !important; top: 0 !important; color: var(--rmwtech-purple) !important; font-weight: 900 !important; }

/* Quick Links + Measure Cards */
.rmwtech-quick-strip { position: relative; z-index: 2; margin-top: -18px; }
.rmwtech-quick-grid, .rmwtech-measure-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.rmwtech-quick-card, .rmwtech-measure-card { position: relative; overflow: hidden; display: block; min-height: 142px; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(105,49,137,.13); box-shadow: 0 10px 26px rgba(34,16,45,.07); text-decoration: none !important; color: #111 !important; }
.rmwtech-quick-card:hover, .rmwtech-quick-card:focus { transform: translateY(-3px); border-color: rgba(105,49,137,.34); box-shadow: 0 16px 34px rgba(34,16,45,.12); }
.rmwtech-quick-number, .rmwtech-measure-icon { width: 44px; height: 44px; margin-bottom: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--rmwtech-purple); color: #fff; font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 14px; }
.rmwtech-quick-card:nth-child(even) .rmwtech-quick-number, .rmwtech-measure-card:nth-child(even) .rmwtech-measure-icon { background: var(--rmwtech-gold); }
.rmwtech-quick-card h3, .rmwtech-measure-card h3 { font-size: 19px; line-height: 1.15; margin-bottom: 8px; }
.rmwtech-quick-card p, .rmwtech-measure-card p { font-size: 14px; line-height: 1.45; margin-bottom: 0; }

/* Source Callout */
.rmwtech-source-callout { margin-top: 24px; padding: clamp(24px,3vw,34px); border-radius: 24px; background: linear-gradient(135deg, #fffdef 0%, #fff 100%); border: 1px solid rgba(176,155,110,.34); box-shadow: 0 10px 26px rgba(34,16,45,.06); }
.rmwtech-source-callout h3 { margin-bottom: 10px; font-size: clamp(22px,2.2vw,28px); }
.rmwtech-source-callout p { font-size: 16px; line-height: 1.65; }

/* Process */
.rmwtech-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rmwtech-process-card { position: relative; overflow: hidden; padding: clamp(24px,3vw,34px); border-radius: 24px; background: #fff; border: 1px solid rgba(105,49,137,.13); box-shadow: 0 12px 30px rgba(34,16,45,.07); }
.rmwtech-process-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 190px; height: 190px; border-radius: 999px; background: rgba(105,49,137,.06); pointer-events: none; }
.rmwtech-process-icon { position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--rmwtech-purple); color: #fff; font-family: "Montserrat", Arial, sans-serif; font-size: 14px; font-weight: 800; }
.rmwtech-process-card h3, .rmwtech-process-card p { position: relative; z-index: 1; }
.rmwtech-process-card h3 { font-size: clamp(22px,2.2vw,28px); margin-bottom: 12px; }
.rmwtech-process-card p { font-size: 16px; line-height: 1.6; }

/* Results Sheet */
.rmwtech-results-layout { display: grid; grid-template-columns: minmax(320px,.86fr) minmax(0,1fr); gap: clamp(30px,4vw,60px); align-items: center; }
.rmwtech-label-stack { display: grid; gap: 14px; }
.rmwtech-label-card { padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(105,49,137,.13); box-shadow: 0 10px 26px rgba(34,16,45,.06); }
.rmwtech-label-card h3 { font-size: 20px; margin-bottom: 6px; }
.rmwtech-label-card p { font-size: 15px; line-height: 1.5; margin-bottom: 0; }

/* FAQ */
.rmwtech-faq-list { display: grid; gap: 14px; }
.rmwtech-faq-item { border-radius: 22px; background: #fff; border: 1px solid rgba(105,49,137,.13); box-shadow: 0 10px 26px rgba(34,16,45,.06); overflow: hidden; }
.rmwtech-faq-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(--rmwtech-purple); }
.rmwtech-faq-item summary::-webkit-details-marker { display: none; }
.rmwtech-faq-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,.08); color: var(--rmwtech-purple); font-size: 24px; line-height: 1; font-weight: 700; }
.rmwtech-faq-item[open] summary { background: linear-gradient(135deg, #fff 0%, #fbf7fd 100%); }
.rmwtech-faq-item[open] summary::after { content: "–"; background: var(--rmwtech-purple); color: #fff; }
.rmwtech-faq-answer { padding: 0 26px 24px; }
.rmwtech-faq-answer p { font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.rmwtech-faq-answer p:last-child { margin-bottom: 0; }

/* Disclaimer + CTA */
.rmwtech-disclaimer { margin-top: 24px; padding: 22px 24px; border-radius: 20px; background: rgba(255,255,255,.74); border: 1px solid rgba(176,155,110,.34); }
.rmwtech-disclaimer p { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.rmwtech-disclaimer p:last-child { margin-bottom: 0; }
.rmwtech-cta-band { margin: 18px auto 0; 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); border-radius: var(--rmwtech-radius-lg); background: linear-gradient(135deg, #693189 0%, #4f146a 100%); color: #fff; text-align: center; box-shadow: var(--rmwtech-shadow); }
.rmwtech-cta-band h2, .rmwtech-cta-band p { color: #fff; }
.rmwtech-cta-band h2 { max-width: 1140px; margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
.rmwtech-cta-band p { max-width: 820px; margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* Responsive */
@media (max-width: 1180px) {
  .rmwtech-quick-grid, .rmwtech-measure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rmwtech-process-grid { grid-template-columns: 1fr; }
  .rmwtech-results-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .rmwtech-container { width: min(calc(100% - 36px), 900px); }
  .rmwtech-hero-grid, .rmwtech-split-card { grid-template-columns: 1fr; }
  .rmwtech-hero-media { min-height: auto; }
  .rmwtech-hero-person { max-height: 480px; }
  .rmwtech-feature-strip-inner { grid-template-columns: repeat(2,1fr); }
  .rmwtech-feature-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(176,155,110,.45); }
  .rmwtech-feature-item:nth-child(4) { border-top: 1px solid rgba(176,155,110,.45); }
}
@media (max-width: 720px) { .rmwtech-quick-grid, .rmwtech-measure-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rmwtech-container { width: min(calc(100% - 28px), 540px); }
  .rmwtech-page h1 { font-size: clamp(34px, 12vw, 46px); }
  .rmwtech-button-row { align-items: stretch; }
  .rmwtech-btn { width: 100%; }
  .rmwtech-feature-strip-inner { grid-template-columns: 1fr; }
  .rmwtech-feature-item, .rmwtech-feature-item + .rmwtech-feature-item { border-left: 0; border-top: 1px solid rgba(176,155,110,.45); }
  .rmwtech-feature-item:first-child { border-top: 0; }
  .rmwtech-feature-item { grid-template-columns: 46px 1fr; padding: 22px 20px; }
  .rmwtech-faq-item summary { padding: 20px 18px; }
  .rmwtech-faq-answer { padding: 0 18px 22px; }
}


/* ======================================================
   Technology Page Refinements
   ====================================================== */

/* Why We Use It revised layout */
.rmwtech-why-card {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fd 100%);
  border: 1px solid var(--rmwtech-border);
  border-radius: var(--rmwtech-radius-lg);
  box-shadow: 0 12px 30px rgba(34,16,45,0.07);
  padding: clamp(28px, 4vw, 52px);
}

.rmwtech-why-header {
  max-width: 980px;
}

.rmwtech-why-header h2 {
  margin-bottom: 0;
}

.rmwtech-why-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}

.rmwtech-why-copy p:last-of-type {
  margin-bottom: 0;
}

.rmwtech-why-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

.rmwtech-why-buttons .rmwtech-btn {
  min-height: 46px;
  padding: 12px 20px;
}

.rmwtech-page-note {
  margin-top: clamp(18px, 2.5vw, 30px);
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(176,155,110,0.34);
}

.rmwtech-page-note p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.rmwtech-page-note p:last-child {
  margin-bottom: 0;
}

/* Results sheet image without box */
.rmwtech-results-plain-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmwtech-results-plain-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(34,16,45,0.16);
}

/* The results layout already places the image on the left; this keeps it balanced */
.rmwtech-results-layout {
  align-items: center;
}

/* Remove extra nested disclaimer styling from CTA if it is not used */
.rmwtech-cta-band .rmwtech-disclaimer {
  display: none;
}

@media (max-width: 1024px) {
  .rmwtech-why-body {
    grid-template-columns: 1fr;
  }

  .rmwtech-why-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .rmwtech-why-buttons .rmwtech-btn {
    width: 100%;
  }
}
/* Tighten spacing between NPR callout and Why We Use It section */
#what-inbody-measures {
  padding-bottom: clamp(16px, 2vw, 24px) !important;
}

#why-we-use-it {
  padding-top: clamp(16px, 2vw, 24px) !important;
}

.rmwtech-source-callout {
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  .rmwnd-hero-media,
  .rmwmed-hero-media {
    display: none !important;
  }

  .rmwnd-hero-grid,
  .rmwmed-hero-grid {
    min-height: auto;
    padding-bottom: clamp(42px, 5vw, 78px);
  }
}
