/* ═══════════════════════════════════════════
   M2M Homepage — Redesigned
   ═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --m2m-teal: #50B2C0;
  --m2m-teal-dark: #3d8f9a;
  --m2m-orange: #FF4000;
  --m2m-peach: #FAAA8D;
  --m2m-cream: #FEEFDD;
  --m2m-dark: #201E1F;
  --m2m-text: #4b4038;
  --m2m-muted: #6b5e50;
  --m2m-border: #f0e6da;
  --m2m-radius: 1rem;
  --m2m-radius-lg: 1.5rem;
}

/* ─── Reveal Animations ─── */
.m2m-reveal,
.m2m-reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.m2m-reveal {
  transition-delay: var(--d, 0s);
}

.m2m-reveal-section {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.m2m-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════
   NAVBAR
   ══════════════════════════════════ */
.m2m-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.m2m-nav-scrolled {
  background: rgba(254, 239, 221, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.m2m-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.m2m-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.m2m-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.625rem;
}

.m2m-logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--m2m-teal), var(--m2m-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* drop-shadow so the gradient logo stays visible over the dark hero photo before the scrim kicks in */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.m2m-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Default state (top of page, over the dark hero photo) — use white */
.m2m-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: color 0.2s, text-shadow 0.2s;
}

/* Scrolled state (cream background) — flip back to dark */
.m2m-nav-scrolled .m2m-nav-link {
  color: var(--m2m-text);
  text-shadow: none;
  font-weight: 500;
}

.m2m-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--m2m-orange);
  border-radius: 1px;
  transition: width 0.25s;
}

.m2m-nav-link:hover {
  color: var(--m2m-orange);
}

.m2m-nav-link:hover::after {
  width: 100%;
}

.m2m-nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--m2m-orange);
  color: white;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.m2m-nav-cta:hover {
  background: #e63800;
  transform: translateY(-1px);
}

.m2m-nav-cta-mobile {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.75rem;
}

/* Mobile hamburger */
.m2m-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.m2m-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.m2m-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s, background 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.m2m-nav-scrolled .m2m-hamburger span {
  background: var(--m2m-dark);
  box-shadow: none;
}

.m2m-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.m2m-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.m2m-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.m2m-mobile-menu {
  display: none;
  padding: 0.5rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

/* Always give the open mobile menu a solid light backdrop so links read over any hero photo */
.m2m-mobile-menu.active {
  display: flex;
  background: rgba(254, 239, 221, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.m2m-mobile-link {
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--m2m-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: color 0.2s;
}

.m2m-mobile-link:hover {
  color: var(--m2m-orange);
}


/* ══════════════════════════════════
   1. HERO
   ══════════════════════════════════ */
.m2m-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FEEFDD 0%, #f8ead5 35%, #e0f3f5 100%);
}

/* Rotating background photos (admin-uploadable via Cloudinary) */
.m2m-hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.m2m-hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05); /* subtle zoom for Ken Burns feel */
}
.m2m-hero-bg-slide.is-active { opacity: 1; }
/* Dark scrim so the headline + badge stay readable over ANY photo.
   Two-layer: a radial "spotlight" centered on the copy + a uniform darkening gradient. */
.m2m-hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.45) 45%, rgba(15,23,42,0.6) 100%),
    linear-gradient(180deg, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.55) 100%);
}

/* Animated orbs — now layered above the photo slideshow at reduced opacity */
.m2m-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.m2m-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.m2m-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(80, 178, 192, 0.3);
  top: -15%;
  right: -10%;
  animation: m2m-orbit 22s ease-in-out infinite;
}

.m2m-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(250, 170, 141, 0.25);
  bottom: -10%;
  left: -10%;
  animation: m2m-orbit 28s ease-in-out infinite reverse;
}

.m2m-orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(255, 64, 0, 0.1);
  top: 40%;
  left: 40%;
  animation: m2m-pulse-orb 10s ease-in-out infinite;
}

.m2m-orb-4 {
  width: 250px;
  height: 250px;
  background: rgba(80, 178, 192, 0.15);
  top: 10%;
  left: 20%;
  animation: m2m-orbit 18s ease-in-out infinite;
  animation-delay: -6s;
}

/* Floating icons */
.m2m-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.m2m-float-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  opacity: 0.55;
  will-change: transform;
}

.m2m-fi-1 { top: 14%; left: 6%;  animation: m2m-float-a 7s ease-in-out infinite; }
.m2m-fi-2 { top: 22%; right: 10%; animation: m2m-float-b 8s ease-in-out infinite; animation-delay: -1s; }
.m2m-fi-3 { bottom: 32%; left: 10%; animation: m2m-float-a 9s ease-in-out infinite; animation-delay: -3s; }
.m2m-fi-4 { top: 58%;  right: 7%;  animation: m2m-float-b 7.5s ease-in-out infinite; animation-delay: -2s; }
.m2m-fi-5 { bottom: 16%; left: 28%; animation: m2m-float-a 8.5s ease-in-out infinite; animation-delay: -4s; }
.m2m-fi-6 { bottom: 22%; right: 22%; animation: m2m-float-b 10s ease-in-out infinite; animation-delay: -6s; }

