/* Homepage-only sections. */

.mmr-hero .btn, .mmr-split-hero .btn, .mmr-meet-copy .btn,
.mmr-communities-copy .btn, .mmr-contact .btn, .mmr-about .btn,
.mmr-section-head .btn, .mmr-reviews-band .btn { padding: 14px 26px; min-height: 48px; }

/* — hero — */
.mmr-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.mmr-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.mmr-hero-slide.is-active { opacity: 1; }
.mmr-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, black 55%, transparent) 0%, color-mix(in srgb, black 15%, transparent) 45%, color-mix(in srgb, black 65%, transparent) 100%);
}
.mmr-hero-content { position: relative; z-index: 1; padding-inline: clamp(20px, 5vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.mmr-hero-content h1 { font-size: clamp(42px, 6.8vw, 96px); line-height: 1.06; letter-spacing: -0.02em; margin: 0; color: #fff; }
.mmr-hero-content p { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 28px 0 0; color: color-mix(in srgb, white 85%, transparent); }

.mmr-eyebrow { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); margin: 0 0 14px; }
.mmr-eyebrow--light { display: flex; align-items: center; gap: 10px; color: #fff; opacity: 0.9; margin: 0 0 18px; }
.mmr-dot { width: 8px; height: 8px; background: var(--color-accent); flex: none; display: inline-block; }

.mmr-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.mmr-btn-row--center { justify-content: center; }
.mmr-btn-row--right { justify-content: flex-end; }

/* — meet mert: headshot + intro, then a client-event photo mosaic — */
.mmr-meet { padding-block: 100px 90px; }
.mmr-meet-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
/* Photo stack: headshot, with the Rookie of the Year photo laid over its
   bottom-left corner like a print, and the reviews badge bottom-right. */
.mmr-meet-photo-wrap { position: relative; width: 100%; max-width: 480px; padding: 0 0 56px 64px; }
.mmr-meet-photo {
  width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.mmr-meet-award {
  position: absolute; left: 0; bottom: 0; z-index: 2; width: 38%; margin: 0;
  transform: rotate(-4deg); transition: transform 0.3s ease;
}
.mmr-meet-award:hover { transform: rotate(0deg) scale(1.03); }
.mmr-meet-award img {
  display: block; width: 100%; height: auto; border: 6px solid #fff; border-radius: var(--radius-md);
  box-shadow: 0 16px 36px color-mix(in srgb, black 22%, transparent);
}
.mmr-meet-badge {
  position: absolute; right: -20px; bottom: 36px; z-index: 1;
  background: var(--color-accent); color: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 18px 22px; text-align: center; line-height: 1.1;
}
.mmr-meet-badge-num { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 26px; }
.mmr-meet-badge-label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; opacity: 0.9; }
.mmr-meet-copy h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.015em; margin: 10px 0 22px; }
.mmr-meet-copy p { font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; max-width: 54ch; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.mmr-meet-cta { margin-top: 14px; }

/* Mosaic: big group photo on the left, three around it on the right. */
.mmr-meet-gallery {
  margin: 72px 0 0; display: grid; gap: 14px;
  grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 250px 250px;
}
.mmr-meet-gallery-item { overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); }
.mmr-meet-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mmr-meet-gallery-item:hover img { transform: scale(1.03); }
.mmr-meet-gallery-item--1 { grid-column: 1; grid-row: 1 / span 2; }
.mmr-meet-gallery-item--1 img { object-position: 40% 85%; }
.mmr-meet-gallery-item--2 { grid-column: 2 / span 2; grid-row: 1; }
.mmr-meet-gallery-item--2 img { object-position: center 40%; }
.mmr-meet-gallery-item--3 img, .mmr-meet-gallery-item--4 img { object-position: center 25%; }

/* — stats band — */
.mmr-stats { background: linear-gradient(100deg, var(--color-accent-700) 0%, var(--color-accent) 55%, var(--color-accent-400) 100%); color: #fff; }
.mmr-stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(24px, 5vw, 96px); align-items: center; padding-block: 70px; }
/* Promises list (right side of the red band) */
.mmr-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mmr-promise {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-md);
  background: color-mix(in srgb, white 10%, transparent); border: 1px solid color-mix(in srgb, white 18%, transparent);
}
.mmr-promise-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--color-accent);
}
.mmr-promise-title { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; margin: 2px 0 6px; }
.mmr-promise-text { font-size: 14.5px; line-height: 1.55; margin: 0; opacity: 0.88; }
.mmr-stats-headline-big { font-family: var(--font-heading); font-weight: 400; font-size: clamp(64px, 11vw, 148px); line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.mmr-stats-headline-label { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 10px 0 0; opacity: 0.85; }
.mmr-stats-hr { height: 2px; border: 0; background: color-mix(in srgb, white 35%, transparent); margin: 24px 0 0; max-width: 220px; }

/* — buyer / seller split heroes — */
.mmr-split-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.mmr-split-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, color-mix(in srgb, black 82%, transparent) 0%, color-mix(in srgb, black 55%, transparent) 50%, color-mix(in srgb, black 40%, transparent) 100%);
}
.mmr-split-hero-inner { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px); max-width: 520px; }
.mmr-split-hero-inner h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 20px; color: #fff; }
.mmr-split-hero-inner p { font-size: 15.5px; line-height: 28px; color: color-mix(in srgb, white 88%, transparent); max-width: 44ch; margin: 0; }
.mmr-split-hero--right .mmr-split-hero-inner { margin-left: auto; text-align: right; }

