/* Quiet Minds — components added after the WordPress → static migration.
   Built on the BeTheme palette: teal #368b9e / #3e8fa1, tan #ccb7a2, gray #f5f5f5,
   Prata for display type, DM Sans for body. */

:root {
  --qm-teal: #368b9e;
  --qm-teal-band: #3e8fa1;
  --qm-tan: #ccb7a2;
  --qm-gray: #f5f5f5;
  --qm-ink: #1f2a30;
  --qm-muted: #5d6f76;
}

/* ---------- Sections ---------- */
.qm-section { position: relative; padding: 90px 0; }
.qm-section .mcb-wrap, .qm-section .mcb-column, .qm-full { width: 100% !important; float: none; clear: both; }
/* BeTheme columns are flex containers; let the inner box fill the row instead of shrink-wrapping. */
.qm-section .mcb-column-inner, .qm-full .mcb-column-inner { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.qm-section.qm-tight { padding: 60px 0; }
.qm-section.qm-gray { background: var(--qm-gray); }
.qm-section.qm-teal { background: var(--qm-teal-band); color: #fff; padding: 130px 0 80px; }
.qm-section.qm-teal h1, .qm-section.qm-teal h2, .qm-section.qm-teal h3,
.qm-section.qm-teal h4, .qm-section.qm-teal h5 { color: #fff; }
.qm-section .column_attr > :last-child { margin-bottom: 0; }
.qm-after-white .mfn-shape-divider-top svg { --mfn-shape-divider: #fff; width: 100%; height: 67px; }
.qm-after-gray .mfn-shape-divider-top svg { --mfn-shape-divider: #f5f5f5; width: 100%; height: 67px; }
.qm-center { text-align: center; }
.qm-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

.qm-label {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--qm-tan);
  margin-bottom: 14px;
}
.qm-section:not(.qm-teal) .qm-label { color: #a8927b; }

/* ---------- Buttons ---------- */
.qm-buttons { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 28px; }
.qm-center .qm-buttons { justify-content: center; }
a.button.qm-btn {
  margin: 0;
  border: 2px solid #35889a;
  color: #35889a;
  background: transparent;
  text-transform: uppercase;
}
a.button.qm-btn:hover { color: #fff; background: #35889a; border-color: #35889a; }
a.button.qm-btn-solid { margin: 0; background: var(--qm-teal); color: #fff; border: 2px solid var(--qm-teal); }
a.button.qm-btn-solid:hover { background: #2d7586; border-color: #2d7586; color: #fff; }
.qm-teal a.button.qm-btn { color: #fff; border-color: #fff; }
.qm-teal a.button.qm-btn:hover { background: #fff; color: var(--qm-teal); }
.qm-call { font-size: 15px; color: inherit; }

/* ---------- Home: services ---------- */
.qm-service-link, .qm-service-link:hover { display: block; text-decoration: none; color: inherit; }
.qm-service-link .mfn-icon-box { transition: transform .25s ease; }
.qm-service-link:hover .mfn-icon-box { transform: translateY(-4px); }
.qm-service-link .title { transition: color .2s ease; }
.qm-service-link:hover .title { color: var(--qm-teal); }
.qm-service-teaser { margin: 10px auto 0; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--qm-muted); }
.qm-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--qm-teal);
}
.qm-more::after { content: " \2192"; }

.qm-modes {
  clear: both;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 30px;
  font-family: "Prata", serif;
  font-size: 22px;
  color: var(--qm-ink);
}
.qm-modes i { color: var(--qm-teal); font-size: 18px; margin-right: 8px; }
.qm-modes-amp { color: var(--qm-tan); }
.qm-modes-note { text-align: center; margin: 8px 0 0; color: var(--qm-muted); }

/* ---------- Statement / quote bands ---------- */
.qm-statement { font-family: "Prata", serif; font-size: 30px; line-height: 1.45; margin: 0 auto 18px; max-width: 900px; }
.qm-quote-block h5 { font-style: italic; }
.qm-quote-block h5 em .qm-emph { font-style: normal; }
.qm-signature { color: #37899c; }

/* ---------- Media + text ---------- */
.qm-media {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 70px;
  align-items: center;
}
.qm-media.qm-media-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.qm-media.qm-media-right .qm-media-img { order: 2; }
.qm-media-img img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.qm-media h3 { margin-bottom: 18px; font-size: 44px; line-height: 1.2; }

/* ---------- Title-left / content-right rows (matches Billing page) ---------- */
.qm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}
.qm-split + .qm-split { border-top: 2px solid var(--qm-teal-band); }
.qm-split h4 { margin: 0; }
.qm-split ul { margin-bottom: 0; }
.qm-split li { margin-bottom: 12px; }
.qm-split .qm-lead { font-family: "Prata", serif; font-size: 22px; line-height: 1.5; color: var(--qm-ink); margin-bottom: 20px; }

/* ---------- Word clouds ---------- */
.qm-cloud {
  list-style: none;
  margin: 30px auto 0 !important;
  padding: 0;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 26px;
  text-align: center;
}
.qm-cloud li { margin: 0 !important; padding: 0; list-style: none; line-height: 1.25; }
.qm-cloud li::before { display: none; }
.qm-cloud .w1 { font-family: "Prata", serif; font-size: 34px; color: var(--qm-teal); }
.qm-cloud .w2 { font-family: "Prata", serif; font-size: 25px; color: var(--qm-ink); }
.qm-cloud .w3 { font-family: "DM Sans", sans-serif; font-size: 19px; color: var(--qm-muted); font-style: italic; }
.qm-cloud .w4 { font-family: "DM Sans", sans-serif; font-size: 13px; color: var(--qm-ink); letter-spacing: 2px; text-transform: uppercase; }

.qm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.qm-compare-col { background: #fff; padding: 40px 30px; text-align: center; }
.qm-compare-col h4 { margin-bottom: 4px; }
.qm-compare-col p em { font-family: "Prata", serif; font-style: normal; font-size: 18px; color: var(--qm-ink); }
.qm-compare-col .qm-cloud { margin-top: 18px !important; gap: 6px 18px; }
.qm-compare-col .qm-cloud .w1 { font-size: 27px; }
.qm-compare-col .qm-cloud .w2 { font-size: 21px; }

/* ---------- Testimonials ---------- */
.qm-testimonials { column-count: 2; column-gap: 50px; margin-top: 40px; text-align: left; }
.qm-testimonial {
  break-inside: avoid;
  margin: 0 0 40px;
  padding-left: 22px;
  border-left: 2px solid rgba(255, 255, 255, .35);
}
.qm-testimonial blockquote {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: #fff;
}
.qm-testimonial blockquote::before, .qm-testimonial blockquote::after { display: none; }
.qm-testimonial figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--qm-tan);
}
.qm-testimonial-single { max-width: 820px; margin: 30px auto 0; text-align: center; border: 0; padding: 0; }
.qm-testimonial-single blockquote { font-size: 19px; }
.qm-testimonial figcaption { margin-top: 16px !important; }
.qm-teal a.qm-more { color: #fff; }

/* ---------- Fees ---------- */
.qm-fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.qm-fee { background: #fff; border-top: 3px solid var(--qm-teal); padding: 36px 24px; text-align: center; }
.qm-fee h4 { margin-bottom: 10px; }
.qm-fee-price { font-family: "Prata", serif; font-size: 44px; line-height: 1.1; color: var(--qm-teal); }
.qm-fee-unit { display: block; margin-top: 6px; font-size: 14px; color: var(--qm-muted); }
.qm-fees-note { margin-top: 34px; text-align: center; }

/* ---------- Header dropdown (Services) ---------- */
#Top_bar .menu > li > ul.sub-menu li a span { text-transform: none; letter-spacing: .5px; }
/* The un-stuck header is as tall as the logo, so dropdowns opened 63px below the label.
   Pull them up to the same ~15px gap the sticky header has. */
@media (min-width: 1240px) {
  #Top_bar:not(.is-sticky) .menu > li > ul.sub-menu { margin-top: -48px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .qm-media, .qm-media.qm-media-right { grid-template-columns: 1fr; gap: 40px; }
  .qm-media.qm-media-right .qm-media-img { order: 0; }
  .qm-fees { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  .qm-section { padding: 60px 0; }
  .qm-section.qm-teal { padding: 100px 0 60px; }
  .qm-media h3 { font-size: 32px; }
  .qm-split { grid-template-columns: 1fr; gap: 16px; }
  .qm-statement { font-size: 23px; }
  .qm-testimonials { column-count: 1; }
  .qm-testimonial-single blockquote { font-size: 16px; }
  .qm-compare { grid-template-columns: 1fr; gap: 24px; }
  .qm-cloud { gap: 6px 16px; }
  .qm-cloud .w1 { font-size: 26px; }
  .qm-cloud .w2 { font-size: 20px; }
  .qm-cloud .w3 { font-size: 16px; }
  .qm-modes { font-size: 19px; }
  .qm-media-img img { max-width: 320px; }
}
