/* Mehras Fitness v1.3 — responsive refinement and contrast pass */
:root {
  --mf-radius: 22px;
  --mf-radius-lg: 32px;
  --mf-container: min(1280px, calc(100% - 40px));
  --mf-light: #f5f2f5;
  --mf-light-2: #ebe6ec;
  --mf-ink: #17171b;
  --mf-ink-soft: #5f5862;
}

/* Compact global type and spacing */
h1 {
  font-size: clamp(2.75rem, 5.2vw, 5.4rem);
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.65rem);
}
h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
}
.mf-section {
  padding: clamp(64px, 7vw, 104px) 0;
}
.mf-section-heading {
  margin-bottom: 38px;
}
.mf-section-heading h2 {
  margin: 13px 0 17px;
}
.mf-section-heading p {
  font-size: 1rem;
}
.mf-page-hero {
  min-height: 48vh;
  padding: clamp(105px, 12vw, 158px) 0 clamp(52px, 7vw, 82px);
}
.mf-page-hero h1 {
  font-size: clamp(2.75rem, 5.3vw, 5.35rem);
  margin: 17px 0 22px;
}
.mf-about-hero,
.mf-service-hero,
.mf-consult-hero {
  padding-top: clamp(104px, 12vw, 156px);
  padding-bottom: clamp(52px, 6vw, 72px);
}
.mf-about-hero h1,
.mf-service-hero h1,
.mf-consult-hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.15rem);
}
.mf-final-cta h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
}

/* Header remains one line on desktop */
.site-header .mf-container,
.mf-announcement .mf-container {
  width: min(1460px, calc(100% - 36px));
}
.site-header__inner {
  min-height: 76px;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.primary-navigation {
  min-width: 0;
}
.primary-navigation .menu {
  gap: 16px;
  flex-wrap: nowrap;
}
.primary-navigation li {
  white-space: nowrap;
}
.primary-navigation a {
  font-size: 0.73rem;
  letter-spacing: -0.01em;
}
.site-header__tools {
  gap: 10px;
}
.site-header__tools .mf-btn--sm {
  padding-inline: 14px;
  font-size: 0.68rem;
}
.mf-brand__image {
  width: 56px;
}
.mf-brand__name {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
}
.mf-brand__name b {
  font-size: 0.56rem;
}

/* Sport-led home hero */
.mf-hero {
  min-height: auto;
  padding: clamp(70px, 8vw, 108px) 0 28px;
}
.mf-hero__inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  gap: clamp(36px, 5vw, 78px);
}
.mf-hero__copy h1 {
  font-size: clamp(2.85rem, 5.4vw, 5.55rem);
  margin: 18px 0 22px;
}
.mf-hero__copy p {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  margin-bottom: 26px;
}
.mf-hero__trust {
  margin-top: 26px;
}
.mf-hero-photo {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--mf-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #211823;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.38);
}
.mf-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 48%,
    rgba(11, 11, 14, 0.88) 100%
  );
}
.mf-hero-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--mf-radius-lg) - 10px);
  pointer-events: none;
}
.mf-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 23%;
}
.mf-hero-photo figcaption {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 27px;
  display: grid;
  gap: 3px;
  color: #fff;
}
.mf-hero-photo figcaption strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.mf-hero-photo figcaption span {
  font-size: 0.68rem;
  color: #d2ccd5;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.mf-intent-nav {
  margin-top: 54px;
  border-radius: var(--mf-radius);
  overflow: hidden;
}

/* Image-led service cards */
.mf-service-card {
  min-height: 0;
  padding: 0;
  border-radius: var(--mf-radius);
  overflow: hidden;
  color: var(--mf-ink);
}
.mf-service-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8d2da;
}
.mf-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--mf-ease);
}
.mf-service-card:hover .mf-service-card__media img {
  transform: scale(1.035);
}
.mf-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px;
}
.mf-service-card__body > span {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #776f79;
  font-weight: 800;
  margin-bottom: 9px;
}
.mf-service-card__body h3 {
  font-size: 1.45rem;
  color: var(--mf-ink);
}
.mf-service-card__body p {
  color: #625b65;
  font-size: 0.92rem;
}
.mf-service-card__body a {
  color: var(--mf-ink);
}

/* Universal rounded cards and boxes */
.mf-price-card,
.mf-result-card,
.mf-article-card,
.mf-post-card,
.mf-path-card,
.mf-feature-card,
.mf-fact-card,
.mf-dashboard-mock,
.mf-policy-grid article,
.mf-delivery-card,
.mf-case-card,
.mf-testimonial-placeholder,
.mf-credential-list article,
.mf-chip-grid span,
.mf-contact-form-wrap,
.mf-response-note,
.mf-booking-aside,
.mf-product-service,
.mf-publication-card,
.mf-compare-table,
.woocommerce ul.products li.product,
.mf-framed-image img,
.mf-about-hero__image img,
.mf-service-hero figure img,
.mf-consult-hero figure img {
  border-radius: var(--mf-radius);
}
.mf-result-card,
.mf-article-card,
.mf-post-card,
.mf-case-card,
.mf-product-service,
.mf-publication-card,
.woocommerce ul.products li.product {
  overflow: hidden;
}
.mf-fact-card,
.mf-feature-card,
.mf-path-card,
.mf-policy-grid article,
.mf-credential-list article {
  border-radius: var(--mf-radius);
}
.mf-chip-grid span {
  border-radius: 999px;
}
.mf-compare-table {
  border-collapse: separate;
  border-spacing: 0;
}
.mf-compare-table th:first-child {
  border-top-left-radius: var(--mf-radius);
}
.mf-compare-table th:last-child {
  border-top-right-radius: var(--mf-radius);
}

