/*
Theme Name: Millennium Security Services
Theme URI: https://www.millenniumsecurityservices.ca/
Author: Millennium Security Services
Version: 1.0
License: GNU General Public License
*/

/* ============================================================
   MMS Revamp v2 — custom design system (style.css)
   Scoped to body.mms-v2 (header-revamp.php templates)
   Brand: #EC353F · Ink: #0a0a0a · Whitespace-first
   ============================================================ */

.mms-v2 {
  --mms-brand: #EC353F;
  --mms-brand-dark: #c42a33;
  --mms-brand-light: #fde8ea;
  --mms-accent-blue: #1e40af;
  --mms-accent-blue-dark: #002868;
  --mms-accent-blue-light: #dbeafe;
  --mms-ink: #0a0a0a;
  --mms-ink-muted: #525252;
  --mms-ink-faint: #737373;
  --mms-surface: #ffffff;
  --mms-surface-alt: #f7f7f7;
  --mms-surface-dark: #0a0a0a;
  --mms-border: #e5e5e5;
  --mms-radius: 12px;
  --mms-radius-lg: 16px;
  --mms-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --mms-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
  --mms-container: 1440px;
  --mms-font: 'Inter', system-ui, -apple-system, sans-serif;
  font-family: var(--mms-font);
  color: var(--mms-ink);
  background: var(--mms-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

.mms-container {
  width: 100%;
  max-width: var(--mms-container);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---- Top bar ---- */
.mms-topbar {
  background: var(--mms-surface-dark);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}
.mms-topbar__inner { padding: 0.45rem 1.25rem; }
.mms-topbar p { margin: 0; }
@media (max-width: 767px) {
  .mms-topbar {
    font-size: 0.62rem;
    line-height: 1.35;
  }
  .mms-topbar__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- Header / Nav ---- */
.mms-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mms-header--scrolled {
  border-bottom-color: var(--mms-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.mms-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}
.mms-logo img {
  display: block;
  height: 72px;
  width: auto;
  transition: height 0.2s ease;
}
.mms-header--scrolled .mms-logo img { height: 58px; }

/* Mobile menu button */
.mms-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.mms-menu-btn__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}
.mms-menu-btn__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mms-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mms-menu-btn[aria-expanded="true"] .mms-menu-btn__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mms-menu-btn[aria-expanded="true"] .mms-menu-btn__bars span:nth-child(2) {
  opacity: 0;
}
.mms-menu-btn[aria-expanded="true"] .mms-menu-btn__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav (hidden on mobile) */
.mms-nav--desktop {
  display: none;
}

/* Mobile drawer — lives outside header to avoid backdrop-filter containing-block bugs */
.mms-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}
.mms-mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mms-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.mms-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  outline: none;
}
.mms-mobile-menu.is-open .mms-mobile-menu__panel {
  transform: translateX(0);
}
.mms-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--mms-border);
  flex-shrink: 0;
}
.mms-mobile-menu__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mms-ink);
}
.mms-mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--mms-surface-alt);
  color: var(--mms-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mms-mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.25rem 1.25rem 1rem;
}
.mms-mobile-menu__foot {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--mms-border);
  background: #fff;
}
.mms-mobile-menu__cta {
  width: 100%;
  text-align: center;
}
.mms-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mms-mobile-menu__link {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mms-border);
  color: var(--mms-ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.mms-mobile-menu__link:hover { color: var(--mms-brand); }
.mms-mobile-menu__details {
  border-bottom: 1px solid var(--mms-border);
}
.mms-mobile-menu__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mms-ink);
  cursor: pointer;
  list-style: none;
}
.mms-mobile-menu__summary::-webkit-details-marker { display: none; }
.mms-mobile-menu__summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--mms-ink-muted);
}
.mms-mobile-menu__details[open] .mms-mobile-menu__summary::after {
  content: "−";
}
.mms-mobile-menu__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
}
.mms-mobile-menu__sublink {
  display: block;
  padding: 0.45rem 0 0.45rem 0.75rem;
  color: var(--mms-ink-muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.mms-mobile-menu__sublink--all {
  color: var(--mms-brand);
  font-weight: 600;
}
.mms-mobile-menu__sublink:hover { color: var(--mms-brand); }

.mms-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mms-nav__list > li > a {
  display: block;
  color: var(--mms-ink);
  text-decoration: none;
}
.mms-nav__list > li > a:hover { color: var(--mms-brand); }

.mms-nav__panel {
  display: none;
}
.mms-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.mms-nav__panel a {
  display: block;
  color: var(--mms-ink-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}
.mms-nav__panel a:hover { color: var(--mms-brand); }

.mms-nav__cta { margin-top: 1.25rem; width: 100%; text-align: center; }

@media (min-width: 1024px) {
  .mms-menu-btn { display: none; }
  .mms-mobile-menu { display: none !important; }

  .mms-nav--desktop {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
  }
  .mms-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
  }
  .mms-nav__list > li { position: relative; }
  .mms-nav__list > li > a {
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .mms-nav__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 0.5rem 0;
    background: #fff;
    border: 1px solid var(--mms-border);
    border-radius: var(--mms-radius);
    box-shadow: var(--mms-shadow-lg);
  }
  .mms-nav__fly:hover .mms-nav__panel,
  .mms-nav__fly:focus-within .mms-nav__panel { display: block; }
  .mms-nav__panel a {
    padding: 0.32rem 0.85rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .mms-nav__cta { margin: 0 0 0 0.5rem; width: auto; white-space: nowrap; font-size: 0.82rem; padding: 0.6rem 1rem; }
}

@media (min-width: 1280px) {
  .mms-nav__list > li > a { font-size: 0.85rem; padding: 0.5rem 0.7rem; }
}

/* ---- Buttons ---- */
.mms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-family: var(--mms-font);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.mms-btn:hover { transform: translateY(-1px); }
.mms-btn--brand {
  background: var(--mms-brand);
  color: #fff !important;
  border-color: var(--mms-brand);
}
.mms-btn--brand:hover { background: var(--mms-brand-dark); border-color: var(--mms-brand-dark); }
.mms-btn--white {
  background: #fff;
  color: var(--mms-ink) !important;
  border-color: #fff;
}
.mms-btn--white:hover { background: #f5f5f5; }
.mms-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7);
}
.mms-btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.mms-btn--dark {
  background: var(--mms-ink);
  color: #fff !important;
  border-color: var(--mms-ink);
}
.mms-btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* ---- Hero ---- */
.mms-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
}
.mms-hero__video,
.mms-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.mms-hero__image { background-size: cover; background-position: center; }
.mms-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.45) 100%);
}
.mms-hero__overlay--gradient {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.15) 0%, rgba(5, 5, 8, 0.45) 100%);
}

/* Gradient hero — professional mesh background (no photo) */
.mms-hero--gradient {
  min-height: 600px;
  background: #050508;
}
.mms-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 15% 90%, rgba(236, 53, 63, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(236, 53, 63, 0.14) 0%, transparent 50%),
    linear-gradient(155deg, #050508 0%, #0c0e14 28%, #111827 52%, #0a1628 78%, #050508 100%);
}
.mms-hero__gradient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.mms-hero__gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.mms-hero__gradient-orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  right: 8%;
  background: rgba(236, 53, 63, 0.18);
}
.mms-hero__gradient-orb--2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -4%;
  background: rgba(99, 102, 241, 0.12);
}
.mms-hero__gradient-orb--3 {
  width: 200px;
  height: 200px;
  bottom: 35%;
  right: 30%;
  background: rgba(236, 53, 63, 0.1);
}
.mms-hero--gradient .mms-hero__eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(236, 53, 63, 0.18);
  border: 1px solid rgba(236, 53, 63, 0.4);
  border-radius: 999px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 12px rgba(236, 53, 63, 0.15);
}
.mms-hero--gradient .mms-hero__title {
  text-transform: uppercase;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.01em;
}
.mms-hero--gradient .mms-hero__actions {
  border-top-color: rgba(255, 255, 255, 0.14);
}
.mms-hero--gradient .mms-hero-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.97);
}


/* Hero lead form card (CF7 + placeholder) */
/* Form column — push the card to the right edge on desktop */
.mms-hero-form-col {
  display: flex;
  justify-content: flex-end;
}

/* Page-context modifier — used when the form is the primary content
   of a page (e.g. /appointment/) instead of a hero side panel.
   Wider card and centered header copy. */
.mms-hero-form--page {
  max-width: 580px;
  margin: 0 auto;
}
.mms-hero-form--page .mms-hero-form__head {
  text-align: center;
}

/* The white card */
.mms-hero-form {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.85rem 1.75rem 1.1rem;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.30),
    0 4px 16px rgba(0, 0, 0, 0.18);
  font-family: var(--mms-font);
  color: #1b2026;
  text-align: left;
  box-sizing: border-box;
}

/* Heading (rendered by the theme, not by CF7) */
.mms-hero-form__head {
  margin-bottom: 0.95rem;
}
.mms-hero-form .mms-hero-form__title {
  font-family: var(--mms-font);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
  padding: 0;
  color: #1b2026;
  text-transform: none;
}
.mms-hero-form .mms-hero-form__subtitle {
  font-family: var(--mms-font);
  font-size: 0.92rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: #6c7177;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}

/* Field row — wrappers come from the CF7 form markup */
.mms-hero-form .mms-hero-form__row {
  margin: 0 0 0.75rem;
  padding: 0;
  width: 100%;
  display: block;
}
.mms-hero-form .mms-hero-form__row:last-of-type {
  margin-bottom: 0;
}

/* Label */
.mms-hero-form .mms-hero-form__label {
  display: block;
  font-family: var(--mms-font);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #4a5159;
  margin: 0 0 0.35rem;
  padding: 0;
  width: 100%;
  text-transform: uppercase;
}

/* CF7 wraps each input in a span — make sure it doesn't break layout */
.mms-hero-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ---- CF7 default markup support ----
   Some CF7 forms (e.g. /appointment/ form id `bd8b2e9`) use the
   plugin's default `<p><label>Text<br><span><input></span></label></p>`
   pattern instead of our `.mms-hero-form__row` / `__label` BEM wrappers.
   The rules below give that default markup the same visual treatment
   so editors don't need to touch every form's CF7 settings. */

.mms-hero-form fieldset {
  display: contents;
  border: 0;
  margin: 0;
  padding: 0;
}

.mms-hero-form .wpcf7-form {
  margin: 0;
  padding: 0;
}

.mms-hero-form .wpcf7-form > p {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-family: var(--mms-font);
}
.mms-hero-form .wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}

