/* ==========================================================================
   /medspa-web-design/ — page layout.

   The shared house devices live in public/assets/css/service-devices.css,
   loaded first via ServicePageData.extraStyles. This file is only what is
   genuinely this page's own, and must not redefine anything that sheet owns.

   NAMESPACE. `mwd-`. Page-owned sections take .svcd-section in markup, so
   there is no palette block here. The RecentWork gallery this page carries is
   styled by offer.css (.work__*), which ServicePage already loads.
   ========================================================================== */

/* --- Two-column sections ------------------------------------------------------ */

.mwd-reveal__inner,
.mwd-quality__inner,
.mwd-why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* The specialist argument reads copy-first; the chips sit on the right. */
.mwd-why__inner {
  align-items: start;
}

.mwd-p {
  margin-top: 1.1rem;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 62ch;
}

.mwd-p a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--purple-border);
  transition: text-decoration-color var(--dur, 340ms) var(--ease-out);
}

.mwd-p a:hover,
.mwd-p a:focus-visible {
  text-decoration-color: var(--purple-light);
}

/* --- The reveal quotes ---------------------------------------------------------
   A client's own words, set like .svcd-kicker (display face, a lit top edge)
   because on this page the quote is the proof, not a flourish. A quote, not a
   kicker, so it carries a citation. */

.mwd-quote {
  position: relative;
  overflow: hidden;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg, 10px);
  background: linear-gradient(180deg, rgba(97, 25, 172, 0.14), transparent 85%);
  font-family: var(--font-display);
  font-stretch: var(--wdth-display, 108%);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 46ch;
}

.mwd-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.mwd-quote + .mwd-quote {
  margin-top: 1rem;
}

.mwd-quote__cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-stretch: var(--wdth-body, 100%);
  font-weight: 400;
  font-style: normal;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* --- The checklist, on the stage spine ----------------------------------------
   Each stage carries a short list rather than a paragraph. Hairline bullets,
   so the list reads as items on a spec rather than prose. */

.mwd-stage__items {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
  list-style: none;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}

.mwd-stage__items li {
  position: relative;
  padding-left: 1.2rem;
}

.mwd-stage__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.6rem;
  height: 1px;
  background: var(--purple-light);
}

/* --- Lighthouse scores ---------------------------------------------------------
   Five lab figures in the same tile as the credential cards elsewhere. */

.mwd-scores {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  /* One row of five on desktop: a 4 + 1 wrap reads as a mistake. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
}

.mwd-score {
  padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(0.7rem, 1.4vw, 1rem);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg, 10px);
  background: var(--surface-2);
}

.mwd-score__num {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display, 108%);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.mwd-score__label {
  margin-top: 0.55rem;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--text-muted);
}

/* --- The practices ---------------------------------------------------------------
   Chips are pills on this site; buttons never are. Each chip names a practice
   and its own Google review standing, so the caption under the list can say
   whose numbers those are. */

.mwd-practices {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.mwd-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.65em 1.15em;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: var(--step--1);
  color: var(--text-secondary);
}

.mwd-chip b {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 980px) {
  .mwd-reveal__inner,
  .mwd-quality__inner,
  .mwd-why__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Five across a phone is unreadable; let the tiles reflow. */
  .mwd-scores {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mwd-p a {
    transition: none;
  }
}
