/* EvoMerge brand tokens - sampled from the evomerge-logo-horizontal.png
   wordmark (dark navy-charcoal + cyan "eM" wave monogram), distinct from
   ACAA Solutions' own navy/gold consulting-site palette. */
:root {
  --navy-900: #0b1420;
  --navy-800: #101c2c;
  --navy-700: #16283d;
  --navy-600: #1f3a58;
  --accent-300: #bdeaf5;
  --accent-500: #2fb6d9;
  --accent-600: #1f93b3;
  --sky-100: #eaf7fb;
  --sky-300: #bfe9f4;
  --sky-500: #6ec6e8;
  --ink: #101825;
  --muted: #55677a;
  --bg: #f5f9fb;
  --card: #ffffff;
  --border: #e1e8ee;
  --shadow: 0 10px 30px -12px rgba(11, 20, 32, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand, .stat-number, .step-name {
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
}

main.site-main {
  min-height: calc(100vh - 320px);
}

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

.container-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container-narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 84px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.nav-cta {
  background: transparent !important;
  color: var(--accent-500) !important;
  border: 1.5px solid var(--accent-500);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-500) !important;
  color: var(--navy-900) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-accent {
  display: inline-block;
  background: var(--accent-500);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-accent:hover {
  background: var(--accent-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 13px 27px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-navy {
  display: inline-block;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  padding: 13px 27px;
  border-radius: 999px;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-navy:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--sky-100) 0%, #ffffff 45%, var(--accent-300) 145%);
  color: var(--ink);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero .hero-watermark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 420px;
  height: auto;
  opacity: 0.14;
  transform: rotate(8deg);
  pointer-events: none;
}

.hero .container-narrow {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--navy-700);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(16,40,83,0.12);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy-900);
  margin: 0 0 20px;
  max-width: 780px;
}

.hero mark {
  background: var(--accent-500);
  background-image: linear-gradient(100deg, var(--accent-500), var(--accent-300));
  color: var(--navy-900);
  padding: 2px 10px;
  border-radius: 8px 3px 8px 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--navy-900);
  border-color: rgba(16,40,83,0.35);
}

.hero .btn-outline:hover {
  background: rgba(16,40,83,0.06);
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.wave-shape {
  display: block;
  width: 100%;
  height: 54px;
  margin-bottom: -6px;
  position: relative;
  z-index: 1;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  padding: 12px 0 54px;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 4px 14px 0;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.16);
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-500);
  line-height: 1;
  padding-bottom: 16px;
  position: relative;
}

.stat-item .stat-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-500);
}

.stat-item .stat-label {
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  max-width: 160px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-label {
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-500);
  display: inline-block;
}

.section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.section .section-intro {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
}

.card-grid .brand-card:nth-child(3n+2) { border-top-color: var(--accent-500); }
.card-grid .brand-card:nth-child(3n+3) { border-top-color: var(--sky-500); }

.brand-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.icon-badge.navy { background: var(--navy-800); }
.icon-badge.accent { background: var(--accent-500); }
.icon-badge.sky { background: var(--sky-500); }

.brand-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.brand-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

.tint-card {
  background: var(--sky-100);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.tint-card h3 {
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 8px;
}

.tint-card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Process bar ---------- */
.process-bar {
  display: flex;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
  position: relative;
}

.process-bar::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--sky-300) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.process-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.process-step .step-index {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 10px;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
}

.process-step:last-child .step-index {
  background: var(--accent-500);
  color: #fff;
}

.section-alt .process-step .step-index {
  border-color: #fff;
}

.process-step .step-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Callout / CTA band ---------- */
.callout-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 28px 8px 28px 8px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.callout-band h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.callout-band p {
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 520px;
}

/* ---------- Video embed (Case Studies' demo clips) ---------- */
.video-embed {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  margin: 28px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 20, 32, 0.18);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  text-align: center;
  font-weight: 700;
  color: var(--navy-900);
  margin: 16px auto 0;
  max-width: 640px;
}

/* ---------- Pill list ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list span {
  background: var(--sky-100);
  color: var(--navy-800);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 44px 0 28px;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: #fff; }

.site-footer .footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.55);
}

.site-footer .footer-bottom a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-bottom a:hover {
  color: var(--accent-500);
}

/* ---------- Contact page ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-methods a.method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--navy-900);
  font-weight: 700;
}

.contact-methods a.method:hover {
  background: var(--sky-300);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid,
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(3)::before {
    display: none;
  }
  .callout-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .process-bar { flex-direction: column; }
}
