/* ═══════════════════════════════════════════════════════════════
   home.css — MireonSpero™ Homepage
   Complete replacement. All .ms- namespaced. No collision with global.css.
═══════════════════════════════════════════════════════════════ */


/* ── SHARED UTILITIES ────────────────────────────────────── */

.ms-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ms-rule);
}

.ms-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--ms-navy);
  line-height: 1.2;
}

.ms-section-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-gray);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.ms-link-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ms-teal);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.15s;
}
.ms-link-text::after { content: '→'; }
.ms-link-text:hover { opacity: 0.72; }


/* ── HERO — full bleed background, bright and airy, narrative on forefront ── */

.ms-hero {
  position: relative;
  min-height: 620px;
  background: #e8e4dc;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.ms-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ms-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: brightness(1.14) saturate(1.06);
}

.ms-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 251, 242, 0.14) 0%,
    rgba(255, 251, 242, 0.04) 50%,
    transparent 100%
  );
}

.ms-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 7rem 2rem;
  display: flex;
  justify-content: center;
}

.ms-hero-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.ms-hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ms-navy);
  font-weight: 600;
}

.ms-hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ms-navy);
  margin: 0;
}

.ms-hero-heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--ms-navy);
}

.ms-hero-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ms-navy);
  line-height: 1.78;
}

.ms-hero-cta {
  display: inline-block;
  width: fit-content;
  padding: 0.85rem 2rem;
  background: var(--ms-gold);
  color: var(--ms-navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ms-hero-cta:hover { background: var(--ms-teal); color: #fff; }


/* ── MISSION STRIP ───────────────────────────────────────── */

.ms-mission {
  background: var(--ms-cream);
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.ms-mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.ms-mission-label {
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--ms-rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.ms-mission-label-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(29, 53, 87, 0.08);
  line-height: 1;
}

.ms-mission-label-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ms-gray);
  font-weight: 400;
}

.ms-mission-content {
  padding: 3.5rem 3rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: center;
}

.ms-mission-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--ms-navy);
  line-height: 1.25;
  margin: 0;
}

.ms-mission-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #4a5568;
  max-width: 580px;
  line-height: 1.78;
  margin: 0;
}


/* ── PHASE EDITORIAL STRIPS ──────────────────────────────── */

.ms-phases-wrap {
  padding: 5rem 2rem;
  max-width: 100%;
  margin: 0;
  background: #fff;
}

.ms-phases {
  max-width: 1200px;
  margin: 0 auto;
}

.ms-phase-strip {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ms-rule);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

.ms-phase-strip:hover {
  background: var(--ms-cream);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
}

.ms-phase-thumb {
  width: 100px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(29, 53, 87, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-phase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 6px;
}

.ms-phase-thumb-fallback {
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-phase-num-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(29, 53, 87, 0.28);
}

.ms-phase-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ms-phase-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ms-navy);
  line-height: 1.2;
}

.ms-phase-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.62;
}

.ms-phase-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.ms-phase-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ms-teal);
  font-weight: 500;
  white-space: nowrap;
}

.ms-phase-arrow {
  font-size: 0.9rem;
  color: rgba(29, 53, 87, 0.22);
  transition: color 0.15s ease, transform 0.15s ease;
}

.ms-phase-strip:hover .ms-phase-arrow {
  color: var(--ms-teal);
  transform: translateX(4px);
}

.ms-phases-footer {
  margin-top: 2rem;
  text-align: right;
}


/* ── PATHWAYS GRID — light, white/cream, restrained ─────── */

.ms-pathways {
  background: #fff;          /* white instead of navy */
  padding: 5rem 2rem;
  max-width: 100%;
  margin: 0;
}

.ms-pathways-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ms-pathways-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ms-rule);   /* rule now on white — uses navy-tinted token */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ms-pathways-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--ms-navy);    /* navy on white */
  line-height: 1.2;
}

.ms-pathways-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-gray);    /* standard gray on white */
  flex-shrink: 0;
  margin-left: 1.5rem;
}

/* Three-column hairline grid on white — same rule token as chambers */
.ms-pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ms-rule);
}

.ms-pathway-cell {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.18s ease;
}
.ms-pathway-cell:hover { background: var(--ms-cream); }

/* Icon slot: very pale navy tint background, icon contained */
.ms-pathway-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
  background: rgba(29, 53, 87, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ms-rule);
}

.ms-pathway-img img {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  display: block;
  opacity: 0.58;            /* slightly more restrained on white — still clear */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ms-pathway-cell:hover .ms-pathway-img img {
  opacity: 0.78;
  transform: scale(1.04);
}

/* Separator line at icon zone bottom — rule token on white */
.ms-pathway-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ms-rule);
}

