/*
 * Stratants – MSME Advisory Landing Page CSS  (rc11)
 * Scoped to .ma-page — does not affect any other page.
 * Loaded only when Template Name: Landing Page – MSME Advisory
 *
 * Design system tokens inherited from stratants.css (:root).
 * Typography: Cormorant Garamond (serif), Inter (sans), JetBrains Mono (mono).
 * All class names prefixed ma- to avoid collision with global styles and lp- classes.
 *
 * 6-section structure:
 *   1. Hero (two-column) + first illustration flush below
 *   2. Three everyday frustrations
 *   3. The underlying organisational problem + compact evidence strip
 *   4. SAGE approach (4-column compact)
 *   5. Desired state (navy) + second illustration
 *   6. Start a conversation (CTA, navy)
 */

/* ================================================================
   RESET — suppress global nav/footer
   ================================================================ */
.ma-body .navbar,
.ma-body .site-footer,
.ma-body #back-to-top,
.ma-body #staging-bar {
  display: none !important;
}

/* ================================================================
   PAGE SHELL
   ================================================================ */
.ma-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--s-bg);
}

#ma-main {
  flex: 1;
}

/* ================================================================
   HEADER
   ================================================================ */
.ma-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10, 90, 120, 0.08);
  padding: 0.9rem 0;
}

.ma-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ma-logo-link {
  display: block;
  flex-shrink: 0;
}

.ma-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ma-header-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-muted);
  padding-left: 1.2rem;
  border-left: 1px solid rgba(10, 90, 120, 0.15);
}

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.ma-section {
  padding: 5.5rem 0;
}

.ma-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ma-container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================================================
   TYPOGRAPHY SCALE
   ================================================================ */
.ma-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s-orange);
  display: block;
  margin-bottom: 1.2rem;
}

.ma-eyebrow--light {
  color: var(--s-teal);
}

.ma-headline-xl {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--s-navy-deep);
  margin-bottom: 2rem;
}

.ma-headline-xl em {
  font-style: italic;
  color: var(--s-orange);
}

.ma-headline-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--s-navy-deep);
  margin-bottom: 1.6rem;
}

.ma-headline-lg em {
  font-style: italic;
  color: var(--s-orange);
}

.ma-headline-lg--light {
  color: #fff;
}

.ma-headline-lg--light em {
  color: var(--s-teal);
}

.ma-section-intro {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* ================================================================
   SECTION 1 — HERO
   Two-column grid on desktop: headline left, description right.
   Illustration flush below the text columns.
   ================================================================ */
.ma-hero {
  background: var(--s-bg-faint);
  padding-top: 5rem;
  padding-bottom: 0;           /* illustration bleeds to bottom */
  border-bottom: 1px solid rgba(10, 90, 120, 0.07);
}

/* Two-column grid */
.ma-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: center;
  padding-bottom: 4rem;
}

.ma-hero-left {
  /* headline column */
}

.ma-hero-right {
  /* description column */
}

.ma-hero-desc {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.ma-hero-desc:last-child {
  margin-bottom: 0;
}

.ma-hero-desc--strong {
  color: var(--s-navy-deep);
  font-size: 1.08rem;
}

.ma-hero-cta {
  margin-top: 2.5rem;
}

/* First illustration — flush below hero grid, no vertical gap */
.ma-hero-illus-wrap {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  /* Constrained to 1200px max but full-bleed appearance on large screens */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ma-hero-illus {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Button */
.ma-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, transform 0.15s;
}

.ma-btn--primary {
  background: var(--s-navy);
  color: #fff;
  border: 1px solid var(--s-navy);
}

.ma-btn--primary:hover {
  background: var(--s-blue);
  border-color: var(--s-blue);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ================================================================
   SECTION 2 — Three everyday frustrations
   Compact, scannable panels.
   ================================================================ */
.ma-frustrations {
  background: var(--s-bg);
}

.ma-frustrations .ma-container--narrow {
  margin-bottom: 3rem;
}

.ma-pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(10, 90, 120, 0.09);
  border-radius: 2px;
  overflow: hidden;
}

.ma-pain-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 2.5rem;
  align-items: start;
  padding: 2.5rem 2.5rem;
  border-bottom: 1px solid rgba(10, 90, 120, 0.09);
  background: var(--s-bg-faint);
  transition: background 0.25s;
}

.ma-pain-item:last-child {
  border-bottom: none;
}

.ma-pain-item:hover {
  background: var(--s-bg-mid);
}

.ma-pain-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--s-orange);
  opacity: 0.22;
  line-height: 1;
  padding-top: 0.2rem;
}

