/* ============================================================
   Managed Services page — page-specific styles
   Inherits tokens from colors_and_type.css and shared chrome
   from styles.css.
   ============================================================ */

.ms-body {
  background: var(--ec-offwhite);
  color: var(--ec-navy-deep);
}

/* ── Nav links (page-specific because the platform site doesn't have multi-page nav links yet) ── */
.nav-links {
  display: flex;
  gap: 6px;
  margin: 0 auto;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ec-navy-deep);
  padding: 8px 14px;
  border-radius: 9999px;
  text-decoration: none;
  opacity: 0.7;
  transition: all .18s var(--ease-standard);
}
.nav-link:hover { opacity: 1; background: rgba(15,32,43,0.04); }
.nav-link.is-active {
  opacity: 1;
  background: rgba(125,173,63,0.12);
  color: var(--ec-navy-deep);
  font-weight: 600;
}
.nav-actions { display: flex; gap: 10px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.ms-hero {
  position: relative;
  background: var(--ec-navy-deep);
  color: #fff;
  padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 12vh, 120px);
  overflow: hidden;
}
.ms-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.ms-hero-grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
}
.ms-hero-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.ms-hero-dot--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(125,173,63,0.55), transparent 70%);
  top: -120px; right: -80px;
}
.ms-hero-dot--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(35,100,118,0.5), transparent 70%);
  bottom: -120px; left: -60px;
}
.ms-hero-dot--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(125,173,63,0.35), transparent 70%);
  top: 35%; left: 40%;
  opacity: 0.25;
}
.ms-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.ms-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(125,173,63,0.14);
  border: 1px solid rgba(125,173,63,0.32);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ec-green);
  margin-bottom: 32px;
}
.ms-hero-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ec-green);
  box-shadow: 0 0 0 0 rgba(125,173,63,0.7);
  animation: msPulse 2.4s infinite;
}
@keyframes msPulse {
  0%   { box-shadow: 0 0 0 0 rgba(125,173,63,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(125,173,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,173,63,0); }
}

.ms-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: #fff;
  text-wrap: pretty;
}
.ms-hero-title b { font-weight: 700; }
.ms-hero-title .ec-green { color: var(--ec-green); font-weight: 700; }
.ms-hero-title-kicker {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ec-green);
  margin-bottom: 18px;
  line-height: 1;
}

.ms-hero-lede {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0 0 36px;
  max-width: 64ch;
}

.ms-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.ms-hero-cta {
  font-size: 15px;
  padding: 12px 20px;
}

.ms-hero-marquee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ms-hero-marquee .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(125,173,63,0.6);
}

/* ============================================================
   SECTION 2 — INTRO / OVERVIEW
   ============================================================ */
.ms-intro {
  background: var(--ec-offwhite);
  padding: clamp(80px, 12vh, 130px) 0;
  border-bottom: 1px solid rgba(15,32,43,0.06);
}
.ms-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.ms-intro-h {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 18px 0 0;
  color: var(--ec-navy-deep);
  text-wrap: pretty;
}
.ms-intro-h b { font-weight: 700; }
.ms-intro-h .ec-green { color: var(--ec-green); font-weight: 700; }

.ms-intro-body p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: #3d5a4e;
  margin: 0 0 18px;
  max-width: 56ch;
}
.ms-intro-body p:last-child { margin-bottom: 0; }
.ms-intro-body p b { color: var(--ec-navy-deep); font-weight: 600; }
.ms-intro-body p b.ec-green { color: var(--ec-green); font-weight: 700; }

