/*
Theme Name: Mind Rejuvenation
Theme URI: https://example.com/mind-rejuvenation
Author: Mind Rejuvenation Team
Author URI: https://mindrejuvenation.net
Description: Custom, bilingual, accessible theme for Mind Rejuvenation clinic.
Version: 1.0.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, translation-ready, one-column, two-columns, accessibility-ready
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: mind-rejuvenation
Domain Path: /languages
*/

:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --tint: #eeedf6;
  --ink: #232744;
  --body: #4d5068;
  --muted: #5e6178;
  --primary: #4a4e8c;
  --primary-deep: #2e3470;
  --dark: #232744;
  --dark-card: #2e335a;
  --dark-card-border: #3d4470;
  --dark-hover: #353b66;
  --footer: #1a1d33;
  --on-dark: #b9bbd4;
  --on-dark-accent: #a6a9e0;
  --accent: #c36b43;
  --accent-badge-bg: #f2e2d6;
  --accent-badge-text: #9e512b;
  --toggle-idle-text: #575a72;
  --star: #d8a23a;
  --border: #e2e0d7;
  --border-indigo: #d8d6ec;
  --input-bg: #f8f7f2;
  --error: #c0392b;
  --error-border: #d64545;
  --toggle-bg: #eceae2;
  --shadow-soft: 0 10px 30px rgba(31, 36, 64, 0.06);
  --shadow-medium: 0 18px 44px rgba(31, 36, 64, 0.12);
  --shadow-hero: 0 30px 70px rgba(31, 36, 64, 0.18);
  --content-max: 1180px;
  --wide-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    backdrop-filter: none !important;
  }
}

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.mr-container {
  width: min(var(--content-max), calc(100% - 64px));
  margin-inline: auto;
}

main [id] {
  scroll-margin-top: 72px;
}

.mr-skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 9999;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.mr-skip-link:focus {
  top: 16px;
}

.mr-topbar {
  background: var(--dark);
  color: #d9daec;
  text-align: center;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mr-topbar-call {
  color: #fff;
  text-decoration: none;
  border: 1px solid #3d4470;
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
}

.mr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.mr-header__inner {
  width: min(var(--wide-max), calc(100% - 64px));
  margin-inline: auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-deep);
  flex-shrink: 0;
}

.mr-brand img {
  height: auto;
}

.site-logo__icon {
  width: auto;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mr-nav {
  margin-left: auto;
  position: relative;
}

.mr-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mr-nav__item {
  position: relative;
  list-style: none;
}

.mr-nav__link-wrap {
  display: inline-flex;
  align-items: center;
}

.mr-nav__caret {
  font-size: 15px;
  margin-left: 6px;
  opacity: 0.72;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mr-nav__item.menu-item-has-children:hover .mr-nav__caret,
.mr-nav__item.menu-item-has-children:focus-within .mr-nav__caret,
.mr-nav__item.menu-item-has-children.is-submenu-open .mr-nav__caret {
  opacity: 1;
  transform: rotate(180deg);
}

.mr-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #41445f;
  text-decoration: none;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.mr-nav a:hover,
.mr-nav a:focus-visible {
  background: var(--tint);
  color: var(--primary-deep);
}

.mr-nav__item.current-menu-item>a,
.mr-nav__item.current-menu-ancestor>a,
.mr-nav__item.current-menu-item>.mr-nav__link-wrap>a,
.mr-nav__item.current-menu-ancestor>.mr-nav__link-wrap>a {
  color: var(--primary-deep);
}

.mr-submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #41445f;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  cursor: pointer;
}

.mr-submenu-toggle:hover,
.mr-submenu-toggle:focus-visible {
  background: var(--tint);
  color: var(--primary-deep);
}

.mr-submenu-toggle .mr-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.mr-submenu-toggle[aria-expanded="true"] .mr-icon {
  transform: rotate(180deg);
}

.mr-nav__submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(35, 38, 62, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 120;
}

.mr-nav__submenu .mr-nav__item {
  width: 100%;
}

.mr-nav__submenu a {
  width: 100%;
  white-space: nowrap;
}

.mr-nav__item.menu-item-has-children:hover>.mr-nav__submenu,
.mr-nav__item.menu-item-has-children:focus-within>.mr-nav__submenu,
.mr-nav__item.menu-item-has-children.is-submenu-open>.mr-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mr-nav__submenu {
    transition: none;
  }

  .mr-nav__caret,
  .mr-submenu-toggle .mr-icon {
    transition: none;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.mr-lang {
  display: inline-flex;
  align-items: center;
  background: var(--toggle-bg);
  border: 1px solid #dedcd3;
  border-radius: 999px;
  padding: 3px;
}

.mr-lang a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--toggle-idle-text);
  padding: 6px 13px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.mr-lang a.is-active {
  background: var(--primary);
  color: #fff;
}

.mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  box-shadow: 0 8px 20px rgba(74, 78, 140, 0.3);
}

