/*
Theme Name: MMS Stones
Theme URI: https://mmsstones.com
Author: MMS Stones / Codex
Description: Custom bilingual block theme for the MMS Stones catalogue website.
 Version: 0.6.3
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: mms-stones
*/

body {
  margin: 0;
}

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

.mms-core-required {
  max-width: 48rem;
  margin: 8rem auto;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, .14);
  font-family: Arial, sans-serif;
}

/* Visual polish layer: mirrors the compact, editorial rhythm of the approved v0. */
:root {
  --mms-polish-border: rgba(0, 0, 0, .12);
  --mms-polish-muted: rgba(0, 0, 0, .56);
  --mms-polish-soft: #f4f4f4;
  --mms-polish-ease: cubic-bezier(.16, 1, .3, 1);
}

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

body {
  overflow-x: hidden;
}

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

img,
svg,
video,
iframe {
  max-width: 100%;
}

.wp-site-blocks,
.mms-main,
.mms-footer,
.mms-products-layout,
.mms-product-hero__grid,
.mms-product-card,
.mms-product-card__body,
.mms-tabs {
  min-width: 0;
}

.mms-container {
  width: min(100%, 88rem);
  padding-inline: clamp(1.25rem, 3.5vw, 4rem);
}

.mms-header__bar {
  min-height: 4.75rem;
  padding-inline: clamp(1.25rem, 3.5vw, 4rem);
}

@media (min-width: 1101px) {
  .mms-header__bar {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  }

  .mms-header__logo {
    justify-self: start;
  }

  .mms-header__nav {
    grid-column: 2;
    justify-self: center;
  }

  .mms-header__actions {
    grid-column: 3;
    justify-self: end;
  }
}

.mms-header__logo img {
  height: 2rem;
}

.mms-header__nav {
  gap: clamp(.85rem, 1.55vw, 1.65rem);
}

.mms-header__link,
.mms-lang,
.mms-icon-link {
  font-size: .78rem;
  letter-spacing: .035em;
}

.mms-header__quote {
  min-height: 2.4rem;
  padding-inline: 1rem;
  font-size: .67rem;
}

.mms-section {
  padding-block: clamp(3.75rem, 6vw, 6.5rem);
}

.mms-section-heading {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.mms-section h2,
.mms-page-hero h1 {
  font-size: clamp(2rem, 3.25vw, 3.65rem);
  line-height: 1.08;
}

.mms-section p {
  font-size: .98rem;
  line-height: 1.72;
}

.mms-page-hero {
  padding-block: 7.25rem 2.75rem;
}

.mms-page-hero .mms-container > p:not(.mms-eyebrow) {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--mms-polish-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.mms-hero h1 {
  max-width: 42rem;
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  line-height: 1.02;
}

.mms-since h2 {
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
}

.mms-footer-cta h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.06;
}

.mms-category-hero-image {
  display: block;
  width: 100%;
  max-height: 23rem;
  margin-top: 2rem;
  object-fit: cover;
  object-position: center;
}

.mms-products-page .mms-section {
  padding-block: clamp(2rem, 3.5vw, 3.5rem) clamp(4rem, 6vw, 5.5rem);
}

.mms-products-page .mms-container {
  width: min(100%, 80rem);
}

.mms-products-page .mms-page-hero {
  padding-block: 6.35rem 1.75rem;
  border-bottom: 1px solid var(--mms-polish-border);
}

.mms-products-page .mms-page-hero h1 {
  max-width: 42rem;
  font-size: clamp(2.15rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.mms-collection-strip {
  padding-block: 1.35rem 1.75rem;
  background: rgba(0, 0, 0, .035);
}

.mms-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.mms-collection-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(4.5rem, .82fr) minmax(0, 1.18fr);
  min-width: 0;
  min-height: 11.25rem;
  max-height: 11.25rem;
  overflow: hidden;
  border: 1px solid var(--mms-polish-border);
  background: #fff;
  color: var(--mms-black);
  text-decoration: none;
  transition: border-color .3s var(--mms-polish-ease), box-shadow .3s var(--mms-polish-ease), transform .3s var(--mms-polish-ease);
}

.mms-collection-card__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--mms-polish-soft);
}

.mms-collection-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .16));
  content: "";
}

.mms-collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.mms-collection-card__body {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: .3rem;
  padding: 1rem 1rem 1rem .95rem;
}

