/* ============================================================
   MerIT Group — www.merit-group.us
   Clean, modern SaaS-style design
   ============================================================ */

:root {
  --blue: #0b63e5;
  --blue-dark: #0a4fb8;
  --blue-light: #e8f1fe;
  --navy: #0f1b2d;
  --ink: #1c2b3a;
  --slate: #5a6b7d;
  --line: #e3eaf2;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
  --shadow-lift: 0 14px 38px rgba(15, 27, 45, 0.14);
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: 0.5px;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
  align-self: center;
}
.logo .mer { color: var(--navy); font-weight: 600; }
.logo .it  { color: var(--blue); font-weight: 700; }
.logo .grp {
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--slate);
  margin-left: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: var(--blue-light); }
.btn-light {
  background: #fff;
  color: var(--blue);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(11, 99, 229, 0.10), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(11, 99, 229, 0.08), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fd 100%);
  padding: 96px 0 88px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  color: var(--navy);
  max-width: 850px;
  margin: 0 auto 22px;
  letter-spacing: -0.5px;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--slate);
  max-width: 680px;
  margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-strip {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.hero-strip .stat b {
  display: block;
  font-size: 26px;
  color: var(--navy);
}
.hero-strip .stat span { font-size: 14.5px; color: var(--slate); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .kicker {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.section-head p { color: var(--slate); font-size: 17.5px; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15.5px; flex: 1; }
.card .more {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 15.5px;
}
.card .more:hover { text-decoration: underline; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); margin-bottom: 16px; letter-spacing: -0.3px; }
.split p  { color: var(--slate); margin-bottom: 14px; }
.split .visual {
  background: linear-gradient(145deg, var(--blue-light), #f6faff 60%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.checklist { list-style: none; margin-top: 8px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>') center/contain no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 70%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 64px 40px;
  box-shadow: var(--shadow-lift);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; letter-spacing: -0.3px; }
.cta-band p { opacity: 0.92; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.contact-card .icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.contact-card h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--slate); font-size: 15.5px; text-decoration: none; }
.contact-card a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c5d3;
  padding: 60px 0 30px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .logo .mer { color: #fff; }
.site-footer .logo .grp { color: #8fa1b5; }
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c5d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 14px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #8fa1b5;
}

/* ---------- Service detail pages ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(11, 99, 229, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfdff, #f2f7fd);
  padding: 72px 0 56px;
}
.page-hero .crumb { font-size: 14.5px; margin-bottom: 18px; }
.page-hero .crumb a { color: var(--blue); text-decoration: none; }
.page-hero .crumb span { color: var(--slate); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); color: var(--navy); letter-spacing: -0.4px; margin-bottom: 14px; max-width: 820px; }
.page-hero p.lead { font-size: 18.5px; color: var(--slate); max-width: 760px; }
.page-hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.detail { padding: 64px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.detail-grid.three { grid-template-columns: repeat(3, 1fr); }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.panel h3 { color: var(--navy); font-size: 19px; margin-bottom: 14px; }
.panel .checklist li { font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .contact-grid, .detail-grid, .detail-grid.three { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .card-grid, .contact-grid, .detail-grid, .detail-grid.three { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
}
