* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --navy: #203d73;
  --blue: #365fa5;
  --blue-deep: #2b518f;
  --gold: #ffc21a;
  --ink: #203d73;
  --muted: #78859b;
  --paper: #f4f7fb;
  --line: #e0e7f1;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6%, calc((100% - 1120px) / 2));
  background: var(--navy);
}
.brand {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: #dce5f4;
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: #fff;
}

.hero {
  display: flex;
  min-height: 190px;
  align-items: center;
  padding: 28px max(6%, calc((100% - 1120px) / 2));
  color: #fff;
  background: var(--blue);
}
.hero-content { width: 100%; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}
.hero-copy {
  margin: 6px 0 15px;
  color: #dce5f4;
  font-size: 13px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #253b60; background: var(--gold); }
.btn-primary:hover { background: #ffd04d; }
.btn-outline { color: #fff; border-color: #e6edf8; background: transparent; }
.btn-outline:hover { color: var(--navy); background: #fff; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px max(6%, calc((100% - 1120px) / 2));
  background: var(--paper);
}
.card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 0 0 7px 7px;
  background: #fff;
  text-align: center;
  box-shadow: 0 5px 16px rgb(32 61 115 / 3%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgb(32 61 115 / 10%);
}
.service-icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.card h2 { margin: 0 0 4px; color: var(--ink); font-size: 13px; }
.card p { margin: 0; color: var(--muted); font-size: 10px; }

.home-about, .service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px max(6%, calc((100% - 900px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}
.home-about > div { max-width: 620px; }
.home-about .eyebrow, .service-cta .eyebrow { color: var(--blue); }
.home-about h2, .service-cta h2 { margin: 0 0 8px; font-size: 19px; }
.home-about p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }

.page-intro {
  padding: 38px max(6%, calc((100% - 900px) / 2)) 42px;
  color: #fff;
  background: var(--blue);
}
.page-intro h1 { max-width: 760px; margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.3; }
.page-intro > p:last-child { max-width: 680px; margin: 10px 0 0; color: #e2eafa; font-size: 13px; }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.8fr);
  gap: 48px;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
  padding: 54px 6%;
}
.about-copy h2, .support-panel h2 { margin: 0 0 12px; font-size: 22px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.about-copy .btn { margin-top: 10px; }
.about-note {
  padding: 24px;
  border-top: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 5px 18px rgb(32 61 115 / 6%);
}
.about-note h2 { margin: 0 0 8px; font-size: 16px; }
.about-note p { margin: 0; color: var(--muted); font-size: 12px; }
.service-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 6%;
}
.detail-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 0 0 7px 7px;
  background: #fff;
}
.detail-card h2 { margin: 10px 0 8px; font-size: 16px; }
.detail-card p, .detail-card li { color: var(--muted); font-size: 11px; }
.detail-card ul { display: grid; gap: 6px; margin: 14px 0 0; padding-left: 18px; }
.service-cta { justify-content: center; border-top: 0; background: #eaf0f9; }
.service-cta h2 { margin: 0; }
.contact-page {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 6% 54px;
}
.support-panel { padding-top: 8px; }
.support-panel .eyebrow { color: var(--blue); }
.support-intro, .support-note, .form-intro { color: var(--muted); font-size: 11px; }
.support-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.support-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.support-item p { margin: 3px 0 0; font-size: 13px; }
.support-item a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.support-note { margin-top: 16px; }
.message-form {
  display: grid;
  gap: 7px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 0 0 7px 7px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(32 61 115 / 5%);
}
.message-form h2 { margin: 0; font-size: 18px; }
.message-form .form-intro { margin: 0 0 5px; }
.message-form label { margin-top: 5px; font-size: 11px; font-weight: 600; }
.message-form input, .message-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #ccd6e5;
  border-radius: 4px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  font-size: 12px;
}
.message-form input { min-height: 40px; }
.message-form textarea { resize: vertical; }
.message-form input:focus, .message-form textarea:focus { outline: 2px solid #9db8e4; outline-offset: 1px; }
.message-form .btn { justify-self: start; margin-top: 4px; }
.form-status { min-height: 0; margin: 0; color: var(--blue-deep); font-size: 11px; }
[aria-current="page"] { color: #fff !important; font-weight: 700; }

.contact {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: start;
  padding: 44px max(6%, calc((100% - 820px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}
.contact-heading .eyebrow { color: var(--blue); }
.contact h2 { margin: 0; font-size: 20px; }
.contact form { display: grid; gap: 7px; }
.contact label { margin-top: 4px; color: var(--ink); font-size: 11px; font-weight: 600; }
.contact input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #ccd6e5;
  border-radius: 4px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  font-size: 12px;
}
.contact input:focus { outline: 2px solid #9db8e4; outline-offset: 1px; }
.contact form .btn { justify-self: start; margin-top: 4px; }
.error { min-height: 0; margin: 0; color: #b42318; font-size: 11px; }
footer {
  padding: 15px 20px;
  color: #dce5f4;
  background: var(--navy);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .navbar { min-height: 58px; padding: 0 5%; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 6px 5% 12px;
    background: var(--navy);
  }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { display: block; padding: 10px 0; }
  .hero { min-height: 205px; padding: 28px 6%; }
  .hero h1 { max-width: 520px; }
  .services { grid-template-columns: 1fr; gap: 12px; padding: 18px 6%; }
  .card { min-height: 136px; }
  .contact { grid-template-columns: 1fr; gap: 18px; padding: 34px 6%; }
  .page-intro { padding: 32px 6%; }
  .about-layout, .contact-page { grid-template-columns: 1fr; gap: 26px; padding: 34px 6%; }
  .service-details { grid-template-columns: 1fr; padding: 22px 6%; }
  .home-about, .service-cta { align-items: flex-start; flex-direction: column; padding: 30px 6%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}