/**
 * MM&Co. Premium Corporate Theme
 * Stripe / Big Four inspired — luxury fintech + consulting
 */
:root {
  --navy: #0B1F3A;
  --navy-mid: #132d4d;
  --navy-light: #1e3d63;
  --gold: #D4A017;
  --gold-light: #e8b83a;
  --gold-muted: rgba(212, 160, 23, 0.15);
  --beige: #ffffff;
  --cream: #ffffff;
  --surface: #f8fafc;
  --white: #ffffff;
  --text: #1a2b42;
  --text-muted: #5c6b7f;
  --border: rgba(27, 29, 34, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 29, 34, 0.04);
  --shadow-md: 0 8px 30px rgba(27, 29, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 29, 34, 0.12);
  --shadow-gold: 0 12px 40px rgba(212, 160, 23, 0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(4rem, 8vw, 6rem);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-lg);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ——— Header: always white, readable navy nav ——— */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header .main-nav a {
  color: var(--navy) !important;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.is-active {
  background: var(--surface) !important;
  color: var(--navy) !important;
}
.site-header .theme-toggle,
.site-header .search-btn {
  background: var(--surface) !important;
  color: var(--navy) !important;
}
.site-header .nav-toggle span {
  background: var(--navy) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(212, 160, 23, 0.35);
  color: var(--navy);
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  border-radius: var(--radius);
}
.btn-primary:hover {
  background: var(--navy-mid);
}

.section-label {
  background: var(--gold-muted);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.85rem;
}
.section-heading {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ——— Full-bleed premium hero ——— */
.hero-split {
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(92vh, 920px);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-split .hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 82% 28%, rgba(229, 168, 23, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 12% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, #1B1D22 0%, var(--navy) 45%, #2A2E36 100%);
}
.hero-split .hero-bg::after {
  opacity: 0.32;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.hero-glow--1 {
  width: min(480px, 50vw);
  height: min(480px, 50vw);
  top: 10%;
  right: 8%;
  background: rgba(212, 160, 23, 0.22);
}
.hero-glow--2 {
  width: min(320px, 35vw);
  height: min(320px, 35vw);
  bottom: 15%;
  left: 35%;
  background: rgba(35, 38, 45, 0.5);
}
.hero-split .hero-split-inner {
  width: 100%;
  max-width: var(--mmco-container, 1440px);
  position: relative;
  z-index: 1;
}
.hero-split-inner {
  gap: clamp(2rem, 4vw, 4rem);
}
.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.hero-eyebrow { color: var(--gold-light); }
.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 160, 23, 0.5);
  backdrop-filter: blur(10px);
}
.hero-loc-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}
/* Right column: illustration behind, stacked card + stats in front */
.hero-split-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.5rem;
}
.hero-visual-deco {
  position: absolute;
  top: 0;
  right: -8%;
  left: 5%;
  height: 55%;
  max-height: 280px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-visual-deco .hero-illustration {
  width: 100%;
  max-width: 400px;
  opacity: 0.55;
}
.hero-visual-deco .hero-illustration__svg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
.hero-feature-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 1.65rem 1.75rem 1.5rem;
  border: none;
}
.hero-feature-card .hero-card-points {
  margin-bottom: 0;
  padding-bottom: 0;
}
.hero-feature-card + .hero-stat-pills {
  margin-top: 1rem !important;
}
.hero-stat-pills {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 0 0;
  padding: 0;
  width: 100%;
}
.hero-split .hero-stat-pills.reveal-stagger > *,
.hero-split .hero-stat-pills > * {
  opacity: 1;
  transform: none;
}
.hero-stat-pill {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.95rem 0.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease);
}
.hero-stat-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}
.hero-stat-pill strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero-stat-pill span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Inner page hero ——— */
.page-hero-premium {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  overflow: hidden;
}
.page-hero-premium__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--gold-muted) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}
.page-hero-premium__inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero-premium__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}
.page-hero-premium__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 36rem;
}
.page-hero-premium__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.page-hero-premium .page-hero-badges {
  margin-top: 1.25rem;
}

