/**
 * Mac Angelo Financial Services — Homepage Styles
 *
 * Custom PHP homepage stylesheet. Zero page-builder classes.
 * Design tokens live in child theme's global CSS vars.
 *
 * Table of Contents
 * ─────────────────────────────────────────────────
 * 00. Homepage CSS variable overrides/aliases
 * 01. Base reset for homepage sections
 * 02. Shared utilities (eyebrows, headings, buttons, dividers)
 * 03. S1  Hero
 * 04. S2  Trust Bar
 * 05. S3  Services Bento
 * 06. S4  Why Mac Angelo
 * 07. S5  Process
 * 08. S6  Stats
 * 09. S7  Industries
 * 10. S8  Testimonials
 * 11. S9  Resources
 * 12. S10 FAQ
 * 13. S11 Final CTA
 * 14. Animations & keyframes
 * 15. Responsive
 * ─────────────────────────────────────────────────
 */

/* ============================================================
   00. HOMEPAGE CSS VARIABLE OVERRIDES / ALIASES
   Ensures all tokens used in this file are defined,
   accounting for naming differences between the Elementor
   kit (--ma-off-white, --ma-surface-1) and the spec tokens
   (--ma-offwhite, --ma-surface1) used in the design brief.
   ============================================================ */

:root {
  /* Dark surfaces (ensure these are set regardless of kit load order) */
  --ma-obsidian:     #0A0A0A;
  --ma-surface1:     #111111;   /* dark trust bar */

  /* Light surfaces */
  --ma-offwhite:     #F9F9F6;   /* alias for --ma-off-white */
  --ma-powder:       #E8F4F8;
  --ma-lavender:     #F0EBF8;

  /* Text */
  --ma-text:         #0A0A0A;
  --ma-muted:        #4A4A4A;
  --ma-subtle:       #A8A8A0;

  /* Borders */
  --ma-border-light: rgba(0,0,0,0.06);
  --ma-border-dark:  rgba(255,255,255,0.08);

  /* Layout */
  --ma-max-w:        1280px;
  --ma-pad-x:        clamp(24px, 5vw, 80px);
  --ma-section-y:    clamp(80px, 10vw, 120px);

  /* Radius */
  --ma-radius-sm:    6px;
  --ma-radius-md:    12px;
  --ma-radius-lg:    20px;

  /* Brand colours (already in header-footer.css but redeclared for safety) */
  --ma-gold:         #C9A84C;
  --ma-gold-light:   #E8C46A;
  --ma-gold-dark:    #A88830;
  --ma-teal:         #1A9F9F;
  --ma-teal-light:   #2ABFBF;
  --ma-violet:       #6B3FA0;
  --ma-white:        #FFFFFF;
}

/* ============================================================
   00. BASE RESET FOR HOMEPAGE
   ============================================================ */

.ma-homepage {
  overflow-x: hidden;
}

.ma-homepage *,
.ma-homepage *::before,
.ma-homepage *::after {
  box-sizing: border-box;
}

.ma-homepage section {
  position: relative;
}

/* ============================================================
   01. SHARED UTILITIES
   ============================================================ */

/* Eyebrow labels — modern pill badge */
.ma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 100px;
  width: fit-content;
}

.ma-eyebrow--gold {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.30);
  color: #8B6914;
}
.ma-eyebrow--teal {
  background: rgba(26,159,159,0.10);
  border: 1px solid rgba(26,159,159,0.28);
  color: #147A7A;
}
.ma-eyebrow--violet {
  background: rgba(107,63,160,0.10);
  border: 1px solid rgba(107,63,160,0.25);
  color: #5A2F8C;
}

/* Section headings */
.ma-section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ma-text);
  margin: 0 0 24px;
}

.ma-section-heading--sm {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 0;
}

/* Section header wrapper */
.ma-section-header {
  margin-bottom: 56px;
}

.ma-section-header--center {
  text-align: center;
}