.mms-hero-form .wpcf7-form > p > label {
  display: block;
  width: 100%;
  font-family: var(--mms-font);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #4a5159;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

/* Hide the <br> CF7 emits between label text and the input wrap */
.mms-hero-form .wpcf7-form > p > label > br {
  display: none;
}

/* Reset text-transform inheritance from the uppercased <label>
   so the typed value inside the input doesn't render in caps */
.mms-hero-form input[type="text"],
.mms-hero-form input[type="email"],
.mms-hero-form input[type="tel"],
.mms-hero-form input[type="url"],
.mms-hero-form select,
.mms-hero-form textarea {
  text-transform: none;
}

/* All text-style inputs */
.mms-hero-form input[type="text"],
.mms-hero-form input[type="email"],
.mms-hero-form input[type="tel"],
.mms-hero-form input[type="url"],
.mms-hero-form select,
.mms-hero-form textarea {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--mms-font);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0;
  color: #1b2026;
  background: #ffffff;
  border: 1px solid #d9dce0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0;
  box-sizing: border-box;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mms-hero-form input::placeholder,
.mms-hero-form textarea::placeholder {
  color: #a3a8af;
  opacity: 1;
}

.mms-hero-form input[type="text"]:focus,
.mms-hero-form input[type="email"]:focus,
.mms-hero-form input[type="tel"]:focus,
.mms-hero-form input[type="url"]:focus,
.mms-hero-form select:focus,
.mms-hero-form textarea:focus {
  border-color: #1b6e3a;
  box-shadow: 0 0 0 3px rgba(27, 110, 58, 0.12);
}

/* Override CF7's default `rows="10"` attribute with an explicit
   short height. User can drag-expand to up to 200px if needed. */
.mms-hero-form textarea {
  height: 80px;
  min-height: 70px;
  max-height: 200px;
  resize: vertical;
}

/* Custom select chevron — neutralizes the native browser arrow */
.mms-hero-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238a909a'%3E%3Cpath d='M4.427 6.427a.6.6 0 0 1 .848 0L8 9.152l2.725-2.725a.6.6 0 0 1 .848.848l-3.149 3.149a.6.6 0 0 1-.848 0L4.427 7.275a.6.6 0 0 1 0-.848z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* Submit row + button */
.mms-hero-form .mms-hero-form__actions {
  margin: 1.1rem 0 0;
  padding: 0;
  width: 100%;
}
.mms-hero-form input[type="submit"],
.mms-hero-form .wpcf7-submit {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--mms-font);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  background: #1b6e3a !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(27, 110, 58, 0.20);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.mms-hero-form input[type="submit"]:hover,
.mms-hero-form .wpcf7-submit:hover {
  background: #14552c !important;
  box-shadow: 0 6px 18px rgba(27, 110, 58, 0.30);
  transform: translateY(-1px);
}
.mms-hero-form input[type="submit"]:focus,
.mms-hero-form .wpcf7-submit:focus {
  outline: 0;
  box-shadow:
    0 4px 12px rgba(27, 110, 58, 0.20),
    0 0 0 3px rgba(27, 110, 58, 0.20);
}

/* Spinner CF7 shows during submission */
.mms-hero-form .wpcf7-spinner {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Legal note (below the submit, theme-rendered) */
.mms-hero-form .mms-hero-form__legal {
  font-family: var(--mms-font);
  font-size: 0.7rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0;
  color: #8a909a;
  margin: 0.85rem 0 0;
  padding: 0;
  text-align: center;
  text-transform: none;
}

/* Validation tip (per-field error text emitted by CF7) */
.mms-hero-form .wpcf7-not-valid-tip {
  font-family: var(--mms-font);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: #c8102e;
  margin-top: 0.3rem;
  display: block;
}
.mms-hero-form input.wpcf7-not-valid,
.mms-hero-form select.wpcf7-not-valid,
.mms-hero-form textarea.wpcf7-not-valid {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(232, 53, 63, 0.10);
}

/* Form-level response output (success/failure banner) */
.mms-hero-form .wpcf7-response-output {
  font-family: var(--mms-font);
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 8px;
  padding: 0.75rem 1rem !important;
  margin: 1rem 0 0 !important;
  border: 0 !important;
}
.mms-hero-form form.sent .wpcf7-response-output {
  background: rgba(27, 110, 58, 0.10);
  color: #1b6e3a;
}
.mms-hero-form form.invalid .wpcf7-response-output,
.mms-hero-form form.unaccepted .wpcf7-response-output,
.mms-hero-form form.payment-required .wpcf7-response-output {
  background: rgba(232, 53, 63, 0.10);
  color: #c8102e;
}

/* Stack on mobile/tablet — full-width form, push it below hero text */
@media (max-width: 991.98px) {
  .mms-hero-form-col {
    justify-content: stretch;
  }
  .mms-hero-form {
    max-width: 100%;
    margin: 1.25rem 0 0;
  }
  .mms-hero-form .mms-hero-form__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .mms-hero-form {
    padding: 1.4rem 1.25rem 1.2rem;
  }
}


/* Trust strip below hero */
.mms-trust-strip {
  background: var(--mms-surface-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.mms-trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.1rem 1.25rem;
}
.mms-trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mms-trust-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(236, 53, 63, 0.2);
  color: var(--mms-brand);
  flex-shrink: 0;
}
.mms-trust-strip__divider {
  display: none;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) {
  .mms-trust-strip__divider { display: block; }
}
@media (max-width: 767px) {
  .mms-trust-strip__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .mms-trust-strip__item {
    white-space: normal;
    text-align: center;
    justify-content: center;
    max-width: 100%;
    line-height: 1.35;
  }
}

/* Google rating badge */
.mms-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.15rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mms-ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.mms-google-badge__stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; }

/* Reviews section */
.mms-section--reviews {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(236, 53, 63, 0.06) 0%, transparent 60%),
    var(--mms-surface);
}
.mms-review-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

/* Remote control dark section polish */
.mms-section--dark .mms-showcase__img img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mms-section--dark .mms-section__eyebrow { color: var(--mms-brand); }
.mms-section--dark .mms-prose--dark {
  max-width: 40rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.mms-section--dark .mms-prose--dark p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}
.mms-section--dark .mms-prose--dark p:last-child { margin-bottom: 0; }
.mms-section--dark .mms-showcase__list li { color: rgba(255, 255, 255, 0.95); }

/* Popular services with images */
.mms-feat-card__img { position: relative; }
.mms-feat-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.mms-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
  width: 100%;
}
.mms-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.mms-hero__copy,
.mms-hero__form-col {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 992px) {
  .mms-hero { min-height: 580px; }
  .mms-hero__grid { grid-template-columns: 1fr 420px; gap: 2.5rem; }
  .mms-hero--centered .mms-hero__grid { grid-template-columns: 1fr 420px; }
}
.mms-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-hero__copy-panel {
  max-width: 40rem;
}
.mms-hero--gradient .mms-hero__copy-panel {
  padding: 1.85rem 1.9rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mms-radius-lg);
  backdrop-filter: blur(14px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mms-hero:not(.mms-hero--gradient) .mms-hero__copy-panel {
  padding: 0.25rem 0;
}
.mms-hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.mms-hero__subtitle {
  margin: 0 0 0;
  font-size: 1.1rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}
.mms-hero__subtitle p {
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}
.mms-hero--home .mms-hero__subtitle,
.mms-hero--home .mms-hero__subtitle p,
.mms-hero--gradient .mms-hero__subtitle,
.mms-hero--gradient .mms-hero__subtitle p {
  line-height: 1.9;
}
.mms-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) {
  .mms-hero__subtitle { font-size: 1.15rem; line-height: 2.05; }
  .mms-hero--home .mms-hero__subtitle,
  .mms-hero--home .mms-hero__subtitle p,
  .mms-hero--gradient .mms-hero__subtitle,
  .mms-hero--gradient .mms-hero__subtitle p { line-height: 1.5rem; }
  .mms-hero--gradient .mms-hero__copy-panel {
    padding: 2.1rem 2.15rem 2.25rem;
  }
}
.mms-hero__form-col { display: flex; justify-content: center; }
@media (min-width: 992px) { .mms-hero__form-col { justify-content: flex-end; } }

