/*
 * Stratants – SAGE Advisory Landing Page CSS
 * Scoped to .lp-page — does not affect any other page.
 * Loaded only when Template Name: Landing Page – SAGE Advisory
 *
 * Design system tokens inherited from stratants.css (:root).
 * Typography: Cormorant Garamond (serif), Inter (sans), JetBrains Mono (mono).
 */

/* ================================================================
   RESET — suppress global nav/footer rendered by wp_head/wp_footer
   that may still exist in some WordPress hooks
   ================================================================ */
.lp-body .navbar,
.lp-body .site-footer,
.lp-body #back-to-top,
.lp-body #staging-bar {
  display: none !important;
}

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

#lp-main {
  flex: 1;
}

/* ================================================================
   LP HEADER
   ================================================================ */
.lp-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;
}

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

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

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

.lp-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
   ================================================================ */
.lp-section {
  padding: 6rem 0;
}

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

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

/* ================================================================
   TYPOGRAPHY SCALE
   ================================================================ */
.lp-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;
}

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

.lp-headline-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--s-navy-deep);
  margin-bottom: 0;
}

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

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

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

/* ================================================================
   SECTION 1+2 MERGED — Opening block (two-col text → illustration)
   ================================================================ */
.lp-opening-block {
  background: var(--s-bg-faint);
  padding-top: 5.5rem;   /* accounts for sticky header ~60px + breathing room */
  padding-bottom: 0;     /* illustration bleeds to edge of section */
}

/* Two-column text row */
.lp-opening-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}

.lp-opening-col--left {
  /* headline column */
}

.lp-opening-col--right {
  padding-top: 1rem; /* optical alignment with headline cap-height */
}

