/* ==========================================================================
   Design tokens (beyond theme.json) — consolidated so cards, panels, and
   sections share a coherent system.
   ========================================================================== */

:root {
  --mma-radius-xl: 24px;
  --mma-radius-lg: 20px;
  --mma-radius-md: 14px;
  --mma-radius-sm: 10px;

  --mma-shadow-sm: 0 6px 18px rgba(37, 39, 67, 0.05);
  --mma-shadow-md: 0 16px 40px rgba(37, 39, 67, 0.08);
  --mma-shadow-lg: 0 24px 60px rgba(12, 15, 32, 0.12);
  --mma-shadow-ink: 0 28px 70px rgba(10, 12, 30, 0.28);

  --mma-border-subtle: 1px solid rgba(37, 39, 67, 0.08);
  --mma-border-inner: 1px solid rgba(37, 39, 67, 0.1);
  --mma-border-ink: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--clean-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
  min-height: 100vh;
  overflow-x: clip;
}

.wp-site-blocks > * + * {
  margin-block-start: 0;
}

.home .wp-site-blocks > .wp-block-template-part + .wp-block-post-content,
.home .wp-site-blocks > .wp-block-template-part + main {
  margin-block-start: 0 !important;
}

.wp-site-blocks a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wp-site-blocks :where(h1, h2, h3, h4, h5, h6) {
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.wp-site-blocks :where(h2, h3) {
  line-height: 1.18;
}

.entry-content > p,
.wp-block-post-content > p {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.wp-block-post-content :where(p, li) {
  line-height: 1.65;
}

/* ==========================================================================
   Blog index — compact thumbnail left of title/excerpt
   ========================================================================== */

.mma-blog-card__row {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--wp--preset--spacing--m);
}

.mma-blog-card__row > .wp-block-post-featured-image {
  flex: 0 0 auto;
  margin: 0 !important;
  max-width: min(8.25rem, 32vw);
  width: min(8.25rem, 32vw);
}

.mma-blog-card__row > .wp-block-post-featured-image :where(a, figure) {
  display: block;
  margin: 0;
}

.mma-blog-card__row > .wp-block-post-featured-image img {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.mma-blog-card__body {
  flex: 1 1 0;
  min-width: 0;
}

.mma-blog-card__body .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.mma-blog-card__body .wp-block-post-title a:hover {
  color: var(--wp--preset--color--sage);
}

@media (max-width: 600px) {
  .mma-blog-card__row {
    flex-direction: column;
  }

  .mma-blog-card__row > .wp-block-post-featured-image {
    max-width: 7.5rem;
    width: 7.5rem;
  }
}

/* Blog index — posts + taxonomy sidebar */
.mma-blog-layout {
  align-items: flex-start;
}

.mma-blog-layout > .wp-block-column {
  min-width: 0;
}

.mma-blog-sidebar .wp-block-heading {
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mma-blog-sidebar .wp-block-categories-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mma-blog-sidebar .wp-block-categories-list ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0 0 0 1rem;
}

.mma-blog-sidebar .wp-block-categories-list a {
  color: var(--wp--preset--color--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.mma-blog-sidebar .wp-block-categories-list a:hover,
.mma-blog-sidebar .wp-block-categories-list a:focus-visible {
  color: var(--wp--preset--color--sage);
}

/* Older/alternate markup for the Categories block */
.mma-blog-sidebar .wp-block-categories:not(.is-style-dropdown) a {
  color: var(--wp--preset--color--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.mma-blog-sidebar .wp-block-categories:not(.is-style-dropdown) a:hover,
.mma-blog-sidebar .wp-block-categories:not(.is-style-dropdown) a:focus-visible {
  color: var(--wp--preset--color--sage);
}

.mma-blog-sidebar .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  line-height: 1.35;
}

.mma-blog-sidebar .wp-block-tag-cloud .tag-cloud-link {
  color: var(--wp--preset--color--slate);
  font-family: var(--wp--preset--font-family--clean-sans);
  font-size: 0.9rem !important;
  font-weight: 500;
  text-decoration: none;
}

.mma-blog-sidebar .wp-block-tag-cloud .tag-cloud-link:hover,
.mma-blog-sidebar .wp-block-tag-cloud .tag-cloud-link:focus-visible {
  color: var(--wp--preset--color--sage);
}

@media (min-width: 782px) {
  .mma-blog-sidebar {
    position: sticky;
    top: calc(6rem + env(safe-area-inset-top, 0px));
  }

  body.admin-bar .mma-blog-sidebar {
    top: calc(6rem + 32px + env(safe-area-inset-top, 0px));
  }
}

/* ==========================================================================
   Single post — featured image (avoid full content-width hero)
   ========================================================================== */

.single-post main > .wp-block-post-featured-image {
  box-sizing: border-box;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 50% !important;
  width: 100%;
}

.single-post main > .wp-block-post-featured-image figure,
.single-post main > .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
}

.single-post main > .wp-block-post-featured-image :where(figure, a) {
  display: block;
  margin: 0;
}

.single-post main > .wp-block-post-featured-image img {
  height: auto;
  width: 100%;
}

.wp-block-navigation__responsive-container-content {
  gap: 1.2rem;
}

.wp-block-site-title a,
.wp-block-navigation-item__content {
  text-decoration: none;
}

.wp-block-site-title {
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Header
   ========================================================================== */

.wp-site-blocks > header {
  background-color: var(--wp--preset--color--paper);
  border-bottom: 1px solid rgba(37, 39, 67, 0.08);
  box-shadow: 0 6px 18px rgba(37, 39, 67, 0.04);
  position: sticky;
  top: 0;
  transition: none;
  z-index: 100;
}

.page:not(.home) .wp-site-blocks > header,
.single-post .wp-site-blocks > header,
.archive .wp-site-blocks > header {
  border-bottom-color: transparent;
  box-shadow: none;
}

.wp-site-blocks > header.is-scrolled {
  box-shadow: 0 10px 32px rgba(37, 39, 67, 0.08);
}

.home .wp-site-blocks > header.is-scrolled {
  border-bottom-color: rgba(37, 39, 67, 0.08);
  box-shadow: 0 12px 30px rgba(19, 24, 43, 0.1);
}

.mma-header__bar {
  gap: var(--wp--preset--spacing--m);
  align-items: center;
  min-height: 96px;
  transition: none;
  width: 100%;
}

.is-scrolled .mma-header__bar {
  min-height: 78px;
}

.mma-header__logo,
.mma-header__logo a {
  display: flex;
  align-items: center;
  line-height: 0;
  margin: 0;
  text-decoration: none;
}

.mma-header__logo {
  flex-shrink: 0;
}

.mma-header__logo img {
  display: block;
  height: auto;
  image-rendering: auto;
  max-height: 108px;
  max-width: 124px;
  transition: none !important;
  width: 124px !important;
}

.mma-header__logo a {
  transition: none;
}

.mma-header__logo a:hover,
.mma-header__logo a:focus-visible {
  opacity: 0.85;
}

.mma-header__nav {
  align-self: flex-end;
  margin-left: auto;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.is-scrolled .mma-header__nav {
  margin-bottom: 0.1rem;
  margin-top: 0;
}

.mma-header .wp-block-navigation ul {
  align-items: center;
  gap: 0.2rem;
}

.mma-header .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.55rem 0.85rem;
  position: relative;
  transition:
    color 180ms ease,
    background-color 180ms ease;
  border-radius: 999px;
}

.mma-header .wp-block-navigation .wp-block-navigation-item__content::after {
  background: var(--wp--preset--color--brass);
  bottom: 0.1rem;
  content: "";
  height: 2px;
  left: 0.85rem;
  opacity: 0;
  position: absolute;
  right: 0.85rem;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mma-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.mma-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--sage);
  background: transparent;
}

.mma-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.mma-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
.mma-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.mma-header .wp-block-navigation .current_page_item > .wp-block-navigation-item__content::after {
  opacity: 1;
  transform: scaleX(1);
}

.mma-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.mma-header .wp-block-navigation .current_page_item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--sage);
  background: transparent;
}

.mma-header .wp-block-navigation__responsive-container-open,
.mma-header .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--ink);
}