.mms-breadcrumbs,
.mms-breadcrumbs a,
.mms-breadcrumbs span {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.8rem;
  text-decoration: none;
}
.mms-breadcrumbs a:hover { color: #fff !important; }
.mms-breadcrumbs { margin-bottom: 1rem; }

/* Hero form — brand overrides for v2 */
.mms-v2 .mms-hero-form input[type="text"]:focus,
.mms-v2 .mms-hero-form input[type="email"]:focus,
.mms-v2 .mms-hero-form input[type="tel"]:focus,
.mms-v2 .mms-hero-form select:focus,
.mms-v2 .mms-hero-form textarea:focus {
  border-color: var(--mms-brand);
  box-shadow: 0 0 0 3px rgba(236, 53, 63, 0.15);
}
.mms-v2 .mms-hero-form input[type="submit"],
.mms-v2 .mms-hero-form .wpcf7-submit {
  background: var(--mms-brand) !important;
  box-shadow: 0 4px 16px rgba(236, 53, 63, 0.3);
}
.mms-v2 .mms-hero-form input[type="submit"]:hover,
.mms-v2 .mms-hero-form .wpcf7-submit:hover {
  background: var(--mms-brand-dark) !important;
}

/* ---- Sections ---- */
.mms-section {
  padding: 4.5rem 0;
}
.mms-section--alt { background: var(--mms-surface-alt); }
.mms-section--dark {
  background: var(--mms-surface-dark);
  color: #fff;
}
.mms-section--brand {
  background: var(--mms-brand);
  color: #fff;
}
.mms-section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.mms-section__head--wide {
  max-width: none;
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.mms-section__head--wide .mms-section__subtitle {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
#clients .mms-section__title {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  white-space: nowrap;
}
#clients .mms-section__subtitle {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}
@media (max-width: 900px) {
  #clients .mms-section__title {
    white-space: normal;
  }
}
.mms-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-section--dark .mms-section__eyebrow,
.mms-section--brand .mms-section__eyebrow { color: rgba(255, 255, 255, 0.8); }
.mms-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mms-ink);
}
.mms-section--dark .mms-section__title,
.mms-section--brand .mms-section__title { color: #fff; }
.mms-section__subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}
.mms-section--dark .mms-section__subtitle { color: rgba(255, 255, 255, 0.75); }

.mms-prose { max-width: 48rem; }
.mms-prose p { margin: 0 0 1rem; line-height: 1.7; color: var(--mms-ink-muted); }
.mms-prose h2, .mms-prose h3 {
  margin: 2rem 0 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mms-ink);
}
.mms-prose h2 { font-size: 1.65rem; }
.mms-prose h3 { font-size: 1.35rem; }
.mms-prose > h3:first-child {
  margin-top: 0;
  margin-bottom: 1.15rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mms-ink);
}
.mms-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.mms-prose a { color: var(--mms-brand); text-decoration: underline; }
.mms-prose a:hover { color: var(--mms-brand-dark); }

/* Why Choose Us — elevated copy panel */
/* Accent section — counts as a white band in the white/alt rotation */
.mms-section--why {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(236, 53, 63, 0.05) 0%, transparent 55%),
    var(--mms-surface);
}
.mms-copy-panel {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  padding: 2rem 1.85rem 2.1rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.06);
  height: 100%;
}
.mms-prose--feature {
  max-width: none;
}
.mms-prose--feature p {
  font-size: 1.0625rem;
  line-height: 1.78;
  margin: 0 0 1.2rem;
  color: var(--mms-ink-muted);
}
.mms-prose--feature p:last-child {
  margin-bottom: 0;
}
.mms-prose--feature > h3:first-child {
  margin-top: 0;
  margin-bottom: 1.6rem;
  padding: 1.1rem 1.2rem 1.1rem 1.35rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--mms-ink);
  background: linear-gradient(135deg, var(--mms-brand-light) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-left: 4px solid var(--mms-brand);
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mms-split__media--framed img {
  border: 1px solid var(--mms-border);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 6px rgba(255, 255, 255, 0.85);
}
#why-choose-us .mms-perks {
  margin-top: 2.75rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--mms-border);
  max-width: 52rem;
  width: 100%;
}
@media (min-width: 768px) {
  #why-choose-us .mms-perks {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    column-gap: clamp(2.5rem, 7vw, 4.5rem);
    row-gap: 0.35rem;
  }
  #why-choose-us .mms-perks ul {
    min-width: 11.5rem;
  }
}
@media (max-width: 767px) {
  #why-choose-us .mms-perks ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #why-choose-us .mms-perks li {
    width: fit-content;
    max-width: 20rem;
  }
}
@media (min-width: 768px) {
  .mms-copy-panel { padding: 2.25rem 2.15rem 2.35rem; }
  .mms-prose--feature p { font-size: 1.08rem; }
}

/* ---- Service cards (home) ---- */
.mms-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .mms-card-grid { grid-template-columns: repeat(2, 1fr); } }

.mms-svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mms-svc-card:hover {
  box-shadow: var(--mms-shadow-lg);
  transform: translateY(-4px);
}
.mms-svc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
}
.mms-svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mms-svc-card:hover .mms-svc-card__media img { transform: scale(1.04); }
.mms-svc-card__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--mms-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}
.mms-svc-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.mms-svc-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mms-ink);
}
.mms-svc-card__text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}
.mms-svc-card__link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mms-brand);
  text-decoration: none;
}
.mms-svc-card__link:hover { color: var(--mms-brand-dark); }

/* ---- Brand logos ---- */
.mms-brand-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 767px) {
  .mms-brand-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .mms-brand-tile {
    flex: 0 0 118px;
    min-width: 118px;
  }
}

.mms-brand-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius);
  padding: 0.85rem 0.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mms-brand-tile:hover {
  border-color: var(--mms-brand);
  box-shadow: var(--mms-shadow);
}
.mms-brand-tile img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .mms-brand-tile img { height: 72px; }
}
.mms-brand-tile__tip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 240px;
  padding: 0.75rem;
  background: var(--mms-ink);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 8px;
  text-align: left;
  z-index: 5;
}
.mms-brand-tile:hover .mms-brand-tile__tip { display: block; }
.mms-brand-tile__tip strong { display: block; margin-bottom: 0.25rem; color: var(--mms-brand); }

/* ---- Reviews ---- */
.mms-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 640px) { .mms-review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mms-review-grid { grid-template-columns: repeat(4, 1fr); gap: 1.35rem; } }

.mms-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--mms-radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mms-review-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mms-brand) 0%, #f59e0b 100%);
  opacity: 0.85;
}
.mms-review-card:nth-child(8n+2) .mms-review-card__accent {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}
.mms-review-card:nth-child(8n+3) .mms-review-card__accent {
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
}
.mms-review-card:nth-child(8n+4) .mms-review-card__accent {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.mms-review-card:nth-child(8n+5) .mms-review-card__accent {
  background: linear-gradient(90deg, #e11d48 0%, #fb7185 100%);
}
.mms-review-card:nth-child(8n+6) .mms-review-card__accent {
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
}
.mms-review-card:nth-child(8n+7) .mms-review-card__accent {
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%);
}
.mms-review-card:nth-child(8n+8) .mms-review-card__accent {
  background: linear-gradient(90deg, #0d9488 0%, #2dd4bf 100%);
}
.mms-review-card__watermark {
  position: absolute;
  top: 0.15rem;
  right: 0.75rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(236, 53, 63, 0.07);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.mms-review-card:nth-child(8n+2) .mms-review-card__watermark { color: rgba(99, 102, 241, 0.09); }
.mms-review-card:nth-child(8n+3) .mms-review-card__watermark { color: rgba(14, 165, 233, 0.09); }
.mms-review-card:nth-child(8n+4) .mms-review-card__watermark { color: rgba(16, 185, 129, 0.09); }
.mms-review-card:nth-child(8n+5) .mms-review-card__watermark { color: rgba(225, 29, 72, 0.09); }
.mms-review-card:nth-child(8n+6) .mms-review-card__watermark { color: rgba(217, 119, 6, 0.09); }
.mms-review-card:nth-child(8n+7) .mms-review-card__watermark { color: rgba(124, 58, 237, 0.09); }
.mms-review-card:nth-child(8n+8) .mms-review-card__watermark { color: rgba(13, 148, 136, 0.09); }
.mms-review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 53, 63, 0.2);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 20px 48px rgba(236, 53, 63, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.08);
}
.mms-review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.mms-review-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mms-brand) 0%, #f97316 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(236, 53, 63, 0.35);
}
.mms-review-card:nth-child(8n+2) .mms-review-card__avatar {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.mms-review-card:nth-child(8n+3) .mms-review-card__avatar {
  background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.mms-review-card:nth-child(8n+4) .mms-review-card__avatar {
  background: linear-gradient(135deg, #10b981 0%, #4ade80 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.mms-review-card:nth-child(8n+5) .mms-review-card__avatar {
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}
.mms-review-card:nth-child(8n+6) .mms-review-card__avatar {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.mms-review-card:nth-child(8n+7) .mms-review-card__avatar {
  background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.mms-review-card:nth-child(8n+8) .mms-review-card__avatar {
  background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}
.mms-review-card__meta {
  flex: 1;
  min-width: 0;
}
.mms-review-card__author {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--mms-ink);
  letter-spacing: -0.01em;
}
.mms-review-card__stars {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.25);
}
.mms-review-card__quote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}

/* ---- Feature rows (alternating) ---- */
.mms-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--mms-border);
}
.mms-feature-row:last-child { border-bottom: 0; }
.mms-feature-row--alt { background: var(--mms-surface-alt); margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 992px) {
  .mms-feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0; }
  .mms-feature-row--reverse .mms-feature-row__media { order: 2; }
  .mms-feature-row--reverse .mms-feature-row__content { order: 1; }
}
.mms-feature-row__media img {
  width: 100%;
  border-radius: var(--mms-radius-lg);
  box-shadow: var(--mms-shadow);
}
.mms-feature-row__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
}
.mms-feature-row__text {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--mms-ink-muted);
}

/* ---- Split content blocks ---- */
.mms-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .mms-split { grid-template-columns: 1fr 1fr; }
  .mms-split--img-right .mms-split__media { order: 2; }
  .mms-split--compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(11rem, 28vw, 17.5rem));
    align-items: start;
    gap: 2rem 2.75rem;
  }
  .mms-split--img-right.mms-split--compact .mms-split__media { justify-self: end; }
  .mms-split--compact .mms-split__media { margin-inline: 0; }
}
.mms-split__media img {
  width: 100%;
  border-radius: var(--mms-radius-lg);
  box-shadow: var(--mms-shadow);
}
.mms-split--compact .mms-split__media img {
  aspect-ratio: 4 / 5;
  max-height: 20rem;
  object-fit: cover;
  object-position: center 15%;
}
.mms-split--compact .mms-split__media {
  max-width: 17.5rem;
  margin-inline: auto;
}
.mms-callout__links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.mms-callout__links li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.35rem 0 0;
}
.mms-callout__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mms-brand);
}
.mms-callout__links a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: none;
}
.mms-callout__links a:hover { text-decoration: underline; }

