/* Soft Professional: calm light surfaces with readable warm accents. */
html body {
  color: #223041 !important;
}

html body .card,
html body .card-link,
html body article[class*="card"],
html body .service-card,
html body .specialty-card,
html body .resource-card,
html body .testimonial-card,
html body .fit-card,
html body .process-card,
html body .detail-card,
html body .summary-card,
html body .portrait-card,
html body .contact-panel,
html body .trust-panel {
  color: #223041 !important;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(77, 109, 137, .18) !important;
  text-shadow: none !important;
}

html body .card *,
html body .card-link *,
html body article[class*="card"] *,
html body .service-card *,
html body .specialty-card *,
html body .resource-card *,
html body .testimonial-card *,
html body .fit-card *,
html body .process-card *,
html body .detail-card *,
html body .summary-card *,
html body .portrait-card *,
html body .contact-panel *,
html body .trust-panel * {
  color: #223041 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .card:hover,
html body .card-link:hover,
html body article[class*="card"]:hover {
  background: #ffffff !important;
  border-color: rgba(43, 118, 132, .34) !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  color: #ffffff !important;
  background: #2b7684 !important;
  border-color: #2b7684 !important;
}

html body .button.secondary,
html body a.button.secondary {
  color: #223041 !important;
  background: #ffffff !important;
  border-color: rgba(77, 109, 137, .24) !important;
}

html body .eyebrow,
html body .tag,
html body .badge,
html body .pill,
html body .label,
html body .kicker,
html body main .grid .card > span:first-child {
  color: #17343b !important;
  background: #dff4ef !important;
  border-color: rgba(43, 118, 132, .2) !important;
}

/* Interior layout identity: therapy conversation cards and soft centered rhythm. */
html body.vitalweb-remix .studio-hero {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  min-height: 620px !important;
  padding: clamp(40px, 7vw, 84px) !important;
  text-align: center !important;
  border-radius: 42px !important;
}

html body.vitalweb-remix .studio-copy {
  max-width: 760px !important;
  margin-inline: auto !important;
}

html body.vitalweb-remix .studio-copy h1 {
  font-size: clamp(54px, 8vw, 96px) !important;
}

html body.vitalweb-remix .hero-actions {
  justify-content: center !important;
}

html body.vitalweb-remix .studio-board {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: min(820px, 100%) !important;
  margin-top: 28px !important;
}

html body.vitalweb-remix .portrait-orbit {
  display: none !important;
}

html body.vitalweb-remix .board-card {
  min-height: 120px !important;
  text-align: left !important;
}

html body.vitalweb-remix .board-card,
html body.vitalweb-remix .fit-ribbon article,
html body.vitalweb-remix .reason-stack article {
  border-radius: 22px 22px 22px 6px !important;
}

html body.vitalweb-remix .fit-ribbon {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body.vitalweb-remix .intro-split,
html body.vitalweb-remix .trust-contact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(24px, 5vw, 60px) !important;
  max-width: 860px !important;
  margin-inline: auto !important;
}

html body.vitalweb-remix .mosaic-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body:not(.vitalweb-remix) main {
  width: min(1040px, calc(100% - 36px)) !important;
}

html body:not(.vitalweb-remix) .intro-block {
  max-width: 620px !important;
  margin-inline: auto !important;
  text-align: center !important;
}

html body:not(.vitalweb-remix) .grid {
  grid-template-columns: .82fr 1.18fr .82fr !important;
  align-items: center !important;
}

html body:not(.vitalweb-remix) main .grid .card {
  min-height: 280px !important;
  border-radius: 24px !important;
  padding: 28px !important;
}

html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
  min-height: 340px !important;
  transform: translateY(-12px) !important;
  box-shadow: 0 28px 72px rgba(43, 118, 132, .16) !important;
}

@media (max-width: 820px) {
  html body:not(.vitalweb-remix) .grid {
    grid-template-columns: 1fr !important;
  }

  html body:not(.vitalweb-remix) main .grid .card:nth-child(2) {
    transform: none !important;
  }
}

/* Card spacing safety pass: keeps text from hugging card borders on all sample pages. */
html body :where(.card, .card-link, .summary-card, .portrait-card, .service-card, .specialty-card, .resource-card, .testimonial-card, .fit-card, .process-card, .detail-card, .board-card, .contact-panel, .trust-panel, .detail-module, .detail-console),
html body :where(.service-list, .support-grid, .systems-grid, .trust-grid, .mosaic-grid, .reason-stack, .fit-ribbon) > article,
html body :where(.process-lane) li {
  box-sizing: border-box !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
}

/* Form spacing safety pass: keeps labels and controls comfortably inside contact forms. */
html body :where(form, .lead-form, .quote-form, .managed-form) {
  box-sizing: border-box !important;
  padding: clamp(22px, 2.6vw, 34px) !important;
}

/* Final readability/media safety pass: keeps page images contained and tiny marks readable. */
html body img {
  max-width: 100% !important;
}

html body :where(.brand-mark, .tag, .badge, .label, .kicker) {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body :where(.brand-mark) {
  color: #102326 !important;
  background: #f7fff9 !important;
  border: 1px solid rgba(16, 35, 38, .14) !important;
}

html body:not(.vitalweb-remix) main .grid .card,
html body:not(.vitalweb-remix) main .grid .card:visited {
  color: inherit !important;
  overflow: hidden !important;
}

html body:not(.vitalweb-remix) main .grid .card * {
  opacity: 1 !important;
  text-shadow: none !important;
}

html body .button,
html body button,
html body a[class*="button"] {
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Contact form safety pass: keeps compact demo forms readable on every page. */
html body form.contact-panel,
html body .contact-panel:is(form) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

html body form.contact-panel label,
html body .contact-panel:is(form) label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  font: inherit !important;
}

html body form.contact-panel textarea,
html body .contact-panel:is(form) textarea {
  min-height: 116px !important;
  resize: vertical;
}

/* Form field readability pass: prevents dark inherited controls on light contact layouts. */
html body form.contact-panel input,
html body form.contact-panel select,
html body form.contact-panel textarea,
html body .contact-panel:is(form) input,
html body .contact-panel:is(form) select,
html body .contact-panel:is(form) textarea {
  color: #172126 !important;
  background: rgba(255, 255, 255, .96) !important;
  border-color: rgba(23, 33, 38, .22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body form.contact-panel input::placeholder,
html body form.contact-panel textarea::placeholder,
html body .contact-panel:is(form) input::placeholder,
html body .contact-panel:is(form) textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}
