:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #17212b;
  --muted: #5c6977;
  --line: #d8e1ec;
  --primary: #1b5fa7;
  --primary-dark: #12467d;
  --shadow: 0 18px 40px rgba(13, 31, 54, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow { width: min(calc(100% - 2rem), 860px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.94);
  border-bottom: 1px solid rgba(216, 225, 236, 0.9);
  box-shadow: none;
}

.site-header--simple { position: relative; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 108px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-mark {
  width: 260px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
}

.main-nav a.button { color: #fff; }
.main-nav--static { justify-content: flex-end; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
}

.hero {
  padding: 5.5rem 0 4rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.hero-grid,
.contact-grid,
.spotlight,
.footer-wrap {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(1.45rem, 2.8vw, 2.3rem); max-width: 15ch; }
h2 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
h3 { font-size: 0.96rem; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions,
.contact-actions,
.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.contact-actions {
  margin-top: 1.5rem;
  gap: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 18px 34px rgba(16, 66, 122, 0.16);
}
.button--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(27, 95, 167, 0.2);
  box-shadow: none;
}
.button--small { min-height: 40px; padding-inline: 1rem; }

.hero-card,
.card,
.service-card,
.credential-card,
.contact-card,
.logo-card,
.legal-block {
  background: var(--surface);
  border: 1px solid rgba(216, 225, 236, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.8rem;
}

.hero-card__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
}

section { padding: 4.5rem 0; }
.section-alt {
  background: var(--surface-2);
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.section-heading p:last-child { color: var(--muted); }

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

.six-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.service-card,
.credential-card,
.contact-card,
.legal-block,
.logo-card {
  padding: 1.4rem;
}

.card p,
.service-card p,
.credential-card p,
.contact-card p,
.legal-block p {
  margin: 0;
  color: var(--muted);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.spotlight {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  background: linear-gradient(135deg, #153559, #1b5fa7);
  color: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.spotlight p { color: rgba(255,255,255,0.88); }
.spotlight .eyebrow { color: rgba(255,255,255,0.72); }

.logo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-card {
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.contact-list {
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { font-weight: 800; margin-bottom: 0.2rem; }
.contact-list dd { margin: 0; color: var(--muted); }

.site-footer {
  padding: 1.2rem 0 2rem;
  border-top: 1px solid rgba(216, 225, 236, 0.9);
}

.footer-wrap {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-footer p,
.legal-note { color: var(--muted); }

.legal-page { padding: 3rem 0 4rem; }
.legal-block + .legal-block { margin-top: 1rem; }

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #46a0d9);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(13, 31, 54, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background 180ms ease;
  z-index: 60;
}

.scroll-top:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .spotlight,
  .footer-wrap,
  .card-grid,
  .six-grid,
  .two-grid,
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid > :first-child,
  .contact-grid > :first-child,
  .spotlight > :first-child,
  .footer-wrap > :first-child,
  .section-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-wrap { min-height: 88px; }

  .brand-mark {
    width: 188px;
    height: 50px;
  }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: calc(100% + 0.5rem) 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }

  .hero,
  section { padding: 3.5rem 0; }

  .hero-grid,
  .contact-grid,
  .spotlight,
  .footer-wrap,
  .card-grid,
  .six-grid,
  .two-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  h1 { max-width: none; }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}