/* ---- Step flow (how-it-works sections) ---- */
.mms-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .mms-step-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.mms-step-card {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  padding: 1.45rem 1.35rem 1.35rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mms-step-card:hover {
  border-color: rgba(236, 53, 63, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 32px rgba(236, 53, 63, 0.08);
  transform: translateY(-2px);
}
.mms-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mms-brand-light) 0%, #fff 100%);
  border: 1px solid rgba(236, 53, 63, 0.15);
  color: var(--mms-brand);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1;
}
.mms-step-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mms-ink);
}
.mms-step-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--mms-ink-muted);
}

/* ---- Related link cards ---- */
.mms-related-links {
  max-width: 40rem;
  margin: 2.75rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--mms-border);
}
.mms-related-links__label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-related-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .mms-related-links__grid { grid-template-columns: repeat(2, 1fr); }
}
.mms-related-links__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius);
  text-decoration: none;
  color: var(--mms-ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.mms-related-links__card:hover {
  border-color: rgba(236, 53, 63, 0.35);
  box-shadow: 0 6px 18px rgba(236, 53, 63, 0.1);
  color: var(--mms-brand);
}
.mms-related-links__card svg {
  flex-shrink: 0;
  color: var(--mms-brand);
  opacity: 0.85;
}

/* More links — related resources (revamp) */
.mms-more-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .mms-more-links { grid-template-columns: repeat(2, 1fr); }
}
.mms-more-links__item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.35rem 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mms-more-links__item:hover {
  border-color: rgba(236, 53, 63, 0.28);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(236, 53, 63, 0.1);
  transform: translateY(-3px);
}
.mms-more-links__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  color: var(--mms-brand);
  background: linear-gradient(135deg, var(--mms-brand-light) 0%, #fff 100%);
  border: 1px solid rgba(236, 53, 63, 0.12);
}
.mms-more-links__copy strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--mms-ink);
}
.mms-more-links__copy span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mms-ink-muted);
}
.mms-more-links__cta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-more-links__item:hover .mms-more-links__cta {
  text-decoration: underline;
}
.mms-callout {
  padding: 1rem 1.15rem;
  background: var(--mms-brand-light);
  border-left: 4px solid var(--mms-brand);
  border-radius: 0 var(--mms-radius) var(--mms-radius) 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mms-ink);
}
.mms-callout--intro {
  background: var(--mms-accent-blue-light);
  border-left-color: var(--mms-accent-blue);
}
.mms-callout--intro strong {
  color: var(--mms-accent-blue-dark);
}
.mms-prose--intro > .mms-section__title {
  margin-bottom: 1rem;
  text-align: left;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.mms-prose--intro > p:last-of-type {
  margin-bottom: 0;
}
.mms-prose--intro > .mms-btn {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none !important;
}
.mms-prose a.mms-btn,
.mms-prose a.mms-btn:hover {
  text-decoration: none;
}

/* Intro split — uniform image frame height across Features & Residential pages */
.mms-split--intro {
  align-items: start;
}
.mms-split--intro .mms-split__media {
  position: relative;
  width: 100%;
  height: 15rem;
  min-height: 15rem;
  max-height: 15rem;
  overflow: hidden;
  border-radius: var(--mms-radius-lg);
}
.mms-split--intro .mms-split__media--framed {
  border: 1px solid var(--mms-border);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 6px rgba(255, 255, 255, 0.85);
  background: #fff;
  padding: 0.65rem;
  box-sizing: border-box;
}
.mms-split--intro .mms-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--mms-radius-lg) - 2px);
  box-shadow: none;
}
.mms-split--intro .mms-split__media:not(.mms-split__media--framed) img {
  box-shadow: var(--mms-shadow);
}
@media (min-width: 768px) {
  .mms-split--intro {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    min-height: 21rem;
  }
  .mms-split--intro .mms-split__media {
    height: 21rem;
    min-height: 21rem;
    max-height: 21rem;
    align-self: center;
  }
}

.mms-callout strong { display: block; margin-bottom: 0.25rem; }

/* ---- Icon cards ---- */
.mms-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .mms-icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mms-icon-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .mms-icon-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.mms-icon-card {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-left: 4px solid var(--mms-brand);
  border-radius: var(--mms-radius);
  padding: 1.25rem;
  height: 100%;
}
.mms-icon-card h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.mms-icon-card p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--mms-ink-muted); }
.mms-icon-card svg { color: var(--mms-brand); }

/* ---- Checklist grid ---- */
.mms-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
@media (min-width: 640px) { .mms-check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .mms-check-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mms-check-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.mms-check-grid li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mms-ink-muted);
}
.mms-check-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mms-brand);
}

/* ---- AI / feature cards ---- */
.mms-feat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .mms-feat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .mms-feat-cards--3 { grid-template-columns: repeat(3, 1fr); } }

.mms-feat-card {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mms-feat-card:hover { box-shadow: var(--mms-shadow); transform: translateY(-3px); }
.mms-feat-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mms-feat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mms-feat-card__body { padding: 1.25rem; }
.mms-feat-card__title { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 800; }
.mms-feat-card__text { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--mms-ink-muted); }
.mms-feat-card__text a { color: var(--mms-brand); font-weight: 600; text-decoration: none; }
.mms-feat-card__text a:hover { color: var(--mms-brand-dark); text-decoration: underline; }

/* ---- Features hub page cards ---- */
.mms-feat-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .mms-feat-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .mms-feat-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.mms-feat-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.mms-feat-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 53, 63, 0.22);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(236, 53, 63, 0.07);
}
.mms-feat-hub-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  text-decoration: none;
}
.mms-feat-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.mms-feat-hub-card:hover .mms-feat-hub-card__media img { transform: scale(1.05); }
.mms-feat-hub-card__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--mms-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(236, 53, 63, 0.35);
}
.mms-feat-hub-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.5rem;
}
.mms-feat-hub-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.mms-feat-hub-card__title a {
  color: var(--mms-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mms-feat-hub-card__title a:hover { color: var(--mms-brand); }
.mms-feat-hub-card__text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}
.mms-feat-hub-card__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mms-brand);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.mms-feat-hub-card__link:hover { color: var(--mms-brand-dark); }
#features-intro .mms-section__title { margin-bottom: 0; }
.mms-feat-card ul { margin: 0.75rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--mms-ink-muted); }

/* ---- App screenshot cards ---- */
.mms-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .mms-app-grid { grid-template-columns: repeat(2, 1fr); } }
.mms-app-card {
  border-radius: var(--mms-radius);
  overflow: hidden;
  border: 1px solid var(--mms-border);
  background: #fff;
}
.mms-app-card img { width: 100%; display: block; }
.mms-app-card figcaption {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  background: var(--mms-surface-alt);
}

/* ---- Client logos marquee ---- */
.mms-client-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.mms-client-marquee__track {
  display: flex;
  width: max-content;
  animation: mms-client-marquee 100s linear infinite;
  will-change: transform;
}
.mms-client-marquee:hover .mms-client-marquee__track {
  animation-play-state: paused;
}
.mms-client-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
}
.mms-client-marquee__group img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 56px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.mms-client-marquee__group img:hover {
  filter: none;
  opacity: 1;
}
@keyframes mms-client-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (min-width: 768px) {
  .mms-client-marquee__group img { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mms-client-marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .mms-client-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.5rem 2.5rem;
    padding: 0 1.25rem;
  }
  .mms-client-marquee__group {
    display: contents;
  }
  .mms-client-marquee__group[aria-hidden="true"] {
    display: none;
  }
}

/* ---- Helpful Resources (blog cards) ---- */
.mms-resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .mms-resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .mms-resource-grid { grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
}

.mms-resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.mms-resource-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 53, 63, 0.25);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(236, 53, 63, 0.08);
}
.mms-resource-card__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f6;
}
.mms-resource-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.mms-resource-card:hover .mms-resource-card__thumb::after { opacity: 1; }
.mms-resource-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.mms-resource-card:hover .mms-resource-card__thumb img { transform: scale(1.05); }

.mms-resource-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.15rem 1.2rem;
  gap: 0.55rem;
}
.mms-resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mms-ink-faint);
}
.mms-resource-card__date {
  color: var(--mms-brand);
}
.mms-resource-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  background: var(--mms-surface-alt);
  border: 1px solid var(--mms-border);
  border-radius: 4px;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--mms-ink-muted);
}
.mms-resource-card__stat svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.mms-resource-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mms-resource-card__title a {
  color: var(--mms-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mms-resource-card__title a:hover { color: var(--mms-brand); }
.mms-resource-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--mms-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mms-resource-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mms-brand);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.mms-resource-card__more span { transition: transform 0.2s ease; }
.mms-resource-card:hover .mms-resource-card__more { gap: 0.45rem; }
.mms-resource-card:hover .mms-resource-card__more span { transform: translateX(2px); }
.mms-resource-card__more:hover { color: var(--mms-brand-dark); }

/* ---- Split showcase (home) ---- */
.mms-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 992px) { .mms-showcase { grid-template-columns: 1fr 1fr; } }
.mms-showcase__img img { width: 100%; border-radius: var(--mms-radius-lg); }
.mms-showcase__list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}
.mms-showcase__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.mms-showcase__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mms-brand);
  font-weight: 800;
}

/* ---- Three-column perks ---- */
.mms-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
}
@media (min-width: 768px) { .mms-perks { grid-template-columns: repeat(3, 1fr); } }
.mms-perks ul { list-style: none; margin: 0; padding: 0; }
.mms-perks li {
  padding: 0.55rem 0.85rem 0.55rem 1.5rem;
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mms-ink-muted);
  border-radius: 8px;
  cursor: default;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.mms-perks li:hover,