.mms-collection-card__count {
  margin-bottom: auto;
  color: var(--mms-polish-muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mms-collection-card strong {
  font-family: var(--mms-serif);
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.mms-collection-card__action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .35rem;
  color: var(--mms-red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: none;
}

.mms-collection-card__action > span:last-child {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mms-black);
  border-radius: 999px;
  font-size: .78rem;
  line-height: 1;
  transition: background .25s var(--mms-polish-ease), border-color .25s var(--mms-polish-ease);
}

.mms-collection-card:hover,
.mms-collection-card:focus-visible {
  border-color: rgba(254, 0, 2, .7);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
  transform: translateY(-2px);
}

.mms-collection-card:hover .mms-collection-card__action > span:last-child {
  border-color: var(--mms-red);
  background: var(--mms-red);
  color: #fff;
}

.mms-collection-card--fallback {
  grid-template-columns: 1fr;
}

.mms-collection-card--fallback .mms-collection-card__media {
  position: absolute;
  inset: 0;
  background: #fff;
}

.mms-collection-card--fallback .mms-collection-card__media::after {
  display: none;
}

.mms-collection-card--fallback .mms-collection-card__body {
  position: relative;
  z-index: 1;
  grid-column: 1;
  color: var(--mms-black);
  padding: 1rem;
}

.mms-collection-card--fallback .mms-collection-card__count {
  color: var(--mms-polish-muted);
}

.mms-collection-card--fallback .mms-collection-card__action {
  color: var(--mms-red);
}

.mms-collection-card--fallback .mms-collection-card__action > span:last-child {
  border-color: var(--mms-black);
  color: var(--mms-black);
}

.mms-collection-card--fallback .mms-collection-card__media::before,
.mms-collection-card__fallback-mark {
  position: absolute;
  inset-inline: 1rem;
  inset-block-start: 1rem;
  height: 2px;
  background: var(--mms-red);
  content: "";
}

.mms-collection-card__fallback-mark {
  inset-block-start: auto;
  inset-block-end: 1rem;
  width: 1.5rem;
}

body.mms-locale-ar .mms-collection-card__body {
  padding: 1rem .95rem 1rem 1rem;
}

body.mms-locale-ar .mms-collection-card--fallback .mms-collection-card__body {
  padding: 1rem;
}

.mms-products-layout {
  grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.mms-filters {
  top: 6rem;
}

.mms-filters form {
  gap: .85rem;
}

.mms-filters label {
  gap: .35rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mms-filters input,
.mms-filters select {
  min-width: 0;
  min-height: 2.65rem;
  border-radius: 0;
  font-size: .86rem;
}

.mms-result-count {
  margin: 0 0 1.55rem;
  font-size: .82rem;
}

.mms-products-page .mms-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.7vw, 1.5rem);
  row-gap: clamp(2.25rem, 3.8vw, 3.4rem);
}

.mms-products-page .mms-product-card {
  grid-template-rows: auto minmax(10.1rem, 1fr);
}

.mms-products-page .mms-product-card__image {
  aspect-ratio: 1 / 1;
  padding: .45rem;
}

.mms-product-grid {
  align-items: stretch;
  gap: clamp(1.1rem, 1.8vw, 1.7rem);
}

.mms-product-card {
  display: grid;
  grid-template-rows: auto minmax(9.65rem, 1fr);
  align-content: start;
  border: 1px solid rgba(0, 0, 0, .09);
  background: #fdfdfd;
  isolation: isolate;
  padding: .4rem .4rem .55rem;
  transition: border-color .35s var(--mms-polish-ease), box-shadow .35s var(--mms-polish-ease), transform .35s var(--mms-polish-ease);
}

.mms-product-card__image {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 0;
  background: #fafafa;
  padding: .55rem;
  transition: border-color .45s var(--mms-polish-ease), background .45s var(--mms-polish-ease);
}

.mms-product-card__image img {
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: opacity .35s var(--mms-polish-ease);
}

.mms-product-card:hover .mms-product-card__image,
.mms-product-card:focus-within .mms-product-card__image {
  border-color: rgba(254, 0, 2, .55);
  background: #f8f8f8;
}

.mms-product-card:hover,
.mms-product-card:focus-within {
  border-color: rgba(0, 0, 0, .18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.mms-product-card__tools {
  inset-block-start: .7rem;
  inset-inline-end: .7rem;
  gap: .35rem;
}

.mms-product-card .mms-round-tool {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  font-size: .95rem;
  transition: background .25s var(--mms-polish-ease), border-color .25s var(--mms-polish-ease), color .25s var(--mms-polish-ease);
}

.mms-product-card__body {
  display: grid;
  grid-template-rows: auto minmax(2.35rem, auto) auto 1fr;
  align-content: start;
  padding: .9rem .25rem .05rem;
}

.mms-product-card__body p {
  font-size: .63rem;
  letter-spacing: .13em;
}

.mms-product-card__body h3 {
  margin: .38rem 0 .32rem;
  font-family: var(--mms-sans);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  font-weight: 650;
  line-height: 1.25;
}

.mms-product-card__body span {
  font-size: .7rem;
  line-height: 1.5;
}

.mms-product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-self: end;
  gap: .5rem;
  margin-top: .85rem;
}

.mms-product-card__actions a,
.mms-card-quote,
.mms-card-details {
  min-height: 2.15rem;
  border: 1px solid var(--mms-polish-border);
  border-radius: 999px;
  padding-inline: .78rem;
  font-size: .61rem !important;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s var(--mms-polish-ease), border-color .25s var(--mms-polish-ease), color .25s var(--mms-polish-ease);
}

.mms-product-card__actions .mms-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mms-black);
}

.mms-product-card__actions .mms-card-details:hover {
  border-color: var(--mms-black);
  background: var(--mms-black);
  color: var(--mms-white);
}

.mms-card-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--mms-red);
  background: var(--mms-red);
  color: var(--mms-white) !important;
}

.mms-card-quote:hover {
  background: var(--mms-black);
  border-color: var(--mms-black);
  opacity: 1;
}

.mms-home-collections {
  padding-block: clamp(5rem, 8vw, 7rem);
  background: #f5f5f5;
}

.mms-home-collections .mms-container {
  width: min(100%, 80rem);
}

.mms-home-collections__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.mms-home-collections__heading {
  max-width: 42rem;
  margin: 0;
}

.mms-home-collections__heading h2 {
  max-width: 39rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.mms-home-collections__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
}

.mms-home-collections__eyebrow > span {
  width: 1.5rem;
  height: 1px;
  background: var(--mms-red);
}

.mms-home-collections__view-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  margin-bottom: .1rem;
  color: var(--mms-black);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s var(--mms-polish-ease);
}

.mms-home-collections__view-all > span:last-child {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .25s var(--mms-polish-ease);
}

.mms-home-collections__view-all:hover,
.mms-home-collections__view-all:focus-visible {
  color: var(--mms-red);
}

.mms-home-collections__view-all:hover > span:last-child,
.mms-home-collections__view-all:focus-visible > span:last-child {
  transform: translate(.14rem, -.14rem);
}

.mms-home-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.25rem);
  margin-top: clamp(2.5rem, 4vw, 3rem);
}

.mms-home-collection-card {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(21.25rem, 27vw, 23.75rem);
  overflow: hidden;
  background: var(--mms-black);
  color: var(--mms-white);
  text-decoration: none;
  transition: box-shadow .45s var(--mms-polish-ease), transform .45s var(--mms-polish-ease);
}

.mms-home-collection-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--mms-black);
}