@media (max-width: 980px) {
  .mma-header__logo img {
    max-height: 92px;
    max-width: 106px;
    width: 106px !important;
  }
}

@media (max-width: 781px) {
  .mma-header__bar {
    min-height: 82px;
  }

  .is-scrolled .mma-header__bar {
    min-height: 72px;
  }

  .mma-header__logo img {
    max-height: 78px;
    max-width: 90px;
    width: 90px !important;
  }
}

/* Fallback rules for non-header nav usage */
.wp-block-navigation-item__content {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mma-footer-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Post content wrapper
   ========================================================================== */

.home .wp-block-post-content {
  margin-top: 0;
  padding-top: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.home .wp-block-post-content > :first-child {
  margin-block-start: 0;
}

.home .wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}

.home .wp-block-post-content > .wp-block-group:first-child,
.home .wp-block-post-content > .alignfull:first-child {
  margin-top: 0;
}

.home .mma-hero,
.home .mma-ticker,
.home .mma-stats {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* Home hero: shorter band; stack anchored low (toward trust row), not vertically centered.
   Background image is handled by the wp:cover block's <img> tag — suppress the CSS bg. */
.home .mma-hero {
  background-image: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(26rem, 68dvh, 42rem);
  padding-bottom: clamp(4.25rem, 6vw, 5.5rem) !important;
  padding-top: clamp(5rem, 7vw, 6.25rem) !important;
}

.admin-bar.home .mma-hero,
.admin-bar.home .mma-ticker,
.admin-bar.home .mma-stats {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.admin-bar.home .mma-hero {
  min-height: clamp(26rem, calc(68dvh - 32px), 42rem);
}

/* Center the cover block's inner container to 1240px so the hero content
   left-aligns with the constrained sections below it. */
.home .mma-hero .wp-block-cover__inner-container {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
}

.page:not(.home) .wp-block-post-content,
.single-post .wp-block-post-content {
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  padding-top: 0;
}

.page:not(.home) .wp-block-post-content > :first-child,
.single-post .wp-block-post-content > :first-child {
  margin-block-start: 0;
  margin-top: 0;
}

.page:not(.home) .wp-block-post-content > .alignfull:first-child,
.single-post .wp-block-post-content > .alignfull:first-child {
  margin-top: 0;
}

.page:not(.home) .wp-block-post-content > .alignwide,
.single-post .wp-block-post-content > .alignwide {
  max-width: 1560px;
}

.page:not(.home) .mma-page-hero.alignfull,
.single-post .mma-page-hero.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

.page:not(.home) .mma-tech-focus-section.alignfull,
.single-post .mma-tech-focus-section.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

.page:not(.home) .mma-pricing-body--hero-surface.alignfull,
.single-post .mma-pricing-body--hero-surface.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  box-shadow: 0 10px 24px rgba(37, 39, 67, 0.14);
  transform: translateY(-1px);
}

/* ==========================================================================
   Eyebrow helper
   ========================================================================== */

.mma-eyebrow {
  font-size: var(--wp--preset--font-size--small) !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.mma-hero,
.mma-pricing-body--hero-surface {
  /* Photo + darker ink-family wash (than solid #252743) so ridges stay visible; brand glows stay subtle. */
  background-color: #12132a;
  background-image:
    radial-gradient(circle at 85% 18%, rgba(197, 183, 127, 0.11), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(87, 134, 124, 0.12), transparent 32%),
    linear-gradient(
      180deg,
      rgba(14, 16, 36, 0.9) 0%,
      rgba(12, 14, 32, 0.84) 42%,
      rgba(10, 12, 28, 0.88) 100%
    ),
    url('../images/hero-mountain-layers.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.mma-hero {
  margin-bottom: 0 !important;
  overflow: clip;
  padding-bottom: clamp(5.75rem, 8.2vw, 7.1rem) !important;
  padding-top: clamp(6.25rem, 8.8vw, 7.6rem) !important;
  position: relative;
  text-align: left;
}

.mma-hero.has-ink-background-color {
  /* Keep utility class from flattening the layered photo + wash. */
  background-color: #12132a;
}

/* Align hero stack with other sections (wide band centered in constrained layout).
   Uses descendant selector for .mma-hero__content because the wp:cover block wraps
   inner content in .wp-block-cover__inner-container, making it a grandchild.
   margin-left: 0 keeps the content left-aligned (cover block removes the constrained
   layout that previously prevented the 820px max-width from centering the block). */
.mma-hero.is-layout-constrained > .wp-block-group.alignwide,
.mma-hero .mma-hero__content.alignwide {
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 100%;
}

.mma-hero .wp-block-columns {
  align-items: center;
}

/* Constrained inner layouts center each block; left-align type inside the hero column. */
.mma-hero .mma-hero__content > * {
  animation: mmaFadeUp 700ms ease both;
  max-width: 100%;
  text-align: left;
}

.mma-hero__content {
  max-width: 820px;
  padding-right: 2.25rem;
  text-align: left;
  width: 100%;
}

.mma-hero .mma-hero__content :is(h1, h2, h3, p) {
  text-align: left !important;
}

.mma-hero .has-text-align-center {
  text-align: left !important;
}

.mma-hero__visual {
  flex-basis: calc(42% - (var(--wp--preset--spacing--l) / 2)) !important;
  align-self: center;
}

.mma-hero .mma-hero__content > *:nth-child(2) { animation-delay: 80ms; }
.mma-hero .mma-hero__content > *:nth-child(3) { animation-delay: 160ms; }
.mma-hero .mma-hero__content > *:nth-child(4) { animation-delay: 240ms; }
.mma-hero .mma-hero__content > *:nth-child(5) { animation-delay: 320ms; }

.mma-hero .mma-hero__headline {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(2.65rem, 4.2vw + 0.5rem, 3.85rem) !important;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin: 0 0 0.85rem;
  max-width: none;
  overflow-wrap: normal;
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.42);
  text-transform: none;
  text-wrap: initial;
  word-break: normal;
}

.mma-hero .mma-hero__subheadline {
  color: rgba(244, 241, 232, 0.82);
  font-family: var(--wp--preset--font-family--clean-sans);
  font-size: clamp(1.1rem, 1.35vw + 0.35rem, 1.35rem) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  max-width: 42ch;
}

.mma-hero .mma-hero__copy {
  font-family: var(--wp--preset--font-family--clean-sans);
  font-size: 1rem !important;
  line-height: 1.65;
  max-width: 38rem;
}

.mma-hero .mma-hero__actions.wp-block-buttons {
  gap: 0.75rem;
  justify-content: flex-start !important;
  margin-top: 1.5rem;
}

.mma-hero .wp-block-button__link {
  padding: 0.95rem 1.65rem;
}

.mma-hero .is-style-outline .wp-block-button__link {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--wp--preset--color--white) !important;
}

.mma-hero .is-style-outline .wp-block-button__link:hover,
.mma-hero .is-style-outline .wp-block-button__link:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.6);
}