.mr-btn:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

.mr-btn--small {
  font-size: 14px;
  padding: 12px 18px;
  min-height: 44px;
}

.mr-menu-toggle {
  display: none;
  border: 1px solid var(--border-indigo);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-deep);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.mr-btn--ghost {
  background: var(--surface);
  color: var(--primary-deep);
  border: 1.5px solid var(--border-indigo);
  box-shadow: none;
}

.mr-btn--ghost:hover {
  border-color: var(--primary);
  background: var(--tint);
}

.mr-hero {
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(74, 78, 140, 0.1), transparent 70%),
    radial-gradient(50% 45% at 88% 4%, rgba(195, 107, 67, 0.1), transparent 70%),
    linear-gradient(180deg, #eeedf6 0%, #f6f4ef 64%);
}

.mr-hero__content {
  text-align: center;
  padding-top: 78px;
}

.mr-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--border-indigo);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
}

.mr-badge i {
  color: var(--primary);
  font-size: 16px;
}

h1,
h2,
h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mr-hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  max-width: 14em;
  margin: 24px auto 0;
}

.mr-hero__lead {
  font-size: 20px;
  max-width: 30em;
  margin: 20px auto 0;
}

.mr-hero__ctas {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mr-hero__points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.mr-hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #41445f;
}

.mr-hero__points i {
  color: var(--primary);
  font-size: 19px;
}

.mr-hero__image-wrap {
  position: relative;
  padding: 44px 0 86px;
}

.mr-hero__image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid #dedcec;
  box-shadow: var(--shadow-hero);
}

.mr-float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mr-float-card--left {
  bottom: 62px;
  left: -22px;
  max-width: 280px;
}

.mr-float-card--left strong {
  font-family: "Spectral", serif;
  font-size: 32px;
  color: var(--primary);
}

.mr-float-card--left span {
  font-size: 13.5px;
  font-weight: 600;
}

.mr-float-card--right {
  top: 20px;
  right: -10px;
  background: rgba(31, 36, 64, 0.78);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.mr-stars {
  color: var(--star);
  letter-spacing: 1px;
}

.mr-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.14em;
  color: currentColor;
}

.mr-stars .mr-icon {
  width: 1.05em;
  height: 1.05em;
}

.mr-stars .mr-icon g,
.mr-stars .mr-icon path {
  fill: currentColor;
  stroke: none;
}

.mr-section {
  padding: 80px 0;
}

.mr-section+.mr-section:not(.mr-cta-band) {
  border-top: 1px solid rgba(224, 222, 239, 0.65);
}

.mr-section.mr-treatments+.mr-section,
.mr-section.mr-cta-band {
  border-top: 0;
}

.mr-grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.mr-section h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  margin: 14px 0 0;
}

.mr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mr-chips {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mr-chips li {
  background: #eceaf4;
  border: 1px solid #d6d4e8;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #3a3e63;
}

.mr-treatments {
  background: var(--dark);
  color: #fff;
}

.mr-treatments h2,
.mr-treatments h3 {
  color: #fff;
}

.mr-treatments .mr-eyebrow {
  color: var(--on-dark-accent);
}

.mr-treatments .mr-section-lead {
  color: var(--on-dark);
  max-width: 30em;
}

.mr-card-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mr-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mr-treatment-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  padding: 26px;
}

.mr-treatment-card:hover {
  background: var(--dark-hover);
  border-color: #565e94;
  transform: translateY(-3px);
}

.mr-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(74, 78, 140, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.mr-icon-box .mr-icon {
  color: var(--on-dark-accent);
  width: 28px;
  height: 28px;
}

.mr-treatment-card h3 {
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

.mr-treatment-card p {
  color: var(--on-dark);
  font-size: 15px;
  margin: 10px 0 22px;
}

.mr-link-inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--border-indigo);
  padding-bottom: 4px;
}

.mr-link-inline:hover {
  border-bottom-color: var(--primary);
}