.mms-home-collection-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 15%, rgba(0, 0, 0, .2) 48%, rgba(0, 0, 0, .9) 100%);
  content: "";
}

.mms-home-collection-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .82;
  transition: opacity .7s var(--mms-polish-ease), transform .7s var(--mms-polish-ease);
}

.mms-home-collection-card__body {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .85rem;
  padding: 1.25rem;
}

.mms-home-collection-card__body strong {
  display: block;
  max-width: calc(100% - 3.25rem);
  overflow-wrap: anywhere;
  font-family: var(--mms-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.mms-home-collection-card__action {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: var(--mms-white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color .25s var(--mms-polish-ease), background .25s var(--mms-polish-ease), transform .25s var(--mms-polish-ease);
}

.mms-home-collection-card:hover,
.mms-home-collection-card:focus-visible {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  transform: translateY(-3px);
}

.mms-home-collection-card:hover .mms-home-collection-card__media img,
.mms-home-collection-card:focus-visible .mms-home-collection-card__media img {
  opacity: .98;
  transform: scale(1.025);
}

.mms-home-collection-card:hover .mms-home-collection-card__action,
.mms-home-collection-card:focus-visible .mms-home-collection-card__action {
  border-color: var(--mms-red);
  background: var(--mms-red);
  transform: translate(.1rem, -.1rem);
}

.mms-home-collection-card--fallback .mms-home-collection-card__media {
  background: var(--mms-black);
}

.mms-home-collection-card--fallback .mms-home-collection-card__media::after {
  background: linear-gradient(150deg, rgba(254, 0, 2, .2), rgba(0, 0, 0, .96) 68%);
}

.mms-home-collection-card--fallback .mms-home-collection-card__body::before {
  position: absolute;
  inset-inline-start: 1.25rem;
  inset-block-start: -2rem;
  width: 2rem;
  height: 2px;
  background: var(--mms-red);
  content: "";
}

.mms-home-collection-card__fallback-mark {
  position: absolute;
  inset-inline-end: 1.25rem;
  inset-block-start: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
}

.mms-home-collection-card__fallback-mark::before,
.mms-home-collection-card__fallback-mark::after {
  position: absolute;
  inset-inline-start: .55rem;
  width: 1rem;
  height: 1px;
  background: var(--mms-red);
  content: "";
}

.mms-home-collection-card__fallback-mark::before {
  inset-block-start: .78rem;
}

.mms-home-collection-card__fallback-mark::after {
  inset-block-start: 1.12rem;
}

.mms-home-collection-card.mms-visual-reveal {
  transform: translateY(24px);
  transition-duration: .9s;
}

.mms-home-collection-card.mms-visual-reveal.is-visible {
  transform: translateY(0);
}

.mms-load-more {
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.mms-pagination__previous {
  margin-inline-end: auto;
}

.mms-pagination__next {
  margin-inline-start: auto;
}

.mms-load-more [data-mms-load-more].is-loading {
  cursor: progress;
  opacity: .65;
  pointer-events: none;
}

.mms-load-more__status {
  min-height: 1rem;
  color: var(--mms-polish-muted);
  font-size: .75rem;
  line-height: 1.35;
}

.mms-product-card.is-mms-appended {
  animation: mms-card-append .36s var(--mms-polish-ease) both;
}

@keyframes mms-card-append {
  from {
    opacity: 0;
    transform: translateY(.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mms-product-hero {
  padding-block: 7rem 2.75rem;
}

.mms-product-hero__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .78fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.mms-gallery__main {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: var(--mms-polish-soft);
  padding: .35rem;
}

.mms-gallery__main img {
  object-fit: contain;
}

.mms-gallery__thumbs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
}

.mms-gallery__thumbs button {
  border-radius: 0;
}

.mms-product-summary h1 {
  font-size: clamp(2.15rem, 3.25vw, 3.7rem);
  line-height: 1.06;
}

.mms-product-summary p {
  max-width: 34rem;
  font-size: .98rem;
}

.mms-tabs__nav {
  gap: 1rem;
  scrollbar-width: thin;
}

.mms-tabs__nav button {
  font-size: .73rem;
  letter-spacing: .035em;
}

.mms-tabs__panel {
  max-width: 52rem;
  padding-top: 1.65rem;
}

.mms-visual-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--mms-polish-ease), transform .75s var(--mms-polish-ease);
  transition-delay: var(--mms-reveal-delay, 0ms);
}

.mms-visual-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.mms-locale-ar,
body.mms-locale-ar .mms-main,
body.mms-locale-ar .mms-footer,
body.mms-locale-ar .mms-header {
  direction: rtl;
}

body.mms-locale-ar .mms-header__bar,
body.mms-locale-ar .mms-header__actions,
body.mms-locale-ar .mms-header__nav,
body.mms-locale-ar .mms-product-card__actions,
body.mms-locale-ar .mms-section-heading--inline {
  direction: rtl;
}

body.mms-locale-ar .mms-header__link,
body.mms-locale-ar .mms-product-card__body,
body.mms-locale-ar .mms-filters,
body.mms-locale-ar .mms-product-summary,
body.mms-locale-ar .mms-page-hero,
body.mms-locale-ar .mms-tabs__panel,
body.mms-locale-ar .mms-home-collection-card,
body.mms-locale-ar .mms-home-collection-card__body {
  text-align: right;
}

body.mms-locale-ar .mms-product-card__body p,
body.mms-locale-ar .mms-card-quote,
body.mms-locale-ar .mms-card-details,
body.mms-locale-ar .mms-home-collection-card__action {
  letter-spacing: 0;
}

body.mms-locale-ar .mms-product-card__body h3 {
  font-family: var(--mms-arabic);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

body.mms-locale-ar .mms-collection-card,
body.mms-locale-ar .mms-collection-card__body {
  text-align: right;
}

body.mms-locale-ar .mms-collection-card__count,
body.mms-locale-ar .mms-collection-card__action {
  letter-spacing: 0;
  text-transform: none;
}

body.mms-locale-ar .mms-home-collection-card {
  direction: rtl;
}

body.mms-locale-ar .mms-home-collection-card__body {
  flex-direction: row-reverse;
  padding: 1.25rem;
}

body.mms-locale-ar .mms-home-collection-card--fallback .mms-home-collection-card__body {
  padding: 1.25rem;
}

body.mms-locale-ar .mms-home-collections__header {
  flex-direction: row-reverse;
}

body.mms-locale-ar .mms-home-collections__heading,
body.mms-locale-ar .mms-home-collections__view-all {
  text-align: right;
}

body.mms-locale-ar .mms-home-collections__eyebrow {
  flex-direction: row-reverse;
}

body.mms-locale-ar .mms-pagination__previous {
  margin-inline-end: 0;
  margin-inline-start: auto;
}

body.mms-locale-ar .mms-pagination__next {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

@media (max-width: 1180px) {
  .mms-header__nav {
    gap: .8rem;
  }

  .mms-header__link {
    font-size: .72rem;
  }

  .mms-products-layout {
    grid-template-columns: minmax(12rem, 13.5rem) minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .mms-products-page .mms-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (max-width: 1020px) {
  .mms-home-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .mms-products-layout {
    grid-template-columns: 1fr;
  }

  .mms-products-page .mms-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mms-container,
  .mms-header__bar {
    padding-inline: 1.15rem;
  }

  .mms-header__bar {
    min-height: 4.25rem;
  }

  .mms-header__logo img {
    height: 1.75rem;
  }

  .mms-section {
    padding-block: 3.5rem;
  }

  .mms-page-hero,
  .mms-product-hero {
    padding-block: 6rem 2.25rem;
  }

  .mms-section h2,
  .mms-page-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }

  .mms-products-page .mms-section {
    padding-block: 2.25rem 4rem;
  }

  .mms-products-page .mms-page-hero {
    padding-block: 5.5rem 1.35rem;
  }

  .mms-products-page .mms-product-grid,
  .mms-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .8rem;
    row-gap: 2.1rem;
  }

  .mms-products-page .mms-product-grid {
    grid-template-columns: 1fr;
  }

  .mms-collection-grid {
    grid-template-columns: 1fr;
  }

  .mms-collection-card {
    min-height: 10.5rem;
    max-height: 10.5rem;
  }

  .mms-product-card {
    grid-template-rows: auto minmax(9.35rem, 1fr);
  }

  .mms-product-card__image {
    padding: .22rem;
  }

  .mms-product-card__tools {
    inset-block-start: .48rem;
    inset-inline-end: .48rem;
  }

  .mms-product-card .mms-round-tool {
    width: 2rem;
    height: 2rem;
  }

  .mms-product-card__body h3 {
    min-height: 2.55rem;
    font-size: 1.05rem;
  }

  .mms-product-card__body span {
    min-height: 2.1rem;
  }

  .mms-product-card__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .mms-product-card__actions a,
  .mms-card-quote,
  .mms-card-details {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: .62rem;
    font-size: .57rem !important;
  }

  .mms-home-collection-grid {
    grid-template-columns: 1fr;
  }

  .mms-home-collections {
    padding-block: 4rem;
  }

  .mms-home-collections__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .mms-home-collection-card {
    height: min(78vw, 21.25rem);
    min-height: 18rem;
    max-height: 21.25rem;
  }

  .mms-home-collections__heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  body.mms-locale-ar .mms-home-collections__header {
    flex-direction: column;
    align-items: flex-end;
  }

  .mms-product-hero__grid {
    grid-template-columns: 1fr;
  }

  .mms-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mms-product-summary h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  body.mms-locale-ar .mms-header__actions {
    gap: .1rem;
  }
}

@media (max-width: 390px) {
  .mms-product-card__actions {
    gap: .35rem;
  }

  .mms-product-card__actions a,
  .mms-card-quote,
  .mms-card-details {
    min-height: 2rem;
    padding-inline: .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mms-visual-reveal,
  .mms-home-collection-card,
  .mms-product-card__image,
  .mms-product-card .mms-round-tool,
  .mms-product-card.is-mms-appended {
    transform: none !important;
    transition: none !important;
  }

  .mms-visual-reveal {
    opacity: 1;
  }
}

/* Controlled Elementor page templates. These selectors only apply to pages that
   are explicitly assigned to an MMS Elementor template. */
.mms-elementor-template {
  overflow-x: clip;
}

.mms-elementor-page {
  width: 100%;
  min-height: 60vh;
}

.mms-elementor-page--full-width {
  background: #fff;
}

.mms-elementor-page--canvas {
  min-height: 100vh;
  background: #fff;
}

.mms-elementor-template--canvas .mms-elementor-page > .entry-content,
.mms-elementor-template--full-width .mms-elementor-page > .entry-content {
  margin: 0;
  max-width: none;
}

.mms-elementor-page .elementor,
.mms-elementor-page .elementor-element,
.mms-elementor-page .elementor-section,
.mms-elementor-page .elementor-section-wrap,
.mms-elementor-page .elementor-container,
.mms-elementor-page .elementor-column,
.mms-elementor-page .elementor-widget-wrap,
.mms-elementor-page .elementor-widget,
.mms-elementor-page .elementor-widget-container,
.mms-elementor-page .e-con {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mms-elementor-page .elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

.mms-elementor-page .entry-title,
.mms-elementor-page > h1,
.mms-elementor-page > .wp-block-post-title {
  display: none;
}

.mms-elementor-page .elementor-section .mms-section,
.mms-elementor-page .elementor-section .mms-hero,
.mms-elementor-page .elementor-section .mms-since,
.mms-elementor-page .elementor-section .mms-footer-cta {
  width: 100%;
}

.mms-elementor-section-heading {
  background: var(--mms-white);
}

.mms-elementor-section-heading .mms-section-heading {
  max-width: 54rem;
}

.mms-elementor-hero {
  min-height: var(--mms-elementor-hero-min-desktop, 820px);
  height: auto;
}

.mms-elementor-hero .mms-hero__slide img {
  object-fit: var(--mms-elementor-hero-fit, cover);
  object-position: var(--mms-elementor-hero-position, center center);
}

.mms-elementor-hero .mms-hero__scrim {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .88),
      rgba(0, 0, 0, calc(var(--mms-elementor-hero-overlay, .48) * .42)),
      rgba(0, 0, 0, var(--mms-elementor-hero-overlay, .48))
    );
}

.mms-elementor-hero.mms-hero--single .mms-hero__slide {
  opacity: 1;
}

.mms-elementor-collections .mms-home-collection-grid {
  grid-template-columns: repeat(var(--mms-elementor-collection-columns-desktop, 4), minmax(0, 1fr));
  gap: var(--mms-elementor-collection-gap, 20px);
}

.mms-elementor-collections .mms-home-collection-card {
  height: var(--mms-elementor-collection-height-desktop, 360px);
}

.mms-elementor-collections .mms-home-collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: var(--mms-elementor-collection-fit, cover);
  object-position: var(--mms-elementor-collection-position, center center);
}

.mms-elementor-selected-products .mms-product-grid {
  grid-template-columns: repeat(var(--mms-elementor-product-columns-desktop, 4), minmax(0, 1fr));
  gap: var(--mms-elementor-product-gap, 24px);
}

.mms-elementor-selected-products .mms-product-card {
  display: grid;
  grid-template-rows: auto minmax(8rem, auto);
  min-width: 0;
  overflow: visible;
}

.mms-elementor-selected-products .mms-product-card__image {
  display: block;
  width: 100%;
  height: var(--mms-elementor-product-image-desktop, 420px);
  aspect-ratio: auto;
  overflow: hidden;
  background: #f3f3f3;
}

.mms-elementor-selected-products .mms-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--mms-elementor-product-fit, cover);
  object-position: var(--mms-elementor-product-position, center center);
}

.mms-elementor-selected-products .mms-product-card__body {
  min-height: 0;
}

.mms-home-collection-card__count {
  display: block;
  margin-top: .35rem;
  color: rgba(255, 255, 255, .72);
  font-family: var(--mms-sans);
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .mms-elementor-hero {
    min-height: var(--mms-elementor-hero-min-tablet, 720px);
  }

  .mms-elementor-collections .mms-home-collection-grid {
    grid-template-columns: repeat(var(--mms-elementor-collection-columns-tablet, 2), minmax(0, 1fr));
  }

  .mms-elementor-collections .mms-home-collection-card {
    height: var(--mms-elementor-collection-height-tablet, 320px);
  }

  .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-tablet, 2), minmax(0, 1fr));
  }

  .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-tablet, 360px);
  }
}

