:root {
  --a2m4-navy: #0b1f38;
  --a2m4-navy-soft: #173654;
  --a2m4-blue: #087ccf;
  --a2m4-blue-dark: #0565aa;
  --a2m4-pale: #f3f7fb;
  --a2m4-line: #d9e2ec;
  --a2m4-muted: #607286;
}

body {
  color: var(--a2m4-navy);
  background: #fff;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--a2m4-blue); }
a:hover, a:focus { color: var(--a2m4-blue-dark); }

.navbar-custom {
  min-height: 74px;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--a2m4-line);
  box-shadow: none;
}

.navbar-custom .navbar-brand {
  width: 224px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  background: url('../img/a2m4-systems-logo.png') no-repeat left center / contain;
  font-size: 0;
  line-height: 0;
}

.navbar-custom .navbar-brand::after {
  content: "A2M4 Systems";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  opacity: 0.86;
}

.navbar-custom .nav-link {
  color: var(--a2m4-navy-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--a2m4-blue);
}

.navbar-custom .avatar-container { display: none; }

.intro-header {
  margin-top: 74px;
  margin-bottom: 28px;
  background: var(--a2m4-pale);
  border-bottom: 1px solid var(--a2m4-line);
}

.intro-header .page-heading,
.intro-header .post-heading {
  padding: 54px 0 46px;
}

.intro-header .page-heading h1,
.intro-header .page-heading .h1,
.intro-header .post-heading h1,
.intro-header .post-heading .h1 {
  color: var(--a2m4-navy);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--a2m4-muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
}

.intro-header .page-heading hr { display: none; }
.content-section { margin-top: 20px; }
.content-section > :first-child { margin-top: 0; }

.a2m4-intro {
  max-width: 800px;
  padding: 34px 0 62px;
}

.a2m4-kicker {
  margin-bottom: 12px;
  color: var(--a2m4-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.a2m4-intro h2,
.a2m4-section-title,
.a2m4-cta h2 {
  margin: 0 0 18px;
  color: var(--a2m4-navy);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.a2m4-lead {
  max-width: 720px;
  color: var(--a2m4-muted);
  font-size: 19px;
}

.a2m4-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.a2m4-button,
.a2m4-inline-cta {
  display: inline-block;
  padding: 11px 18px;
  color: #fff;
  background: var(--a2m4-blue);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.a2m4-button:hover,
.a2m4-button:focus,
.a2m4-inline-cta:hover,
.a2m4-inline-cta:focus {
  color: #fff;
  background: var(--a2m4-blue-dark);
  text-decoration: none;
}

.a2m4-link {
  color: var(--a2m4-navy);
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.a2m4-section {
  padding: 54px 0;
  border-top: 1px solid var(--a2m4-line);
}

.a2m4-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.a2m4-card {
  padding: 26px;
  background: var(--a2m4-pale);
  border-top: 3px solid var(--a2m4-blue);
}

.a2m4-card > span {
  color: var(--a2m4-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.a2m4-card h3 {
  margin: 28px 0 12px;
  color: var(--a2m4-navy);
  font-size: 21px;
  line-height: 1.3;
}

.a2m4-card p {
  margin-bottom: 0;
  color: var(--a2m4-muted);
  font-size: 15px;
  line-height: 1.65;
}

.a2m4-approach {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.a2m4-approach > div > p:last-child { color: var(--a2m4-muted); }
.a2m4-approach ol { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.a2m4-approach li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--a2m4-line);
  counter-increment: steps;
}
.a2m4-approach li:last-child { border-bottom: 1px solid var(--a2m4-line); }
.a2m4-approach strong { color: var(--a2m4-navy); font-size: 15px; }
.a2m4-approach strong::before {
  margin-right: 10px;
  color: var(--a2m4-blue);
  content: "0" counter(steps);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.a2m4-approach span { color: var(--a2m4-muted); font-size: 15px; }

.a2m4-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 44px;
  padding: 42px;
  margin: 40px 0 64px;
  color: #fff;
  background: var(--a2m4-navy);
}
.a2m4-cta h2 { max-width: 680px; margin-bottom: 0; color: #fff; font-size: clamp(26px, 3.5vw, 34px); }
.a2m4-cta .a2m4-kicker { color: #52b4f2; }
.a2m4-button-light { color: var(--a2m4-navy); background: #fff; white-space: nowrap; }
.a2m4-button-light:hover, .a2m4-button-light:focus { color: var(--a2m4-navy); background: #e9f4fc; }

.blog-post h2 { margin-top: 42px; color: var(--a2m4-navy); font-size: 27px; }
.blog-post h3 { color: var(--a2m4-navy); font-size: 21px; }
.blog-post p, .blog-post li { font-size: 17px; }

footer { border-top: 1px solid var(--a2m4-line); }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .navbar-custom { min-height: 66px; }
  .navbar-custom .navbar-brand { width: 180px; height: 52px; }
  .intro-header { margin-top: 66px; }
  .intro-header .page-heading, .intro-header .post-heading { padding: 38px 0 34px; }
  .intro-header .page-heading h1,
  .intro-header .page-heading .h1,
  .intro-header .post-heading h1,
  .intro-header .post-heading .h1 { font-size: 32px; }
  .intro-header .page-heading .page-subheading,
  .intro-header .post-heading .post-subheading { font-size: 17px; }
  .a2m4-intro { padding: 24px 0 44px; }
  .a2m4-card-grid, .a2m4-approach, .a2m4-cta { grid-template-columns: 1fr; }
  .a2m4-approach { gap: 28px; }
  .a2m4-approach li { grid-template-columns: 1fr; gap: 4px; }
  .a2m4-cta { align-items: start; gap: 24px; padding: 28px 24px; }
  .a2m4-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
}
