:root {
  --brand: #0c2a52;
  --brand-2: #164984;
  --accent: #0d7ac9;
  --ink: #1f2a37;
  --muted: #5d6b7c;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dde5ef;
  --success: #0c7d62;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 40px; /* Same as navbar height */
}

.logo-img {
  max-height: 42px;   /* Adjust as needed */
  width: auto;
  display: block;
  object-fit: contain;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header + navigation */
header {
  background: linear-gradient(125deg, var(--brand), var(--brand-2));
  color: #fff;
  border-bottom: 4px solid #0a1f3f;
}

.topbar {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.92rem;
  color: #dde8f8;
}

.topbar-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

nav {
  padding: 1rem 0;
  position: relative;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo span {
  color: #8fcbff;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #e7f2ff;
  font-size: 0.95rem;
}

.menu a {
  display: block;
  padding: 0.35rem 0;
}

.menu a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 4.5rem 0 4.8rem;
  background:
    linear-gradient(to right, rgba(6, 17, 36, 0.74), rgba(11, 41, 84, 0.54)),
    radial-gradient(circle at right, rgba(255, 255, 255, 0.18), transparent 45%);
}

.hero-wrap {
  max-width: 820px;
}

.hero-compact {
  padding: 2.8rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: #d8e8ff;
  max-width: 740px;
  margin-bottom: 1.8rem;
  font-size: 1.06rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.15rem;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: var(--brand);
}

.btn-secondary {
  border-color: #b9d5f8;
  color: #fff;
  background: transparent;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.15rem 0;
}

.trust-item {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 0.2rem;
}

/* Sections */
main section {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #172b47;
  margin-bottom: 0.6rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 34, 58, 0.05);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #16345f;
  font-size: 1.06rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.2rem;
}

/* Legacy */
.legacy {
  background: #f0f6ff;
  border-top: 1px solid #d7e5f5;
  border-bottom: 1px solid #d7e5f5;
}

.legacy-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  padding: 0.72rem 0.85rem;
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: #3a4c64;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 0.75rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  color: #173a67;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.badge {
  color: var(--success);
  background: #e8f9f2;
  border: 1px solid #bfead8;
  border-radius: 999px;
  display: inline-block;
  padding: 0.26rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.6rem;
  letter-spacing: 0.2px;
}

/* Pillars */
.pillars {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.1rem;
}

.pillar {
  border-top: 4px solid var(--brand-2);
}

.pillar ul {
  margin-top: 0.55rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pillar li + li {
  margin-top: 0.3rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, #13345e, #1a4f88);
  color: #eef5ff;
  text-align: center;
  border-top: 3px solid #0a2748;
  border-bottom: 3px solid #0a2748;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.cta-band p {
  max-width: 780px;
  margin: 0 auto 1.3rem;
  color: #d6e7ff;
}

/* Forms (Contact page) */
.form-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

label {
  display: block;
  font-weight: 700;
  color: #22324a;
  margin: 0.25rem 0 0.3rem;
  font-size: 0.93rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d6b7c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

.form-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--brand);
  color: #fff;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.form-row-spaced {
  margin-top: 0.75rem;
}

.form-field-spaced {
  margin-top: 0.75rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status--success {
  background: #e8f9f2;
  border: 1px solid #bfead8;
  color: var(--success);
}

.form-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Careers */
.jobs-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.2rem;
}

.job-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #375170;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Footer */
footer {
  background: #0d1f38;
  color: #d1def2;
  padding: 2.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(209, 222, 242, 0.22);
  padding-bottom: 1.2rem;
  margin-bottom: 0.9rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.92rem;
  color: #c8d8ee;
  list-style: none;
  margin-bottom: 0.2rem;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #a8bddc;
}

/* Responsive — tablet */
@media (max-width: 860px) {
  .container {
    width: min(1140px, 94%);
  }

  .trust-wrap {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .legacy-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  main section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.5rem 0 3.8rem;
  }

  .hero-compact {
    padding: 2.2rem 0 2.5rem;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: linear-gradient(180deg, #0f3568 0%, var(--brand) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 200;
  }

  .nav-open .menu {
    display: flex;
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .topbar-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.85rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .trust-wrap {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .trust-item {
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .services-grid,
  .jobs-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 0 0.5rem;
  }

  .cta-band .btn {
    width: 100%;
    max-width: 320px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1140px, 96%);
  }

  h1 {
    font-size: 1.75rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  main section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 2.8rem;
  }

  .hero-compact {
    padding: 1.8rem 0 2rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  .card {
    padding: 1rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat {
    padding: 0.85rem 0.5rem;
  }

  .stat strong {
    font-size: 1.25rem;
  }

  .timeline li {
    font-size: 0.92rem;
    padding: 0.65rem 0.75rem;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

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

  footer {
    padding: 1.8rem 0 1rem;
  }
}