/* Buyer photos stacked like prints on the right of "Find your perfect home". */
.mmr-buyer-stack-wrap { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.mmr-buyer-stack { position: relative; width: min(440px, 40vw); aspect-ratio: 1 / 1.05; margin-right: 2%; pointer-events: auto; }
.mmr-buyer-print {
  position: absolute; width: 60%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border: 7px solid #fff; border-radius: var(--radius-md);
  box-shadow: 0 18px 40px color-mix(in srgb, black 35%, transparent);
  transition: transform 0.35s ease;
}
.mmr-buyer-print--1 { left: 0; top: 8%; transform: rotate(-8deg); z-index: 1; }
.mmr-buyer-print--2 { right: 0; top: 0; transform: rotate(6deg); z-index: 2; }
.mmr-buyer-print--3 { left: 20%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.mmr-buyer-print:hover { transform: rotate(0deg) scale(1.04); z-index: 5; }
#buyers .mmr-container.mmr-split-hero-inner { margin-left: max(0px, calc((100% - 1200px) / 2)); }
@media (max-width: 1000px) {
  #buyers.mmr-split-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .mmr-buyer-stack-wrap { position: relative; inset: auto; justify-content: center; padding-top: 48px; }
  .mmr-buyer-stack { width: min(320px, 78vw); margin: 0 auto; }
  #buyers .mmr-container.mmr-split-hero-inner { margin-left: auto; margin-right: auto; }
}
.mmr-split-hero-inner--right p { margin-left: auto; }
.mmr-accent-light { color: var(--color-accent-400); }

/* — reviews carousel — */
.mmr-reviews-band { background: var(--color-surface); padding-block: 64px; border-block: 2px solid var(--color-divider); }
.mmr-reviews-band h2 { font-size: 28px; line-height: 32px; letter-spacing: -0.015em; margin: 0 0 28px; }
.mmr-reviews-carousel { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; }
.mmr-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.mmr-carousel-arrow--prev { left: -22px; }
.mmr-carousel-arrow--next { right: -22px; }
.mmr-reviews-track { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; transition: opacity 0.22s ease, transform 0.22s ease; }
.mmr-reviews-track.is-fading { opacity: 0; transform: translateY(-8px); }
.mmr-review-card-side { flex: 0 0 21%; min-width: 0; opacity: 0.4; filter: blur(2px); cursor: pointer; transform: scale(0.94); transition: opacity 0.3s ease, filter 0.3s ease; }
.mmr-review-card-side .card, .mmr-review-card-main .card { background: var(--color-bg); }
.mmr-review-card-side .card { padding: 28px 24px; gap: 14px; min-height: 184px; }
.mmr-review-card-main { flex: 0 0 54%; min-width: 0; }
.mmr-review-card-main .card { padding: 48px 52px; gap: 20px; min-height: 320px; }
.mmr-review-quote-mark { font-family: var(--font-heading); font-size: 52px; line-height: 1; color: var(--color-accent); opacity: 0.35; }
.mmr-review-stars { display: flex; gap: 2px; margin-top: -24px; }
.mmr-review-quote { font-size: 18px; line-height: 30px; opacity: 0.9; min-height: 150px; }
.mmr-review-card-side .mmr-review-quote { font-size: 13.5px; line-height: 22px; min-height: 88px; }
.mmr-review-meta { border-top: 1px solid var(--color-divider); padding-top: 16px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmr-carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.mmr-carousel-dot { width: 22px; height: 3px; border: none; padding: 0; cursor: pointer; background: var(--color-divider); }
.mmr-carousel-dot.is-active { background: var(--color-accent); }

/* — communities carousel — */
.mmr-communities-wrap { background: var(--color-surface); padding-top: 70px; }
.mmr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.mmr-communities-carousel { position: relative; display: flex; align-items: center; gap: 20px; height: clamp(520px, 88vh, 880px); overflow: hidden; margin-top: 24px; }
.mmr-carousel-side { flex: 0 0 15%; min-width: 0; height: 100%; position: relative; opacity: 0.4; cursor: pointer; transition: opacity 0.3s ease; overflow: hidden; }
.mmr-carousel-side:hover { opacity: 0.7; }
.mmr-communities-main { flex: 1; min-width: 0; height: 100%; position: relative; overflow: hidden; transition: filter 0.3s ease; }
/* z-index:0 (not just "auto") on the map/photo layers matters here: without
   it they never establish their own stacking context, so Leaflet's internal
   pane z-indexes (200-700) leak out and paint over the copy/arrows below no
   matter what DOM order says. It only looked "fixed on hover" because the
   old :hover filter incidentally created a stacking context that happened
   to contain the leak while the cursor was over it. */
.mmr-communities-photo-layer, .mmr-communities-map-layer { position: absolute; inset: 0; z-index: 0; background-color: var(--color-surface); background-size: cover; background-position: center; }
.mmr-communities-main:hover .mmr-communities-photo-layer, .mmr-communities-main:hover .mmr-communities-map-layer { filter: brightness(0.85); }
.mmr-communities-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-bg) 45%, transparent) 0%, color-mix(in srgb, var(--color-bg) 25%, transparent) 30%, transparent 55%);
}
.mmr-communities-copy { position: absolute; z-index: 2; left: clamp(24px, 5vw, 72px); top: 50%; transform: translateY(-50%); pointer-events: none; }
.mmr-communities-explore { font-style: italic; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); margin: 0 0 12px; }
.mmr-communities-name { font-family: var(--font-heading); font-size: clamp(56px, 9vw, 140px); line-height: 1; letter-spacing: -0.02em; margin: 0; color: var(--color-text); }
.mmr-communities-link { pointer-events: auto; margin-top: 20px; }
.mmr-communities-arrows { position: absolute; z-index: 2; right: clamp(24px, 5vw, 72px); bottom: clamp(24px, 4vw, 56px); display: flex; gap: 12px; }
.mmr-carousel-arrow-square { width: 48px; height: 48px; }