.ma-section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Gold gradient text */
.ma-gradient-text {
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Inner container */
.ma-hero__inner,
.ma-trust-bar__inner,
.ma-services__inner,
.ma-why__inner,
.ma-process__inner,
.ma-stats__inner,
.ma-industries__inner,
.ma-testimonials__inner,
.ma-resources__inner,
.ma-faq__inner,
.ma-final-cta__inner {
  max-width: var(--ma-max-w);
  margin: 0 auto;
  padding-left: var(--ma-pad-x);
  padding-right: var(--ma-pad-x);
}

/* ---- Buttons ---- */
.ma-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--ma-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.ma-btn:focus-visible {
  outline: 2px solid var(--ma-gold);
  outline-offset: 3px;
}

/* Gold filled button */
.ma-btn--gold {
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  color: var(--ma-obsidian);
  box-shadow: 0 4px 20px rgba(201,168,76,0.30);
}

.ma-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.40);
}

.ma-btn--gold:active { transform: translateY(0); }

/* Ghost button (light sections) */
.ma-btn--ghost {
  background: transparent;
  color: var(--ma-text);
  border: 1.5px solid rgba(0,0,0,0.18);
  padding: 13px 28px;
}

.ma-btn--ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* Small gold button */
.ma-btn--gold-sm {
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  color: var(--ma-obsidian);
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--ma-radius-sm);
}

.ma-btn--gold-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}

/* Large variant */
.ma-btn--lg {
  font-size: 16px;
  padding: 17px 36px;
}

/* ---- Section dividers ---- */
.ma-divider { width: 100%; overflow: hidden; }

/* All dividers — light theme, just subtle borders */
.ma-divider--dark-border,
.ma-divider--dark-to-light,
.ma-divider--dark-to-light-f9,
.ma-divider--light-to-dark {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 0;
}

.ma-divider--dark-to-light::after,
.ma-divider--dark-to-light-f9::after,
.ma-divider--light-to-dark::after {
  display: none;
}


/* ============================================================
   02. S1 — HERO
   ============================================================ */

.ma-hero {
  position: relative;
  background: linear-gradient(160deg, #FFFFFF 0%, #F8F9FF 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ma-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ma-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
  flex: 1;
}

/* LEFT — Content */
.ma-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ma-hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: #0A0A0A;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.ma-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #4A4A4A;
  max-width: 480px;
  margin: 0 0 36px;
}

.ma-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ma-hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ma-hero__trust li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B6B6B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ma-hero__trust span {
  color: #1A9F9F;
  font-weight: 700;
}

/* RIGHT — Portrait */
.ma-hero__portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ma-hero__portrait-frame {
  position: relative;
  width: 480px;
  max-width: 100%;
}

/* Geo-border hidden — not needed for dashboard SVG */
.ma-hero__geo-border {
  display: none;
}

.ma-hero__portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.10));
  position: relative;
  z-index: 2;
}

/* Dashboard SVG — no cropping, full illustration */
.ma-hero__dashboard-svg {
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  filter: none !important;
  overflow: visible;
}

/* Floating stat cards — light glass */
.ma-hero__stat-card {
  position: absolute;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  animation: floatCard 5s ease-in-out infinite;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.ma-hero__stat-card--tl {
  top: 10%;
  left: -15%;
  animation-duration: 4.5s;
}

.ma-hero__stat-card--mr {
  top: 45%;
  right: -14%;
  animation-duration: 5.5s;
}

.ma-hero__stat-card--bl {
  bottom: 10%;
  left: -12%;
  animation-duration: 4s;
}

.ma-stat-card__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1;
}

.ma-stat-card__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6B6B6B;
  line-height: 1.3;
}


/* ============================================================
   03. S2 — TRUST BAR
   ============================================================ */

.ma-trust-bar {
  background: #FFFFFF;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: clamp(32px, 5vw, 48px) 0 0;
  position: relative;
  overflow: hidden;
}

.ma-trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 0;
  padding-bottom: clamp(40px, 6vw, 60px);
}

.ma-trust-bar__stat {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
}

.ma-trust-bar__divider {
  grid-column: span 1;
  width: 1px;
  height: 48px;
  background: rgba(0,0,0,0.08);
  justify-self: center;
}