.mr-treatment-card .mr-link-inline {
  margin-top: auto;
  color: var(--on-dark-accent);
  border-bottom-color: transparent;
  font-size: 14px;
}

.mr-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mr-feature img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #dedcec;
  box-shadow: var(--shadow-medium);
}

.mr-section--tint {
  background: var(--tint);
  border-top: 1px solid #e0deef;
  border-bottom: 1px solid #e0deef;
}

/* Card grids on tinted bands keep light surfaces and dark type (not dark-band colors). */
.mr-section--tint.mr-treatments {
  color: var(--body);
}

.mr-section--tint.mr-treatments h2,
.mr-section--tint.mr-treatments h3 {
  color: var(--ink);
}

.mr-section--tint.mr-treatments .mr-eyebrow {
  color: var(--primary);
}

.mr-section--tint.mr-treatments .mr-section-lead {
  color: var(--body);
}

.mr-section--tint.mr-treatments .mr-treatment-card {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.mr-section--tint.mr-treatments .mr-treatment-card:hover {
  background: var(--surface);
  border-color: var(--border-indigo);
  transform: translateY(-3px);
}

.mr-section--tint.mr-treatments .mr-icon-box {
  background: #eceaf4;
}

.mr-section--tint.mr-treatments .mr-icon-box .mr-icon {
  color: var(--primary);
}

.mr-section--tint.mr-treatments .mr-treatment-card p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

.mr-section--tint.mr-treatments .mr-treatment-card .mr-link-inline {
  color: var(--primary-deep);
}

.mr-pill {
  text-transform: none;
  letter-spacing: 0;
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
}

.mr-section-head-center {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 48px;
}

.mr-section-head-center p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  margin: 16px 0 0;
}

.mr-expect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mr-expect-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mr-expect-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.mr-expect-card div {
  padding: 28px 30px 32px;
}

.mr-expect-card h3 {
  margin: 0;
  font-size: 24px;
}

.mr-expect-card p {
  margin: 12px 0 0;
  font-size: 18px;
}

.mr-team {
  background: var(--dark);
  color: #fff;
}

.mr-team .mr-eyebrow {
  color: var(--on-dark-accent);
}

.mr-team h2,
.mr-team p {
  color: #fff;
}

.mr-credentials-note {
  color: #d8daf0;
  margin: 14px 0 22px;
  font-size: 16px;
}

.mr-feature--team img {
  aspect-ratio: 4 / 3;
  border-color: var(--dark-card-border);
}

.mr-test-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.mr-stars-label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  color: #3a3e63;
}

.mr-test-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mr-results-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.mr-test-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31, 36, 64, 0.05);
}

.mr-test-card blockquote {
  margin: 16px 0 0;
  font-size: 17px;
  color: #3a3e63;
}

.mr-test-meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eceaf4;
  border: 1px solid #d6d4e8;
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mr-test-meta span {
  display: flex;
  flex-direction: column;
}

.mr-test-meta strong {
  color: var(--ink);
}

.mr-test-meta small {
  color: var(--muted);
}

.mr-contact {
  background: linear-gradient(180deg, var(--tint), var(--paper));
}

.mr-contact-details {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mr-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mr-contact-details i {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border-indigo);
  border-radius: 12px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}

.mr-contact-details span {
  display: flex;
  flex-direction: column;
}

.mr-contact-details strong {
  color: var(--ink);
}

.mr-contact-details a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.mr-contact-map {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 14px;
  margin-top: 20px;
}

.mr-video-embed {
  max-width: 800px;
  margin: 28px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.mr-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mr-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-medium);
}

.mr-form-wrap h3 {
  margin-top: 0;
  font-size: 24px;
}

.mr-fallback-form {
  display: grid;
  gap: 16px;
}

.mr-fallback-form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #3a3e63;
}

.mr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mr-fallback-form input,
.mr-fallback-form textarea,
.mr-fallback-form select,
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #262a47;
  background: var(--input-bg);
  border: 1.5px solid var(--border-indigo);
  border-radius: 11px;
  padding: 13px 15px;
}