@media (max-width: 640px) {
  .mms-elementor-hero {
    min-height: var(--mms-elementor-hero-min-mobile, 640px);
  }

  .mms-elementor-collections .mms-home-collection-grid {
    grid-template-columns: repeat(var(--mms-elementor-collection-columns-mobile, 1), minmax(0, 1fr));
  }

  .mms-elementor-collections .mms-home-collection-card {
    height: var(--mms-elementor-collection-height-mobile, 280px);
  }

  .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-mobile, 1), minmax(0, 1fr));
  }

  .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-mobile, 320px);
  }
}

/* Home v0 composition pass: image-led catalogue, service grid, proof points and selected work. */
.mms-ui-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.mms-home-section-link,
.mms-home-collections__view-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  color: var(--mms-black);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s var(--mms-polish-ease);
}

.mms-home-section-link .mms-ui-icon,
.mms-home-collections__view-all .mms-ui-icon {
  transition: transform .25s var(--mms-polish-ease);
}

.mms-home-section-link:hover,
.mms-home-section-link:focus-visible,
.mms-home-collections__view-all:hover,
.mms-home-collections__view-all:focus-visible {
  color: var(--mms-red);
}

.mms-home-section-link:hover .mms-ui-icon,
.mms-home-section-link:focus-visible .mms-ui-icon,
.mms-home-collections__view-all:hover .mms-ui-icon,
.mms-home-collections__view-all:focus-visible .mms-ui-icon {
  transform: translate(.12rem, -.12rem);
}