.mms-perks li:focus-visible {
  background: var(--mms-brand-light);
  color: var(--mms-ink);
  box-shadow: 0 4px 14px rgba(236, 53, 63, 0.12);
  outline: none;
}
.mms-perks li::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--mms-brand);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.mms-perks li:hover::before,
.mms-perks li:focus-visible::before {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 0 4px rgba(236, 53, 63, 0.18);
}
.mms-perks__label { display: block; }
.mms-perks__tooltip {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: min(17.5rem, 88vw);
  padding: 0.7rem 0.9rem;
  background: var(--mms-ink);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  border-radius: 10px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}
.mms-perks__tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--mms-ink);
}
.mms-perks li:hover .mms-perks__tooltip,
.mms-perks li:focus-visible .mms-perks__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
@media (min-width: 768px) {
  .mms-perks ul:first-child .mms-perks__tooltip {
    left: 0;
    transform: translateX(0) translateY(8px) scale(0.97);
  }
  .mms-perks ul:first-child li:hover .mms-perks__tooltip,
  .mms-perks ul:first-child li:focus-visible .mms-perks__tooltip {
    transform: translateX(0) translateY(0) scale(1);
  }
  .mms-perks ul:first-child .mms-perks__tooltip::before {
    left: 1.25rem;
    transform: none;
  }
  .mms-perks ul:last-child .mms-perks__tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px) scale(0.97);
  }
  .mms-perks ul:last-child li:hover .mms-perks__tooltip,
  .mms-perks ul:last-child li:focus-visible .mms-perks__tooltip {
    transform: translateX(0) translateY(0) scale(1);
  }
  .mms-perks ul:last-child .mms-perks__tooltip::before {
    left: auto;
    right: 1.25rem;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mms-perks__tooltip {
    transition: opacity 0.12s ease, visibility 0.12s ease;
    transform: translateX(-50%);
  }
  .mms-perks li:hover .mms-perks__tooltip,
  .mms-perks li:focus-visible .mms-perks__tooltip {
    transform: translateX(-50%);
  }
}

/* ---- FAQ accordion ---- */
.mms-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}
.mms-faq__item {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mms-faq__item:hover {
  border-color: rgba(236, 53, 63, 0.18);
}
.mms-faq__item[open] {
  border-color: rgba(236, 53, 63, 0.28);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(236, 53, 63, 0.08);
}
.mms-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mms-ink);
  user-select: none;
}
.mms-faq__question::-webkit-details-marker { display: none; }
.mms-faq__question::marker { content: ''; }
.mms-faq__question-text {
  flex: 1;
  min-width: 0;
}
.mms-faq__chevron {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mms-brand-light) 0%, #fff 100%);
  border: 1px solid rgba(236, 53, 63, 0.15);
  color: var(--mms-brand);
  transition: transform 0.22s ease, background 0.2s ease;
}
.mms-faq__item[open] .mms-faq__chevron {
  transform: rotate(180deg);
  background: var(--mms-brand);
  border-color: var(--mms-brand);
  color: #fff;
}
.mms-faq__answer {
  padding: 0 1.25rem 1.15rem;
  border-top: 1px solid var(--mms-border);
}
.mms-faq__answer p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}

/* ---- More Security Solutions (residential sub-pages) ---- */
.mms-more-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .mms-more-solutions-grid { grid-template-columns: repeat(3, 1fr); }
}
.mms-more-solutions-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mms-more-solutions-card:hover {
  border-color: rgba(236, 53, 63, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(236, 53, 63, 0.08);
  transform: translateY(-2px);
}
.mms-more-solutions-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.65rem;
  color: var(--mms-brand);
  background: linear-gradient(135deg, var(--mms-brand-light) 0%, #fff 100%);
  border: 1px solid rgba(236, 53, 63, 0.12);
}
.mms-more-solutions-card__icon svg {
  display: block;
  flex-shrink: 0;
}
.mms-more-solutions-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mms-ink);
}
.mms-more-solutions-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}
.mms-more-solutions-card__text a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-more-solutions-card__text a:hover {
  color: var(--mms-brand-dark);
}

/* ---- CTA banner ---- */
.mms-cta-banner {
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.mms-cta-banner--parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  align-items: center;
}
.mms-cta-banner__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  bottom: -30%;
  z-index: 0;
  background-image: url('https://www.millenniumsecurityservices.ca/wp-content/themes/mms/assets/images/camera-dome-background-1920x391.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.mms-cta-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(5, 5, 8, 0.78) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(236, 53, 63, 0.65) 100%);
}
.mms-cta-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
}
.mms-cta-banner__text {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  max-width: 52rem;
}
.mms-cta-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mms-cta-banner__text a:hover { color: var(--mms-brand-light); }
.mms-cta-banner--parallax .mms-btn--white {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.mms-cta-banner--parallax .mms-btn--white:hover {
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .mms-cta-banner__bg {
    top: 0;
    bottom: 0;
    transform: none !important;
  }
}

/* ---- Footer ---- */
.mms-footer {
  background: var(--mms-surface-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
}
.mms-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .mms-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mms-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.mms-footer__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.mms-footer__links { list-style: none; margin: 0; padding: 0; }
.mms-footer__links a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
}
.mms-footer__links a:hover { color: var(--mms-brand); }
.mms-footer__address { font-style: normal; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
.mms-footer__address a { color: #fff; text-decoration: none; }
.mms-footer__text { margin: 0; font-size: 0.88rem; line-height: 1.6; }
.mms-footer__social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.mms-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.mms-footer__social a:hover { background: var(--mms-brand); }
.mms-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}
.mms-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.mms-footer__bar p { margin: 0; }
.mms-footer__phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.mms-footer__phone:hover { color: var(--mms-brand); }

.mms-v2 a:not(.mms-btn):not(.mms-svc-card__media) { transition: color 0.15s ease; }

.mms-v2 .mms-hero-form,
.mms-v2 .mms-hero-form input,
.mms-v2 .mms-hero-form select,
.mms-v2 .mms-hero-form textarea,
.mms-v2 .mms-hero-form .mms-hero-form__title,
.mms-v2 .mms-hero-form .mms-hero-form__subtitle {
  font-family: var(--mms-font);
}

body.mms-mobile-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  #wireless-benefits .mms-ul-grid li::before,
  #wireless-benefits .mms-ul-grid li::after,
  #remote-actions .mms-ul-grid li::before,
  #remote-actions .mms-ul-grid li::after,
  #remote-linked-features .mms-ul-grid li::before,
  #remote-linked-features .mms-ul-grid li::after,
  #biz-video-connect .mms-ul-grid li::before,
  #biz-video-connect .mms-ul-grid li::after,
  #biz-video-benefits .mms-ul-grid li::before,
  #biz-video-benefits .mms-ul-grid li::after,
  #biz-video-other-features .mms-ul-grid li::before,
  #biz-video-other-features .mms-ul-grid li::after,
  #biz-video-industries .mms-ul-grid li::before,
  #biz-video-industries .mms-ul-grid li::after,
  #alerts-triggers .mms-ul-grid li::before,
  #alerts-triggers .mms-ul-grid li::after,
  #power-causes .mms-ul-grid li::before,
  #power-causes .mms-ul-grid li::after,
  #crash-detection .mms-ul-grid li::before,
  #crash-detection .mms-ul-grid li::after {
    transition: none;
  }
}/* ============================================================
   Cam hero template (fixed height + compact form)
   Used by tpl-camera-installation.php, tpl-contact.php, etc.
   ============================================================ */