.mr-fallback-form select,
.wpcf7-form select,
.wpcf7-form .wpcf7-select {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  min-height: 52px;
  line-height: 1.4;
  padding-right: 44px;
  cursor: pointer;
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256' fill='none'%3E%3Cpath d='M208 96l-80 80-80-80' stroke='%234a4e8c' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.mr-fallback-form select:required:invalid,
.wpcf7-form select:required:invalid,
.wpcf7-form .wpcf7-select:required:invalid {
  color: var(--muted);
}

.mr-fallback-form select option,
.wpcf7-form select option,
.wpcf7-form .wpcf7-select option {
  color: #262a47;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.mr-fallback-form input:user-invalid,
.mr-fallback-form textarea:user-invalid,
.mr-fallback-form select:user-invalid,
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid,
.wpcf7-form .wpcf7-select.wpcf7-not-valid {
  border-color: var(--error-border);
}

.mr-form-optional {
  font-weight: 500;
  color: var(--muted);
}

.mr-form-phi-note {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5a4f3f;
  background: #fff8eb;
  border: 1px solid #ecd9b8;
  border-radius: 10px;
  padding: 10px 12px;
}

.mr-form-note {
  margin: 2px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.wpcf7 .hidden-fields-container {
  display: none;
}

.wpcf7-form p {
  margin: 0 0 14px;
}

.wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #3a3e63;
}

.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 6px;
  color: var(--error);
}

.wpcf7-submit {
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(74, 78, 140, 0.3);
}

.wpcf7-submit:hover,
.wpcf7-submit:focus-visible {
  background: var(--primary-deep);
  color: #fff;
}

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #6ca36e;
  background: #f1faef;
}

.mr-footer {
  background: var(--footer);
  color: var(--on-dark);
}

.mr-footer__grid {
  padding: 70px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}

.mr-brand--footer {
  text-decoration: none;
}

.mr-brand--footer img {
  width: clamp(170px, 18vw, 240px);
  filter: brightness(1.08);
}

.mr-footer p {
  margin-top: 16px;
}

.mr-footer address {
  font-style: normal;
  margin-top: 20px;
  line-height: 1.7;
}

.mr-footer a {
  color: var(--on-dark-accent);
}

/* Text links: underline so identification is not color-only (WCAG 1.4.1). */
.mr-footer address a,
.mr-footer ul:not(.mr-footer__hours) a {
  text-decoration: underline;
  text-decoration-color: rgba(166, 169, 224, 0.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mr-footer address a:hover,
.mr-footer address a:focus-visible,
.mr-footer ul:not(.mr-footer__hours) a:hover,
.mr-footer ul:not(.mr-footer__hours) a:focus-visible {
  color: #d4d6f2;
  text-decoration-color: currentColor;
}

.mr-footer h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  margin: 0 0 16px;
}

.mr-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mr-footer li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mr-footer__hours {
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
  row-gap: 10px;
}

.mr-footer__hours li {
  display: contents;
}

.mr-footer__hours li span {
  white-space: nowrap;
}

.mr-footer__bottom {
  border-top: 1px solid #262a47;
}

.mr-footer__bottom .mr-container {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #8385a6;
  font-size: 14px;
}

.mr-footer__legal-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.mr-footer__bottom .mr-footer__legal-links a {
  color: var(--on-dark-accent);
  text-decoration: underline;
  text-decoration-color: rgba(166, 169, 224, 0.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mr-footer__bottom .mr-footer__legal-links a:hover,
.mr-footer__bottom .mr-footer__legal-links a:focus-visible {
  color: #d4d6f2;
  text-decoration-color: currentColor;
}

.mr-insurance-note {
  color: var(--ink);
  font-weight: 600;
  margin: 18px 0;
}

.mr-social-links {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.mr-social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid #394074;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mr-social-links a[href*="facebook.com"]:hover,
.mr-social-links a[href*="facebook.com"]:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.mr-social-links a[href*="instagram.com"]:hover,
.mr-social-links a[href*="instagram.com"]:focus-visible {
  background: linear-gradient(45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  border-color: #dc2743;
  color: #fff;
}

.mr-social-links a[href*="tiktok.com"]:hover,
.mr-social-links a[href*="tiktok.com"]:focus-visible {
  background: #000;
  border-color: #000;
  color: #fff;
}

.mr-footer__medical-note {
  text-align: center;
  padding: 0 20px 20px;
  color: #b7bad8;
  font-size: 12.5px;
}

#mr-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

#mr-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mr-mobile-call {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 210;
  box-shadow: 0 12px 24px rgba(31, 36, 64, 0.28);
}

/* 404 page ---------------------------------------------------------------- */

.mr-404-hero {
  background:
    linear-gradient(135deg, #f0eff8 0%, #f8f6f0 72%);
}

.mr-404-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), calc(100% - 64px));
  margin-inline: auto;
  padding: 72px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  align-items: center;
  gap: 48px;
}

.mr-404-hero__copy {
  max-width: 48rem;
}

.mr-404-hero__copy h1 {
  margin: 12px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  color: var(--ink);
}

.mr-404-hero__mark {
  position: relative;
  justify-self: end;
  width: min(100%, 260px);
  min-height: 200px;
  border: 1px solid rgba(216, 214, 236, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 50% 42%, rgba(195, 107, 67, 0.1), transparent 34%);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  color: rgba(74, 78, 140, 0.2);
}

.mr-404-hero__mark::before,
.mr-404-hero__mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.mr-404-hero__mark::before {
  width: 10px;
  height: 10px;
  left: 28px;
  bottom: 28px;
  background: rgba(74, 78, 140, 0.2);
}

.mr-404-hero__mark::after {
  width: 10px;
  height: 10px;
  right: 30px;
  top: 30px;
  background: var(--accent);
}

.mr-404-hero__mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 7.5vw, 104px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.mr-404 {
  padding-top: 64px;
}

.mr-404-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.mr-404-search,
.mr-404-help {
  min-width: 0;
}

.mr-404-search {
  position: sticky;
  top: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3vw, 30px);
}

.mr-404-search h2,
.mr-404-help h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
}