/* More premium price cards */
.mf-programs {
  background: radial-gradient(
      circle at 76% 12%,
      rgba(186, 12, 47, 0.18),
      transparent 30%
    ),
    #101014;
}
.mf-price-card {
  min-height: 440px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.3s var(--mf-ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.mf-price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--mf-red), transparent);
  opacity: 0.8;
}
.mf-price-card::after {
  content: "MF";
  position: absolute;
  right: -10px;
  bottom: -25px;
  font-size: 7rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.12em;
  pointer-events: none;
}
.mf-price-card:hover {
  transform: translateY(-7px);
  border-color: rgba(186, 12, 47, 0.75);
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.3);
}
.mf-price-card--featured {
  transform: translateY(-8px);
  background: radial-gradient(
      circle at 90% 8%,
      rgba(239, 22, 63, 0.24),
      transparent 30%
    ),
    linear-gradient(150deg, #351529, #1b151e);
  box-shadow: 0 28px 70px rgba(186, 12, 47, 0.2);
}
.mf-price-card > span {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9e5eb;
}
.mf-price-card h3 {
  font-size: 1.8rem;
  margin: 16px 0 12px;
}
.mf-price-card p {
  font-size: 0.94rem;
}
.mf-price-card ul {
  margin: 22px 0 26px;
  padding: 18px 0;
  gap: 10px;
  font-size: 0.91rem;
}
.mf-price-card li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(186, 12, 47, 0.2);
  margin-right: 9px;
}
.mf-price-card .mf-placeholder {
  margin-top: auto;
  width: max-content;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.mf-badge {
  border-radius: 999px;
}

/* Explicit contrast system */
.mf-services,
.mf-results,
.mf-articles,
.mf-visual-process,
.mf-dashboard-showcase,
.mf-compare,
.mf-research-teaser,
.mf-achievement-band,
.mf-contact-section,
.mf-faq-section {
  color: var(--mf-ink);
}
.mf-contact-section,
.mf-faq-section {
  background: var(--mf-light);
}
.mf-services h1,
.mf-services h2,
.mf-services h3,
.mf-services h4,
.mf-results h1,
.mf-results h2,
.mf-results h3,
.mf-results h4,
.mf-articles h1,
.mf-articles h2,
.mf-articles h3,
.mf-articles h4,
.mf-visual-process h1,
.mf-visual-process h2,
.mf-visual-process h3,
.mf-visual-process h4,
.mf-dashboard-showcase h1,
.mf-dashboard-showcase h2,
.mf-dashboard-showcase h3,
.mf-dashboard-showcase h4,
.mf-compare h1,
.mf-compare h2,
.mf-compare h3,
.mf-compare h4,
.mf-research-teaser h1,
.mf-research-teaser h2,
.mf-research-teaser h3,
.mf-research-teaser h4,
.mf-achievement-band h1,
.mf-achievement-band h2,
.mf-achievement-band h3,
.mf-achievement-band h4,
.mf-contact-section h1,
.mf-contact-section h2,
.mf-contact-section h3,
.mf-contact-section h4,
.mf-faq-section h1,
.mf-faq-section h2,
.mf-faq-section h3,
.mf-faq-section h4 {
  color: var(--mf-ink);
}
.mf-visual-process .mf-eyebrow,
.mf-dashboard-showcase .mf-eyebrow,
.mf-research-teaser .mf-eyebrow,
.mf-achievement-band .mf-eyebrow,
.mf-contact-section .mf-eyebrow,
.mf-faq-section .mf-eyebrow {
  color: #625b65;
}
.mf-visual-process p,
.mf-dashboard-showcase p,
.mf-research-teaser p,
.mf-achievement-band p,
.mf-contact-section p,
.mf-faq-section p {
  color: var(--mf-ink-soft);
}
.mf-dashboard-showcase .mf-check-list li {
  color: #4f4852;
}
.mf-service-card,
.mf-feature-card,
.mf-path-card,
.mf-product-service,
.mf-case-card,
.mf-policy-grid article,
.mf-contact-form-wrap,
.mf-response-note,
.mf-chip-grid span,
.mf-compare-table {
  color: var(--mf-ink);
}
.mf-feature-card h3,
.mf-path-card h3,
.mf-product-service h2,
.mf-case-card h2,
.mf-contact-form-wrap h2 {
  color: var(--mf-ink);
}
.mf-product-service .mf-btn--ghost,
.mf-feature-card .mf-btn--ghost,
.mf-path-card .mf-btn--ghost {
  color: var(--mf-ink);
  border-color: rgba(23, 23, 27, 0.25);
}
.mf-product-service .mf-btn--ghost:hover,
.mf-feature-card .mf-btn--ghost:hover,
.mf-path-card .mf-btn--ghost:hover {
  background: var(--mf-ink);
  color: #fff;
  border-color: var(--mf-ink);
}
.mf-articles .mf-article-card {
  background: #fff;
  color: var(--mf-ink);
}
.mf-dark-band .mf-article-card {
  background: #242127;
  color: #fff;
}
.mf-dark-band .mf-article-card h3 {
  color: #fff;
}
.mf-dark-band .mf-article-card p {
  color: #c5bfc9;
}
.mf-dark-band h1,
.mf-dark-band h2,
.mf-dark-band h3,
.mf-dark-band h4,
.mf-programs h1,
.mf-programs h2,
.mf-programs h3,
.mf-programs h4,
.mf-process h1,
.mf-process h2,
.mf-process h3,
.mf-process h4,
.mf-location-band h1,
.mf-location-band h2,
.mf-location-band h3,
.mf-location-band h4,
.mf-final-cta h1,
.mf-final-cta h2,
.mf-final-cta h3,
.mf-final-cta h4 {
  color: #fff;
}
.mf-dark-band .mf-eyebrow,
.mf-programs .mf-eyebrow,
.mf-process .mf-eyebrow,
.mf-location-band .mf-eyebrow,
.mf-final-cta .mf-eyebrow {
  color: #d8d4dc;
}

/* Results copy */
.mf-case-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: 14px;
  background: #f0edf1;
  color: #625b65;
  font-size: 0.86rem;
}
.mf-case-card__body {
  padding: clamp(30px, 4.5vw, 58px);
}
.mf-case-card__body h2 {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

/* Contact channels and floating WhatsApp / Telegram / call dock */
.mf-contact-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 27px;
}
.mf-contact-channel-grid a {
  display: grid;
  gap: 3px;
  padding: 17px;
  border: 1px solid #d8d2da;
  border-radius: 17px;
  background: #fff;
  color: var(--mf-ink);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.mf-contact-channel-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--mf-red);
}
.mf-contact-channel-grid span {
  color: var(--mf-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.63rem;
  font-weight: 800;
}
.mf-contact-channel-grid strong {
  color: var(--mf-ink);
  font-size: 0.98rem;
  word-break: break-word;
}
.mf-contact-channel-grid small {
  color: #746d76;
}
.mf-contact-dock {
  position: fixed;
  z-index: 999;
  right: 18px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}
.mf-contact-dock__item {
  min-width: 132px;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px 8px 9px;
  border-radius: 999px;
  color: #fff;
  background: #17171b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
}
.mf-contact-dock__item:hover {
  transform: translateY(-2px);
}
.mf-contact-dock__item--whatsapp {
  background: #167d54;
}
.mf-contact-dock__item--telegram {
  background: #247aa8;
}
.mf-contact-dock__item--phone {
  background: var(--mf-red);
}
.mf-contact-dock__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mf-contact-dock__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Tablet navigation: solid and legible */
@media (max-width: 1240px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }
  .primary-navigation {
    position: fixed;
    z-index: 1000;
    inset: 110px 0 0;
    overflow-y: auto;
    justify-self: stretch;
    padding: 24px 22px 42px;
    color: #fff;
    background: linear-gradient(180deg, #24162e 0%, #111115 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    transition: transform 0.3s var(--mf-ease);
  }
  .primary-navigation.is-open {
    transform: translateX(0);
  }
  .primary-navigation .menu {
    display: grid;
    gap: 0;
    align-content: start;
  }
  .primary-navigation a {
    display: block;
    padding: 13px 4px;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .mf-menu-toggle {
    display: block;
    justify-self: end;
  }
  .site-header__tools {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --mf-container: min(100% - 28px, 1280px);
  }
  body {
    font-size: 15px;
    line-height: 1.58;
    padding-bottom: 66px;
  }
  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }
  h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }
  h3 {
    font-size: 1.25rem;
  }
  .mf-section {
    padding: 50px 0;
  }
  .mf-section-heading {
    margin-bottom: 28px;
  }
  .mf-section-heading h2 {
    margin: 10px 0 13px;
  }
  .mf-section-heading p {
    font-size: 0.94rem;
  }
  .mf-page-hero {
    padding: 92px 0 45px;
  }
  .mf-page-hero h1,
  .mf-about-hero h1,
  .mf-service-hero h1,
  .mf-consult-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.3rem);
    line-height: 0.98;
  }
  .mf-page-hero p,
  .mf-about-hero__copy > p,
  .mf-service-hero__copy > p,
  .mf-consult-hero p {
    font-size: 0.96rem;
    line-height: 1.62;
  }
  .mf-about-hero,
  .mf-service-hero,
  .mf-consult-hero {
    padding: 92px 0 48px;
  }
  .mf-hero {
    padding-top: 48px;
  }
  .mf-hero__copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.55rem);
  }
  .mf-hero__copy p {
    font-size: 0.98rem;
  }
  .mf-hero-photo {
    min-height: 430px;
    border-radius: 24px;
  }
  .mf-hero-photo img {
    min-height: 430px;
  }
  .mf-hero-photo figcaption {
    left: 22px;
    right: 22px;
    bottom: 21px;
  }
  .mf-intent-nav {
    margin-top: 36px;
  }
  .mf-intent-nav a {
    padding: 15px 13px;
    font-size: 0.69rem;
  }
  .mf-card-grid {
    gap: 14px;
  }
  .mf-service-card__body {
    padding: 19px;
  }
  .mf-service-card__body h3 {
    font-size: 1.3rem;
  }
  .mf-price-card {
    min-height: 0;
    padding: 24px;
  }
  .mf-price-card h3 {
    font-size: 1.55rem;
  }
  .mf-price-card--featured {
    transform: none;
  }
  .mf-paths article {
    min-height: 350px;
  }
  .mf-final-cta .mf-container {
    gap: 25px;
  }
  .mf-final-cta h2 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }
  .mf-case-card__body {
    padding: 25px;
  }
  .mf-case-card__body h2 {
    font-size: 1.85rem;
  }
  .mf-contact-channel-grid {
    grid-template-columns: 1fr;
  }
  .mf-contact-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .mf-contact-dock__item {
    min-width: 0;
    min-height: 50px;
    padding: 7px;
    justify-content: center;
  }
  .mf-contact-dock__item > span:last-child {
    display: none;
  }
  .mf-contact-dock__icon {
    width: 34px;
    height: 34px;
  }
  .primary-navigation {
    inset: 106px 0 0;
  }
  .primary-navigation a {
    font-size: 0.9rem;
    padding: 12px 4px;
  }
  .mf-announcement {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }
  .mf-announcement .mf-container {
    height: 32px;
  }
  .site-header__inner {
    min-height: 70px;
  }
  .mf-brand__image {
    width: 49px;
  }
  .mf-proof-row {
    gap: 14px;
    margin-top: 25px;
    padding-top: 20px;
  }
  .mf-proof-row b {
    font-size: 1.2rem;
  }
  .mf-fact-card,
  .mf-feature-card,
  .mf-path-card,
  .mf-product-service,
  .mf-credential-list article {
    padding: 22px;
    min-height: 0;
  }
  .mf-fact-card h3,
  .mf-path-card h3,
  .mf-product-service h2 {
    font-size: 1.55rem;
    margin-top: 18px;
  }
  .mf-dashboard-mock article {
    padding: 22px 0;
  }
  .mf-dashboard-mock article h3 {
    font-size: 1.5rem;
  }
  .mf-booking-aside {
    padding: 24px;
  }
  .mf-legal-content > h2 {
    font-size: 1.65rem;
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .mf-section {
    padding: 44px 0;
  }
  .mf-actions {
    gap: 9px;
  }
  .mf-btn {
    min-height: 49px;
    padding-inline: 18px;
  }
  .mf-hero__trust {
    margin-top: 21px;
  }
  .mf-hero-photo {
    min-height: 385px;
  }
  .mf-hero-photo img {
    min-height: 385px;
  }
  .mf-paths article {
    min-height: 310px;
    padding: 33px 23px;
  }
  .mf-service-card {
    min-height: 0;
  }
  .mf-publication-card {
    min-height: 340px;
  }
  .mf-publication-card--large {
    min-height: 420px;
  }
  .mf-publication-card strong {
    font-size: 2rem;
  }
}