.mms-home-collection-card__action .mms-ui-icon {
  width: .92rem;
  height: .92rem;
}

.mms-home-featured .mms-container,
.mms-home-projects .mms-container {
  width: min(100%, 80rem);
}

.mms-home-featured .mms-section-heading,
.mms-home-projects .mms-section-heading {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.mms-home-featured .mms-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 1.7vw, 1.5rem);
  row-gap: 2.75rem;
}

.mms-product-card {
  grid-template-rows: auto minmax(8.25rem, auto);
  border: 0;
  background: transparent;
  padding: 0;
  transition: none;
}

.mms-product-card__image,
.mms-products-page .mms-product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  background: var(--mms-polish-soft);
  padding: 0;
}

.mms-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1) !important;
  transition: transform .7s var(--mms-polish-ease), filter .45s var(--mms-polish-ease);
}

.mms-product-card:hover,
.mms-product-card:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.mms-product-card:hover .mms-product-card__image,
.mms-product-card:focus-within .mms-product-card__image {
  border-color: transparent;
  background: var(--mms-polish-soft);
}

.mms-product-card:hover .mms-product-card__image img,
.mms-product-card:focus-within .mms-product-card__image img {
  transform: scale(1.045) !important;
}

.mms-product-card__tools {
  inset-block-start: .75rem;
  inset-inline-end: .75rem;
  gap: .45rem;
}

.mms-product-card .mms-round-tool {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  color: var(--mms-black);
}

.mms-product-card .mms-round-tool .mms-ui-icon {
  width: .95rem;
  height: .95rem;
}

.mms-product-card .mms-round-tool.is-active .mms-ui-icon {
  fill: currentColor;
}

.mms-product-card__body {
  position: relative;
  display: block;
  min-height: 8.25rem;
  padding: .95rem 2.9rem .1rem 0;
}