.ms-pathway-body {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Gold dot ring — same as chambers treatment on light background */
.ms-pathway-icon {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(233, 196, 106, 0.50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-pathway-icon-dot {
  width: 5px;
  height: 5px;
  background: var(--ms-gold);
  border-radius: 50%;
}

.ms-pathway-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;         /* bumped from 400 — reads better on white */
  color: var(--ms-navy);    /* navy on white */
  line-height: 1.2;
}

.ms-pathway-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #4a5568;           /* slate on white — matches rest of page */
  line-height: 1.72;
  flex: 1;
  margin: 0;
}

.ms-pathway-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.70rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ms-teal);    /* teal on white — consistent with all other link-text */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.ms-pathway-link::after { content: '→'; }
.ms-pathway-link:hover { opacity: 0.72; }


/* ── HORIZON / COMING SOON ───────────────────────────────── */

.ms-horizon {
  background: var(--ms-cream);
  padding: 5rem 2rem;
  max-width: 100%;
  margin: 0;
}

.ms-horizon-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ms-horizon-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ms-gray);
  margin-bottom: 1.1rem;
}

.ms-horizon-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ms-navy);
  margin: 0 0 1.1rem;
}

.ms-horizon-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.78;
  margin: 0;
}

.ms-horizon-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ms-horizon-item {
  border: 1px solid var(--ms-rule);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}

.ms-horizon-item-img {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: rgba(29, 53, 87, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ms-rule);
}

.ms-horizon-item-img img {
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 65%;
  object-fit: contain;
  display: block;
  opacity: 0.45;
  filter: saturate(0.40);
}

.ms-horizon-item-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ms-horizon-item-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(29, 53, 87, 0.12);
  line-height: 1;
  min-width: 26px;
  padding-top: 3px;
}

.ms-horizon-item-text { flex: 1; }

.ms-horizon-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ms-navy);
  margin-bottom: 0.3rem;
}

.ms-horizon-item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

.ms-horizon-pill {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.2rem 0.65rem;
  background: rgba(29, 53, 87, 0.05);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.60rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-gray);
}


/* ── TRUST / INSTITUTIONAL STANDARDS ────────────────────── */

.ms-trust {
  padding: 5rem 2rem;
  max-width: 100%;
  margin: 0;
  background: #fff;
}

.ms-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ms-trust-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ms-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ms-trust-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--ms-navy);
  line-height: 1.2;
}

.ms-trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.ms-trust-pillar {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--ms-rule);
}
.ms-trust-pillar:not(:first-child) { padding-left: 2rem; }
.ms-trust-pillar:last-child { border-right: none; }

.ms-trust-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  object-fit: contain;
  display: block;
  opacity: 0.72;
}

.ms-trust-mark {
  width: 20px;
  height: 2px;
  background: var(--ms-gold);
  margin-bottom: 1rem;
  display: block;
}

.ms-trust-pillar-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ms-navy);
  margin-bottom: 0.5rem;
}

.ms-trust-pillar-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.90rem;
  color: #4a5568;
  line-height: 1.72;
  margin: 0;
}

.ms-trust-statement {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ms-rule);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.ms-trust-rule {
  width: 3px;
  height: 38px;
  background: var(--ms-gold);
  flex-shrink: 0;
  border-radius: 2px;
}

.ms-trust-statement-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ms-navy);
  line-height: 1.55;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px breakpoint
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero */
  .ms-hero { min-height: unset; }
  .ms-hero-content { padding: 4rem 1.5rem; }
  .ms-hero-text { max-width: 100%; gap: 1.25rem; align-items: center; text-align: center; }
  .ms-hero-heading { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .ms-hero-body { font-size: 0.93rem; }

  /* Mission */
  .ms-mission-inner { grid-template-columns: 1fr; }
  .ms-mission-label {
    border-right: none;
    border-bottom: 1px solid var(--ms-rule);
    padding: 2rem 1.5rem 1.25rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .ms-mission-content { padding: 2rem 1.5rem; }

  /* Phase strips */
  .ms-phases-wrap { padding: 3.5rem 1.5rem; }
  .ms-phase-strip {
    grid-template-columns: 72px 1fr;
    gap: 1.1rem;
  }
  .ms-phase-right { display: none; }
  .ms-phase-thumb { width: 72px; height: 56px; }

  /* Pathways: stack to single column */
  .ms-pathways { padding: 3.5rem 1.5rem; }
  .ms-pathways-grid { grid-template-columns: 1fr; }
  .ms-pathway-img { height: 120px; }

  /* Horizon */
  .ms-horizon { padding: 3.5rem 1.5rem; }
  .ms-horizon-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Trust: single column, all pillars flush left and uniformly spaced */
  .ms-trust { padding: 3.5rem 1.5rem; }
  .ms-trust-pillars {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ms-trust-pillar {
    border-right: none;
    border-bottom: 1px solid var(--ms-rule);
    padding: 1.75rem 0 !important;
  }
  .ms-trust-pillar:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  /* Section headers */
  .ms-section-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .ms-section-meta { margin-left: 0; }

  .ms-pathways-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .ms-pathways-meta { margin-left: 0; }

}