.mma-hero .mma-hero__trust {
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  justify-content: flex-start !important;
  margin-top: 2rem;
  padding-top: 1.25rem;
  column-gap: 1.75rem !important;
  row-gap: 0.6rem !important;
}

.mma-hero .mma-hero__trust-item {
  font-size: 0.8125rem;
  margin: 0;
  max-width: 22rem;
  text-align: left !important;
  white-space: normal;
}

.mma-hero .mma-hero__trust-item strong {
  color: var(--wp--preset--color--brass);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Hero partner card -- aligned to hero content height */

.mma-hero-card {
  backdrop-filter: blur(10px);
  border-radius: var(--mma-radius-xl);
  box-shadow: var(--mma-shadow-ink);
  position: relative;
}

.mma-hero-card .wp-block-heading,
.mma-hero-card .wp-block-list,
.mma-hero-card .mma-eyebrow {
  text-align: left;
}

.mma-hero-card > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  z-index: 1;
}

.mma-hero-card__headline {
  align-self: flex-start;
  font-size: clamp(1.4rem, 1.75vw, 1.75rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.75rem !important;
  max-width: 22ch;
  text-align: left;
  text-wrap: pretty;
}

.mma-hero-card__list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.mma-hero-card__list li {
  border-top: 1px solid rgba(37, 39, 67, 0.12);
  font-size: 0.98rem;
  line-height: 1.5;
  padding-top: 0.75rem;
}

/* ==========================================================================
   Audience section
   ========================================================================== */

.mma-audience-section {
  position: relative;
}

.mma-audience-section__layout {
  align-items: center;
}

.mma-audience-section__photo,
.mma-audience-section__photo img {
  border-radius: 32px;
  display: block;
  width: 100%;
}

.mma-audience-section__photo {
  /* Soft lift — avoid overflow:hidden here or the shadow is clipped off the figure */
  box-shadow:
    0 10px 26px rgba(37, 39, 67, 0.07),
    0 3px 10px rgba(37, 39, 67, 0.045);
  margin: 0;
  max-width: 29rem;
}

.mma-audience-section__photo img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.mma-audience-section__content {
  max-width: 46rem;
}

.mma-audience-section__content .wp-block-heading,
.mma-audience-section__content .mma-eyebrow,
.mma-audience-section__content p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
  text-align: left;
}