/* Stat cols: 1 stat, 1 divider, 1 stat, 1 divider, 1 stat, 1 divider, 1 stat = 7 */
.ma-trust-bar__stat:nth-child(1) { grid-column: 1; }
.ma-trust-bar__divider:nth-child(2) { grid-column: 2; }
.ma-trust-bar__stat:nth-child(3) { grid-column: 3; }
.ma-trust-bar__divider:nth-child(4) { grid-column: 4; }
.ma-trust-bar__stat:nth-child(5) { grid-column: 5; }
.ma-trust-bar__divider:nth-child(6) { grid-column: 6; }
.ma-trust-bar__stat:nth-child(7) { grid-column: 7; }

.ma-trust-bar__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1;
}

.ma-trust-bar__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B6B6B;
  text-align: center;
}


/* ============================================================
   04. S3 — SERVICES BENTO
   ============================================================ */

.ma-services {
  background: var(--ma-offwhite);
  padding: var(--ma-section-y) 0;
}

/* Bento grid */
.ma-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
}

/* Card positions */
.ma-bento__card--a { grid-column: span 7; grid-row: 1; }
.ma-bento__card--b { grid-column: span 5; grid-row: 1; }
.ma-bento__card--c { grid-column: span 4; grid-row: 2; }
.ma-bento__card--d { grid-column: span 4; grid-row: 2; }
.ma-bento__card--e { grid-column: span 4; grid-row: 2; }
.ma-bento__card--f { grid-column: span 7; grid-row: 3; }
.ma-bento__card--promo { grid-column: span 5; grid-row: 3; }

/* Card base */
.ma-bento__card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border-left: 3px solid var(--card-color, #C9A84C);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ma-bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

/* tall cards */
.ma-bento__card--a,
.ma-bento__card--b {
  min-height: 260px;
}

/* Icon well */
.ma-bento__icon-well {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Badge */
.ma-bento__badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

/* Card title */
.ma-bento__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ma-text);
  margin: 0;
  line-height: 1.3;
}

/* Card desc */
.ma-bento__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ma-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Card link */
.ma-bento__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.ma-bento__link:hover { gap: 8px; }

/* Promo card */
.ma-bento__card--promo {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 100%);
  border-left-color: var(--ma-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  min-height: 160px;
}

.ma-bento__promo-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #F5F5F0;
  margin: 0;
}

.ma-bento__promo-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ma-subtle);
  line-height: 1.6;
  margin: 0;
}


/* ============================================================
   05. S4 — WHY MAC ANGELO
   ============================================================ */

.ma-why {
  background: var(--ma-powder);
  padding: var(--ma-section-y) 0;
}

.ma-why__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ma-why__card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ma-why__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

.ma-why__icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(26,159,159,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ma-why__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ma-text);
  margin: 0;
}

.ma-why__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ma-muted);
  line-height: 1.7;
  margin: 0;
}


/* ============================================================
   06. S5 — PROCESS
   ============================================================ */

.ma-process {
  background: var(--ma-offwhite);
  padding: var(--ma-section-y) 0 0;
  overflow: hidden;
}

.ma-process__inner {
  padding-bottom: calc(var(--ma-section-y) + 64px);
}

.ma-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line between circles */
.ma-process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.ma-process__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
}

.ma-process__circle span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ma-obsidian);
  line-height: 1;
}

/* Dashed gold connector — ::after on circle */
.ma-process__connector {
  position: absolute;
  top: 32px;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--ma-gold), var(--ma-gold-light));
  background-size: 8px 1px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ma-gold) 0,
    var(--ma-gold) 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 1;
}

.ma-process__step:last-child .ma-process__connector {
  display: none;
}

.ma-process__step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-text);
  margin: 0 0 10px;
}

.ma-process__step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ma-muted);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   07. S6 — STATS
   ============================================================ */

.ma-stats {
  background: #FFFFFF;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: var(--ma-section-y) 0 0;
  position: relative;
  overflow: hidden;
}

.ma-stats__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ma-stats__inner {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--ma-section-y) + 64px);
}