/* Hero content */
.m2m-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1rem 5rem;
  max-width: 720px;
  margin: 0 auto;
  /* Layered shadow: tight dark shadow for sharp edges + wider glow for overall separation */
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 2px 18px rgba(0, 0, 0, 0.75);
}

.m2m-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 1.125rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: none;
}

.m2m-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.m2m-highlight {
  background: linear-gradient(135deg, var(--m2m-orange), var(--m2m-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* In the hero, override the gradient with a warmer, lighter palette so the word pops
   on a dark photo. Teal-to-orange fades into mud at low-end; amber-to-peach glows. */
.m2m-hero .m2m-highlight {
  background: linear-gradient(135deg, #FFD580 0%, #FFB347 45%, #FF8A5B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)) drop-shadow(0 4px 18px rgba(0,0,0,0.45));
}

.m2m-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.m2m-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Buttons */
.m2m-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.m2m-btn-primary {
  padding: 0.875rem 2rem;
  background: var(--m2m-orange);
  color: white;
  box-shadow: 0 8px 28px rgba(255, 64, 0, 0.28);
}

.m2m-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 64, 0, 0.35);
}

.m2m-btn-ghost {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--m2m-text);
  border: 1px solid var(--m2m-border);
  backdrop-filter: blur(8px);
}

.m2m-btn-ghost:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Scroll cue */
.m2m-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.m2m-scroll-track {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(80, 178, 192, 0.35);
  border-radius: 12px;
  padding: 6px;
}

.m2m-scroll-thumb {
  width: 4px;
  height: 8px;
  background: var(--m2m-teal);
  border-radius: 2px;
  margin: 0 auto;
  animation: m2m-scroll-bob 2s ease-in-out infinite;
}


/* ══════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════ */
.m2m-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.m2m-section-badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  background: rgba(80, 178, 192, 0.1);
  color: var(--m2m-teal-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.m2m-section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--m2m-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.m2m-section-sub {
  font-size: 1.0625rem;
  color: var(--m2m-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ══════════════════════════════════
   2. SERVICES DIRECTORY
   ══════════════════════════════════ */
.m2m-services {
  padding: 6rem 0;
  background: white;
}

.m2m-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.m2m-svc-card {
  position: relative;
  background: white;
  border-radius: var(--m2m-radius-lg);
  padding: 2rem;
  border: 1px solid var(--m2m-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s;
}

.m2m-svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.08);
  border-color: var(--svc);
}

/* Glow effect on hover */
.m2m-svc-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--svc);
  opacity: 0;
  transition: opacity 0.3s;
}

.m2m-svc-card:hover .m2m-svc-glow {
  opacity: 1;
}

.m2m-svc-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--m2m-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.m2m-svc-card:hover .m2m-svc-icon {
  transform: scale(1.1) rotate(-5deg);
}

.m2m-svc-body {
  flex: 1;
}

.m2m-svc-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--svc) 10%, transparent);
  color: var(--svc);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.m2m-svc-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--m2m-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.m2m-svc-card:hover .m2m-svc-name {
  color: var(--svc);
}

.m2m-svc-desc {
  color: var(--m2m-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.m2m-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--svc);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.25s;
}

.m2m-svc-card:hover .m2m-svc-link {
  gap: 0.75rem;
}


/* ══════════════════════════════════
   3. HOW IT WORKS
   ══════════════════════════════════ */
.m2m-how {
  padding: 6rem 0;
  background: linear-gradient(170deg, #f9f5f0 0%, #eef8f9 100%);
}

.m2m-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.m2m-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.m2m-step-num {
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(80, 178, 192, 0.07);
  line-height: 1;
  pointer-events: none;
}

.m2m-step-icon {
  --accent: var(--m2m-teal);
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, white));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform 0.3s;
}

.m2m-step:hover .m2m-step-icon {
  transform: translateY(-4px) scale(1.05);
}

.m2m-step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--m2m-dark);
  margin-bottom: 0.5rem;
}

.m2m-step-desc {
  font-size: 0.875rem;
  color: var(--m2m-muted);
  line-height: 1.65;
}

.m2m-step-connector {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  flex-shrink: 0;
  opacity: 0.5;
}


/* ══════════════════════════════════
   4. WHY CHOOSE US
   ══════════════════════════════════ */
.m2m-why {
  padding: 6rem 0;
  background: white;
}

.m2m-why .m2m-section-sub {
  max-width: 600px;
}

.m2m-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.m2m-why-card {
  background: linear-gradient(160deg, #fefcfa, #faf7f3);
  border: 1px solid var(--m2m-border);
  border-radius: var(--m2m-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}

.m2m-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
}

.m2m-why-icon {
  --c: var(--m2m-teal);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--m2m-radius);
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, white));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 20%, transparent);
  transition: transform 0.3s;
}

.m2m-why-card:hover .m2m-why-icon {
  transform: scale(1.1) rotate(-5deg);
}

.m2m-why-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--m2m-dark);
  margin-bottom: 0.5rem;
}

.m2m-why-desc {
  font-size: 0.8125rem;
  color: var(--m2m-muted);
  line-height: 1.65;
}