.mr-404-search-form {
  margin-top: 18px;
}

.mr-404-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.mr-404-search-row input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #262a47;
  background: #fff;
  border: 1.5px solid var(--border-indigo);
  border-radius: 8px;
  min-height: 52px;
  padding: 13px 15px;
}

.mr-404-search-row input[type="search"]::placeholder {
  color: #74778d;
}

.mr-404-search-row .mr-btn {
  width: 100%;
}

.mr-404-help p {
  margin: 0;
  max-width: 48rem;
}

.mr-404-links {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.mr-404-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(31, 36, 64, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mr-404-link-card:hover {
  border-color: var(--border-indigo);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.mr-404-link-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eceaf4;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.mr-404-link-card__icon .mr-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.mr-404-link-card__body {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

.mr-404-link-card__title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.mr-404-link-card__arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #f4f3fa;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mr-404-link-card__arrow .mr-icon {
  width: 16px;
  height: 16px;
}

.mr-404-link-card:hover .mr-404-link-card__arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
}

.mr-404-link-card__meta {
  width: fit-content;
  margin-top: 6px;
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 2px solid var(--border-indigo);
}

.mr-404-note {
  margin: 0;
  padding: 22px 0 0 18px;
  border-top: 1px solid rgba(216, 214, 236, 0.8);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--muted);
}

.mr-404-links+.mr-404-note {
  margin-top: 24px;
}

@media (max-width: 1120px) {

  .mr-card-grid,
  .mr-card-grid--3,
  .mr-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mr-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {

  .mr-container,
  .mr-header__inner {
    width: calc(100% - 34px);
  }

  .mr-grid-2,
  .mr-feature,
  .mr-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mr-feature--reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .mr-404-panel {
    grid-template-columns: 1fr;
  }

  .mr-404-search {
    position: static;
  }

  .mr-expect-grid,
  .mr-row,
  .mr-test-grid {
    grid-template-columns: 1fr;
  }

  .mr-float-card--left,
  .mr-float-card--right {
    position: static;
    margin-top: 12px;
  }

  .mr-hero__image-wrap {
    padding-bottom: 54px;
  }
}

@media (max-width: 768px) {
  .mr-404-hero__inner {
    width: calc(100% - 34px);
    padding: 56px 0 52px;
    grid-template-columns: 1fr;
  }

  .mr-404-hero__mark {
    display: none;
  }

  .mr-topbar {
    font-size: 12.5px;
  }

  .mr-header__inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .mr-brand {
    order: 1;
    flex: 1;
  }

  .site-logo__icon {
    height: 44px;
    max-height: 44px;
  }

  .site-logo__text {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .mr-lang {
    order: 2;
    margin-left: auto;
  }

  .mr-header__inner .mr-btn--small {
    order: 4;
    width: 100%;
  }

  .mr-menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .mr-nav {
    order: 5;
    width: 100%;
    display: none;
    margin-top: 10px;
  }

  .mr-nav.is-open {
    display: block;
  }

  .mr-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .mr-nav__item {
    width: 100%;
  }

  .mr-nav__link-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .mr-nav__caret {
    display: none;
  }

  .mr-submenu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .mr-nav__submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.22s ease, visibility 0.22s ease;
  }

  .mr-nav__item.menu-item-has-children.is-submenu-open>.mr-nav__submenu {
    visibility: visible;
    max-height: 480px;
    margin-top: 4px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--border);
    background: var(--surface);
  }

  .mr-nav a {
    justify-content: flex-start;
  }

  .mr-404-search-row {
    grid-template-columns: 1fr;
  }

  .mr-404-search-row .mr-btn {
    width: 100%;
  }

  .mr-404-link-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .mr-404-link-card__icon {
    width: 40px;
    height: 40px;
  }

  .mr-section {
    padding: 72px 0;
  }

  .mr-card-grid,
  .mr-card-grid--3,
  .mr-card-grid--4 {
    grid-template-columns: 1fr;
  }

  .mr-mobile-call {
    display: inline-flex;
  }

  #mr-scroll-top {
    bottom: 74px;
  }
}

