:root {
  --blue: #004aad;
  --blue-dark: #02275e;
  --red: #e60012;
  --ink: #1b2433;
  --muted: #5b6678;
  --bg: #ffffff;
  --soft: #f4f8fd;
  --line: #e3eaf4;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.links { display: flex; gap: 32px; }
.links a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.links a:hover, .links a.active { color: var(--blue); }

/* Hero carousel */
.hero { position: relative; height: clamp(440px, 72vh, 640px); overflow: hidden; background: var(--blue-dark); }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(2, 22, 56, .82) 0%, rgba(2, 22, 56, .45) 42%, rgba(2, 22, 56, 0) 70%),
    var(--img);
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 6s ease, visibility 0s linear .9s;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: scale(1);
  transition: opacity .9s ease, transform 6s ease, visibility 0s;
}
.slide-copy { width: 100%; color: #fff; padding-left: 88px; padding-right: 88px; }
.slide-copy > * { max-width: 540px; }
.slide.is-active .slide-copy > * { animation: rise .8s ease both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #cfe3ff; padding-left: 14px; border-left: 3px solid var(--red);
}
.slide h1, .slide h2 {
  margin: 0 0 14px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
}
.lede { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 20px); color: #dbe8fb; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 74, 173, .35); }
.btn.primary:hover { background: #003c8f; }
.slide .btn.primary { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.slide .btn.primary:hover { background: #eaf2ff; }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1;
  backdrop-filter: blur(6px); transition: background .2s;
}
.arrow:hover { background: rgba(255, 255, 255, .3); }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

.dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: width .3s, background .3s;
}
.dots button[aria-selected="true"] { width: 30px; background: #fff; }

/* Sections */
.section { padding: 88px 0; }
.section-title { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--blue-dark); letter-spacing: -.01em; }
#services .section-title { text-align: center; margin-bottom: 44px; }
.section p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2, 39, 94, .1); border-color: #cddcf2; }
.card h3 { margin: 18px 0 8px; font-size: 20px; color: var(--blue-dark); }
.card p { margin: 0; font-size: 16px; }
.icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, #e8f1ff, #d6e6ff);
}
.icon svg, .contact-row svg {
  width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.about { background: var(--soft); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; margin: 8px 0 32px; }
.contact-row a, .contact-row span {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 500;
}
.contact-row a:hover { color: var(--blue); }
.contact-row svg { width: 22px; height: 22px; }

.footer { background: var(--blue-dark); color: #c9d6ea; padding: 32px 0; text-align: center; font-size: 15px; }
.footer p { margin: 0; }

@media (max-width: 800px) {
  .links { gap: 14px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .slide-copy { padding-left: 24px; padding-right: 24px; }
  .slide {
    background-image:
      linear-gradient(180deg, rgba(2, 22, 56, .55) 0%, rgba(2, 22, 56, .8) 100%),
      var(--img);
  }
  .section { padding: 64px 0; }
  .brand img { height: 40px; }
}
@media (max-width: 420px) {
  .nav-inner { height: 64px; }
  .brand img { height: 32px; }
  .links { gap: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active { transition: opacity .3s; transform: none; }
  .slide.is-active .slide-copy > * { animation: none; }
}