.lp-supporting-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--s-navy-deep);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.lp-opening-body p {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.lp-opening-body p:last-child {
  margin-bottom: 0;
}

/* Transition statement between text and illustration */
.lp-before-intro-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

/* ================================================================
   ILLUSTRATION WRAPPER — Before (merged into opening block)
   ================================================================ */
.lp-illus-wrap {
  line-height: 0;
  overflow: hidden;
}

/* Before illustration: constrained to page width, with breathing room */
.lp-illus-wrap--before {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  border-top: none;
}

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

/* ================================================================
   SECTION 5 — After illustration section
   ================================================================ */
.lp-after {
  background: var(--s-navy);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.lp-illus-intro {
  font-size: 1.08rem;
  color: var(--s-navy-deep);
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.lp-illus-intro strong {
  font-weight: 500;
}

.lp-illus-intro--light {
  color: #fff;
}

.lp-after-sub {
  font-size: 1.05rem;
  color: rgba(251, 248, 243, 0.65);
  line-height: 1.85;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.lp-after-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(251, 248, 243, 0.3);
  text-align: center;
  margin-top: 1.8rem;
  line-height: 1.7;
}

/* ================================================================
   SECTION 2b — Reflective bridge
   ================================================================ */
.lp-bridge {
  background: var(--s-bg-faint);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(10, 90, 120, 0.07);
  border-bottom: 1px solid rgba(10, 90, 120, 0.07);
}

.lp-bridge-inner {
  text-align: center;
}

.lp-bridge-question {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--s-navy-deep);
  line-height: 1.4;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   SECTION 3 — Stats
   ================================================================ */
.lp-stats {
  background: var(--s-bg);
  position: relative;
}

.lp-stats-intro {
  font-size: 1.05rem;
  color: var(--s-muted);
  line-height: 1.85;
  margin-bottom: 3.5rem;
}

.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(10, 90, 120, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.lp-stat-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(10, 90, 120, 0.1);
  border-bottom: 1px solid rgba(10, 90, 120, 0.1);
  background: var(--s-bg-faint);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lp-stat-card:nth-child(2),
.lp-stat-card:nth-child(4) {
  border-right: none;
}

.lp-stat-card:nth-child(3),
.lp-stat-card:nth-child(4) {
  border-bottom: none;
}

.lp-stat-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--s-orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lp-stat-unit {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
}

.lp-stat-desc {
  font-size: 0.95rem;
  color: var(--s-muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.lp-stat-desc strong {
  color: var(--s-navy-deep);
  font-weight: 500;
}

.lp-stat-source {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--s-muted);
  margin: 0;
  opacity: 0.7;
  line-height: 1.6;
}

.lp-stat-source a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.lp-stat-source a:hover {
  color: var(--s-orange);
}

.lp-stat-ext {
  font-size: 0.65em;
  opacity: 0.6;
}

/* Quote card variant */
.lp-stat-card--quote {
  background: var(--s-navy);
  position: relative;
}

.lp-stat-quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--s-teal);
  opacity: 0.25;
  margin-bottom: -1rem;
}

.lp-stat-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.lp-stat-card--quote .lp-stat-source {
  color: rgba(251, 248, 243, 0.35);
}

.lp-stat-card--quote .lp-stat-source a {
  color: rgba(251, 248, 243, 0.35);
}

.lp-stat-card--quote .lp-stat-source a:hover {
  color: var(--s-teal);
}

.lp-stats-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--s-muted);
  opacity: 0.6;
  text-align: center;
}

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

.lp-sage-intro {
  font-size: 1.08rem;
  color: var(--s-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.lp-sage-intro:last-of-type {
  margin-bottom: 0;
}

.lp-sage .lp-container--narrow {
  margin-bottom: 4rem;
}

.lp-sage-stages {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(10, 90, 120, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

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

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

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

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

.lp-stage-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

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

/* Connector — hidden between flex items; stage borders act as connectors */
.lp-stage-connector {
  display: none;
}

/* ================================================================
   SECTION 6 — CTA
   ================================================================ */
.lp-cta {
  background: var(--s-navy);
  padding-top: 7rem;
  padding-bottom: 7rem;
  position: relative;
  overflow: hidden;
}

.lp-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;
}

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

.lp-cta-headline {
  color: #fff;
  margin-bottom: 2rem;
}

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

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

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

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

.lp-cta-sub-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

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

.lp-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;
}

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

.lp-contact-btn--primary {
  background: #25d366;    /* WhatsApp green */
  color: #fff;
  border: 1px solid #25d366;
}

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

.lp-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.lp-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;
}

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

.lp-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) {
  .lp-section {
    padding: 4.5rem 0;
  }

  .lp-opening-block {
    padding-top: 4.5rem;
  }

  .lp-opening-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .lp-opening-col--right {
    padding-top: 0;
  }

  .lp-sage-stages {
    flex-direction: column;
    border-radius: 2px;
  }

  .lp-stage {
    border-right: none;
    border-bottom: 1px solid rgba(10, 90, 120, 0.1);
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.8rem 1.6rem;
  }

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

  .lp-stage-letter {
    font-size: 2.8rem;
    min-width: 2.5rem;
  }

  .lp-stats-grid {
    grid-template-columns: 1fr;
  }

  .lp-stat-card:nth-child(2) {
    border-right: none;
  }

  .lp-stat-card:nth-child(3) {
    border-bottom: 1px solid rgba(10, 90, 120, 0.1);
  }

  .lp-stat-card:nth-child(4) {
    border-bottom: none;
  }

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

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

  .lp-opening-block {
    padding-top: 3.5rem;
  }

  .lp-opening-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 1.2rem 2rem;
  }

  .lp-opening-col--right {
    padding-top: 0;
  }

  .lp-before-intro-wrap {
    padding: 0 1.2rem 1.5rem;
  }

  .lp-illus-wrap--before {
    padding: 0 1.2rem 3rem;
  }

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

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

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

  .lp-stat-card {
    padding: 2rem 1.4rem;
  }

  .lp-stage {
    padding: 1.4rem 1.2rem;
  }

  .lp-cta {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

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

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

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

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

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

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

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