/* Mehras Core component rounding */
.mf-assessment,
.mf-dashboard-panel,
.mf-dashboard-list article,
.mf-status-list article,
.mf-testimonial-grid blockquote,
.mf-exercise-grid article,
.mf-upload-grid label,
.mf-medical-alert,
.mf-core-notice {
  border-radius: var(--mf-radius);
}
.mf-exercise-grid article {
  overflow: hidden;
}
@media (max-width: 800px) {
  .mf-assessment,
  .mf-dashboard-panel {
    padding: 22px;
  }
  .mf-assessment__head h2 {
    font-size: 1.85rem;
  }
  .mf-assessment__step h3 {
    font-size: 1.35rem;
  }
  .mf-assessment__progress {
    margin: 20px 0 28px;
  }
}

/* ==========================================================
   Mehras Fitness v1.4 — QA, accessibility and mobile pass
   ========================================================== */
:root {
  --mf-mobile-nav-top: 102px;
  --mf-focus: #ff335a;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  text-rendering: optimizeLegibility;
}

main,
section,
article,
figure,
.mf-container {
  min-width: 0;
}

h1,
h2,
h3,
h4,
p,
a,
button,
li,
span,
strong {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mf-focus);
  outline-offset: 3px;
}

.mf-btn:focus-visible,
.mf-contact-dock__item:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px rgba(186, 12, 47, 0.35);
}