.ma-pain-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: var(--s-navy-deep);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.ma-pain-body p {
  font-size: 1.02rem;
  color: var(--s-muted);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.ma-pain-body p:last-child {
  margin-bottom: 0;
}

.ma-pain-reflection {
  font-family: var(--font-serif);
  font-size: 1.05rem !important;
  color: var(--s-navy-deep) !important;
  border-left: 2px solid rgba(200, 90, 10, 0.22);
  padding-left: 1rem;
  margin-top: 0.9rem !important;
  line-height: 1.6 !important;
}

/* ================================================================
   SECTION 3 — The underlying organisational problem
   ================================================================ */
.ma-reframing {
  background: var(--s-bg-faint);
}

.ma-reframing-body p {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.ma-closing-statement {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--s-navy-deep);
  border-left: 3px solid rgba(200, 90, 10, 0.2);
  padding-left: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 3.5rem;
  line-height: 1.55;
}

/* Compact evidence strip — 3 columns */
.ma-evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(10, 90, 120, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ma-evidence-item {
  padding: 2.2rem 2rem;
  border-right: 1px solid rgba(10, 90, 120, 0.1);
  background: var(--s-bg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ma-evidence-item:last-child {
  border-right: none;
}

.ma-evidence-figure {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--s-orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ma-evidence-unit {
  font-size: 0.5em;
  vertical-align: super;
  letter-spacing: 0;
}

.ma-evidence-desc {
  font-size: 0.93rem;
  color: var(--s-muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.ma-evidence-source {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--s-muted);
  margin: 0;
  opacity: 0.8;
}

.ma-evidence-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(10, 90, 120, 0.25);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.ma-evidence-source a:hover {
  color: var(--s-orange);
  text-decoration-color: rgba(200, 90, 10, 0.4);
}

.ma-evidence-item--quote {
  background: var(--s-navy);
}

.ma-evidence-quote-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--s-teal);
  opacity: 0.25;
  margin-bottom: -0.8rem;
}

.ma-evidence-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.ma-evidence-item--quote .ma-evidence-source {
  color: rgba(251, 248, 243, 0.3);
}

.ma-evidence-item--quote .ma-evidence-source a {
  color: rgba(251, 248, 243, 0.4);
  text-decoration-color: rgba(157, 184, 198, 0.3);
}

.ma-evidence-item--quote .ma-evidence-source a:hover {
  color: var(--s-teal);
  text-decoration-color: rgba(157, 184, 198, 0.6);
}

.ma-evidence-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  color: var(--s-muted);
  opacity: 0.55;
  text-align: center;
  line-height: 1.7;
  margin-top: 0.8rem;
}

/* ================================================================
   SECTION 4 — SAGE Stages (4-column compact)
   ================================================================ */
.ma-sage {
  background: var(--s-bg);
}

.ma-sage-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--s-navy-deep);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ma-sage-intro {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.85;
  margin-bottom: 0;
}

.ma-sage .ma-container--narrow {
  margin-bottom: 3.5rem;
}

.ma-sage-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(10, 90, 120, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.ma-stage {
  background: var(--s-bg-faint);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  border-right: 1px solid rgba(10, 90, 120, 0.1);
  transition: background 0.25s;
}

.ma-stage:last-of-type {
  border-right: none;
}

.ma-stage:hover {
  background: var(--s-bg-mid);
}

.ma-stage-letter {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--s-orange);
  opacity: 0.28;
  line-height: 1;
}

.ma-stage-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-orange);
  display: block;
}