/* ==========================================================================
   Interior pages (shared, data-driven layout)
   ========================================================================== */

.mr-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid #e0deef;
}

.mr-page-hero__inner {
  position: relative;
  z-index: 2;
  padding: 84px 0 76px;
  max-width: 46rem;
}

.mr-page-hero .mr-eyebrow {
  color: var(--primary);
}

.mr-page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  color: var(--ink);
}

.mr-page-hero__lead {
  margin: 20px 0 0;
  font-size: 20px;
  color: var(--body);
  max-width: 40em;
}

.mr-page-hero__ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mr-page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}

.mr-page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 23, 44, 0.88) 0%, rgba(20, 23, 44, 0.78) 55%, rgba(20, 23, 44, 0.72) 100%);
}

.mr-page-hero--has-image .mr-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 23, 44, 0.82);
  color: #fff;
}

.mr-page-hero--has-image h1,
.mr-page-hero--has-image .mr-page-hero__lead {
  color: #fff;
}

.mr-page-hero--dark {
  background: var(--dark);
}

.mr-page-hero--dark .mr-eyebrow {
  color: var(--on-dark-accent);
}

.mr-page-hero--dark h1,
.mr-page-hero--dark .mr-page-hero__lead {
  color: #fff;
}

.mr-page-hero--team {
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(74, 78, 140, 0.1), transparent 70%),
    radial-gradient(50% 45% at 88% 4%, rgba(195, 107, 67, 0.1), transparent 70%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 70%);
}

.mr-page-hero--team .mr-page-hero__inner {
  max-width: 760px;
  padding: 92px 0 86px;
  margin-inline: auto;
  text-align: center;
}

.mr-page-hero--team .mr-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eceaf4;
  color: var(--primary);
}

.mr-page-hero--team h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.mr-page-hero--team .mr-page-hero__lead {
  margin-inline: auto;
}

.mr-page-hero--team .mr-page-hero__ctas {
  justify-content: center;
}

.mr-page-hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 700;
}

.mr-page-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mr-page-hero__points i {
  color: var(--primary);
  font-size: 17px;
}

.mr-page-hero--has-image .mr-page-hero__points,
.mr-page-hero--dark .mr-page-hero__points {
  justify-content: flex-start;
  color: #fff;
  text-shadow: 0 1px 3px rgba(10, 12, 28, 0.55);
}

.mr-page-hero--has-image .mr-page-hero__points li,
.mr-page-hero--dark .mr-page-hero__points li {
  color: #fff;
}

.mr-page-hero--has-image .mr-page-hero__points i,
.mr-page-hero--dark .mr-page-hero__points i {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(10, 12, 28, 0.45));
}

/* Prose ------------------------------------------------------------------- */

.mr-prose {
  max-width: 62ch;
}

.mr-prose--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mr-prose p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 18px;
}

.mr-prose p:last-child {
  margin-bottom: 0;
}

.mr-prose .mr-link-inline {
  margin-top: 8px;
}

.mr-prose ul {
  padding-left: 1.4em;
  margin: 18px 0 22px;
}

.mr-prose ul li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 10px;
}

.mr-prose a,
.mr-feature div a:not(.mr-btn) {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mr-prose a:hover,
.mr-feature div a:not(.mr-btn):hover {
  color: var(--primary);
}

/* Editorial pages (stored WP content, e.g. privacy policy) ---------------- */

.mr-page-hero--editorial {
  text-align: center;
}

.mr-page-hero--editorial .mr-page-hero__inner {
  max-width: 42rem;
  padding: 72px 0 64px;
}

.mr-page-hero__inner--center {
  margin-inline: auto;
}

.mr-page-hero--editorial .mr-eyebrow {
  justify-content: center;
}

.mr-page-hero--editorial h1 {
  margin-top: 10px;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
}

.mr-editorial-page {
  padding: 48px 0 96px;
}

.mr-editorial-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 980px) {
  .mr-editorial-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 40px;
  }
}