.mf-menu-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mf-menu-toggle > span:not(.screen-reader-text) {
  width: 25px;
  margin: 5px auto;
  transform-origin: center;
  transition:
    transform 0.24s var(--mf-ease),
    opacity 0.18s,
    background 0.18s;
}

.mf-menu-toggle.is-active > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mf-menu-toggle.is-active > span:nth-child(2) {
  opacity: 0;
}
.mf-menu-toggle.is-active > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mf-menu-backdrop {
  display: none;
}

.primary-navigation__mobile-actions {
  display: none;
}

.primary-navigation .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0 10px 18px;
}

.primary-navigation .menu-item-has-children {
  position: relative;
}

.mf-submenu-toggle {
  display: none;
}

/* Prevent form controls from inheriting low-contrast browser colors. */
.mf-lead-form input,
.mf-lead-form select,
.mf-lead-form textarea,
.woocommerce input,
.woocommerce select,
.woocommerce textarea {
  color: var(--mf-ink);
  background-color: #fff;
}

.mf-lead-form input::placeholder,
.mf-lead-form textarea::placeholder,
.woocommerce input::placeholder,
.woocommerce textarea::placeholder {
  color: #777079;
  opacity: 1;
}

.mf-lead-form input,
.mf-lead-form select,
.mf-lead-form textarea {
  border-radius: 14px;
  min-height: 48px;
}