.mms-product-card__body p {
  margin: 0;
  color: var(--mms-polish-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.mms-product-card__body h3 {
  margin: .45rem 0 .25rem;
  font-family: var(--mms-serif);
  font-size: clamp(1.15rem, 1.55vw, 1.42rem);
  font-weight: 500;
  line-height: 1.08;
}

.mms-product-card__body span {
  display: block;
  color: var(--mms-polish-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.mms-product-card__arrow {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 1rem;
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mms-polish-border);
  border-radius: 999px;
  color: var(--mms-black);
  transition: border-color .25s var(--mms-polish-ease), color .25s var(--mms-polish-ease), transform .25s var(--mms-polish-ease);
}

.mms-product-card:hover .mms-product-card__arrow,
.mms-product-card:focus-within .mms-product-card__arrow {
  border-color: var(--mms-red);
  color: var(--mms-red);
  transform: translate(.1rem, -.1rem);
}

.mms-product-card:not(.mms-product-card--featured) .mms-product-card__actions {
  display: flex;
  gap: .45rem;
  margin-top: .9rem;
}

.mms-product-card:not(.mms-product-card--featured) .mms-product-card__actions a {
  min-height: 2.15rem;
  padding-inline: .7rem;
  font-size: .59rem !important;
}

.mms-home-services {
  padding-block: clamp(5rem, 8vw, 7rem);
}

.mms-home-services .mms-container {
  width: min(100%, 80rem);
}

.mms-home-services .mms-section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.mms-home-services .mms-section-heading h2 {
  max-width: 42rem;
  font-size: clamp(2.4rem, 4.3vw, 4rem);
}

.mms-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .16);
  gap: 1px;
}

.mms-service-card {
  display: flex;
  min-height: clamp(15rem, 23vw, 20rem);
  flex-direction: column;
  align-items: flex-start;
  background: var(--mms-black);
  color: var(--mms-white);
  padding: clamp(1.6rem, 3vw, 3rem);
  text-decoration: none;
  transition: background .35s var(--mms-polish-ease), color .35s var(--mms-polish-ease);
}

.mms-service-card--featured {
  background: #242424;
}

.mms-service-card:hover,
.mms-service-card:focus-visible {
  background: #151515;
}

.mms-service-card__number {
  color: var(--mms-red);
  font-family: var(--mms-serif);
  font-size: 1.25rem;
}

.mms-service-card h3,
.mms-service-card--cta strong {
  margin: 2rem 0 0;
  font-family: var(--mms-serif);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
}

.mms-service-card p {
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
  line-height: 1.65;
}

.mms-service-card--cta {
  justify-content: space-between;
  background: var(--mms-red);
}

.mms-service-card--cta:hover,
.mms-service-card--cta:focus-visible {
  background: #d90002;
}

.mms-service-card--cta strong {
  margin: 0;
}

.mms-service-card--cta > span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mms-service-card--cta .mms-ui-icon {
  transition: transform .25s var(--mms-polish-ease);
}

.mms-service-card--cta:hover .mms-ui-icon,
.mms-service-card--cta:focus-visible .mms-ui-icon {
  transform: translate(.12rem, -.12rem);
}

.mms-home-why {
  background: var(--mms-white);
}

.mms-home-why .mms-container {
  width: min(100%, 80rem);
}

.mms-home-why__heading {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.mms-home-why__heading .mms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.mms-home-why__heading .mms-eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: var(--mms-red);
  content: "";
}

.mms-home-why__heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}

.mms-why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.25vw, 3.4rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.mms-why-card {
  min-width: 0;
}

.mms-why-card__icon {
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mms-polish-border);
  border-radius: 999px;
  color: var(--mms-red);
}

.mms-why-card__icon .mms-ui-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.mms-why-card h3 {
  margin: 1.45rem 0 0;
  font-family: var(--mms-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.mms-why-card p {
  margin: .8rem 0 0;
  color: var(--mms-polish-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.mms-home-projects {
  padding-block: clamp(5rem, 8vw, 7rem);
  background: #f5f5f5;
}

.mms-project-mosaic {
  display: grid;
  grid-auto-rows: clamp(8.5rem, 16vw, 15.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.1rem);
}

.mms-project-mosaic__item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--mms-black);
}

.mms-project-mosaic__item--large {
  grid-row: span 2;
  grid-column: span 2;
}

.mms-project-mosaic__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--mms-polish-ease), opacity .45s var(--mms-polish-ease);
}

.mms-project-mosaic__item::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  content: "";
  transition: background .35s var(--mms-polish-ease);
}

.mms-project-mosaic__arrow {
  position: absolute;
  z-index: 1;
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  display: inline-flex;
  width: 2.3rem;
  height: 2.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--mms-black);
  opacity: 0;
  transform: translateY(.35rem);
  transition: opacity .3s var(--mms-polish-ease), transform .3s var(--mms-polish-ease), color .25s var(--mms-polish-ease);
}

.mms-project-mosaic__item:hover img,
.mms-project-mosaic__item:focus-visible img {
  transform: scale(1.045);
}

.mms-project-mosaic__item:hover::after,
.mms-project-mosaic__item:focus-visible::after {
  background: rgba(0, 0, 0, .18);
}

.mms-project-mosaic__item:hover .mms-project-mosaic__arrow,
.mms-project-mosaic__item:focus-visible .mms-project-mosaic__arrow {
  color: var(--mms-red);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .mms-home-featured .mms-product-grid,
  .mms-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mms-project-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(12rem, 22vw);
  }
}

@media (max-width: 640px) {
  .mms-home-featured .mms-product-grid,
  .mms-service-grid,
  .mms-why-grid,
  .mms-project-mosaic {
    grid-template-columns: 1fr;
  }

  .mms-home-featured .mms-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .9rem;
    row-gap: 2rem;
  }

  .mms-product-card__body {
    min-height: 7.8rem;
    padding-top: .75rem;
  }

  .mms-product-card__body h3 {
    font-size: 1.08rem;
  }

  .mms-service-card {
    min-height: 14.5rem;
  }

  .mms-project-mosaic {
    grid-auto-rows: 15rem;
  }

  .mms-project-mosaic__item--large {
    grid-column: auto;
    grid-row: auto;
  }

  .mms-project-mosaic__arrow {
    opacity: 1;
    transform: none;
  }
}