.mms-hero--cam {
  height: clamp(420px, 58vh, 640px);
  min-height: clamp(420px, 58vh, 640px);
  max-height: clamp(420px, 58vh, 640px);
}
.mms-hero--cam .mms-hero__inner {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.mms-hero--cam.mms-hero--has-form .mms-hero__inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form {
  margin-top: 0;
  margin-bottom: 0;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__copy {
  min-width: 0;
  align-self: center;
}
.mms-hero--cam.mms-hero--has-form .mms-breadcrumbs {
  margin-bottom: 0.55rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}
.mms-hero--cam.mms-hero--has-form .mms-hero__subtitle,
.mms-hero--cam.mms-hero--has-form .mms-hero__subtitle p {
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__actions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero__form-col {
  height: 100%;
  max-height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: stretch;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .mms-hero--cam.mms-hero--has-form .mms-hero__form-col {
    justify-content: flex-end;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(256px, 322px);
    gap: 1.75rem;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero-form--compact {
    margin-right: calc(1.35rem + 23px);
    margin-top: auto;
    margin-bottom: auto;
  }
}

@media (max-width: 991px) {
  .mms-hero--cam {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    align-items: stretch;
  }
  .mms-hero--cam .mms-hero__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__inner {
    height: auto;
    min-height: 0;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__grid {
    gap: 1.25rem;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__form-col {
    height: auto;
    max-height: none;
    align-self: stretch;
    justify-content: stretch;
    width: 100%;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero-form--compact {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__title {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
    overflow-wrap: anywhere;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__subtitle,
  .mms-hero--cam.mms-hero--has-form .mms-hero__subtitle p {
    overflow-wrap: anywhere;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    gap: 0.55rem;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero__actions .mms-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero-form.mms-hero-form--compact {
    padding: 0.85rem 1rem 1rem;
    margin-top: 0.25rem;
  }
  .mms-hero--cam.mms-hero--has-form .mms-hero-form--compact textarea {
    min-height: 3rem;
    max-height: 4rem;
    resize: vertical;
  }
}

/* Hero include form — compact card, vertically centred in the fixed band */
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem 1rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__head {
  margin-bottom: 0.48rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__title {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  line-height: 1.22;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__subtitle {
  font-size: 0.76rem;
  line-height: 1.35;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__row,
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .wpcf7-form > p {
  margin-bottom: 0.4rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__label,
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .wpcf7-form > p > label {
  margin-bottom: 0.12rem;
  font-size: 0.64rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact input[type="text"],
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact input[type="email"],
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact input[type="tel"],
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact select,
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact textarea {
  padding: 0.38rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact textarea {
  min-height: 2.75rem;
  max-height: 3.5rem;
  resize: none;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__actions,
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .wpcf7-form > p:last-of-type {
  margin-top: 0.35rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact input[type="submit"],
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .wpcf7-submit {
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
}
.mms-hero--cam.mms-hero--has-form .mms-hero-form--compact .mms-hero-form__legal {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  line-height: 1.28;
}
@media (min-width: 992px) {
  .mms-hero--has-form:not(.mms-hero--cam) .mms-hero__form-col {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
  }
  .mms-hero--has-form:not(.mms-hero--cam) .mms-hero-form--compact {
    padding: 0.65rem 1rem 0.7rem;
    max-width: 100%;
  }
}

.mms-hero-form--compact {
  max-width: 100%;
  padding: 0.75rem 1.15rem 0.85rem;
  border-radius: 12px;
}
.mms-hero-form--compact .mms-hero-form__head {
  margin-bottom: 0.65rem;
}
.mms-hero-form--compact .mms-hero-form__title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.mms-hero-form--compact .mms-hero-form__subtitle {
  font-size: 0.82rem;
  line-height: 1.4;
}
.mms-hero-form--compact .mms-hero-form__row,
.mms-hero-form--compact .wpcf7-form > p {
  margin-bottom: 0.55rem;
}
.mms-hero-form--compact .mms-hero-form__label,
.mms-hero-form--compact .wpcf7-form > p > label {
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
}
.mms-hero-form--compact input[type="text"],
.mms-hero-form--compact input[type="email"],
.mms-hero-form--compact input[type="tel"],
.mms-hero-form--compact select,
.mms-hero-form--compact textarea {
  padding: 0.48rem 0.65rem;
  font-size: 0.88rem;
  min-height: 0;
}
.mms-hero-form--compact textarea {
  min-height: 3.25rem;
  max-height: 4.5rem;
  resize: vertical;
}
.mms-hero-form--compact .mms-hero-form__actions,
.mms-hero-form--compact .wpcf7-form > p:last-of-type {
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.mms-hero-form--compact input[type="submit"],
.mms-hero-form--compact .wpcf7-submit {
  width: 100%;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}
.mms-hero-form--compact .mms-hero-form__legal {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
}
.mms-hero-form--compact .mms-hero-form__preview input[disabled],
.mms-hero-form--compact .mms-hero-form__preview textarea[disabled] {
  opacity: 1;
  cursor: default;
  background: #fff;
}

.mms-hero--entry .mms-hero__image {
  background-size: cover;
  background-position: center;
}

.mms-cam-install__eyeball img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mms-cam-install__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0;
}
.mms-cam-install__chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mms-text);
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 28, 48, 0.06);
}

.mms-cam-install__coverage {
  padding: 3.25rem 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #f3e4b8 0%, #e6cc7a 48%, #d4af37 100%);
  border-top: 1px solid rgba(160, 120, 30, 0.25);
  border-bottom: 1px solid rgba(120, 90, 20, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.mms-cam-install__coverage-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.mms-cam-install__coverage-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c4a1a;
}
.mms-cam-install__coverage-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  color: #2a2210;
}
.mms-cam-install__coverage-lead {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  color: #2a2210;
}
.mms-cam-install__coverage-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}
.mms-cam-install__coverage-list li {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2a2210;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(120, 90, 20, 0.18);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(80, 60, 10, 0.08);
}
.mms-cam-install__coverage-outro {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3d3218;
}

.mms-cam-install__bullets {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.mms-cam-install__bullets li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-bottom: 1px solid var(--mms-border);
  line-height: 1.55;
}
.mms-cam-install__bullets li:last-child { border-bottom: 0; }
.mms-cam-install__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mms-brand);
}

.mms-cam-install__tech-photo img,
.mms-cam-install__night-photo img {
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 20px 50px rgba(15, 28, 48, 0.14);
}

.mms-cam-install__types-split {
  margin-bottom: 2.5rem;
}
.mms-cam-install__type-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .mms-cam-install__type-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.mms-cam-install__type-group {
  padding: 1.35rem 1.25rem 1.15rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 4px 16px rgba(15, 28, 48, 0.06);
}
.mms-cam-install__type-group-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mms-brand);
  border-bottom: 2px solid rgba(236, 53, 63, 0.15);
}
.mms-cam-install__types-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.55;
}
.mms-cam-install__types-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mms-border);
}
.mms-cam-install__types-list li:last-child { border-bottom: 0; }
.mms-cam-install__types-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mms-brand);
}
.mms-cam-install__types-list a {
  color: var(--mms-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 53, 63, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mms-cam-install__types-list a:hover {
  color: var(--mms-brand);
  border-bottom-color: var(--mms-brand);
}
.mms-cam-install__types-note {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--mms-text-muted);
}
.mms-cam-install__types-note a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-cam-install__types-cta {
  text-align: center;
}

.mms-cam-install__certified {
  padding: 3.5rem 0;
  background:
    linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, rgba(52, 199, 89, 0) 55%),
    linear-gradient(180deg, #0f1c30 0%, #152a45 100%);
  color: #fff;
}
.mms-cam-install__certified-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.mms-cam-install__certified-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fe28a;
}
.mms-cam-install__certified-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
}
.mms-cam-install__certified-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.mms-cam-install__brands .mms-section__title,
.mms-cam-install__brands .mms-section__subtitle {
  color: rgba(255, 255, 255, 0.92);
}
.mms-cam-install__brands .mms-section__subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.mms-cam-install__contact-inner {
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}
.mms-cam-install__contact-inner p {
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.7;
}
.mms-cam-install__contact .mms-prose a {
  color: var(--mms-brand);
  font-weight: 600;
}
.mms-cam-install__contact .mms-prose--intro > .mms-section__title {
  text-align: center;
}

/* ============================================================
   Resources archive (category.php)
   ============================================================ */
.mms-resources-archive .mms-section__head {
  margin-bottom: 2.25rem;
}
.mms-resources-pagination {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
}
.mms-resources-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mms-resources-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mms-ink-muted);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mms-resources-pagination .page-numbers:hover,
.mms-resources-pagination .page-numbers:focus-visible {
  color: var(--mms-brand);
  border-color: rgba(236, 53, 63, 0.35);
}
.mms-resources-pagination .page-numbers.current {
  color: #fff;
  background: var(--mms-brand);
  border-color: var(--mms-brand);
}
.mms-resources-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
}
.mms-resources-empty {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}
.mms-resources-empty p {
  margin: 0 0 1.25rem;
  color: var(--mms-ink-muted);
}

/* ============================================================
   Contact page (tpl-contact.php)
   ============================================================ */
.mms-contact-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .mms-contact-page__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}
.mms-contact-page__aside .mms-prose a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-contact-page__aside .mms-callout a {
  color: var(--mms-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mms-contact-page__details {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  background: #fff;
  overflow: hidden;
}
.mms-contact-page__details li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--mms-border);
}
.mms-contact-page__details li:last-child { border-bottom: 0; }
.mms-contact-page__details-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: rgba(236, 53, 63, 0.08);
  color: var(--mms-brand);
}
.mms-contact-page__details-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mms-ink-faint);
}
.mms-contact-page__details a {
  color: var(--mms-ink);
  font-weight: 600;
  text-decoration: none;
}
.mms-contact-page__details a:hover { color: var(--mms-brand); }
.mms-contact-page__details address,
.mms-contact-page__details p {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mms-ink-muted);
}
.mms-contact-page__details-note {
  margin-top: 0.45rem !important;
  font-size: 0.82rem !important;
  font-style: italic;
}

.mms-contact-page__form-wrap {
  position: relative;
}
.mms-contact-page__form-card.mms-hero-form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.65rem 1.85rem 1.35rem;
  border: 1px solid var(--mms-border);
  box-shadow:
    0 8px 28px rgba(15, 28, 48, 0.08),
    0 2px 8px rgba(15, 28, 48, 0.04);
}
.mms-contact-page__form-card .mms-hero-form__head {
  text-align: left;
  margin-bottom: 1.1rem;
}
.mms-contact-form textarea {
  height: 130px;
  min-height: 120px;
  max-height: 280px;
}
.mms-contact-page__form-placeholder {
  margin: 0;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mms-ink-muted);
  background: var(--mms-surface-alt);
  border: 1px dashed var(--mms-border);
  border-radius: var(--mms-radius);
}
.mms-form-panel__placeholder {
  margin: 0;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mms-ink-muted);
  background: var(--mms-surface-alt);
  border: 1px dashed var(--mms-border);
  border-radius: var(--mms-radius);
}

.mms-contact-page__map-section .mms-section__head {
  margin-bottom: 1.5rem;
}
.mms-contact-page__map {
  border-radius: var(--mms-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mms-border);
  box-shadow: 0 12px 32px rgba(15, 28, 48, 0.08);
  background: #eef1f5;
}
.mms-contact-page__map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}
@media (min-width: 768px) {
  .mms-contact-page__map iframe {
    min-height: 420px;
  }
}

/* ============================================================
   Privacy policy page (tpl-privacy.php)
   ============================================================ */
.mms-privacy-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .mms-privacy-page__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
  }
}
.mms-privacy-page__nav {
  padding: 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 4px 16px rgba(15, 28, 48, 0.05);
}
@media (min-width: 992px) {
  .mms-privacy-page__nav {
    position: sticky;
    top: 1.5rem;
  }
}
.mms-privacy-page__nav-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-privacy-page__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mms-privacy-page__nav li {
  border-bottom: 1px solid var(--mms-border);
}
.mms-privacy-page__nav li:last-child { border-bottom: 0; }
.mms-privacy-page__nav a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mms-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mms-privacy-page__nav a:hover {
  color: var(--mms-brand);
}