/* — about — */
.mmr-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(24px, 5vw, 96px); align-items: center; padding-block: 70px 84px; }
.mmr-about-photos { position: relative; width: 100%; aspect-ratio: 5 / 6; }
.mmr-about-photo { position: absolute; box-shadow: var(--shadow-md); background-size: cover; background-position: center; border-radius: var(--radius-md); overflow: hidden; }
.mmr-about-photo--1 { top: 0; left: 0; width: 78%; height: 78%; }
/* Presentation photos laid over the two stock photos like prints. */
.mmr-about-print {
  position: absolute; z-index: 2; width: 40%; height: auto; aspect-ratio: 1; object-fit: cover;
  border: 6px solid #fff; border-radius: var(--radius-md);
  box-shadow: 0 14px 32px color-mix(in srgb, black 22%, transparent); transition: transform 0.35s ease;
}
.mmr-about-print--1 { left: -4%; bottom: 4%; transform: rotate(-6deg); }
.mmr-about-print--2 { right: 22%; top: 30%; transform: rotate(4deg); z-index: 3; }
.mmr-about-print:hover { transform: rotate(0deg) scale(1.05); z-index: 5; }
.mmr-about-photo--2 { bottom: 0; right: 0; width: 60%; height: 52%; border: 6px solid var(--color-bg); }
.mmr-about-copy { font-size: 15.5px; line-height: 28px; color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: 22px 0 0; max-width: 48ch; }
.mmr-about-copy + .mmr-about-copy { margin-top: 14px; }
.mmr-about-cta { margin-top: 28px; }

/* — blog row — */
.mmr-blog-section { padding-block: 70px 84px; }