/* Home work process: a calm editorial split, matching the approved v0 rhythm. */
.mms-home-steps {
  padding-block: clamp(6rem, 9vw, 8.5rem);
  background: #f5f5f5;
}

.mms-home-steps .mms-container {
  width: min(100%, 80rem);
}

.mms-home-steps__layout {
  display: grid;
  grid-template-columns: minmax(14rem, .68fr) minmax(0, 1.32fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.mms-home-steps__intro {
  max-width: 24rem;
}

.mms-home-steps__intro .mms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
}

.mms-home-steps__intro .mms-eyebrow::before {
  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--mms-red);
  content: "";
}

.mms-home-steps__intro h2 {
  margin: 1.35rem 0 0;
  font-size: clamp(2.5rem, 4.15vw, 4.35rem);
  line-height: 1.04;
}

.mms-home-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mms-home-step {
  display: grid;
  grid-template-columns: 3.4rem minmax(11rem, .78fr) minmax(0, 1.15fr);
  column-gap: clamp(1rem, 2.2vw, 2.4rem);
  align-items: start;
  min-width: 0;
  padding: clamp(1.3rem, 2.15vw, 1.75rem) 0;
  border-top: 1px solid var(--mms-polish-border);
  transition: background .3s var(--mms-polish-ease), transform .3s var(--mms-polish-ease);
}

.mms-home-step:last-child {
  border-bottom: 1px solid var(--mms-polish-border);
}