.mr-editorial-toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
}

.mr-editorial-toc__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.mr-editorial-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mr-editorial-toc__list a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mr-editorial-toc__list a:hover {
  background: var(--tint);
  color: var(--primary-deep);
}

@media (max-width: 979px) {
  .mr-editorial-toc {
    position: static;
  }

  .mr-editorial-toc__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
  }
}

.mr-editorial-prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  color: var(--body);
  min-width: 0;
}

.mr-editorial-prose__intro {
  margin-bottom: 36px;
  padding: 24px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tint) 0%, var(--input-bg) 100%);
  border: 1px solid var(--border-indigo);
}

.mr-editorial-prose__intro>p:first-child em {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-indigo);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.mr-editorial-prose__intro p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 16px;
  color: var(--body);
}

.mr-editorial-prose__intro p:last-child {
  margin-bottom: 0;
}

.mr-editorial-prose .entry-content>h1 {
  margin: 0 0 10px;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.mr-editorial-prose p,
.mr-editorial-prose li {
  font-family: inherit !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin: 0 0 18px !important;
  color: var(--body) !important;
}

.mr-editorial-prose p:last-child,
.mr-editorial-prose li:last-child {
  margin-bottom: 0 !important;
}

.mr-editorial-prose__section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.mr-editorial-prose__section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.mr-editorial-prose h2.mr-editorial-prose__heading {
  scroll-margin-top: 96px;
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* Collapse leftover empty paragraphs. */
.mr-editorial-prose p:empty,
.mr-editorial-prose li:empty {
  display: none;
}

.mr-editorial-prose ul {
  list-style: none;
  margin: 16px 0 0 !important;
  padding: 20px 22px !important;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mr-editorial-prose ul li {
  position: relative;
  padding-left: 18px !important;
  margin-bottom: 12px !important;
}

.mr-editorial-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.mr-editorial-prose a {
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 52, 112, 0.28);
  text-underline-offset: 3px;
}

.mr-editorial-prose a:hover {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.mr-editorial-prose__contact {
  display: block;
  font-style: normal;
  margin-top: 20px !important;
  padding: 22px 24px !important;
  border-radius: 14px;
  background: var(--tint);
  border: 1px solid var(--border-indigo);
  line-height: 1.7 !important;
}

.mr-editorial-prose__contact strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Spectral", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
}

.mr-editorial-prose__contact a {
  text-decoration: none;
}

.mr-editorial-prose__contact a:hover {
  text-decoration: underline;
}

/* Steps ------------------------------------------------------------------- */

.mr-steps {
  list-style: none;
  counter-reset: mr-step;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.mr-step {
  counter-increment: mr-step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-soft);
}

.mr-step::before {
  content: counter(mr-step);
  position: absolute;
  top: -18px;
  left: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mr-step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.mr-step p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

/* FAQ accordion ----------------------------------------------------------- */

.mr-faq-group__title {
  font-size: 24px;
  margin: 40px 0 16px;
}

.mr-faq-group__link {
  margin: -8px 0 16px;
}

.mr-faq {
  display: grid;
  gap: 12px;
}

.mr-faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.mr-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.mr-faq__item summary::-webkit-details-marker {
  display: none;
}

.mr-faq__item summary::after {
  content: "\002B";
  flex: none;
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.mr-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.mr-faq__answer {
  padding: 0 22px 20px;
}

.mr-faq__answer p {
  margin: 0;
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
}

/* Team grid --------------------------------------------------------------- */

.mr-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.mr-team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mr-team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.mr-team-card__body {
  padding: 22px 24px 26px;
}

.mr-team-card__body h3 {
  margin: 0;
  font-size: 22px;
}

.mr-team-card__role {
  margin: 4px 0 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}

.mr-team-card__body p {
  color: var(--body);
  margin: 0;
}

/* Team showcase ----------------------------------------------------------- */

.mr-team-showcase {
  background: var(--paper);
}

.mr-team-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: stretch;
  margin-top: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-medium);
}

.mr-team-feature__media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tint);
}