.mms-privacy-page__content {
  max-width: 46rem;
}
.mms-privacy-page__lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--mms-ink);
}
.mms-privacy-page__content section {
  scroll-margin-top: 1.5rem;
  padding-top: 0.25rem;
}
.mms-privacy-page__content h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--mms-ink);
}
.mms-privacy-page__content section:first-of-type h2 {
  margin-top: 1.25rem;
}
.mms-privacy-page__content p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--mms-ink-muted);
}
.mms-privacy-page__content a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-privacy-page__contact-box {
  margin: 1rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--mms-surface-alt);
  border: 1px solid var(--mms-border);
  border-left: 4px solid var(--mms-brand);
  border-radius: var(--mms-radius);
}
.mms-privacy-page__contact-box p {
  margin: 0 0 0.75rem;
}
.mms-privacy-page__contact-box p:last-child {
  margin-bottom: 0;
}
.mms-privacy-page__updated {
  margin-top: 2rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mms-border);
  font-size: 0.92rem;
  color: var(--mms-ink-faint);
}
.mms-privacy-page__editor-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--mms-border);
}

/* ============================================================
   Appointment page (tpl-appointment.php)
   ============================================================ */
.mms-appointment-page__main .mms-section__head {
  margin-bottom: 2rem;
}
.mms-appointment-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .mms-appointment-page__layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 2.5rem;
  }
}
.mms-appointment-page__help,
.mms-appointment-page__benefits {
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 4px 16px rgba(15, 28, 48, 0.05);
}
.mms-appointment-page__benefits {
  margin-top: 1rem;
}
.mms-appointment-page__help-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-appointment-page__steps {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
  color: var(--mms-ink-muted);
}
.mms-appointment-page__steps li {
  margin-bottom: 0.55rem;
}
.mms-appointment-page__steps li:last-child {
  margin-bottom: 0;
}
.mms-appointment-page__aside .mms-callout {
  margin-top: 1rem;
}
.mms-appointment-page__aside .mms-callout a {
  color: var(--mms-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-appointment-page__benefits ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
  color: var(--mms-ink-muted);
}
.mms-appointment-page__benefits li {
  margin-bottom: 0.35rem;
}
.mms-appointment-page__contact-link {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mms-ink-muted);
}
.mms-appointment-page__contact-link a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mms-appointment-page__form-card.mms-hero-form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.65rem 1.85rem 1.35rem;
  border: 1px solid var(--mms-border);
  box-shadow:
    0 8px 28px rgba(15, 28, 48, 0.08),
    0 2px 8px rgba(15, 28, 48, 0.04);
}
.mms-appointment-page__form-card .mms-hero-form__head {
  text-align: left;
  margin-bottom: 1.1rem;
}
.mms-appointment-form textarea {
  height: 120px;
  min-height: 110px;
  max-height: 240px;
}
.mms-appointment-form select.wpcf7-form-control {
  cursor: pointer;
}

.mms-appointment-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.mms-appointment-page__chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mms-text);
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 28, 48, 0.06);
}
.mms-appointment-page__areas-note {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--mms-ink-muted);
}

@media (max-width: 991px) {
  .mms-cam-install__types .mms-split__media {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   Entry templates (page.php, single.php)
   ============================================================ */
.mms-entry-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 992px) {
  .mms-entry-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 3rem;
  }
}

.mms-entry-page__main {
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 32px rgba(15, 28, 48, 0.06);
}
@media (min-width: 768px) {
  .mms-entry-page__main {
    padding: 2.25rem 2.35rem 2.5rem;
  }
}
.mms-entry-page__main--solo {
  max-width: 52rem;
  margin: 0 auto;
}

.mms-entry-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mms-border);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mms-ink-faint);
}
.mms-entry-page__meta-divider {
  opacity: 0.55;
}
.mms-entry-page__categories a {
  color: var(--mms-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-entry-page__categories a:hover {
  color: var(--mms-brand-dark);
}

.mms-entry-page__featured {
  margin: 0 0 1.75rem;
  border-radius: var(--mms-radius-md);
  overflow: hidden;
  border: 1px solid var(--mms-border);
}
.mms-entry-page__featured img {
  display: block;
  width: 100%;
  height: auto;
}

.mms-entry-page__share {
  margin: 0 0 1.25rem;
}

.mms-prose--entry {
  max-width: none;
  display: flow-root;
}
.mms-prose--entry > *:first-child {
  margin-top: 0;
}
.mms-prose--entry h2,
.mms-prose--entry h3,
.mms-prose--entry h4 {
  margin: 2rem 0 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--mms-ink);
}
.mms-prose--entry h2 { font-size: 1.65rem; }
.mms-prose--entry h3 { font-size: 1.35rem; }
.mms-prose--entry h4 { font-size: 1.15rem; font-weight: 700; }
.mms-prose--entry h5,
.mms-prose--entry h6 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mms-ink);
}
.mms-prose--entry p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--mms-ink-muted);
  overflow-wrap: break-word;
}
.mms-prose--entry ul,
.mms-prose--entry ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--mms-ink-muted);
  overflow-wrap: break-word;
}
.mms-prose--entry li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
.mms-prose--entry li > ul,
.mms-prose--entry li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.mms-prose--entry a {
  color: var(--mms-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mms-prose--entry a:hover {
  color: var(--mms-brand-dark);
}
.mms-prose--entry strong {
  color: var(--mms-ink);
  font-weight: 700;
}
.mms-prose--entry blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mms-brand);
  background: var(--mms-brand-light);
  border-radius: 0 var(--mms-radius-sm) var(--mms-radius-sm) 0;
  color: var(--mms-ink-muted);
  font-style: italic;
}
.mms-prose--entry blockquote p:last-child {
  margin-bottom: 0;
}
.mms-prose--entry hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--mms-border);
}
.mms-prose--entry img,
.mms-prose--entry figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mms-radius-sm);
}
.mms-prose--entry figure {
  margin: 1.5rem 0;
}
.mms-prose--entry figcaption,
.mms-prose--entry .wp-element-caption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mms-ink-faint);
  text-align: center;
}

/* WordPress classic + block editor image alignment */
.mms-prose--entry img.alignleft,
.mms-prose--entry .alignleft > img,
.mms-prose--entry figure.alignleft,
.mms-prose--entry .wp-block-image.alignleft {
  float: left;
  margin: 0.35rem 1.25rem 1rem 0;
}

.mms-prose--entry img.alignright,
.mms-prose--entry .alignright > img,
.mms-prose--entry figure.alignright,
.mms-prose--entry .wp-block-image.alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.25rem;
}

.mms-prose--entry img.alignnone,
.mms-prose--entry .alignnone > img,
.mms-prose--entry figure.alignnone,
.mms-prose--entry .wp-block-image.alignnone {
  display: block;
  float: none;
  clear: both;
  margin: 1.25rem 0;
  max-width: 100%;
  height: auto;
}

.mms-prose--entry img.aligncenter,
.mms-prose--entry .aligncenter > img,
.mms-prose--entry figure.aligncenter,
.mms-prose--entry .wp-block-image.aligncenter {
  display: block;
  float: none;
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.mms-prose--entry figure.aligncenter,
.mms-prose--entry figure.alignnone {
  text-align: center;
}

.mms-prose--entry img.alignleft,
.mms-prose--entry img.alignright,
.mms-prose--entry .alignleft img,
.mms-prose--entry .alignright img {
  width: auto;
  max-width: min(100%, 22rem);
}

@media (max-width: 767px) {
  .mms-prose--entry img.alignleft,
  .mms-prose--entry img.alignright,
  .mms-prose--entry .alignleft,
  .mms-prose--entry .alignright,
  .mms-prose--entry figure.alignleft,
  .mms-prose--entry figure.alignright,
  .mms-prose--entry .wp-block-image.alignleft,
  .mms-prose--entry .wp-block-image.alignright {
    float: none;
    display: block;
    margin: 0 0 1rem;
    max-width: 100%;
    width: auto;
  }
}

.mms-prose--entry .alignwide,
.mms-prose--entry .alignfull {
  max-width: none;
}
.mms-prose--entry table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.mms-prose--entry th,
.mms-prose--entry td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--mms-border);
  text-align: left;
  vertical-align: top;
}
.mms-prose--entry th {
  background: var(--mms-surface);
  font-weight: 700;
  color: var(--mms-ink);
}
.mms-prose--entry pre,
.mms-prose--entry code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
.mms-prose--entry pre {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: var(--mms-surface);
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-sm);
}
.mms-prose--entry :not(pre) > code {
  padding: 0.12rem 0.35rem;
  background: var(--mms-surface);
  border: 1px solid var(--mms-border);
  border-radius: 4px;
}
.mms-prose--entry .wp-block-button__link,
.mms-prose--entry a.mms-btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--mms-brand);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.mms-prose--entry .wp-block-button__link:hover {
  background: var(--mms-brand-dark);
  color: #fff !important;
}
.mms-prose--entry .wp-block-buttons {
  margin: 1.25rem 0;
}
.mms-prose--entry iframe {
  max-width: 100%;
}

.mms-entry-page__pages {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mms-border);
}
.mms-entry-page__pages-label {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mms-ink);
}
.mms-entry-page__page-num {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--mms-border);
  border-radius: 999px;
}
.mms-entry-page__page-num a {
  text-decoration: none;
}

.mms-entry-page__post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mms-border);
}
@media (min-width: 640px) {
  .mms-entry-page__post-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.mms-entry-page__post-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  background: var(--mms-surface);
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mms-entry-page__post-link:hover {
  border-color: rgba(236, 53, 63, 0.35);
  box-shadow: 0 4px 16px rgba(15, 28, 48, 0.06);
}
.mms-entry-page__post-link--next {
  text-align: right;
}
.mms-entry-page__post-link-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mms-brand);
}
.mms-entry-page__post-link-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mms-ink);
}