@media (max-width: 880px) {
  .ms-intro-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   SECTIONS 3-5 — SERVICES
   ============================================================ */
.ms-services {
  background: var(--ec-offwhite);
  padding: clamp(80px, 12vh, 130px) 0;
}
.ms-services-head {
  margin-bottom: clamp(48px, 7vh, 72px);
  max-width: 760px;
}
.ms-services-h {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
  color: var(--ec-navy-deep);
  text-wrap: pretty;
}
.ms-services-h b { font-weight: 700; }
.ms-services-h .ec-green { color: var(--ec-green); font-weight: 700; }
.ms-services-sub {
  font-size: 17px;
  color: #3d5a4e;
  line-height: 1.5;
  margin: 0;
  max-width: 50ch;
}

/* Service card */
.ms-service {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,32,43,0.07);
  border-radius: var(--radius-2xl, 24px);
  padding: clamp(32px, 4vw, 56px);
  margin-bottom: 28px;
  box-shadow: 0 22px 48px -28px rgba(15,32,43,0.18);
  overflow: hidden;
}
.ms-service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--ec-green);
  opacity: 0.85;
}
.ms-service--inverse {
  background: var(--ec-navy-deep);
  color: #fff;
  border-color: rgba(255,255,255,0.06);
}
.ms-service--inverse::before { background: var(--ec-green); }

.ms-service-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  margin-bottom: 24px;
}
.ms-service-num {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ec-green);
  padding: 6px 10px;
  border: 1px dashed rgba(125,173,63,0.5);
  border-radius: 8px;
}
.ms-service-titles { min-width: 0; }
.ms-service-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 6px;
  color: inherit;
}
.ms-service--inverse .ms-service-title { color: #fff; }
.ms-service-title b { font-weight: 700; }
.ms-service-deck {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-green);
  letter-spacing: 0.005em;
  margin: 0;
}
.ms-service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(125,173,63,0.1);
  border: 1px solid rgba(125,173,63,0.28);
  color: var(--ec-green);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ms-service--inverse .ms-service-icon {
  background: rgba(125,173,63,0.14);
}

.ms-service-body {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: #3d5a4e;
  margin: 0 0 32px;
  max-width: 70ch;
}
.ms-service--inverse .ms-service-body { color: rgba(255,255,255,0.78); }
.ms-service-body b { color: var(--ec-navy-deep); font-weight: 600; }
.ms-service--inverse .ms-service-body b { color: #fff; }
.ms-service-body b.ec-green { color: var(--ec-green); font-weight: 700; }

.ms-tier-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ec-green);
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(15,32,43,0.12);
}
.ms-service--inverse .ms-tier-label { border-bottom-color: rgba(255,255,255,0.14); }

/* Tier list (Service 1) */
.ms-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ms-tier {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
  padding: 18px 0;
}
.ms-tier-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
}
.ms-tier-num {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ec-navy-deep);
  background: rgba(125,173,63,0.18);
  border: 1px solid rgba(125,173,63,0.4);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ms-tier-line {
  position: absolute;
  top: 32px; bottom: -18px;
  width: 1px;
  background: rgba(15,32,43,0.12);
}
.ms-tier-line--last { display: none; }
.ms-tier-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ec-navy-deep);
  margin: 4px 0 6px;
}
.ms-tier-body p {
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.55;
  color: #3d5a4e;
  margin: 0;
}
.ms-tier-tag {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15,32,43,0.55);
  background: rgba(15,32,43,0.04);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  align-self: center;
}
.ms-tier-tag.is-feature {
  color: var(--ec-navy-deep);
  background: rgba(125,173,63,0.18);
  border: 1px solid rgba(125,173,63,0.4);
}

/* Focus grid (Service 2) */
.ms-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ms-focus {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 22px 24px;
  transition: all .22s var(--ease-standard);
}
.ms-focus:hover {
  background: rgba(125,173,63,0.06);
  border-color: rgba(125,173,63,0.32);
}
.ms-focus-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(125,173,63,0.14);
  color: var(--ec-green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ms-focus h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 6px;
}
.ms-focus p {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

@media (max-width: 760px) {
  .ms-focus-grid { grid-template-columns: 1fr; }
}

/* Included list (Service 3) */
.ms-included {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 28px;
}
.ms-included li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ms-bullet {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ec-green);
  margin-top: 8px;
  box-shadow: 0 0 0 4px rgba(125,173,63,0.14);
}
.ms-included li > div {
  display: flex; flex-direction: column; gap: 2px;
}
.ms-included li b {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ec-navy-deep);
}
.ms-included li span {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  color: #3d5a4e;
}