.ma-stage-desc {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: var(--s-navy-deep);
  line-height: 1.45;
  margin: 0;
}

/* ================================================================
   SECTION 5 — After (desired state) — dark navy
   ================================================================ */
.ma-after {
  background: var(--s-navy);
  padding-top: 5rem;
  padding-bottom: 0;
}

.ma-after-sub {
  font-size: 1.05rem;
  color: rgba(251, 248, 243, 0.6);
  line-height: 1.85;
  margin-bottom: 0;
}

/* After illustration */
.ma-illus-wrap {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem 0;
  line-height: 0;
  overflow: hidden;
}

.ma-illus-wrap--after {
  margin-top: 3rem;
}

.ma-illus {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ================================================================
   SECTION 6 — CTA (dark navy)
   ================================================================ */
.ma-cta {
  background: var(--s-navy);
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(157, 184, 198, 0.07);
}

.ma-cta::before {
  content: 'SAGE';
  font-family: var(--font-serif);
  font-size: 22vw;
  font-weight: 300;
  color: rgba(10, 90, 120, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.3em;
}

.ma-cta-inner {
  position: relative;
  z-index: 1;
}

.ma-cta-headline {
  color: #fff;
  margin-bottom: 1.8rem;
}

.ma-cta-headline em {
  color: var(--s-teal);
  font-style: italic;
}

.ma-em-teal {
  color: var(--s-teal) !important;
}

.ma-cta-copy {
  font-size: 1.05rem;
  color: rgba(251, 248, 243, 0.55);
  line-height: 1.85;
  margin-bottom: 0.7rem;
}

.ma-cta-divider {
  width: 40px;
  height: 2px;
  background: var(--s-teal);
  opacity: 0.4;
  margin: 2.2rem 0;
}

.ma-cta-sub-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(251, 248, 243, 0.75);
  margin-bottom: 2.2rem;
  line-height: 1.5;
}

/* Contact buttons */
.ma-contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ma-contact-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.15s;
  cursor: pointer;
}

.ma-contact-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ma-contact-btn--primary {
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
}

.ma-contact-btn--primary:hover {
  background: #1ebe59;
  border-color: #1ebe59;
  color: #fff;
}

.ma-contact-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(251, 248, 243, 0.8);
  border: 1px solid rgba(157, 184, 198, 0.2);
}

.ma-contact-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(157, 184, 198, 0.4);
  color: #fff;
}

.ma-contact-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ma-contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.ma-contact-btn--primary .ma-contact-icon {
  color: #fff;
}

.ma-contact-btn--secondary .ma-contact-icon {
  color: var(--s-teal);
}

.ma-contact-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ma-contact-action {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.ma-contact-hint {
  font-size: 0.88rem;
  opacity: 0.7;
  font-family: var(--font-sans);
  font-weight: 300;
}

/* ================================================================
   FOOTER
   ================================================================ */
.ma-footer {
  background: var(--s-navy);
  border-top: 1px solid rgba(157, 184, 198, 0.08);
  padding: 2rem 0;
}

.ma-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.ma-footer-brand {
  display: block;
  flex-shrink: 0;
}

.ma-footer-logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.55;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ma-footer-taglines {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ma-footer-tagline-line {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  color: rgba(251, 248, 243, 0.22);
  text-transform: uppercase;
}

.ma-footer-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.ma-footer-link {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.3);
  text-decoration: none;
  transition: color 0.25s;
}

.ma-footer-link:hover {
  color: var(--s-teal);
}

.ma-footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(251, 248, 243, 0.2);
  margin: 0;
  width: 100%;
}

