/* ===== Design tokens ===== */
:root {
  --primary: #0a2463;
  --primary-dark: #071a47;
  --accent: #00798c;
  --accent-light: #00a8b5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text-dark: #1b1f23;
  --text-light: #5a6472;
  --border: #d1d9e6;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-dark);
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--surface);
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sub-lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Credentials strip ===== */
.credentials-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.credentials-strip span {
  color: var(--text-light);
  font-size: 0.85rem;
}

.credentials-strip strong {
  color: var(--text-dark);
}

.credentials-strip span:not(:last-child)::after {
  content: " · ";
  color: var(--border);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Services ===== */
.services {
  padding: 4rem 0;
  text-align: center;
}

.services h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 36, 99, 0.08);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--surface);
  padding-top: 3rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #cbd4e0;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  color: #7a8ba5;
  font-size: 0.85rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    width: 240px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    gap: 1rem;
    transform: scaleY(0);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .credentials-strip {
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding-top: 1rem;
    margin-top: 1rem;
  }
}