@media (max-width: 760px) {
  .ms-included { grid-template-columns: 1fr; }
}

/* Workiva lockup */
.ms-workiva {
  background: linear-gradient(135deg, rgba(15,32,43,0.04), rgba(125,173,63,0.06));
  border: 1px solid rgba(15,32,43,0.08);
  border-left: 4px solid var(--ec-green);
  border-radius: 16px;
  padding: 26px 28px;
  margin-top: 8px;
}
.ms-workiva-tag {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(15,32,43,0.55);
  margin-bottom: 6px;
}
.ms-workiva-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ec-navy-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ms-workiva-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ec-navy-deep);
  color: var(--ec-green);
}
.ms-workiva-logo {
  display: block;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.ms-workiva-body {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  color: #3d5a4e;
  margin: 0;
  max-width: 78ch;
}
.ms-workiva-body b { color: var(--ec-navy-deep); font-weight: 600; }
.ms-workiva-body b.ec-green { color: var(--ec-green); font-weight: 700; }

@media (max-width: 760px) {
  .ms-service-head { grid-template-columns: 1fr; gap: 14px; }
  .ms-service-icon { order: -1; }
}

/* ============================================================
   SECTION 6 — SEGMENTS (WHO IT'S FOR)
   ============================================================ */
.ms-segments {
  background: var(--ec-navy-deep);
  color: #fff;
  padding: clamp(80px, 12vh, 130px) 0;
  position: relative;
  overflow: hidden;
}
.ms-segments::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(125,173,63,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(35,100,118,0.22), transparent 50%);
  pointer-events: none;
}
.ms-segments-head {
  position: relative;
  margin-bottom: clamp(48px, 7vh, 72px);
  max-width: 760px;
}
.ms-segments-h {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
  color: #fff;
  text-wrap: pretty;
}
.ms-segments-h .ec-green { color: var(--ec-green); font-weight: 700; }

.ms-segments-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ms-seg {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .22s var(--ease-standard);
}
.ms-seg:hover {
  background: rgba(125,173,63,0.06);
  border-color: rgba(125,173,63,0.3);
  transform: translateY(-3px);
}
.ms-seg-scale {
  display: flex; gap: 4px;
  align-items: end;
  height: 14px;
}
.ms-seg-bar {
  width: 18px;
  height: 4px;
  background: rgba(255,255,255,0.16);
  border-radius: 2px;
}
.ms-seg-bar--on { background: var(--ec-green); height: 8px; }
.ms-seg-bar:nth-child(2).ms-seg-bar--on { height: 11px; }
.ms-seg-bar:nth-child(3).ms-seg-bar--on { height: 14px; }
.ms-seg-tag {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ec-green);
}
.ms-seg-h {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}
.ms-seg-body {
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.ms-seg-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-seg-list li {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-seg-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ec-green);
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .ms-segments-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 7 — CLOSING CTA
   ============================================================ */
.ms-cta {
  background: var(--ec-offwhite);
  padding: clamp(80px, 12vh, 130px) 0;
}
.ms-cta-card {
  background: #fff;
  border: 1px solid rgba(15,32,43,0.08);
  border-radius: var(--radius-2xl, 24px);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  box-shadow:
    0 0 0 1px rgba(125,173,63,0.18),
    0 30px 60px -28px rgba(15,32,43,0.22);
  position: relative;
  overflow: hidden;
}
.ms-cta-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(125,173,63,0.16), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.ms-cta-h {
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ec-navy-deep);
  margin: 12px 0 16px;
  text-wrap: pretty;
}
.ms-cta-h b { font-weight: 700; }
.ms-cta-h .ec-green { color: var(--ec-green); font-weight: 700; }
.ms-cta-body {
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  color: #3d5a4e;
  margin: 0;
  max-width: 50ch;
}
.ms-cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.ms-cta-btn {
  justify-content: center;
  text-align: left;
  padding: 14px 22px;
  font-size: 14.5px;
}

@media (max-width: 880px) {
  .ms-cta-card { grid-template-columns: 1fr; }
}