/* Legacy inner heroes → same look as homepage theme */
.page-hero:not(.page-hero-premium):not(.hero-split) {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(27, 29, 34, 0.06);
}
.page-hero:not(.page-hero-premium) h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.page-hero:not(.page-hero-premium) .page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

body.mmco-site .site-main {
  background: #ffffff;
}

.page-content--builder > .pb-section:first-child,
.page-content--builder > section:first-child {
  margin-top: 0;
}

.page-content--builder .section,
.page-content--builder .what-we-are-section,
.page-content--builder .who-we-are-section,
.page-content--builder .services-section,
.page-content--builder .testimonials-section,
.page-content--builder .blog-preview-section {
  background: var(--white);
}

.page-content--builder .cta-section {
  background: transparent;
}

.page-content--builder .who-we-are-section,
.page-content--builder .testimonials-section {
  background: var(--surface);
}

.contact-page,
.faq-page,
.services-section,
.blog-article .article-body,
.career-detail,
.team-page {
  background: var(--white);
}

#mainContent {
  background: #ffffff;
  overflow-x: hidden;
}
.pb-section:has(> .hero-split) {
  padding: 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}

/* ——— Sections ——— */
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.what-we-are-section { background: var(--white); }
.who-we-are-section { background: var(--surface); }
.services-section { background: var(--white); }
.testimonials-section { background: var(--surface); }
.blog-preview-section { background: var(--white); }

/* ——— Cards ——— */
.service-card,
.what-we-are-highlight,
.testimonial-card,
.blog-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.service-card { padding: 2rem; }
.service-card:hover,
.what-we-are-highlight:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gold-muted);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
}
.service-card h2, .service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

/* ——— CTA ——— */
.cta-box {
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.cta-heading { font-weight: 800; letter-spacing: -0.03em; }

/* ——— Dark footer ——— */
.site-footer {
  background: linear-gradient(180deg, #061528 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
  border: none;
}
.footer-top {
  padding: clamp(3rem, 5vw, 4.25rem) 0 clamp(2.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 0.95fr 1.15fr;
  gap: clamp(2rem, 3.5vw, 2.75rem);
  align-items: start;
}
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.15rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 22rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-badges li {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}
.footer-col h4,
.footer-newsletter h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold-light);
  margin-top: 0.1rem;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  word-break: break-word;
}
.footer-contact-list a:hover { color: var(--gold-light); }
.footer-contact-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
}
.footer-contact-cta:hover { color: #fff; }
.footer-links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}
.footer-links-grid a {
  display: block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links-grid a:hover {
  color: var(--gold-light);
  padding-left: 0.2rem;
}
.footer-newsletter-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}
.footer-newsletter-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; line-height: 1.6; margin-top: 1rem; }
.footer-brand .accreditations { font-size: 0.8125rem; color: var(--gold-light); margin-top: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 0 1.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-copy { margin: 0; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.social-links a { color: rgba(255, 255, 255, 0.7); margin-left: 1rem; font-weight: 600; }
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input,
.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.newsletter-form input:focus,
.footer-newsletter-form input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.12);
}
.newsletter-form input::placeholder,
.footer-newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.42); }
.btn-newsletter {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-form .btn-primary { background: var(--gold); color: var(--navy); border: none; font-weight: 700; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— FAQ page ——— */
.faq-page__inner { max-width: 760px; margin: 0 auto; }
.faq-search-wrap { margin-bottom: 2.5rem; }
.faq-search {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c6b7f' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 1rem center no-repeat;
  box-shadow: var(--card-shadow);
  font-family: inherit;
  font-size: 1rem;
}
.faq-search:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-category { margin-bottom: 2.5rem; }
.faq-category__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.faq-accordion { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-accordion__item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.faq-accordion__item[open] { box-shadow: var(--shadow-md); }
.faq-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-accordion__summary::-webkit-details-marker { display: none; }
.faq-accordion__icon { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--gold); }
.faq-accordion__item[open] .faq-accordion__icon { transform: rotate(180deg); }
.faq-accordion__body {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.975rem;
}
.faq-accordion__item[data-hidden="true"] { display: none; }

/* ——— Contact premium ——— */
.contact-page .contact-grid {
  gap: 3rem;
  align-items: start;
}
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
}
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; }
.contact-block h4 { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-form-wrap {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
}
.form-group input,
.form-group textarea,
.form-group select {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}
.map-section iframe { display: block; border-radius: 0; }

/* ——— Careers ——— */
.career-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: none;
  padding: 2rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.career-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* ——— Blog ——— */
.blog-card h3 a { color: var(--navy); font-weight: 700; }
.blog-card h3 a:hover { color: var(--gold); }

/* ——— Live chat ——— */
.live-chat-placeholder button {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: var(--shadow-gold);
}

/* ——— Back to top ——— */
.back-to-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy, #0a1628);
  color: var(--gold, #c9a227);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #152a45;
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 3px;
}

body:has(.site-chat) .back-to-top {
  bottom: calc(1.75rem + 58px + 12px);
}

@media (max-width: 480px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }

  body:has(.site-chat) .back-to-top {
    bottom: calc(1rem + 58px + 10px);
  }
}

