/* ============================================
   Merge Point Group — Design System
   White / Dark Navy / Slate Gray / Electric Blue
   ============================================ */

:root {
  --white: #FFFFFF;
  --light-bg: #F3F4F6;
  --navy: #12233F;
  --navy-2: #1B3357;
  --slate: #5B6472;
  --blue: #1E6EFF;
  --blue-dim: rgba(30, 110, 255, 0.10);
  --border: #E3E5E9;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--navy); text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.logo .mark { width: 22px; height: 22px; flex-shrink: 0; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  border-bottom-color: var(--blue);
}

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: #0F58DB; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1.5px solid var(--navy);
  transition: all 0.18s ease;
}

.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: #0F58DB; border-color: #0F58DB; }

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-invert { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-invert:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 100px 32px 90px; overflow: hidden; }

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-inner .content { max-width: 620px; }

.hero h1 { margin-bottom: 22px; }

.hero p.lede { font-size: 1.15rem; max-width: 520px; }

.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections ---------- */

section { padding: 88px 32px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.alt-bg { background: var(--light-bg); }
.navy-bg { background: var(--navy); color: var(--white); }
.navy-bg h1, .navy-bg h2, .navy-bg h3 { color: var(--white); }
.navy-bg p { color: #C7CEDA; }

.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Track record stat strip ---------- */

.stat-strip {
  background: var(--navy);
  padding: 56px 32px;
}

.stat-strip-head { text-align: center; margin-bottom: 40px; }
.stat-strip-head .eyebrow { color: var(--blue); }
.stat-strip-head p {
  color: #C7CEDA;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 8px auto 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: #C7CEDA;
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ---------- Who We Help ---------- */

.symptom-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.merge-callout {
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0 28px;
  max-width: 620px;
}

.merge-callout-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.merge-callout p:last-child { margin: 0; }

.pivot-resolved {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  max-width: 580px;
  margin: 0;
}

/* ---------- Sound Familiar / Qualify list ---------- */

.qualify-list {
  border-top: 1px solid var(--border);
  max-width: 820px;
  margin-top: 28px;
}

.qualify-group { border-bottom: 1px solid var(--border); padding: 20px 0; }

.qualify-label {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.qualify-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.qualify-q {
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
  margin: 0;
}

.qualify-a {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}

.qualify-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.qualify-cta p {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--light-bg);
  border-radius: 4px;
  padding: 32px;
  border-top: 3px solid var(--blue);
}

.testimonial-quote {
  font-size: 1.02rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------- Philosophy ---------- */

.philosophy {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.philosophy .rule {
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 0 auto 28px;
}
.philosophy p { font-size: 1.2rem; color: var(--navy); line-height: 1.7; }

/* ---------- Framework timeline ---------- */

.framework-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.framework-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.framework-step .num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 18px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.framework-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--blue);
  z-index: 1;
}

.framework-step h3 { font-size: 1rem; margin-bottom: 6px; }
.framework-step p { font-size: 0.88rem; }

/* ---------- Services ---------- */

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }

.service-row .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.service-row h3 { margin-bottom: 8px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pill {
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ---------- Why MPG (pull quote) ---------- */

.pullquote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pullquote .rule {
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 0 auto 32px;
}
.pullquote p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ---------- About ---------- */

.about-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.about-block p { font-size: 1.15rem; color: var(--navy); line-height: 1.75; }

/* ---------- Contact / Form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

form.contact-form { display: grid; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}

input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--navy);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}

textarea { resize: vertical; min-height: 130px; }

.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 8px; flex-shrink: 0; }

/* honeypot field hidden for spam prevention */
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

footer.site-footer { background: var(--navy); color: #C7CEDA; padding: 64px 32px 32px; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

footer.site-footer h2 { color: var(--white); margin-bottom: 12px; }
footer.site-footer p { color: #C7CEDA; max-width: 480px; margin: 0 auto 28px; }

.footer-links {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-links a { color: #C7CEDA; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(199,206,218,0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .framework-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .framework-step:nth-child(3)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .qualify-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  nav.primary-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-graphic { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .framework-steps { grid-template-columns: 1fr; }
  .framework-step::after { display: none !important; }
  .stat-grid { grid-template-columns: 1fr; row-gap: 28px; }
  h1 { font-size: 2.1rem; }
  section { padding: 64px 24px; }
}