.mma-audience-section__content .wp-block-heading {
  max-width: 22ch;
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.mma-ticker {
  overflow: hidden;
  margin-top: 0 !important;
  padding: 0 !important;
}

.mma-ticker__viewport {
  overflow: hidden;
  width: 100%;
}

.mma-ticker .wp-block-html {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

/* Six identical segments: extra width fills ultrawide viewports (two copies left visible gaps).
   Loop shifts by exactly one segment: translate calc(-100% / N). Keep N in sync with home-page ticker PHP ($mma_ticker_i < N). */
.mma-ticker__track {
  animation: mmaTickerMarquee 64s linear infinite;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
}

.mma-ticker__segment {
  flex: 0 0 auto;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  margin: 0;
  /* Match bullet-side margins (~1rem + last bullet’s 1rem); large padding-right caused a visible “hole” before the duplicate */
  padding: 0.9rem 1rem 0.85rem 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.mma-ticker__segment span {
  color: rgba(255, 255, 255, 0.55);
  display: inline-block;
  margin: 0 1rem;
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.mma-stats {
  border-bottom: 1px solid rgba(37, 39, 67, 0.08);
}

.mma-stat {
  padding: 0.5rem 0;
}

.mma-stat__value {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.mma-stat__label {
  letter-spacing: 0.04em;
  margin: 0;
  max-width: none;
}

/* ==========================================================================
   About / Team band
   ========================================================================== */

.mma-team {
  background:
    radial-gradient(circle at 14% 18%, rgba(87, 134, 124, 0.16), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(197, 183, 127, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--wp--preset--color--ink);
}

.mma-team__intro {
  margin-bottom: 0;
  max-width: 42rem;
}

/* Match Our story band: same inner width, flush left (WP centers constrained blocks by default) */
.mma-brief-section > .mma-team__intro-stack {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 1120px !important;
  text-align: left;
  width: 100%;
}

.mma-team__intro-stack :where(.mma-eyebrow, .wp-block-heading, p) {
  text-align: left;
}

.mma-brief-section > .wp-block-columns.alignwide.mma-team__grid {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 1120px !important;
  width: 100%;
}

.mma-team__note {
  box-shadow: var(--mma-shadow-lg);
}

.mma-team__values {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.1rem;
}

.mma-team-card {
  box-shadow: var(--mma-shadow-lg);
  border-radius: var(--mma-radius-xl);
  height: 100%;
  overflow: hidden;
}

.mma-team-card__media {
  border-radius: 50%;
  flex-shrink: 0;
  height: 100px !important;
  margin: 0 auto 1.25rem !important;
  margin-block-start: 0 !important;
  overflow: hidden;
  width: 100px !important;
}

.mma-team-card__image {
  margin: 0;
}

.mma-team-card__image img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
}

.mma-team-card__role {
  color: var(--wp--preset--color--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 !important;
  margin-block-start: 0 !important;
  text-align: center;
  text-transform: uppercase;
}

.mma-team-card__name {
  font-size: 1.25rem;
  margin: 0.25rem 0 0 !important;
  margin-block-start: 0.25rem !important;
  text-align: center;
}

.mma-team-card__bio {
  font-size: 1rem !important;
}

@media (max-width: 781px) {
  .mma-team-card__media {
    width: 80px;
    height: 80px;
  }
}

/* ==========================================================================
   Approach section (legacy / currently unused but kept for safety)
   ========================================================================== */

.mma-approach__benefits {
  box-shadow: var(--mma-shadow-md);
  border-radius: var(--mma-radius-lg);
}

.mma-approach__list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mma-approach__list li {
  border-top: var(--mma-border-inner);
  color: var(--wp--preset--color--slate);
  padding-top: 1rem;
}

.mma-approach__list li strong {
  color: var(--wp--preset--color--ink);
  display: block;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Services band (legacy column style)
   ========================================================================== */

.mma-services {
  border-top: var(--mma-border-subtle);
  border-bottom: var(--mma-border-subtle);
}

.mma-service-columns {
  margin-top: 1.5rem;
}

.mma-service-column {
  border-top: 2px solid var(--wp--preset--color--ink);
  min-height: 100%;
  padding-top: 1.25rem;
  transition: transform 180ms ease;
}

.mma-service-column:hover {
  transform: translateY(-3px);
}

.mma-service-column__number {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.mma-service-column h3 {
  margin: 0;
}

.mma-service-column__link {
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.mma-service-column__link a {
  color: var(--wp--preset--color--sage);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.mma-service-column__link a:hover {
  color: var(--wp--preset--color--ink);
}

.mma-service-stack-panel {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none;
  display: grid;
  gap: 0.8rem;
  padding: 0 !important;
}

.mma-service-stack-panel.is-layout-constrained > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-service-stack-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(37, 39, 67, 0.09);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(37, 39, 67, 0.06);
  padding: 1rem 1.25rem !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mma-service-stack-item:hover {
  border-color: rgba(87, 134, 124, 0.34);
  box-shadow: 0 12px 28px rgba(37, 39, 67, 0.1);
  transform: translateY(-1px);
}

.mma-service-stack-item > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  text-align: left !important;
  width: 100%;
}

.mma-service-stack-item .mma-service-column__number {
  justify-content: flex-start;
  margin-bottom: 0.1rem;
  min-height: 0;
}

.mma-service-stack-item h3 {
  font-size: 1.9rem;
  line-height: 1.08;
  margin: 0;
}

.mma-service-stack-item > p:not(.mma-service-column__number):not(.mma-service-column__link) {
  font-size: 1rem;
  line-height: 1.58;
  margin: 0;
  max-width: 40rem !important;
}

.mma-service-stack-item .mma-service-column__link {
  margin-top: 0.25rem;
  min-height: 0;
}

.mma-service-stack-item .mma-service-column__link a {
  display: inline-flex;
}

/* ==========================================================================
   Process / How we work (legacy)
   ========================================================================== */

.mma-process__steps {
  counter-reset: none;
  margin-top: 1rem;
}

.mma-process__step {
  background: var(--wp--preset--color--white);
  border-radius: var(--mma-radius-lg);
  box-shadow: var(--mma-shadow-sm);
  height: 100%;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mma-process__step:hover {
  box-shadow: var(--mma-shadow-md);
  transform: translateY(-3px);
}

.mma-process__step-number {
  margin: 0 0 0.5rem;
}

.mma-process__step h3 {
  margin: 0 0 0.25rem;
}

/* ==========================================================================
   Testimonial (dark band)
   ========================================================================== */

.mma-testimonial {
  background:
    radial-gradient(circle at 20% 20%, rgba(87, 134, 124, 0.18), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(197, 183, 127, 0.14), transparent 35%),
    var(--wp--preset--color--ink);
  overflow: clip;
}

.mma-testimonial__quote {
  font-family: var(--wp--preset--font-family--editorial-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 0 auto;
  max-width: 34ch;
  text-wrap: balance;
}

.mma-testimonial__byline {
  row-gap: 0.15rem !important;
}

.mma-testimonial__byline p {
  margin: 0;
  max-width: none;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.mma-home-cta {
  border-top: var(--mma-border-subtle);
}

.mma-services-cta-bubble {
  box-shadow: var(--mma-shadow-ink);
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-services-cta-bubble > .mma-eyebrow {
  margin-bottom: 0.85rem !important;
}

.mma-services-cta-bubble > .wp-block-heading {
  margin-top: 0 !important;
}

.mma-home-cta .alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1240px !important;
  width: 100%;
}

.mma-home-cta .wp-block-group.alignwide > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.mma-home-cta__actions {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.75rem !important;
  justify-content: flex-start !important;
  margin: 1rem 0 0 !important;
  row-gap: 0.75rem !important;
  width: 100%;
}

.mma-home-cta__actions > .wp-block-button {
  margin: 0 !important;
}

.mma-home-cta .is-style-outline .wp-block-button__link {
  background: transparent !important;
  border-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ink) !important;
}

.mma-home-cta .is-style-outline .wp-block-button__link:hover,
.mma-home-cta .is-style-outline .wp-block-button__link:focus-visible {
  background: rgba(37, 39, 67, 0.06) !important;
}

/* ==========================================================================
   Brief / section rhythm — the key fix for paired-column balance
   ========================================================================== */

/* Section columns default to stretch so paired panels always match height.
   Card/grid children then fill the column via `height: 100%`. */
.mma-brief-section > .wp-block-columns,
.mma-page-hero .wp-block-columns,
.mma-pricing-showcase .wp-block-columns,
.mma-contact-shell .wp-block-columns {
  align-items: stretch;
}

/* Intro + grid/stack pattern: keep intro anchored near the top of the grid
   rather than abandoned in empty space. A little top padding buys air. */
.mma-brief-section > .wp-block-columns > .wp-block-column:first-child {
  padding-top: 0.25rem;
}

/* Any card/panel inside a column should fill the column height so paired
   panels always match visual weight. */
.wp-block-column > .mma-story-panel,
.wp-block-column > .mma-form-panel,
.wp-block-column > .mma-pricing-card,
.wp-block-column > .mma-support-card,
.wp-block-column > .mma-brief-grid__item,
.wp-block-column > .mma-platform-stack__item,
.wp-block-column > .mma-team-card {
  height: 100%;
}

/* Grids/stacks stretch to the column */
.wp-block-column > .mma-brief-grid,
.wp-block-column > .mma-platform-stack {
  height: 100%;
}

/* Cards inside a grid share row heights via grid itself */
.mma-brief-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.mma-brief-grid.is-layout-constrained > * {
  align-self: stretch;
  justify-self: stretch;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-brief-grid__item {
  aspect-ratio: 1.65 / 1;
  border-radius: var(--mma-radius-xl);
  box-shadow: var(--mma-shadow-sm);
  display: grid;
  grid-template-rows: 2.25rem 4.25rem 6.25rem 2.5rem;
  height: 100%;
  justify-items: center;
  min-height: 0;
  row-gap: 0.35rem;
  text-align: center;
}

/* Push "explore" link to the bottom of each card */
.mma-brief-grid__item .mma-service-column__link {
  margin-top: 0;
  padding-top: 0;
}

/* Platform stack: evenly distributed and filling the column height */
.mma-platform-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.mma-platform-stack__item {
  border-radius: var(--mma-radius-lg);
  box-shadow: var(--mma-shadow-sm);
  flex: 1 1 auto;
}

/* Fill column width — constrained inner layout otherwise shrink-wraps to content */
.mma-platform-stack > .wp-block-group.mma-platform-stack__item {
  align-self: stretch;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-platform-stack__item--accent {
  background: var(--wp--preset--color--white) !important;
  border: 6px solid var(--wp--preset--color--sage);
  box-shadow: 0 10px 24px rgba(37, 39, 67, 0.06);
}

.mma-tech-advantage-infographic {
  overflow: hidden;
}

.mma-tech-advantage-infographic__img,
.mma-tech-advantage-infographic__img img {
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.mma-service-stack {
  width: 100%;
}

/* ==========================================================================
   Page hero (non-home top bands)
   ========================================================================== */

/* Narrower than theme contentSize (1240px): WP layout CSS wins tie-breakers without !important */
.mma-page-hero > * {
  max-width: 54rem !important;
}

.mma-page-hero--services > .mma-page-hero__content,
.mma-page-hero--contact > .mma-page-hero__content {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: calc(1240px - 3.5rem) !important;
  position: relative;
}

.mma-page-hero--services .mma-page-hero__content > *,
.mma-page-hero--contact .mma-page-hero__content > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
  text-align: left;
}

/* Pricing, services, and about heroes use the story-band two-column layout */
.mma-page-hero--pricing > .mma-story-band,
.mma-page-hero--services > .mma-story-band,
.mma-brief-section--ink > .mma-story-band {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: calc(1240px - 3.5rem) !important;
}

.mma-page-hero--ink {
  background:
    radial-gradient(circle at 82% 24%, rgba(197, 183, 127, 0.16), transparent 28%),
    radial-gradient(circle at 16% 78%, rgba(87, 134, 124, 0.18), transparent 26%),
    var(--wp--preset--color--ink);
}

/* Pricing: cool ink band only — no brass wash above the mountain CTA strip */
.mma-page-hero--ink.mma-page-hero--pricing {
  background:
    radial-gradient(circle at 82% 24%, rgba(87, 134, 124, 0.14), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(87, 134, 124, 0.12), transparent 28%),
    var(--wp--preset--color--ink);
}

.page:not(.home) .mma-page-hero--pricing.alignfull + .mma-pricing-body--hero-surface.alignfull {
  margin-block-start: 0 !important;
}

.page:not(.home) .mma-page-hero--pricing.alignfull:has(+ .mma-pricing-body--hero-surface.alignfull) {
  margin-block-end: 0 !important;
}

/* Pull mountain band over main bottom padding so paper (cream) never shows under it */
.page:not(.home) .wp-block-post-content > .mma-pricing-body--hero-surface.alignfull:last-child {
  margin-bottom: calc(-1 * var(--wp--preset--spacing--xl)) !important;
}

.mma-brief-section--ink {
  background:
    radial-gradient(circle at 15% 18%, rgba(87, 134, 124, 0.16), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(197, 183, 127, 0.14), transparent 26%),
    var(--wp--preset--color--ink);
}

/* ==========================================================================
   Story / support / form / service-detail / pricing panels — shared shell
   ========================================================================== */

.mma-story-panel,
.mma-support-card,
.mma-service-detail,
.mma-pricing-card,
.mma-pricing-body__panel,
.mma-pricing-note,
.mma-form-panel,
.mma-brief-grid__item,
.mma-platform-stack__item {
  border-radius: var(--mma-radius-xl);
  box-shadow: var(--mma-shadow-md);
}

.mma-story-panel--dark,
.mma-pricing-card--featured,
.mma-form-panel--dark {
  box-shadow: var(--mma-shadow-ink);
}

.mma-support-card {
  border-radius: var(--mma-radius-lg);
}

.mma-platform-stack__item {
  border-radius: var(--mma-radius-lg);
}

.mma-story-list,
.mma-faq-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
}

.mma-story-list li,
.mma-faq-list li {
  line-height: 1.55;
}

.mma-story-shell {
  align-items: stretch;
}

/* Mission panel — full-width stack inside the card (Mission eyebrow, body, CTA band). */
.mma-story-mission-panel > .mma-story-mission-copy-stack {
  align-self: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-story-mission-copy-stack > .mma-story-mission-body {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.55;
  margin: 0 !important;
}

/* Supporting copy only — beats `.has-medium-font-size` from the pattern markup */
.mma-story-mission-cta .mma-story-mission-body {
  font-size: 0.9375rem !important;
  line-height: 1.47;
  margin: 0 !important;
}

.mma-story-mission-panel .mma-story-mission-cta > .mma-eyebrow {
  margin-bottom: 0.7rem !important;
}

.mma-story-mission-copy-stack > .mma-story-mission-cta {
  align-self: stretch;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 1.1rem !important;
  max-width: none !important;
  width: 100%;
}

.mma-story-mission-cta {
  border-left: 3px solid var(--wp--preset--color--brass);
  border-top: 3px solid var(--wp--preset--color--brass);
}

.mma-story-mission-panel .mma-story-mission-cta__actions {
  margin-bottom: 0 !important;
  margin-top: 0.75rem !important;
}

.mma-story-mission-panel .mma-story-mission-cta__actions > .wp-block-button {
  margin: 0 !important;
}

.mma-story-mission-panel .mma-story-mission-cta__actions .wp-block-button__link {
  font-size: 0.78rem !important;
  letter-spacing: 0.065em;
  padding: 0.58rem 1.2rem !important;
}

.mma-story-panel--spotlight {
  background:
    radial-gradient(circle at 92% 6%, rgba(87, 134, 124, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 247, 244, 0.92));
  border: var(--mma-border-subtle);
}

.mma-story-panel__body {
  max-width: 44rem;
}

.mma-story-panel__body h2 {
  max-width: none;
}

.mma-story-shell .wp-block-column:first-child {
  padding-top: 0;
}

.mma-story-media {
  border-radius: 26px;
  box-shadow: var(--mma-shadow-ink);
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.mma-story-media__image,
.mma-story-media__image img {
  display: block;
  height: 100%;
  margin: 0;
  width: 100%;
}

.mma-story-media__image img {
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

.mma-page-hero--pricing .mma-story-media__image img {
  object-position: right center;
}

.mma-story-aside {
  background:
    radial-gradient(circle at 84% 18%, rgba(197, 183, 127, 0.16), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(87, 134, 124, 0.16), transparent 26%),
    var(--wp--preset--color--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.mma-story-aside h3 {
  max-width: 12ch;
}

.mma-mission-grid {
  align-items: stretch;
}

.mma-mission-card {
  height: 100%;
}

.mma-support-card {
  height: 100%;
}

.mma-support-card h3,
.mma-brief-grid__item h3,
.mma-platform-stack__item h3,
.mma-pricing-card h3,
.mma-service-detail h3,
.mma-story-panel h3,
.mma-form-panel h2 {
  font-size: 1.25rem;
  margin: 0;
}

.mma-brief-grid__item h3,
.mma-platform-stack__item h3 {
  font-size: 1.125rem;
}

.mma-brief-grid__item > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100%;
}

.mma-brief-grid__item .mma-service-column__number,
.mma-brief-grid__item h3 {
  align-self: start;
}

.mma-brief-grid__item .mma-service-column__number {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 2.25rem;
}

.mma-brief-grid__item h3 {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  line-height: 1.12;
  min-height: 4.25rem;
  text-align: center;
}

.mma-brief-grid__item > p:not(.mma-service-column__number):not(.mma-service-column__link) {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  line-height: 1.45;
  min-height: 6.25rem;
  text-align: center;
}

.mma-brief-grid__item .mma-service-column__link {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  min-height: 2.5rem;
}

/* Paragraphs inside cards want a little more density than page-level body. */
.mma-brief-grid__item p,
.mma-platform-stack__item p,
.mma-support-card p,
.mma-pricing-card > p,
.mma-hero-card > p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ==========================================================================
   Service detail
   ========================================================================== */

.mma-service-detail {
  overflow: hidden;
}

.mma-service-panel {
  margin: 0;
}

.mma-service-panel > summary {
  align-items: center;
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  padding: var(--wp--preset--spacing--l);
  padding-right: calc(var(--wp--preset--spacing--l) + 2.5rem);
  position: relative;
}

.mma-service-panel > summary::-webkit-details-marker {
  display: none;
}

.mma-service-panel > summary::before {
  background-color: var(--wp--preset--color--brass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 55%;
  border-radius: 50%;
  content: "";
  display: block;
  height: 2rem;
  position: absolute;
  right: var(--wp--preset--spacing--l);
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  width: 2rem;
}

.mma-service-panel[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.mma-service-panel__content {
  border-top: 1px solid rgba(37, 39, 67, 0.1);
  padding: 0 var(--wp--preset--spacing--l) var(--wp--preset--spacing--l);
}

.mma-service-panel__content > p:first-child {
  margin-top: var(--wp--preset--spacing--m);
}

.mma-service-panel__content > p + p {
  margin-top: 1rem;
}

.mma-service-panel__content > p + ul.wp-block-list {
  margin-top: 0.35rem;
}

.mma-service-panel__content > ul.wp-block-list + p {
  margin-top: 1.1rem;
}

.mma-service-panel__content ul.wp-block-list {
  line-height: 1.55;
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.mma-service-panel__content ul.wp-block-list li + li {
  margin-top: 0.35rem;
}

.mma-service-detail .wp-block-columns {
  align-items: start;
  gap: 1.5rem;
}

.mma-service-detail.has-ink-background-color .mma-service-column__link a {
  color: var(--wp--preset--color--mist);
}

.mma-service-detail.has-ink-background-color .mma-service-column__link a:hover {
  color: var(--wp--preset--color--white);
}

/* FAQ side-panel: clean, aligned sidebar treatment */
.mma-faq-list {
  background: rgba(37, 39, 67, 0.04);
  border: var(--mma-border-subtle);
  border-radius: var(--mma-radius-md);
  font-size: 0.95rem;
  padding: 1rem 1.1rem 1rem 2.1rem;
}

.mma-faq-list--light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.mma-faq-list li {
  line-height: 1.5;
}

.mma-faq-list strong {
  color: var(--wp--preset--color--ink);
  display: block;
  margin-bottom: 0.15rem;
}

.mma-faq-list--light strong {
  color: var(--wp--preset--color--white);
}

.mma-service-detail.has-ink-background-color .mma-faq-list strong {
  color: var(--wp--preset--color--white);
}

/* FAQ accordions inside each service card */
.mma-service-faq__title {
  font-size: 1.08rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
}

.mma-service-faq {
  align-items: start;
  align-content: start;
  border-top: 1px solid rgba(37, 39, 67, 0.12);
  display: grid;
  font-size: 0;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 30%));
  justify-content: flex-start;
  margin-top: 0.2rem;
  padding-top: 0.65rem;
}

.mma-service-faq details {
  align-self: start;
  background: rgba(37, 39, 67, 0.03);
  border: 1px solid rgba(37, 39, 67, 0.1);
  border-radius: var(--mma-radius-md);
  box-shadow: var(--mma-shadow-sm);
  display: block;
  height: 3.05rem;
  margin: 0 !important;
  overflow: hidden;
  padding: 0;
  width: 100%;
  font-size: 1rem;
}

.mma-service-faq summary {
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 400;
  height: 100%;
  list-style: none;
  overflow: hidden;
  padding: 0.72rem 1.95rem 0.72rem 0.95rem;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.mma-service-faq details > p {
  color: var(--wp--preset--color--slate);
  margin: 0.55rem 0 0;
}

.mma-service-faq details[open] summary {
  align-items: flex-start;
  height: auto;
  margin-bottom: 0.45rem;
  padding: 0 1.2rem 0 0;
  text-overflow: clip;
}

.mma-service-faq summary::-webkit-details-marker {
  display: none;
}

.mma-service-faq summary::before {
  color: var(--wp--preset--color--brass);
  content: "+";
  font-weight: 700;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.mma-service-faq details[open] summary::before {
  content: "-";
}

.mma-service-faq details[open] summary::before {
  top: 0;
  transform: none;
}

.mma-service-faq details[open] {
  background: rgba(37, 39, 67, 0.05);
  border-color: rgba(37, 39, 67, 0.18);
  height: auto;
  min-height: 3.05rem;
  overflow: visible;
  padding: 0.72rem 0.95rem;
}

.mma-service-faq--light details {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.mma-service-faq--light {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.mma-service-faq--light summary {
  color: var(--wp--preset--color--white);
}

.mma-service-faq--light details > p {
  color: var(--wp--preset--color--mist);
}

.mma-service-faq--light summary::before {
  color: var(--wp--preset--color--brass);
}

.mma-service-faq--light details[open] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.mma-pricing-showcase .wp-block-columns {
  align-items: stretch;
}

.mma-pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.mma-pricing-card--featured .wp-block-button__link {
  min-width: 11.5rem;
}

.mma-pricing-card--featured .wp-block-buttons {
  margin-top: auto;
}

.mma-pricing-note {
  border: var(--mma-border-subtle);
}

.mma-pricing-body__panel {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 54rem;
  width: 100%;
}

.mma-pricing-body__copy {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  text-align: center;
  width: 100%;
}

.mma-pricing-body__copy > p {
  margin-left: 0;
  margin-right: 0;
}

.mma-pricing-body__cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.mma-pricing-body__cta .wp-block-button__link {
  background: var(--wp--preset--color--brass) !important;
  border-color: var(--wp--preset--color--brass) !important;
  color: var(--wp--preset--color--ink) !important;
  min-width: 11.5rem;
}

.mma-pricing-body__cta .wp-block-button__link:hover,
.mma-pricing-body__cta .wp-block-button__link:focus-visible {
  background: #bdaa6e !important;
  border-color: #bdaa6e !important;
  box-shadow: 0 10px 24px rgba(37, 39, 67, 0.14);
  color: var(--wp--preset--color--ink) !important;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.mma-contact-shell > .mma-contact-form-card {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 44rem;
  width: 100%;
}

.mma-contact-form-card {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.mma-contact-form-card .wp-block-shortcode {
  width: 100%;
}

.mma-contact-shell .wpforms-container,
.mma-contact-shell .wpforms-form {
  width: 100% !important;
}

.mma-contact-shell .wpforms-field textarea {
  background: #fff !important;
}

.mma-contact-shell .wpforms-container {
  margin: 0;
}

.mma-contact-shell .wpforms-field-container {
  display: grid;
  gap: 1rem;
}

.mma-contact-shell .wpforms-field {
  padding: 0 !important;
}

.mma-contact-shell .wpforms-field-label {
  color: var(--wp--preset--color--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem !important;
  text-transform: uppercase;
}

.mma-contact-shell .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
.mma-contact-shell .wpforms-field textarea,
.mma-contact-shell .wpforms-field select {
  background: #fff;
  border: 1px solid rgba(37, 39, 67, 0.16);
  border-radius: var(--mma-radius-md);
  box-sizing: border-box;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--clean-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  width: 100% !important;
}

.mma-contact-shell .wpforms-field-checkbox li,
.mma-contact-shell .wpforms-field-radio li {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin-bottom: 0.3rem;
}

.mma-contact-shell .wpforms-field-checkbox label,
.mma-contact-shell .wpforms-field-checkbox .wpforms-field-label-inline,
.mma-contact-shell .wpforms-field-checkbox li label,
.mma-contact-shell .wpforms-field-radio label,
.mma-contact-shell .wpforms-field-radio .wpforms-field-label-inline,
.mma-contact-shell .wpforms-field-radio li label {
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}

.mma-contact-shell .wpforms-field-checkbox input[type="checkbox"],
.mma-contact-shell .wpforms-field-radio input[type="radio"] {
  flex-shrink: 0;
  margin: 0 !important;
  width: auto !important;
}

.mma-contact-shell .wpforms-submit-container {
  margin-top: 2.75rem;
  padding: 0 !important;
}

.mma-contact-shell .wpforms-submit {
  background: var(--wp--preset--color--sage) !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--wp--preset--color--white) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 0.95rem 1.5rem !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes mmaFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mmaTickerMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% / 6), 0, 0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .mma-header {
    padding-left: var(--wp--preset--spacing--m) !important;
    padding-right: var(--wp--preset--spacing--m) !important;
  }
}

@media (max-width: 960px) {
  .home .mma-hero,
  .admin-bar.home .mma-hero {
    justify-content: flex-start;
    min-height: auto;
  }

  .mma-hero {
    padding-bottom: calc(var(--wp--preset--spacing--xl) + 1rem) !important;
    padding-top: calc(var(--wp--preset--spacing--xl) + 1.15rem) !important;
  }

  .mma-hero .mma-hero__headline {
    max-width: none;
  }

  .mma-hero-card__headline,
  .mma-testimonial__quote {
    max-width: none;
  }

  .mma-hero .mma-hero__trust {
    column-gap: 1.35rem !important;
    justify-content: flex-start !important;
    row-gap: 0.55rem !important;
  }

  .mma-hero__content,
  .mma-hero__visual {
    flex-basis: 100% !important;
  }

  .mma-hero__content {
    max-width: 100%;
    padding-right: 0;
  }

  .mma-brief-grid {
    grid-template-columns: 1fr;
  }

  .mma-service-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mma-brief-section > .wp-block-columns,
  .mma-pricing-showcase .wp-block-columns,
  .mma-contact-shell .wp-block-columns {
    align-items: stretch;
  }
}

@media (max-width: 781px) {
  .wp-block-navigation__responsive-container-content {
    box-sizing: border-box;
    gap: 0.75rem;
    padding-right: 1.5rem;
    width: 100%;
  }

  .mma-header .wp-block-navigation {
    border-right: none;
    padding-right: 0;
  }

  .mma-header__cta {
    display: none;
  }

  /* Nav overlay: paper background, larger items, natural spacing */
  .mma-header .wp-block-navigation__responsive-container {
    background-color: var(--wp--preset--color--paper) !important;
  }

  .mma-header .wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--ink) !important;
  }

  .mma-header .wp-block-navigation__responsive-container-content {
    gap: 0;
    padding: 4.5rem 2.25rem 2.5rem;
  }

  .mma-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    border-radius: 0 !important;
    font-size: 1.65rem !important;
    letter-spacing: -0.01em !important;
    padding: 0.65rem 0 !important;
  }

  .mma-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
    display: none;
  }

  .mma-hero .mma-hero__headline {
    font-size: clamp(2.35rem, 7vw + 0.5rem, 3.15rem) !important;
    max-width: none;
  }

  .mma-hero .mma-hero__actions.wp-block-buttons {
    margin-top: 1.25rem;
  }

  .mma-ticker__track {
    animation-duration: 88s;
  }

  .mma-ticker__segment {
    font-size: 0.78rem;
    padding: 0.8rem 1rem 0.75rem 0;
  }

  .mma-process__step {
    padding: 1.5rem 1.25rem;
  }

  .mma-page-hero,
  .mma-brief-section,
  .mma-service-stack,
  .mma-pricing-showcase,
  .mma-contact-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .mma-story-panel,
  .mma-story-mission-panel,
  .mma-service-detail,
  .mma-pricing-card,
  .mma-pricing-note,
  .mma-pricing-body__panel,
  .mma-form-panel,
  .mma-contact-form-card {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  .mma-service-stack-panel {
    gap: 0.7rem;
  }

  .mma-service-stack-item {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .mma-service-stack-item h3 {
    font-size: 1.55rem;
  }

  .mma-service-detail .wp-block-columns {
    gap: 1rem;
  }

  .mma-service-panel__content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .mma-service-faq {
    grid-template-columns: 1fr;
  }

  /* Page hero: reduce vertical padding */
  .mma-page-hero {
    padding-top: var(--wp--preset--spacing--l) !important;
    padding-bottom: var(--wp--preset--spacing--l) !important;
  }

  /* Contact form card: reduce vertical padding */
  .mma-contact-form-card {
    padding-top: var(--wp--preset--spacing--l) !important;
    padding-bottom: var(--wp--preset--spacing--l) !important;
  }

  /* About: pull photo above story text on mobile */
  .mma-story-shell {
    flex-direction: column;
  }

  .mma-story-shell .wp-block-column:last-child {
    order: -1;
  }

  .mma-story-media {
    height: auto;
    min-height: 0;
  }

  .mma-story-media__image img {
    aspect-ratio: 4 / 3;
  }

  /* Blog: force full-width stacking */
  .mma-blog-layout {
    flex-direction: column;
  }

  .mma-blog-layout > .wp-block-column {
    flex-basis: 100% !important;
  }

  /* Footer: stacked layout */
  footer .wp-block-columns {
    flex-direction: column;
    gap: 2.25rem;
  }

  footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  footer .mma-footer-logo {
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .mma-hero .mma-hero__content > *,
  .mma-ticker__track {
    animation: none;
  }

  .mma-service-column,
  .mma-process__step,
  .wp-block-button__link {
    transition: none;
  }
}