/* ——— Reveal animations ——— */
.mmco-motion .reveal:not(.visible) { opacity: 0; transform: translateY(20px); }
.reveal { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* ——— Page builder rhythm ——— */
.pb-section > .section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }

/* ——— Tablet ——— */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Hero split stays 2-col on mmco-site (corporate CSS). Soft fallback only: */
  body:not(.mmco-site) .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  body:not(.mmco-site) .hero-split-content {
    max-width: none;
    padding-bottom: 0;
  }
  body:not(.mmco-site) .hero-split-visual {
    justify-content: stretch;
    align-items: stretch;
    min-height: auto;
    padding-top: 0;
  }
  .hero-panel {
    max-width: none;
    width: 100%;
  }
  .hero-visual-deco {
    height: 40%;
    opacity: 0.4;
  }
  .hero-stat-pills {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem !important;
  }
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
  :root {
    --section-pad: 3rem;
  }
  .container,
  .hero-split .hero-split-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
  .hero-split {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    padding: 1.75rem 0 3rem;
  }
  .hero-split-inner {
    gap: 2.75rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
  }
  .hero-loc-box {
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
  }
  body:not(.mmco-site) .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  body:not(.mmco-site) .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-split-visual {
    margin-top: 0;
    padding-top: 0;
  }
  .hero-visual-deco {
    display: none;
  }
  .hero-feature-card {
    padding: 1.5rem 1.35rem 1.35rem;
  }
  .hero-feature-card + .hero-stat-pills {
    margin-top: 1.35rem !important;
  }
  .hero-stat-pills {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.35rem !important;
    padding: 0;
  }
  .hero-stat-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    text-align: left;
  }
  .hero-stat-pill strong {
    font-size: 1.2rem;
    margin: 0;
  }
  .hero-stat-pill span {
    margin: 0;
    font-size: 0.65rem;
    text-align: right;
    max-width: 48%;
    line-height: 1.3;
  }
  .section {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
  }
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }
  .services-grid,
  .blog-grid,
  .testimonials-slider {
    gap: 1.25rem;
  }
  .service-card,
  .blog-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  .contact-grid {
    gap: 1.5rem;
  }
  .contact-info,
  .contact-form-wrap {
    padding: 1.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .live-chat-placeholder {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .pb-section + .pb-section > .section {
    padding-top: 0;
  }
  .pb-section:has(> .hero-split) + .pb-section > .section {
    padding-top: var(--section-pad);
  }
}

/* ——— Small phones ——— */
@media (max-width: 480px) {
  .container,
  .hero-split .hero-split-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-split-inner {
    gap: 2.25rem;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hero-badge {
    align-self: flex-start;
  }
  .hero-stat-pill span {
    font-size: 0.6rem;
    max-width: 55%;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-social {
    justify-content: center;
    width: 100%;
  }
}