/* — contact / newsletter — */
.mmr-contact { background: var(--color-accent); color: #fff; }
.mmr-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(24px, 5vw, 96px); align-items: start; padding-block: 84px; }
.mmr-contact-grid h3 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 0 -0.03em; color: #fff; }
.mmr-contact-grid > div:first-child p { font-size: 17px; line-height: 28px; max-width: 48ch; margin: 24px 0 0; color: #fff; opacity: 0.92; }
.mmr-contact-card { background: var(--color-bg); padding: clamp(28px, 3.5vw, 40px); color: var(--color-text); }
.mmr-contact-card-title { font-family: var(--font-heading); font-weight: 400; font-size: 20px; color: var(--color-text); margin: 0 0 8px; }
.mmr-contact-card-sub { font-size: 14px; line-height: 22px; color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: 0 0 20px; }
.mmr-form-status { display: none; font-family: var(--font-heading); font-weight: 400; font-size: 16px; color: var(--color-text); margin: 0; min-height: 60px; }
form.is-sent [data-mmr-form-fields] { display: none; }
form.is-sent .mmr-form-status { display: block; }

/* Reviews: one big card instead of the 3-card row on smaller windows. */
@media (max-width: 1100px) {
  .mmr-review-card-side { display: none; }
  .mmr-review-card-main { flex: 1 1 auto; max-width: 680px; }
}
@media (max-width: 860px) {
  .mmr-meet { padding-block: 64px 56px; }
  .mmr-meet-intro { grid-template-columns: 1fr; }
  .mmr-meet-photo-wrap { max-width: 380px; margin: 0 auto 12px; padding: 0 0 44px 44px; }
  .mmr-meet-badge { right: -8px; }
  .mmr-meet-gallery { margin-top: 48px; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 170px 170px; gap: 10px; }
  .mmr-meet-gallery-item--1 { grid-column: 1 / -1; grid-row: 1; }
  .mmr-meet-gallery-item--2 { grid-column: 1 / -1; grid-row: 2; }
  .mmr-meet-gallery-item--3 { grid-column: 1; grid-row: 3; }
  .mmr-meet-gallery-item--4 { grid-column: 2; grid-row: 3; }
  .mmr-about { grid-template-columns: 1fr; }
  .mmr-about-photos { aspect-ratio: 4 / 5; max-width: 320px; margin: 0 auto; }
  .mmr-communities-carousel { height: 420px; }
  .mmr-carousel-side { display: none; }
  .mmr-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mmr-split-hero--right { justify-content: flex-start; }
  .mmr-split-hero--right .mmr-split-hero-inner { text-align: left; margin-left: 0; }
  .mmr-split-hero-inner--right p { margin-left: 0; }
  .mmr-reviews-carousel { padding-inline: 16px; }
  .mmr-review-card-main .card { padding: 32px 24px; min-height: 0; }
  .mmr-review-quote { font-size: 17px; line-height: 28px; min-height: 0; }
  .mmr-carousel-arrow { width: 36px; height: 36px; font-size: 16px; }
  .mmr-carousel-arrow--prev { left: -8px; }
  .mmr-carousel-arrow--next { right: -8px; }
}
.mmr-hero-proof { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.mmr-hero-proof span { color: #f5c542; font-size: 17px; }
.mmr-hero-proof:hover { text-decoration: underline; }
.mmr-contact-card .field { margin-bottom: 14px; }
.mmr-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mmr-contact-card textarea.input { width: 100%; resize: vertical; min-height: 96px; }
.mmr-optional { font-weight: 400; opacity: 0.7; }
.mmr-contact .btn-contact-book { background: #fff; color: var(--color-accent); border-color: #fff; }
.mmr-contact .btn-contact-book:hover { background: var(--color-accent-100); }
.mmr-contact-newsletter { margin-top: 40px; max-width: 460px; }
.mmr-contact-newsletter label { display: block; font-size: 14px; margin-bottom: 8px; opacity: 0.92; }
.mmr-contact-newsletter-row { display: flex; gap: 10px; }
.mmr-contact-newsletter-row .input { flex: 1; min-width: 0; background: #fff; }
.mmr-contact-newsletter .mmr-form-status { color: #fff; margin-top: 8px; }
.mmr-contact-newsletter.is-sent .mmr-contact-newsletter-row { display: none; }
@media (max-width: 520px) { .mmr-contact-row { grid-template-columns: 1fr; } }