/* ══════════════════════════════════
   5. FAQ SECTION
   ══════════════════════════════════ */
.m2m-faq {
  padding: 6rem 0;
  background: linear-gradient(170deg, #f9f5f0 0%, #eef8f9 100%);
}

.m2m-faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

.m2m-faq-header {
  position: sticky;
  top: 6rem;
}

.m2m-faq-header .m2m-section-title {
  text-align: left;
}

.m2m-faq-header .m2m-section-sub {
  text-align: left;
  margin: 0;
}

.m2m-faq-header .m2m-section-badge {
  display: inline-block;
}

.m2m-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m2m-faq-item {
  background: white;
  border-radius: var(--m2m-radius);
  border: 1px solid var(--m2m-border);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.m2m-faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.m2m-faq-item.open {
  border-color: var(--m2m-teal);
  box-shadow: 0 4px 20px rgba(80, 178, 192, 0.1);
}

.m2m-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--m2m-dark);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.m2m-faq-trigger:hover {
  color: var(--m2m-teal-dark);
}

.m2m-faq-chevron {
  flex-shrink: 0;
  color: var(--m2m-muted);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.2s;
}

.m2m-faq-item.open .m2m-faq-chevron {
  transform: rotate(180deg);
  color: var(--m2m-teal);
}

.m2m-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}

.m2m-faq-answer p {
  padding: 0 1.25rem 1.25rem;
  color: var(--m2m-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}


/* ══════════════════════════════════
   6. FOOTER
   ══════════════════════════════════ */
.m2m-footer {
  background: var(--m2m-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.m2m-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.m2m-footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.m2m-footer-logo-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.m2m-footer-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.m2m-footer-tagline {
  color: #9a8b7a;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.m2m-footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a8b7a;
  margin-bottom: 1rem;
}

.m2m-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.m2m-footer-links a {
  color: #c8bfb4;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.m2m-footer-links a:hover {
  color: white;
}

.m2m-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.m2m-footer-bottom p {
  color: #6b5e50;
  font-size: 0.75rem;
}


/* ══════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════ */
@keyframes m2m-orbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -30px); }
  50% { transform: translate(-25px, 40px); }
  75% { transform: translate(30px, 25px); }
}

@keyframes m2m-pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.4); opacity: 0.05; }
}

@keyframes m2m-float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-16px) rotate(5deg); }
  66% { transform: translateY(12px) rotate(-3deg); }
}

@keyframes m2m-float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(14px) rotate(-4deg); }
  66% { transform: translateY(-20px) rotate(6deg); }
}

@keyframes m2m-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0.25; }
}


/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .m2m-nav-links { display: none; }
  .m2m-mobile-btn { display: block; }

  .m2m-hero { min-height: 88vh; }
  .m2m-hero-content {
    padding: 7rem 1.25rem 4rem;
    /* Stronger shadow on mobile — smaller screen means the scrim covers less relative area */
    text-shadow:
      0 1px 4px rgba(0, 0, 0, 0.9),
      0 2px 20px rgba(0, 0, 0, 0.8);
  }
  .m2m-hero-title { font-size: clamp(2rem, 8vw, 2.75rem); }
  .m2m-hero-subtitle { font-size: 1rem; padding: 0 0.5rem; }
  .m2m-hero-badge { font-size: 0.75rem; padding: 0.35rem 0.9rem; }
  /* Extra dark scrim on mobile for guaranteed legibility over any photo */
  .m2m-hero-bg-scrim {
    background:
      radial-gradient(ellipse at 50% 50%, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.6) 45%, rgba(15,23,42,0.75) 100%),
      linear-gradient(180deg, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.65) 100%);
  }

  .m2m-services-grid { grid-template-columns: 1fr; }

  .m2m-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .m2m-step { padding: 0; }

  .m2m-step-connector {
    display: none;
  }

  .m2m-faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .m2m-faq-header {
    position: static;
    text-align: center;
  }

  .m2m-faq-header .m2m-section-title,
  .m2m-faq-header .m2m-section-sub {
    text-align: center;
  }

  .m2m-faq-header .m2m-section-sub {
    margin: 0 auto;
  }

  .m2m-why-grid { grid-template-columns: 1fr; }

  .m2m-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .m2m-footer-tagline { max-width: none; }
  .m2m-footer-logo-link { justify-content: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .m2m-services-grid { grid-template-columns: repeat(2, 1fr); }
  .m2m-why-grid { grid-template-columns: repeat(2, 1fr); }

  .m2m-faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .m2m-faq-header {
    position: static;
    text-align: center;
  }

  .m2m-faq-header .m2m-section-title,
  .m2m-faq-header .m2m-section-sub {
    text-align: center;
  }

  .m2m-faq-header .m2m-section-sub {
    margin: 0 auto;
  }

  .m2m-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Fallback for browsers that don't support color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .m2m-svc-tag {
    background: rgba(0, 0, 0, 0.04);
    color: var(--m2m-muted);
  }

  .m2m-step-icon {
    box-shadow: 0 8px 24px rgba(80, 178, 192, 0.2);
  }

  .m2m-why-icon {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }
}
