:root {
  --blue: #0b57e3;
  --blue-dark: #0846b8;
  --navy: #031e50;
  --navy-soft: #0a2a6b;
  --text: #32373c;
  --muted: #6b7280;
  --light: #f5f7fb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 12px 40px rgba(3, 30, 80, 0.12);
  --font: "Poppins", system-ui, sans-serif;
  --container: 1170px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--light);
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 1rem;
}

.topbar a:hover {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(3, 30, 80, 0.06);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(3, 30, 80, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1.5rem;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav .cta {
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav .cta::after {
  display: none;
}

.nav .cta:hover {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(3, 30, 80, 0.88) 0%,
    rgba(3, 30, 80, 0.55) 48%,
    rgba(11, 87, 227, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-copy {
  max-width: 640px;
  animation: rise 0.8s ease both;
}

.hero-copy .eyebrow {
  display: inline-block;
  color: #9ec0ff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero p {
  margin: 0 0 1.8rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
  width: 28px;
  border-radius: 999px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-label {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mission-card {
  background: var(--light);
  padding: 2rem 1.6rem;
  border-top: 3px solid var(--blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}

.mission-card h3 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.25rem;
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-media .accent {
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 42%;
  height: 42%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: var(--shadow);
}

.checklist {
  margin: 1.4rem 0 2rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.1rem;
}

.feature img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.feature h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 0.98rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* CTA band */
.cta-band {
  position: relative;
  color: #fff;
  background: var(--navy) center/cover no-repeat;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 30, 80, 0.92), rgba(11, 87, 227, 0.78));
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 34rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card .body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.service-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card .more {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-card {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-card .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .date {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.blog-card h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}

.blog-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.blog-card .more {
  color: var(--blue);
  font-weight: 600;
}

/* Page hero */
.page-hero {
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 4rem;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 30, 80, 0.9), rgba(11, 87, 227, 0.55));
}

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

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a:hover {
  color: #fff;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--light);
  padding: 2rem;
}

.contact-info h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.contact-info p,
.contact-info a {
  color: var(--muted);
}

.contact-info .block {
  margin-bottom: 1.6rem;
}

.contact-form {
  border: 1px solid var(--border);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.85rem 0.95rem;
  font: inherit;
  border-radius: 3px;
  background: #fff;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(11, 87, 227, 0.25);
  border-color: var(--blue);
}

.form-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.footer-cta {
  background: var(--blue);
  color: #fff;
  padding: 3.2rem 0;
}

.footer-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-cta h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.footer-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0 0 1rem;
}

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

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .mission-grid,
  .services-grid,
  .blog-grid,
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    height: 420px;
  }

  .cta-band .container,
  .footer-cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav .cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .mission-grid,
  .services-grid,
  .blog-grid,
  .feature-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    min-height: 78vh;
  }

  .about-media .accent {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