.mr-team-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.mr-team-feature__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.mr-team-feature__badge i {
  color: var(--star);
}

.mr-team-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px 34px 0;
}

.mr-team-feature__body h3 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

.mr-team-feature__body p {
  margin: 18px 0 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.75;
}

.mr-team-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin-top: 28px;
}

.mr-team-showcase-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.mr-team-showcase-card img {
  width: 100%;
  height: 100%;
  min-height: 268px;
  object-fit: cover;
}

.mr-team-showcase-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mr-team-showcase-card__body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.14;
}

.mr-team-showcase-card__body .mr-team-card__role {
  align-self: flex-start;
  margin: 10px 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eceaf4;
  line-height: 1.25;
}

.mr-team-showcase-card__body p:last-child {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

/* Gallery ----------------------------------------------------------------- */

.mr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mr-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* Forms / resource cards -------------------------------------------------- */

.mr-forms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.mr-form-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.mr-form-card:hover {
  border-color: var(--border-indigo);
  transform: translateY(-2px);
}

.mr-form-card .mr-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  margin-bottom: 0;
  background: #eceaf4;
}

.mr-form-card .mr-icon-box .mr-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.mr-form-card__body {
  display: flex;
  flex-direction: column;
}

.mr-form-card__body strong {
  color: var(--ink);
  font-size: 17px;
}

.mr-form-card__body small {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.mr-form-card__arrow {
  margin-left: auto;
  color: var(--primary);
  font-size: 20px;
}

/* Offers ------------------------------------------------------------------ */

.mr-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.mr-offer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.mr-offer-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.mr-offer-card h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.mr-offer-card__price {
  margin: 10px 0;
  font-family: "Spectral", serif;
  font-size: 40px;
  color: var(--primary);
}

.mr-offer-card p {
  color: var(--body);
}

.mr-offer-card__note {
  font-size: 13.5px;
  color: var(--muted);
}

.mr-offer-card .mr-btn {
  margin-top: 12px;
}

/* CTA band ---------------------------------------------------------------- */

.mr-cta-band {
  background: var(--dark);
  color: #fff;
}

.mr-cta-band__inner {
  text-align: center;
  max-width: 46rem;
}

.mr-cta-band .mr-eyebrow {
  color: var(--on-dark-accent);
}

.mr-cta-band h2 {
  color: #fff;
}

.mr-cta-band p {
  color: #d8daf0;
  font-size: 18px;
  margin: 14px auto 30px;
  max-width: 40em;
}

.mr-cta-band .mr-btn {
  font-size: 17px;
  padding: 16px 34px;
}

/* Accessibility helpers --------------------------------------------------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
.mr-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.mr-page-hero--has-image a:focus-visible,
.mr-cta-band a:focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .mr-offer-card {
    padding-top: 50px;
  }

  .mr-offer-card__badge {
    top: 10px;
    right: 10px;
  }

  .mr-page-hero__inner {
    padding: 60px 0 52px;
  }

  .mr-page-hero--team .mr-page-hero__inner {
    padding: 68px 0 60px;
  }

  .mr-page-hero--team h1 {
    max-width: 10em;
    margin-inline: auto;
    font-size: 36px;
  }

  .mr-page-hero--team .mr-page-hero__lead {
    font-size: 17px;
  }

  .mr-page-hero--team .mr-page-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .mr-page-hero--team .mr-page-hero__ctas .mr-btn {
    justify-content: center;
  }

  .mr-prose,
  .mr-section-head-center {
    max-width: 100%;
  }

  .mr-container.mr-prose {
    width: calc(100% - 34px);
  }

  .mr-prose p,
  .mr-section-head-center p,
  .mr-page-hero__lead {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .mr-page-hero--has-image .mr-page-hero__lead {
    font-size: 18px;
  }

  .mr-section {
    padding: 56px 0;
  }

  .mr-step {
    padding: 32px 22px 24px;
  }

  .mr-page-hero__points {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .mr-team-feature {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 12px;
  }

  .mr-team-feature__media,
  .mr-team-feature__media img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .mr-team-feature__body {
    padding: 6px 10px 18px;
  }

  .mr-team-showcase__grid {
    grid-template-columns: 1fr;
  }

  .mr-team-showcase-card {
    grid-template-columns: 1fr;
  }

  .mr-team-showcase-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .mr-team-showcase-card__body {
    padding: 22px;
  }

  .mr-form-card {
    flex-wrap: wrap;
  }
}