.ma-stats__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #0A0A0A;
  text-align: center;
  margin: 0 0 64px;
}

.ma-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ma-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  background: #F9F9F6;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  text-align: center;
}

.ma-counter,
.ma-stats__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ma-stats__number--static {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ma-stats__label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  text-align: center;
  letter-spacing: 0.02em;
}


/* ============================================================
   08. S7 — INDUSTRIES
   ============================================================ */

.ma-industries {
  background: var(--ma-offwhite);
  padding: var(--ma-section-y) 0;
}

.ma-industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ma-industries__tile {
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--ma-border-light);
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ma-industries__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  border-color: rgba(201,168,76,0.30);
}

.ma-industries__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma-industries__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ma-text);
  text-align: center;
  line-height: 1.3;
}


/* ============================================================
   09. S8 — TESTIMONIALS
   ============================================================ */

.ma-testimonials {
  background: var(--ma-lavender);
  padding: var(--ma-section-y) 0;
}

.ma-testimonials__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* ---- Carousel ---- */
.ma-carousel {
  overflow: hidden;
  border-radius: 16px;
}

.ma-carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ma-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Testimonial card */
.ma-testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.ma-testimonial-card__quote-mark {
  position: absolute;
  top: -8px;
  left: 28px;
  font-size: 120px;
  font-family: 'Space Grotesk', serif;
  color: var(--ma-violet);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ma-testimonial-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ma-text);
  line-height: 1.75;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

.ma-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ma-testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ma-violet), var(--ma-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ma-testimonial-card__avatar span {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ma-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ma-testimonial-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ma-text);
  font-style: normal;
}

.ma-testimonial-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ma-muted);
}

.ma-testimonial-card__result {
  background: rgba(201,168,76,0.12);
  border-radius: 100px;
  padding: 6px 14px;
}

.ma-testimonial-card__result span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ma-gold-dark);
}

/* Carousel controls */
.ma-carousel__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 8px;
  justify-content: center;
}

.ma-carousel__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,63,160,0.25);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ma-violet);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ma-carousel__arrow:hover {
  background: var(--ma-violet);
  border-color: var(--ma-violet);
  color: #fff;
}

.ma-carousel__dots {
  display: flex;
  gap: 8px;
}

.ma-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(107,63,160,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.ma-carousel__dot--active {
  background: var(--ma-violet);
  width: 24px;
  border-radius: 4px;
}

/* ---- Case Study Card ---- */
.ma-case-study-card {
  border-radius: 20px;
  background: linear-gradient(145deg, #0A0A0A, #1a1a2e);
  border: 1px solid rgba(201,168,76,0.30);
  overflow: hidden;
}

.ma-case-study-card__inner {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ma-case-study-card__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ma-gold);
}

.ma-case-study-card__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #F5F5F0;
  margin: 0;
  line-height: 1.3;
}

.ma-case-study-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ma-case-study-card__metric {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ma-case-study-card__metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ma-gold);
  min-width: 80px;
  line-height: 1;
}

.ma-case-study-card__metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ma-subtle);
}


/* ============================================================
   10. S9 — RESOURCES
   ============================================================ */

.ma-resources {
  background: var(--ma-offwhite);
  padding: var(--ma-section-y) 0;
}

.ma-resources__view-all {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ma-teal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ma-resources__view-all:hover { color: var(--ma-teal-light); }

.ma-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ma-resource-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  outline-offset: 3px;
}

.ma-resource-card__link:hover,
.ma-resource-card__link:focus {
  text-decoration: none;
  color: inherit;
}

.ma-resource-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ma-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

.ma-resource-card__img {
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.ma-resource-card__category-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.ma-resource-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ma-resource-card__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-text);
  margin: 0;
  line-height: 1.35;
}

.ma-resource-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ma-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.ma-resource-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ma-border-light);
}

.ma-resource-card__author {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ma-muted);
  font-weight: 500;
}

.ma-resource-card__read-time {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ma-subtle);
}


/* ============================================================
   11. S10 — FAQ
   ============================================================ */