.mms-entry-sidebar__form {
  max-width: none;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 6px 24px rgba(15, 28, 48, 0.06);
}
.mms-entry-sidebar__form .mms-hero-form__head {
  text-align: left;
  margin-bottom: 1rem;
}
.mms-entry-sidebar__form .mms-hero-form__title {
  font-size: 1.15rem;
}
.mms-entry-sidebar__recent {
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 4px 18px rgba(15, 28, 48, 0.05);
}
.mms-entry-sidebar__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mms-ink);
  text-align: center;
}
.mms-entry-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mms-entry-sidebar__list li {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mms-border);
}
.mms-entry-sidebar__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mms-entry-sidebar__list a {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mms-ink-muted);
  text-decoration: none;
}
.mms-entry-sidebar__list a:hover {
  color: var(--mms-brand);
}

/* ---- 404 page (index.php) ---- */
.mms-404-page {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mms-404-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .mms-404-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
}
@media (min-width: 1024px) {
  .mms-404-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.mms-404-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: var(--mms-surface);
  border: 1px solid var(--mms-border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mms-404-card:hover {
  border-color: rgba(236, 53, 63, 0.35);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.mms-404-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--mms-brand-light, #fde8ea);
  color: var(--mms-brand);
}
.mms-404-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.mms-404-card__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--mms-ink);
}
.mms-404-card__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mms-ink-muted);
}
.mms-404-card__arrow {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--mms-ink-faint, #737373);
  transition: color 0.2s ease, transform 0.2s ease;
}
.mms-404-card:hover .mms-404-card__arrow {
  color: var(--mms-brand);
  transform: translateX(3px);
}
.mms-404-help {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--mms-bg-alt, #f7f7f8);
  border: 1px solid var(--mms-border);
  border-radius: 14px;
}
.mms-404-help__label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mms-ink-muted);
}
.mms-404-help__grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .mms-404-help__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.mms-404-help__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--mms-surface);
  border: 1px solid var(--mms-border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mms-404-help__link:hover {
  border-color: rgba(236, 53, 63, 0.35);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.06);
  color: inherit;
  text-decoration: none;
}
.mms-404-help__link strong {
  font-size: 0.95rem;
  color: var(--mms-ink);
}
.mms-404-help__link span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--mms-ink-muted);
}

/* ---- Thank you page (tpl-thank-you.php) ---- */
.mms-thank-you-page {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mms-thank-you-page__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .mms-thank-you-page__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 2.5rem;
  }
}
.mms-thank-you-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--mms-brand-light, #fde8ea);
  color: var(--mms-brand);
}
.mms-thank-you-page__copy {
  max-width: 42rem;
}
.mms-thank-you-page__copy p:last-child {
  margin-bottom: 0;
}
.mms-thank-you-page__next {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--mms-border);
}
.mms-thank-you-page__next-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mms-ink);
}
.mms-thank-you-page__steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--mms-ink-muted);
}
.mms-thank-you-page__steps li {
  margin-bottom: 0.65rem;
  line-height: 1.55;
}
.mms-thank-you-page__steps li:last-child {
  margin-bottom: 0;
}
.mms-thank-you-page__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mms-thank-you-page__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mms-thank-you-page__explore-head {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mms-border);
}

/* WP Customer Reviews plugin — /reviews/ page (match home .mms-review-card grid) */
.mms-reviews-page__content {
  max-width: none;
  width: 100%;
}
.mms-reviews-page__content > h2 {
  text-align: center;
  margin: 0 0 0.75rem;
}
.mms-reviews-page__intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  color: var(--mms-ink-muted);
}
body.mms-v2 .mms-reviews-page .wpcr3_in_content,
body.mms-v2 .mms-reviews-page .wpcr3_reviews_holder,
body.mms-v2 .mms-reviews-page .wpcr3_review_item {
  display: block;
  max-width: none;
  width: 100%;
}

/* Submit / aggregate chrome */
body.mms-v2 .mms-reviews-page .wpcr3_item_name,
body.mms-v2 .mms-reviews-page .wpcr3_hide[itemprop] {
  display: none !important;
}
body.mms-v2 .mms-reviews-page div.wpcr3_dotline,
body.mms-v2 .mms-reviews-page div.wpcr3_review div.wpcr3_dotline {
  display: none !important;
}
body.mms-v2 .mms-reviews-page div.wpcr3_aggregateRating {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 2rem !important;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: var(--mms-ink-muted);
}
.mms-reviews-page__grid {
  width: 100%;
  margin-bottom: 2rem;
}
body.mms-v2 .mms-reviews-page .wpcr3_item.wpcr3_business > .mms-reviews-page__grid {
  display: grid;
}
.mms-reviews-page .wpcr3_aggregateRating_ratingValue {
  display: inline-flex !important;
  align-items: center;
}
.mms-reviews-page .wpcr3_respond_3 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.mms-reviews-page .wpcr3_respond_3 .wpcr3_button_1,
.mms-reviews-page .wpcr3_submit_btn,
.mms-reviews-page .wpcr3_cancel_btn,
.mms-reviews-page .wpcr3_show_btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem !important;
  border: 0 !important;
  border-radius: var(--mms-radius) !important;
  background: var(--mms-brand) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(236, 53, 63, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mms-reviews-page .wpcr3_respond_3 .wpcr3_button_1:hover,
.mms-reviews-page .wpcr3_submit_btn:hover,
.mms-reviews-page .wpcr3_show_btn:hover {
  background: var(--mms-brand-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.mms-reviews-page .wpcr3_cancel_btn {
  background: #fff !important;
  color: var(--mms-ink) !important;
  border: 1px solid var(--mms-border) !important;
  box-shadow: none;
}
.mms-reviews-page .wpcr3_power {
  margin-top: 1rem;
  padding-top: 1rem !important;
  border-top: 1px solid var(--mms-border);
  text-align: center;
  font-size: 0.75rem !important;
  color: var(--mms-ink-muted);
}

/* Review form (unchanged plugin markup, revamp form styling) */
.mms-reviews-page .wpcr3_respond_2 {
  position: relative;
  display: none;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.mms-reviews-page .wpcr3_div_2 {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}
.mms-reviews-page .wpcr3_table_2,
.mms-reviews-page .wpcr3_table_2 td {
  width: 100% !important;
  border: 0 !important;
}
.mms-reviews-page .wpcr3_table_2 td {
  display: block;
  padding: 0 0 0.85rem;
}
.mms-reviews-page .wpcr3_leave_text {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mms-ink);
}
.mms-reviews-page .wpcr3_respond_2 label {
  display: block !important;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mms-ink);
}
.mms-reviews-page .wpcr3_respond_2 input[type="text"],
.mms-reviews-page .wpcr3_respond_2 textarea {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--mms-border);
  border-radius: var(--mms-radius);
  font: inherit;
  color: var(--mms-ink);
  background: #fff;
}
.mms-reviews-page .wpcr3_respond_2 textarea {
  min-height: 8rem !important;
  resize: vertical;
}
.mms-reviews-page .wpcr3_check_confirm {
  margin: 0.5rem 0 1rem;
  font-size: 0.88rem;
}
.mms-reviews-page .wpcr3_pagination {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  text-align: center;
}
.mms-reviews-page .wpcr3_pagination .wpcr3_a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  margin: 0 0.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--mms-radius);
  background: var(--mms-brand);
  color: #fff;
  text-decoration: none;
}
.mms-reviews-page .wpcr3_pagination .wpcr3_a.wpcr3_current,
.mms-reviews-page .wpcr3_pagination .wpcr3_a:hover {
  background: var(--mms-brand-dark);
}
.mms-reviews-page .wpcr3_pagination .wpcr3_a.wpcr3_disabled,
.mms-reviews-page .wpcr3_pagination .wpcr3_a.wpcr3_disabled:hover {
  background: #ddd;
  color: #fff;
  cursor: default;
}
.mms-reviews-page .wpcr3_fakehide {
  position: absolute !important;
  top: 0 !important;
  left: -999em !important;
  height: 1px !important;
  width: 1px !important;
}
.mms-reviews-page .wpcr3_status_msg,
.mms-reviews-page .wpcr3_status_msg div {
  color: #c00;
  font-weight: 700;
}
.mms-reviews-page div.wpcr3_rating_style1_base {
  background: url(/wp-content/plugins/wp-customer-reviews/css/newstars.png) 0 0 no-repeat;
  width: 85px;
  height: 17px;
}
.mms-reviews-page div.wpcr3_rating_style1_average {
  background: url(/wp-content/plugins/wp-customer-reviews/css/newstars.png) 0 -15px no-repeat;
  text-indent: -9999px;
  height: 17px;
}
.mms-reviews-page div.wpcr3_rating_style1,
.mms-reviews-page div.wpcr3_rating_style1_status,
.mms-reviews-page div.wpcr3_rating_style1_score {
  display: inline-block;
  line-height: 17px;
}
.mms-reviews-page div.wpcr3_rating_style1_score {
  background: url(/wp-content/plugins/wp-customer-reviews/css/newstars.png) 0 0 no-repeat;
  width: 85px;
  height: 17px;
  position: relative;
}
.mms-reviews-page div.wpcr3_rating_style1_score div {
  position: absolute;
  height: 17px;
  text-indent: -9999px;
  cursor: pointer;
}
.mms-reviews-page div.wpcr3_rating_style1_score1 { width: 20%; z-index: 55; }
.mms-reviews-page div.wpcr3_rating_style1_score2 { width: 40%; z-index: 54; }
.mms-reviews-page div.wpcr3_rating_style1_score3 { width: 60%; z-index: 53; }
.mms-reviews-page div.wpcr3_rating_style1_score4 { width: 80%; z-index: 52; }
.mms-reviews-page div.wpcr3_rating_style1_score5 { width: 100%; z-index: 51; }
.mms-reviews-page blockquote.wpcr3_content.wpcr3_admin_response {
  margin-left: 1rem;
  color: var(--mms-brand);
}