.mf-lead-form textarea {
  min-height: 130px;
}

.mf-table-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border-radius: var(--mf-radius);
  box-shadow: 0 16px 42px rgba(36, 22, 46, 0.08);
}

.mf-compare-table {
  min-width: 760px;
}

.mf-compare-table th,
.mf-compare-table td {
  vertical-align: top;
}

.mf-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Logged-in WordPress users: keep the sticky header below the admin bar. */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 1240px) {
  .site-header {
    z-index: 1200;
    background: #151419;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.is-scrolled {
    background: #111115;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-header__brand {
    min-width: 0;
  }

  .mf-brand,
  .custom-logo-link {
    max-width: 100%;
  }

  .mf-menu-toggle {
    display: block;
    justify-self: end;
    z-index: 1003;
  }

  .primary-navigation {
    position: fixed;
    z-index: 1002;
    top: var(--mf-mobile-nav-top);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, 100%);
    height: calc(100dvh - var(--mf-mobile-nav-top));
    min-height: 260px;
    padding: 18px 22px max(30px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #fff;
    background: linear-gradient(180deg, #211724 0%, #111115 72%);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: -28px 30px 80px rgba(0, 0, 0, 0.48);
    transform: translate3d(102%, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition:
      transform 0.3s var(--mf-ease),
      opacity 0.2s,
      visibility 0s linear 0.3s;
  }

  .primary-navigation.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .primary-navigation .menu {
    display: grid;
    align-content: start;
    gap: 0;
    width: 100%;
  }

  .primary-navigation .menu > li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .primary-navigation .menu > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 14px 46px 14px 2px;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .primary-navigation .current-menu-item > a,
  .primary-navigation .current-menu-ancestor > a {
    color: #fff !important;
  }

  .primary-navigation .current-menu-item > a::before,
  .primary-navigation .current-menu-ancestor > a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--mf-red);
    box-shadow: 0 0 0 5px rgba(186, 12, 47, 0.16);
  }

  .mf-submenu-toggle {
    position: absolute;
    top: 5px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
  }

  .mf-submenu-toggle span,
  .mf-submenu-toggle span::after {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s var(--mf-ease);
  }

  .mf-submenu-toggle span::after {
    content: "";
    transform: rotate(90deg);
  }

  .menu-item-has-children.submenu-open > .mf-submenu-toggle span::after {
    transform: rotate(0);
  }

  .primary-navigation .sub-menu {
    display: none;
    padding: 0 0 12px 16px;
  }

  .primary-navigation .submenu-open > .sub-menu {
    display: grid;
  }

  .primary-navigation .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    color: #d8d2dc !important;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .primary-navigation__mobile-actions {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .primary-navigation__mobile-actions .mf-btn {
    width: 100%;
    min-height: 50px;
  }

  .primary-navigation__mobile-actions > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .primary-navigation__mobile-actions > div a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mf-menu-backdrop {
    position: fixed;
    z-index: 1001;
    top: var(--mf-mobile-nav-top);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100dvh - var(--mf-mobile-nav-top));
    padding: 0;
    border: 0;
    background: rgba(5, 5, 7, 0.66);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.24s,
      visibility 0s linear 0.24s;
  }

  .mf-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.menu-open .mf-contact-dock {
    opacity: 0;
    pointer-events: none;
  }

  .site-header__tools {
    display: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 800px) {
  :root {
    --mf-container: min(100% - 28px, 1280px);
  }

  body {
    font-size: 15px;
    line-height: 1.55;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .site-header .mf-container,
  .mf-announcement .mf-container {
    width: min(100% - 24px, 1460px);
  }

  .mf-announcement .mf-container {
    min-width: 0;
    height: 30px;
  }

  .mf-announcement span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .mf-brand__image,
  .custom-logo {
    width: auto;
    max-width: 78px;
    max-height: 43px;
  }

  .mf-brand__name {
    display: none;
  }

  .primary-navigation {
    width: 100%;
    padding: 14px 18px max(28px, env(safe-area-inset-bottom));
    border-left: 0;
  }

  h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.9rem);
    line-height: 1.02;
  }
  h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.2rem);
    line-height: 1.08;
  }
  h3 {
    font-size: 1.2rem;
    line-height: 1.18;
  }

  .mf-page-hero h1,
  .mf-about-hero h1,
  .mf-service-hero h1,
  .mf-consult-hero h1,
  .mf-hero__copy h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .mf-section-heading br,
  .mf-page-hero br,
  .mf-about-hero br,
  .mf-service-hero br,
  .mf-consult-hero br,
  .mf-final-cta br,
  .mf-hero br {
    display: none;
  }

  .mf-section {
    padding: 44px 0;
  }
  .mf-section-heading {
    margin-bottom: 25px;
  }
  .mf-section-heading h2 {
    margin: 9px 0 12px;
  }
  .mf-section-heading p {
    font-size: 0.93rem;
    line-height: 1.58;
  }
  .mf-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .mf-page-hero {
    min-height: auto;
    padding: 66px 0 40px;
  }

  .mf-about-hero,
  .mf-service-hero,
  .mf-consult-hero {
    padding: 66px 0 42px;
  }

  .mf-page-hero p,
  .mf-about-hero__copy > p,
  .mf-service-hero__copy > p,
  .mf-consult-hero p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .mf-hero {
    padding: 42px 0 20px;
  }

  .mf-hero__inner {
    gap: 28px;
  }

  .mf-hero__copy h1 {
    margin: 15px 0 18px;
  }
  .mf-hero__copy p {
    font-size: 0.95rem;
    line-height: 1.58;
    margin-bottom: 22px;
  }
  .mf-hero__trust {
    margin-top: 20px;
    gap: 9px 14px;
  }
  .mf-hero__trust span {
    font-size: 0.65rem;
  }

  .mf-hero-photo,
  .mf-hero-photo img {
    min-height: 350px;
  }

  .mf-hero-photo {
    border-radius: 22px;
  }

  .mf-hero-photo figcaption {
    left: 18px;
    right: 18px;
    bottom: 17px;
  }

  .mf-intent-nav {
    margin-top: 28px;
  }

  .mf-intent-nav a {
    min-height: 52px;
    padding: 12px;
    font-size: 0.69rem;
  }

  .mf-card-grid {
    gap: 14px;
  }
  .mf-service-card__media {
    aspect-ratio: 16 / 9;
  }
  .mf-service-card__body {
    padding: 18px;
  }
  .mf-service-card__body h3 {
    font-size: 1.25rem;
  }
  .mf-service-card__body p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .mf-split,
  .mf-journey-grid,
  .mf-article-feature,
  .mf-contact-grid,
  .mf-booking-layout,
  .mf-about-hero__grid,
  .mf-service-hero__grid {
    gap: 30px;
  }

  .mf-framed-image::after,
  .mf-about-hero__image::before,
  .mf-service-hero figure::before {
    display: none;
  }

  .mf-about-hero__image figcaption {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 12px;
    font-size: 0.62rem;
  }

  .mf-science__visual {
    min-height: 320px;
  }

  .mf-radar {
    width: min(285px, 82vw);
  }

  .mf-floating-stat {
    padding: 10px 12px;
  }

  .mf-floating-stat strong {
    font-size: 1.15rem;
  }
  .mf-floating-stat span {
    font-size: 0.53rem;
  }

  .mf-check-list {
    margin: 22px 0;
    gap: 10px;
  }
  .mf-check-list li {
    padding-left: 24px;
    font-size: 0.91rem;
  }

  .mf-steps article {
    padding: 25px 20px;
  }
  .mf-steps article h3 {
    margin: 15px 0 8px;
  }

  .mf-paths article {
    min-height: 0;
    padding: 30px 22px;
  }

  .mf-paths article h2 {
    font-size: 1.75rem;
  }

  .mf-price-card {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .mf-price-card h3 {
    font-size: 1.45rem;
    margin: 12px 0 9px;
  }
  .mf-price-card ul {
    margin: 17px 0 20px;
    padding: 14px 0;
  }
  .mf-price-card::after {
    font-size: 5.6rem;
  }

  .mf-case-card__body {
    padding: 22px;
  }
  .mf-case-card__body h2 {
    font-size: 1.65rem;
    margin: 12px 0;
  }
  .mf-case-card__image img {
    max-height: 520px;
  }

  .mf-publication-card {
    min-height: 300px;
    padding: 24px;
  }

  .mf-publication-card--large {
    min-height: 380px;
  }
  .mf-publication-card strong {
    font-size: 1.85rem;
  }
  .mf-publication-card::before {
    font-size: 4rem;
  }

  .mf-fact-card,
  .mf-feature-card,
  .mf-path-card,
  .mf-product-service,
  .mf-credential-list article,
  .mf-policy-grid article,
  .mf-contact-form-wrap,
  .mf-booking-aside {
    padding: 20px;
    min-height: 0;
  }

  .mf-fact-card h3,
  .mf-feature-card h3,
  .mf-path-card h3,
  .mf-product-service h2,
  .mf-credential-list h3 {
    font-size: 1.4rem;
    margin-top: 14px;
  }

  .mf-product-service p {
    min-height: 0;
  }

  .mf-proof-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .mf-proof-row span {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
  }

  .mf-proof-row b {
    font-size: 1.1rem;
  }
  .mf-proof-row span:last-child {
    grid-column: 1 / -1;
  }

  .mf-contact-channel-grid {
    grid-template-columns: 1fr;
  }
  .mf-contact-channel-grid a {
    padding: 14px;
  }

  .mf-faq-item button {
    min-height: 56px;
    padding: 17px 0;
    font-size: 1rem;
  }

  .mf-faq-item.is-open > div > p {
    padding-bottom: 18px;
  }

  .mf-table-wrap::after {
    content: "Swipe to compare →";
    position: sticky;
    left: 12px;
    bottom: 8px;
    display: inline-block;
    margin: 8px 0 10px 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(23, 23, 27, 0.88);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    pointer-events: none;
  }

  .mf-compare-table th,
  .mf-compare-table td {
    padding: 15px;
    min-width: 150px;
    font-size: 0.83rem;
  }

  .mf-lead-form input,
  .mf-lead-form select,
  .mf-lead-form textarea,
  .woocommerce input,
  .woocommerce select,
  .woocommerce textarea {
    font-size: 16px;
  }

  .mf-contact-dock {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .mf-contact-dock__item {
    min-width: 0;
    min-height: 52px;
    padding: 7px;
    justify-content: center;
  }

  .mf-contact-dock__item > span:last-child {
    display: none;
  }
  .mf-contact-dock__icon {
    width: 36px;
    height: 36px;
  }

  .site-footer__top {
    gap: 28px;
  }
  .site-footer__bottom {
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .mf-card-grid--4,
  .mf-card-grid--3,
  .mf-post-grid,
  .mf-policy-grid,
  .mf-credential-list {
    grid-template-columns: 1fr;
  }

  .mf-service-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --mf-container: min(100% - 22px, 1280px);
  }

  .mf-section {
    padding: 38px 0;
  }
  .mf-btn {
    min-height: 48px;
    padding-inline: 16px;
    font-size: 0.76rem;
  }
  .mf-actions {
    gap: 8px;
  }

  .mf-hero-photo,
  .mf-hero-photo img {
    min-height: 320px;
  }
  .mf-hero-photo img {
    object-position: center 20%;
  }

  .mf-intent-nav {
    border-radius: 18px;
  }
  .mf-intent-nav a {
    font-size: 0.65rem;
  }

  .mf-final-cta h2 {
    font-size: 1.9rem;
  }
  .mf-final-cta p {
    font-size: 0.93rem;
  }

  .mf-publication-card {
    min-height: 270px;
  }
  .mf-publication-card--large {
    min-height: 340px;
  }

  .mf-contact-form-wrap,
  .mf-booking-aside,
  .mf-assessment,
  .mf-dashboard-panel {
    padding: 18px;
  }

  .primary-navigation__mobile-actions > div {
    grid-template-columns: 1fr 1fr;
  }

  .primary-navigation__mobile-actions > div a:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .mf-intent-nav {
    grid-template-columns: 1fr;
  }
  .mf-intent-nav a {
    border-right: 0;
    border-bottom: 1px solid var(--mf-border);
  }
  .mf-intent-nav a:last-child {
    border-bottom: 0;
  }
  .mf-proof-row {
    grid-template-columns: 1fr;
  }
  .mf-proof-row span:last-child {
    grid-column: auto;
  }
}

@media (hover: none) {
  .mf-service-card:hover,
  .mf-price-card:hover,
  .mf-feature-card:hover,
  .mf-contact-channel-grid a:hover,
  .mf-btn:hover,
  .mf-contact-dock__item:hover {
    transform: none;
  }
}

@media (min-width: 1241px) {
  .primary-navigation .menu > li {
    position: relative;
  }

  .primary-navigation .menu > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .primary-navigation .sub-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 17px);
    left: 50%;
    display: grid;
    width: max-content;
    min-width: 220px;
    max-width: 320px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #17171b;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition:
      opacity 0.18s,
      transform 0.2s var(--mf-ease),
      visibility 0s linear 0.2s;
  }

  .primary-navigation .sub-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 18px;
  }

  .primary-navigation .menu-item-has-children:hover > .sub-menu,
  .primary-navigation .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }

  .primary-navigation .sub-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #e7e2e9;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .primary-navigation .sub-menu a:hover,
  .primary-navigation .sub-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
  }
}