/* ================================================================
   RESPONSIVE — Tablet ≤ 991px
   ================================================================ */
@media (max-width: 991px) {
  .ma-section {
    padding: 4rem 0;
  }

  .ma-hero {
    padding-top: 4rem;
  }

  /* Stack hero columns */
  .ma-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }

  /* Frustrations */
  .ma-pain-item {
    grid-template-columns: 3rem 1fr;
    gap: 0 1.5rem;
    padding: 2rem 1.8rem;
  }

  /* Evidence strip: 2 + 1 on tablet */
  .ma-evidence-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ma-evidence-item:nth-child(2) {
    border-right: none;
  }

  .ma-evidence-item:nth-child(3) {
    border-right: none;
    border-top: 1px solid rgba(10, 90, 120, 0.1);
    grid-column: span 2;
  }

  /* SAGE: 2 columns on tablet */
  .ma-sage-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .ma-stage:nth-child(2) {
    border-right: none;
  }

  .ma-stage:nth-child(3) {
    border-top: 1px solid rgba(10, 90, 120, 0.1);
  }

  .ma-stage:nth-child(4) {
    border-right: none;
    border-top: 1px solid rgba(10, 90, 120, 0.1);
  }

  .ma-cta::before {
    font-size: 35vw;
  }
}

/* ================================================================
   RESPONSIVE — Mobile ≤ 575px
   ================================================================ */
@media (max-width: 575px) {
  .ma-section {
    padding: 3.2rem 0;
  }

  .ma-hero {
    padding-top: 3rem;
  }

  .ma-container,
  .ma-container--narrow {
    padding: 0 1.2rem;
  }

  .ma-header-inner {
    padding: 0 1.2rem;
  }

  .ma-footer-inner {
    padding: 0 1.2rem;
  }

  .ma-hero-grid {
    padding-bottom: 2rem;
  }

  /* Hero illustration: no horizontal padding on mobile so image fills width */
  .ma-hero-illus-wrap {
    padding: 0;
  }

  /* Pain points: hide number on mobile, comfortable padding */
  .ma-pain-item {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.4rem;
  }

  .ma-pain-number {
    display: none;
  }

  /* Evidence: single column */
  .ma-evidence-strip {
    grid-template-columns: 1fr;
  }

  .ma-evidence-item {
    border-right: none;
    border-bottom: 1px solid rgba(10, 90, 120, 0.1);
    padding: 1.8rem 1.4rem;
  }

  .ma-evidence-item:last-child {
    border-bottom: none;
  }

  .ma-evidence-item:nth-child(2) {
    border-right: none;
  }

  .ma-evidence-item:nth-child(3) {
    grid-column: auto;
    border-top: none;
  }

  /* SAGE: single column */
  .ma-sage-stages {
    grid-template-columns: 1fr;
  }

  .ma-stage {
    border-right: none;
    border-bottom: 1px solid rgba(10, 90, 120, 0.1);
    padding: 1.6rem 1.4rem;
  }

  .ma-stage:nth-child(2),
  .ma-stage:nth-child(3),
  .ma-stage:nth-child(4) {
    border-right: none;
    border-top: none;
  }

  .ma-stage:last-of-type {
    border-bottom: none;
  }

  /* After illustration: no side padding on mobile so it fills width */
  .ma-illus-wrap {
    padding: 0;
  }

  .ma-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ma-cta::before {
    font-size: 50vw;
  }

  .ma-contact-btn {
    padding: 1rem 1.2rem;
  }

  .ma-footer-links {
    margin-left: 0;
  }
}

/* ================================================================
   ACCESSIBILITY — Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .ma-contact-btn,
  .ma-stage,
  .ma-pain-item,
  .ma-btn {
    transition: none;
  }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .ma-header,
  .ma-footer,
  .ma-cta::before {
    display: none;
  }

  .ma-cta {
    background: #fff;
    color: #000;
  }

  .ma-after {
    background: #f5f5f5;
  }
}