.mms-home-step__number {
  color: var(--mms-red);
  font-family: var(--mms-serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.mms-home-step__content {
  display: contents;
}

.mms-home-step h3 {
  margin: 0;
  font-family: var(--mms-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.14;
}

.mms-home-step p {
  max-width: 28rem;
  margin: 0;
  color: var(--mms-polish-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.mms-home-step:hover,
.mms-home-step:focus-within {
  transform: translateX(.2rem);
}

body.mms-locale-ar .mms-home-steps__layout,
body.mms-locale-ar .mms-home-step {
  direction: rtl;
  text-align: right;
}

body.mms-locale-ar .mms-home-step:hover,
body.mms-locale-ar .mms-home-step:focus-within {
  transform: translateX(-.2rem);
}

@media (max-width: 900px) {
  .mms-home-steps__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mms-home-steps__intro {
    max-width: 34rem;
  }
}

@media (max-width: 640px) {
  .mms-home-steps {
    padding-block: 4.75rem;
  }

  .mms-home-steps__layout {
    gap: 2.35rem;
  }

  .mms-home-steps__intro h2 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  .mms-home-step {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    row-gap: .65rem;
  }

  .mms-home-step p {
    grid-column: 2;
  }
}

/* Shared interaction polish: motion stays on surfaces, media and controls. */
.mms-product-card,
.mms-service-card,
.mms-project-mosaic__item {
  transition: transform .35s var(--mms-polish-ease), box-shadow .35s var(--mms-polish-ease), background .35s var(--mms-polish-ease), color .35s var(--mms-polish-ease);
}

.mms-product-card:hover,
.mms-product-card:focus-within,
.mms-service-card:hover,
.mms-service-card:focus-visible,
.mms-project-mosaic__item:hover,
.mms-project-mosaic__item:focus-visible {
  transform: translateY(-3px);
}

.mms-product-card:hover,
.mms-product-card:focus-within {
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.mms-project-mosaic__item:hover,
.mms-project-mosaic__item:focus-visible {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.mms-button,
.mms-header__quote,
.mms-card-quote,
.mms-card-details,
.mms-round-tool,
.mms-icon-link,
.mms-menu-toggle,
.mms-home-collection-card__action,
.mms-collection-card__action-icon,
.mms-product-card__arrow,
.mms-project-mosaic__arrow {
  transition: transform .25s var(--mms-polish-ease), background .25s var(--mms-polish-ease), border-color .25s var(--mms-polish-ease), color .25s var(--mms-polish-ease), box-shadow .25s var(--mms-polish-ease);
}

.mms-button:hover,
.mms-button:focus-visible,
.mms-header__quote:hover,
.mms-header__quote:focus-visible,
.mms-card-quote:hover,
.mms-card-quote:focus-visible,
.mms-card-details:hover,
.mms-card-details:focus-visible,
.mms-round-tool:hover,
.mms-round-tool:focus-visible,
.mms-icon-link:hover,
.mms-icon-link:focus-visible,
.mms-menu-toggle:hover,
.mms-menu-toggle:focus-visible {
  transform: translateY(-1px) scale(1.025);
}

.mms-header__link {
  position: relative;
}

.mms-header__link::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -.45rem;
  height: 1px;
  background: var(--mms-red);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--mms-polish-ease);
}

.mms-header__link:hover::after,
.mms-header__link:focus-visible::after {
  transform: scaleX(1);
}

.mms-mega__columns a {
  transition: color .25s var(--mms-polish-ease), padding-inline .25s var(--mms-polish-ease);
}

.mms-mega__columns a:hover,
.mms-mega__columns a:focus-visible {
  padding-inline-start: .25rem;
}

.mms-hero--single .mms-hero__slide {
  opacity: 1;
}

.mms-split--reverse {
  direction: rtl;
}

.mms-split--reverse > * {
  direction: ltr;
}

[dir="rtl"] .mms-split--reverse > * {
  direction: rtl;
}

.mms-home-about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.mms-home-about-stats div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.mms-home-about-stats dt {
  margin: 0 0 4px;
  color: var(--mms-red, #fe0002);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mms-home-about-stats dd {
  margin: 0;
  color: #111;
  font-family: var(--mms-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 22px;
  line-height: 1.1;
}

.mms-section--mms-red {
  background: #fe0002;
  color: #fff;
}

.mms-section--mms-red .mms-eyebrow,
.mms-section--mms-red h2,
.mms-section--mms-red h3,
.mms-section--mms-red p {
  color: inherit;
}

.mms-section--mms-red .mms-eyebrow::before {
  background: #fff;
}

@media (max-width: 640px) {
  .mms-home-about-stats {
    grid-template-columns: 1fr;
  }
}

.mms-home-builder-image {
  margin: 0;
  min-width: 0;
}

.mms-home-builder-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Final Elementor QA overrides: scoped to Elementor pages so native approved pages stay untouched. */
.mms-elementor-page .mms-elementor-selected-products .mms-product-grid {
  grid-template-columns: repeat(var(--mms-elementor-product-columns-desktop, 4), minmax(0, 1fr)) !important;
  gap: var(--mms-elementor-product-gap, 24px) !important;
}

.mms-elementor-page .mms-elementor-selected-products .mms-product-card {
  display: grid;
  grid-template-rows: auto minmax(8rem, auto);
  min-width: 0;
  overflow: visible;
  background: transparent;
}

.mms-elementor-page .mms-elementor-selected-products .mms-product-card__image {
  display: block;
  width: 100%;
  height: var(--mms-elementor-product-image-desktop, 420px) !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #f3f3f3;
}

.mms-elementor-page .mms-elementor-selected-products .mms-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--mms-elementor-product-fit, cover) !important;
  object-position: var(--mms-elementor-product-position, center center) !important;
}

.mms-elementor-page .mms-elementor-selected-products .mms-product-card__body {
  min-height: 0;
}

.mms-elementor-page .mms-elementor-journal .mms-generic-grid,
.mms-elementor-page .mms-elementor-projects-grid {
  gap: var(--mms-elementor-generic-gap, 24px);
}

.mms-elementor-page .mms-elementor-projects .mms-project-mosaic {
  gap: var(--mms-elementor-project-gap, 20px);
}

.mms-elementor-page .mms-elementor-projects .mms-project-mosaic--grid {
  grid-template-columns: repeat(var(--mms-elementor-project-columns, 3), minmax(0, 1fr));
}

.mms-elementor-page .mms-elementor-projects .mms-project-mosaic--grid .mms-project-mosaic__item,
.mms-elementor-page .mms-elementor-projects .mms-project-mosaic--grid .mms-project-mosaic__item--large {
  min-height: clamp(16rem, 25vw, 24rem);
  grid-row: auto;
}

.mms-elementor-page .mms-elementor-projects .mms-project-mosaic__item img {
  object-fit: var(--mms-elementor-project-fit, cover);
  object-position: var(--mms-elementor-project-position, center center);
}

.mms-elementor-page .mms-elementor-journal .mms-generic-grid {
  grid-template-columns: repeat(var(--mms-elementor-journal-columns, 3), minmax(0, 1fr));
  gap: var(--mms-elementor-journal-gap, 24px);
}

.mms-elementor-page .mms-elementor-journal .mms-generic-card > a {
  display: block;
  height: var(--mms-elementor-journal-image, 240px);
  overflow: hidden;
  background: #f3f3f3;
}

.mms-elementor-page .mms-elementor-journal .mms-generic-card > a img {
  width: 100%;
  height: 100%;
  object-fit: var(--mms-elementor-journal-fit, cover);
  object-position: center;
}

.mms-elementor-page .mms-generic-card__meta {
  margin: 0 0 .45rem;
  color: var(--mms-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mms-elementor-template .entry-title,
.mms-elementor-template .wp-block-post-title,
.mms-elementor-page > h1:first-child,
.mms-elementor-page > h2:first-child {
  display: none !important;
}

.mms-elementor-selected-products .mms-product-grid {
  grid-template-columns: repeat(var(--mms-elementor-product-columns-desktop, 4), minmax(0, 1fr)) !important;
  gap: var(--mms-elementor-product-gap, 24px) !important;
}

.mms-elementor-selected-products .mms-product-card__image {
  height: var(--mms-elementor-product-image-desktop, 420px) !important;
  aspect-ratio: auto !important;
}

.mms-elementor-selected-products .mms-product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--mms-elementor-product-fit, cover) !important;
  object-position: var(--mms-elementor-product-position, center center) !important;
}

@media (max-width: 980px) {
  .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-tablet, 2), minmax(0, 1fr)) !important;
  }

  .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-tablet, 360px) !important;
  }

  .mms-elementor-page .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-tablet, 2), minmax(0, 1fr)) !important;
  }

  .mms-elementor-page .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-tablet, 360px) !important;
  }

  .mms-elementor-page .mms-elementor-projects .mms-project-mosaic--grid,
  .mms-elementor-page .mms-elementor-journal .mms-generic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-mobile, 1), minmax(0, 1fr)) !important;
  }

  .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-mobile, 320px) !important;
  }

  .mms-elementor-page .mms-elementor-selected-products .mms-product-grid {
    grid-template-columns: repeat(var(--mms-elementor-product-columns-mobile, 1), minmax(0, 1fr)) !important;
  }

  .mms-elementor-page .mms-elementor-selected-products .mms-product-card__image {
    height: var(--mms-elementor-product-image-mobile, 320px) !important;
  }

  .mms-elementor-page .mms-elementor-projects .mms-project-mosaic--grid,
  .mms-elementor-page .mms-elementor-journal .mms-generic-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mms-home-step,
  .mms-product-card,
  .mms-service-card,
  .mms-project-mosaic__item,
  .mms-button,
  .mms-header__quote,
  .mms-card-quote,
  .mms-card-details,
  .mms-round-tool,
  .mms-icon-link,
  .mms-menu-toggle,
  .mms-home-collection-card__action,
  .mms-collection-card__action-icon,
  .mms-product-card__arrow,
  .mms-project-mosaic__arrow,
  .mms-header__link::after,
  .mms-mega__columns a {
    transform: none !important;
    transition: none !important;
  }
}