/* Final QA refinements discovered during responsive rendering. */
@media (max-width: 680px) {
  .mf-hero__inner {
    grid-template-columns: 1fr;
  }
  .mf-hero__visual {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (min-width: 801px) {
  .mf-contact-dock__item {
    width: 48px;
    min-width: 48px;
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    transition:
      width 0.24s var(--mf-ease),
      transform 0.2s var(--mf-ease);
  }

  .mf-contact-dock__item > span:last-child {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      width 0.24s var(--mf-ease),
      opacity 0.16s;
  }

  .mf-contact-dock__item:hover,
  .mf-contact-dock__item:focus-visible,
  .mf-contact-dock__item:focus-within {
    width: 132px;
  }

  .mf-contact-dock__item:hover > span:last-child,
  .mf-contact-dock__item:focus-visible > span:last-child,
  .mf-contact-dock__item:focus-within > span:last-child {
    width: auto;
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .mf-contact-dock {
    left: auto;
    right: 10px;
    width: auto;
    grid-template-columns: repeat(3, 48px);
    gap: 6px;
  }

  .mf-contact-dock__item {
    width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .mf-contact-dock__icon {
    width: 32px;
    height: 32px;
  }
}

/* Additional layout safeguards from the inner-page audit. */
@media (max-width: 1000px) {
  .mf-journey-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body.menu-open {
    touch-action: auto;
  }
  .mf-timeline {
    padding-left: 27px;
  }
  .mf-timeline article::before {
    left: -34px;
  }
}

/* Eyebrow labels must remain legible on every light section. */
.mf-results .mf-eyebrow,
.mf-articles .mf-eyebrow,
.mf-visual-process .mf-eyebrow,
.mf-dashboard-showcase .mf-eyebrow,
.mf-compare .mf-eyebrow,
.mf-research-teaser .mf-eyebrow,
.mf-achievement-band .mf-eyebrow,
.mf-contact-section .mf-eyebrow,
.mf-faq-section .mf-eyebrow {
  color: #5e5762;
}

/* v1.4 final mobile interaction and form safeguards. */
@media (max-width: 1240px) {
  body.menu-open {
    /* Preserve vertical touch scrolling inside the independently scrollable drawer. */
    touch-action: pan-y;
  }

  .primary-navigation {
    -webkit-overflow-scrolling: touch;
  }
}

.mf-assessment input,
.mf-assessment select,
.mf-assessment textarea,
.mf-progress-form input,
.mf-progress-form select,
.mf-progress-form textarea,
.mf-contact-form input,
.mf-contact-form select,
.mf-contact-form textarea,
.mf-booking-form input,
.mf-booking-form select,
.mf-booking-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid rgba(44, 37, 48, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #17171b;
  box-shadow: none;
}

.mf-assessment textarea,
.mf-progress-form textarea,
.mf-contact-form textarea,
.mf-booking-form textarea {
  min-height: 124px;
  resize: vertical;
}

.mf-assessment input::placeholder,
.mf-progress-form input::placeholder,
.mf-contact-form input::placeholder,
.mf-booking-form input::placeholder,
.mf-assessment textarea::placeholder,
.mf-progress-form textarea::placeholder,
.mf-contact-form textarea::placeholder,
.mf-booking-form textarea::placeholder {
  color: #77717a;
  opacity: 1;
}

.mf-choice-grid span,
.mf-upload-grid label,
.mf-progress-history,
.mf-dashboard-list article,
.mf-status-list article {
  border-radius: 16px;
}

.mf-progress-history,
.mf-dashboard-table-wrap,
.woocommerce-orders-table,
.woocommerce-MyAccount-content {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mf-progress-history table,
.mf-dashboard-table-wrap table {
  min-width: 680px;
}

@media (max-width: 800px) {
  .mf-assessment input,
  .mf-assessment select,
  .mf-assessment textarea,
  .mf-progress-form input,
  .mf-progress-form select,
  .mf-progress-form textarea,
  .mf-contact-form input,
  .mf-contact-form select,
  .mf-contact-form textarea,
  .mf-booking-form input,
  .mf-booking-form select,
  .mf-booking-form textarea,
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select {
    /* 16px prevents involuntary iOS Safari zoom on focus. */
    font-size: 16px;
  }

  .mf-assessment__actions,
  .mf-progress-form__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mf-assessment__actions .mf-core-btn,
  .mf-progress-form__actions .mf-core-btn {
    width: 100%;
    min-height: 48px;
  }

  .woocommerce table.shop_table_responsive,
  .woocommerce-page table.shop_table_responsive {
    border-radius: 16px;
    overflow: hidden;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 800px) {
    .primary-navigation {
      padding-right: max(22px, env(safe-area-inset-right));
      padding-left: max(22px, env(safe-area-inset-left));
    }
  }
}

/* Prevent modifier grids and aggressive word-breaking from defeating mobile layouts. */
h1,
h2,
h3,
h4,
button,
li,
strong {
  overflow-wrap: normal;
  word-break: normal;
}

p,
a,
span {
  overflow-wrap: break-word;
}

.mf-contact-details strong,
.mf-contact-channel-grid strong,
.mf-footer-contact a,
.woocommerce-customer-details address {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .mf-split--image {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-split--image > * {
    min-width: 0;
  }
}

/* Final WCAG contrast corrections discovered during rendered QA. */
.site-footer__bottom,
.site-footer__bottom span,
.site-footer__bottom a {
  color: #9b949f;
}

.mf-inner-page .mf-timeline span {
  color: #ff335a;
}

.mf-inner-page .mf-timeline article::before {
  background: #ff335a;
}