.ma-faq {
  background: var(--ma-offwhite);
  padding: var(--ma-section-y) 0 0;
  overflow: hidden;
}

.ma-faq__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: calc(var(--ma-section-y) + 64px);
}

.ma-faq__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.ma-faq__left .ma-section-heading {
  line-height: 1.15;
}

.ma-faq__cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ma-muted);
  line-height: 1.65;
  margin: 0;
}

/* Accordion */
.ma-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ma-accordion__item {
  border-bottom: 1px solid var(--ma-border-light);
}

.ma-accordion__item:first-child {
  border-top: 1px solid var(--ma-border-light);
}

.ma-accordion__trigger,
.ma-accordion__trigger:hover,
.ma-accordion__trigger:focus,
.ma-accordion__trigger:active {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ma-text);
  line-height: 1.4;
  transition: color 0.2s ease;
  box-shadow: none;
}

.ma-accordion__trigger:hover { color: var(--ma-teal) !important; }

.ma-accordion__trigger:focus-visible {
  outline: 2px solid var(--ma-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.ma-accordion__icon {
  flex-shrink: 0;
  color: var(--ma-subtle);
  transition: transform 0.3s ease;
  display: flex;
}

.ma-accordion__item.is-open .ma-accordion__icon {
  transform: rotate(180deg);
}

.ma-accordion__item.is-open .ma-accordion__trigger {
  color: var(--ma-teal);
}

.ma-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ma-accordion__panel p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ma-muted);
  line-height: 1.7;
  margin: 0;
  padding: 0 4px 22px;
}


/* ============================================================
   12. S11 — FINAL CTA
   ============================================================ */

.ma-final-cta {
  background: linear-gradient(160deg, #FFFCF2 0%, #FFF9E6 100%);
  border-top: 1px solid rgba(201,168,76,0.20);
  padding: var(--ma-section-y) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ma-final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ma-final-cta__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ma-final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.ma-final-cta__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.ma-final-cta__body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #4A4A4A;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.ma-final-cta__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ma-final-cta__microcopy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9B9B9B;
  margin: 0;
}


/* ============================================================
   13. ANIMATIONS & KEYFRAMES
   ============================================================ */

/* ── Core keyframes ──────────────────────────────────────── */
@keyframes maFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes maFadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes maFloat {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}
@keyframes maFloatSm {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-5px); }
}

/* ── HERO: pure CSS entrance (no JS dependency) ─────────── */
.ma-hero .ma-eyebrow        { animation: maFadeUp 0.55s ease both 0.10s; }
.ma-hero__headline           { animation: maFadeUp 0.70s ease both 0.28s; }
.ma-hero__sub                { animation: maFadeUp 0.60s ease both 0.48s; }
.ma-hero__ctas               { animation: maFadeUp 0.55s ease both 0.62s; }
.ma-hero__trust              { animation: maFadeUp 0.50s ease both 0.78s; }
.ma-hero__portrait-wrap      { animation: maFadeRight 0.80s ease both 0.25s; }
.ma-hero__stat-card          { opacity: 0; animation: maFadeUp 0.60s ease both; }
.ma-hero__stat-card:nth-child(2) { animation-delay: 0.90s; }
.ma-hero__stat-card:nth-child(3) { animation-delay: 1.10s; }
.ma-hero__stat-card:nth-child(4) { animation-delay: 1.30s; }

/* Stat card float loop (after entrance) */
.ma-hero__stat-card:nth-child(2) { animation: maFadeUp 0.6s ease both 0.90s, maFloat 5.0s ease-in-out infinite 1.7s; }
.ma-hero__stat-card:nth-child(3) { animation: maFadeUp 0.6s ease both 1.10s, maFloat 6.5s ease-in-out infinite 2.0s; }
.ma-hero__stat-card:nth-child(4) { animation: maFadeUp 0.6s ease both 1.30s, maFloat 4.5s ease-in-out infinite 1.5s; }

