/* ================================================================
   MOMENTUM HEALTH 360 — GLOBAL STYLESHEET
   ─────────────────────────────────────────────────────────────────
   HOW TO USE:
   → Paste into WordPress › Appearance › Customize › Additional CSS
   → OR enqueue via theme functions.php as a stylesheet

   Fonts  : Poppins (headings) · Inter (body)
   Primary: #172C4B (navy)  Accent: #48A625 (green)
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --mh-navy:        #172C4B;
  --mh-navy-dark:   #0f1e34;
  --mh-navy-light:  #1e3a60;
  --mh-green:       #48A625;
  --mh-green-dark:  #3a8a1e;
  --mh-green-light: #e8f5e0;

  /* Neutrals */
  --mh-white:       #ffffff;
  --mh-off-white:   #f8f9fa;
  --mh-light:       #f1f4f8;
  --mh-border:      #e2e8f0;
  --mh-muted:       #6b7280;
  --mh-dark:        #374151;

  /* Typography */
  --mh-font-h:  'Poppins', sans-serif;
  --mh-font-b:  'Inter', sans-serif;

  /* Font Scale */
  --mh-fs-xs:   0.75rem;     /* 12px */
  --mh-fs-sm:   0.875rem;    /* 14px */
  --mh-fs-base: 1rem;        /* 16px */
  --mh-fs-lg:   1.125rem;    /* 18px */
  --mh-fs-xl:   1.25rem;     /* 20px */
  --mh-fs-2xl:  1.5rem;      /* 24px */
  --mh-fs-3xl:  1.875rem;    /* 30px */
  --mh-fs-4xl:  2.25rem;     /* 36px */
  --mh-fs-5xl:  3rem;        /* 48px */

  /* Layout */
  --mh-max-w:     1200px;
  --mh-gutter:    clamp(16px, 4vw, 24px);
  --mh-section-y: clamp(64px, 9vw, 100px);

  /* Radii */
  --mh-r-sm:   6px;
  --mh-r:      12px;
  --mh-r-lg:   24px;
  --mh-r-full: 9999px;

  /* Shadows */
  --mh-shadow:    0 4px 20px rgba(23, 44, 75, 0.10);
  --mh-shadow-lg: 0 8px 48px rgba(23, 44, 75, 0.16);

  /* Motion */
  --mh-ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--mh-font-b);
  font-size: var(--mh-fs-base);
  color: var(--mh-navy);
  background: var(--mh-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Headings ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mh-font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mh-navy);
}

p {
  font-family: var(--mh-font-b);
}

/* ── Layout Utilities ──────────────────────────────────────────── */
.mh-container {
  max-width: var(--mh-max-w);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}

.mh-section {
  padding-block: var(--mh-section-y);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mh-font-b);
  font-size: var(--mh-fs-base);
  font-weight: 600;
  line-height: 1;
  padding: 15px 32px;
  border-radius: var(--mh-r-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--mh-ease),
    color var(--mh-ease),
    border-color var(--mh-ease),
    transform var(--mh-ease),
    box-shadow var(--mh-ease);
  will-change: transform;
}

.mh-btn:focus-visible {
  outline: 3px solid var(--mh-green);
  outline-offset: 3px;
}

.mh-btn:active {
  transform: translateY(0) !important;
}

/* Green filled */
.mh-btn--primary {
  background: var(--mh-green);
  color: var(--mh-white);
  border-color: var(--mh-green);
}
.mh-btn--primary:hover {
  background: var(--mh-green-dark);
  border-color: var(--mh-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(72, 166, 37, 0.40);
}

/* White outline (on dark backgrounds) */
.mh-btn--outline-white {
  background: transparent;
  color: var(--mh-white);
  border-color: var(--mh-white);
}
.mh-btn--outline-white:hover {
  background: var(--mh-white);
  color: var(--mh-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.20);
}

/* Navy filled */
.mh-btn--navy {
  background: var(--mh-navy);
  color: var(--mh-white);
  border-color: var(--mh-navy);
}
.mh-btn--navy:hover {
  background: var(--mh-navy-dark);
  border-color: var(--mh-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--mh-shadow);
}

/* Navy outline */
.mh-btn--outline-navy {
  background: transparent;
  color: var(--mh-navy);
  border-color: var(--mh-navy);
}
.mh-btn--outline-navy:hover {
  background: var(--mh-navy);
  color: var(--mh-white);
  transform: translateY(-2px);
}

/* ── Eyebrow / Badge Label ─────────────────────────────────────── */
.mh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mh-font-b);
  font-size: var(--mh-fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-green);
}