/* ── SCROLL REVEAL BASE ─────────────────────────────────── */
.ma-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ma-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PROCESS CONNECTOR ──────────────────────────────────── */
.ma-process__connector {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s;
}
.ma-process__connector.is-visible {
  transform: scaleX(1);
}

/* Reduced-motion override */
@media (prefers-reduced-motion: reduce) {
  .ma-hero .ma-eyebrow,
  .ma-hero__headline,
  .ma-hero__sub,
  .ma-hero__ctas,
  .ma-hero__trust,
  .ma-hero__portrait-wrap,
  .ma-hero__stat-card { animation: none; opacity: 1; transform: none; }
  .ma-reveal { opacity: 1; transform: none; transition: none; }
  .ma-process__connector { transform: scaleX(1); }
}


/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* ---- ≤1200px ---- */
@media (max-width: 1200px) {
  .ma-hero__stat-card--tl { left: -8%; }
  .ma-hero__stat-card--mr { right: -8%; }
  .ma-hero__stat-card--bl { left: -6%; }

  .ma-testimonials__layout {
    grid-template-columns: 1fr;
  }

  .ma-case-study-card__metrics {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---- ≤1024px ---- */
@media (max-width: 1024px) {
  .ma-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ma-hero__sub { max-width: 100%; }
  .ma-hero__ctas { justify-content: center; }
  .ma-hero__trust { justify-content: center; }
  .ma-hero__portrait-wrap { display: none; }

  .ma-trust-bar__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .ma-trust-bar__divider { display: none; }
  .ma-trust-bar__stat { grid-column: span 1 !important; }

  .ma-bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .ma-bento__card--a { grid-column: span 6; }
  .ma-bento__card--b { grid-column: span 6; }
  .ma-bento__card--c,
  .ma-bento__card--d,
  .ma-bento__card--e { grid-column: span 3; }
  .ma-bento__card--c { grid-row: 3; }
  .ma-bento__card--d { grid-row: 3; }
  .ma-bento__card--e { grid-column: span 6; grid-row: 4; }
  .ma-bento__card--f { grid-column: span 6; grid-row: 5; }
  .ma-bento__card--promo { grid-column: span 6; grid-row: 6; }

  .ma-why__cards { grid-template-columns: 1fr; gap: 20px; }

  .ma-process__steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .ma-process__connector { display: none; }

  .ma-stats__grid { grid-template-columns: repeat(2, 1fr); }

  .ma-industries__grid { grid-template-columns: repeat(4, 1fr); }

  .ma-resources__grid { grid-template-columns: repeat(2, 1fr); }

  .ma-faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ma-faq__left { position: static; }
}

/* ---- ≤768px ---- */
@media (max-width: 768px) {
  .ma-trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ma-bento {
    grid-template-columns: 1fr;
  }
  .ma-bento__card--a,
  .ma-bento__card--b,
  .ma-bento__card--c,
  .ma-bento__card--d,
  .ma-bento__card--e,
  .ma-bento__card--f,
  .ma-bento__card--promo {
    grid-column: span 1;
    grid-row: auto;
  }

  .ma-why__cards { grid-template-columns: 1fr; }

  .ma-process__steps { grid-template-columns: 1fr; }

  .ma-stats__grid { grid-template-columns: repeat(2, 1fr); }

  .ma-industries__grid { grid-template-columns: repeat(2, 1fr); }

  .ma-resources__grid { grid-template-columns: 1fr; }

  .ma-section-header--flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ma-final-cta__ctas { flex-direction: column; align-items: center; }
}

/* ---- ≤480px ---- */
@media (max-width: 480px) {
  .ma-hero__ctas { flex-direction: column; }
  .ma-hero__trust { flex-direction: column; align-items: center; gap: 8px; }
  .ma-stats__grid { grid-template-columns: 1fr; }
  .ma-industries__grid { grid-template-columns: repeat(2, 1fr); }

  .ma-testimonial-card { padding: 28px 24px; }
  .ma-testimonials__layout { grid-template-columns: 1fr; }

  .ma-faq__inner { grid-template-columns: 1fr; }

  .ma-trust-bar__inner { grid-template-columns: 1fr 1fr; }
}