.mh-eyebrow--white {
  color: var(--mh-white);
}

.mh-eyebrow__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Section Header Helper ─────────────────────────────────────── */
.mh-sec-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.mh-sec-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.mh-sec-head__title {
  font-size: clamp(var(--mh-fs-2xl), 3.5vw, var(--mh-fs-4xl));
  color: var(--mh-navy);
}

.mh-sec-head__sub {
  font-size: var(--mh-fs-lg);
  color: var(--mh-muted);
  line-height: 1.6;
}

/* ── Marquee ───────────────────────────────────────────────────── */
.mh-marquee {
  overflow: hidden;
  --mh-marquee-speed: 28s;
}

.mh-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mhMarquee var(--mh-marquee-speed) linear infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .mh-marquee__track {
    animation: none;
  }
}

.mh-marquee:hover .mh-marquee__track {
  animation-play-state: paused;
}

.mh-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 0 36px;
  font-family: var(--mh-font-b);
  font-weight: 500;
  font-size: var(--mh-fs-sm);
}

.mh-marquee__sep {
  flex-shrink: 0;
  opacity: 0.45;
  font-size: 1.1em;
  line-height: 1;
}

@keyframes mhMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero Section ──────────────────────────────────────────────── */
.mh-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  color: var(--mh-white);
  overflow: hidden;
  isolation: isolate;
}

/* Video & poster background */
.mh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mh-hero__poster,
.mh-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mh-hero__poster {
  z-index: 1;
  transition: opacity 0.6s ease;
}

.mh-hero__video {
  z-index: 2;
}

/* Dark gradient overlay — heavier on left for text legibility */
.mh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to right,
      rgba(23, 44, 75, 0.75) 0%,
      rgba(23, 44, 75, 0.45) 60%,
      rgba(23, 44, 75, 0.20) 100%),
    linear-gradient(to top,
      rgba(23, 44, 75, 0.60) 0%,
      rgba(23, 44, 75, 0.00) 60%);
}

/* Main content wrapper */
.mh-hero__body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-top: 130px;
  padding-bottom: 72px;
}

/* Two-column grid: text | trustpilot */
.mh-hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 48px;
}

/* Left: badge + heading + sub + CTA */
.mh-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 580px;
}

.mh-hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: var(--mh-white);
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.mh-hero__sub {
  font-size: var(--mh-fs-lg);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  max-width: 460px;
}

/* Right: Trustpilot glass card */
.mh-hero__right {
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* Trustpilot widget */
.mh-tp {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--mh-r);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.mh-tp__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-tp__brand {
  font-family: var(--mh-font-b);
  font-size: var(--mh-fs-base);
  font-weight: 600;
  color: var(--mh-white);
}

.mh-tp__stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mh-tp__info {
  font-family: var(--mh-font-b);
  font-size: var(--mh-fs-sm);
  color: rgba(255, 255, 255, 0.82);
}

.mh-tp__info a {
  color: var(--mh-white);
  font-weight: 600;
  text-underline-offset: 2px;
  text-decoration: underline;
}

/* Bottom marquee strip */
.mh-hero__strip {
  position: relative;
  z-index: 4;
  background: rgba(15, 30, 52, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: 15px;
  color: var(--mh-white);
}

.mh-hero__strip .mh-marquee__item {
  color: rgba(255, 255, 255, 0.90);
  font-size: var(--mh-fs-sm);
  letter-spacing: 0.01em;
}

.mh-hero__strip .mh-marquee__sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Hero Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .mh-hero__grid {
    grid-template-columns: 1fr;
  }

  .mh-hero__right {
    display: none;
  }

  .mh-hero__body {
    align-items: flex-end;
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .mh-hero__body {
    padding-top: 110px;
    padding-bottom: 48px;
  }

  .mh-hero__left {
    gap: 16px;
  }

  .mh-hero__title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .mh-hero__sub {
    font-size: var(--mh-fs-base);
  }
}

/* ── Accessibility ─────────────────────────────────────────────── */
.mh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
