:root {
  --navy: #0a2a53;
  --navy-2: #143b68;
  --ink: #17212b;
  --muted: #5f6872;
  --gray: #92969a;
  --line: #d9dde1;
  --soft: #f5f6f7;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(10, 42, 83, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  background: var(--navy);
  color: white;
  padding: .7rem 1rem;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(217,221,225,.9);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 182px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.65rem; }
.site-nav a {
  color: #26323d;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .025em;
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--navy);
  transition: right .2s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1.15rem;
  background: var(--navy);
  color: #fff !important;
  border: 1px solid var(--navy);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.nav-cta:hover, .button:hover {
  background: var(--navy-2);
  box-shadow: 0 8px 24px rgba(10,42,83,.18);
  transform: translateY(-1px);
}
.button.secondary {
  color: var(--navy) !important;
  background: transparent;
  border-color: #9eabba;
}
.button.secondary:hover { background: #f5f8fb; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background:
    linear-gradient(90deg, rgba(245,246,247,.96) 0%, rgba(245,246,247,.84) 55%, rgba(245,246,247,.25) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 48vw;
  height: 1px;
  right: 0;
  top: 30%;
  background: linear-gradient(90deg, transparent, rgba(10,42,83,.32));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.13;
}
h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); letter-spacing: -.035em; margin-bottom: 1.1rem; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -.025em; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.lead {
  max-width: 800px;
  margin: 0 0 1.5rem;
  color: #36424d;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-portrait-wrap { position: relative; justify-self: end; width: min(100%, 410px); }
.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(10,42,83,.38);
  z-index: 0;
}
.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: linear-gradient(135deg, #f6f7f8, #ffffff 64%);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { max-width: 920px; margin-bottom: 0; }

.section { padding: clamp(4.2rem, 7.5vw, 7rem) 0; }
.section.soft { background: var(--soft); }
.section.navy { background: var(--navy); color: #eaf0f6; }
.section.navy h2, .section.navy h3, .section.navy .eyebrow { color: white; }
.section.navy p { color: #e2e8ef; }
.section-heading { max-width: 820px; margin-bottom: 2.5rem; }
.section-heading p { color: var(--muted); }
.prose { max-width: 930px; }
.prose p { margin: 0 0 1.25rem; }
.prose strong { color: var(--ink); }

.divider-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.divider-title::after { content: ""; height: 1px; background: var(--line); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--line);
  padding: 1.65rem;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(23,33,43,.035);
}
.card p { margin: .6rem 0 0; color: #46515b; }
/* Keep text highly legible on the light cards used inside dark navy sections. */
.section.navy .card h3 { color: var(--navy); }
.section.navy .card p { color: #36424d; }
.section.navy .card strong { color: var(--navy); }
.card strong { color: var(--navy); }
.card .label {
  display: block;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.feature-list li {
  position: relative;
  padding: .95rem 1rem .95rem 2.25rem;
  border: 1px solid var(--line);
  background: white;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.55rem;
  width: .55rem;
  height: .55rem;
  background: var(--navy);
  transform: rotate(45deg);
}

.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.2rem);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: white; margin-bottom: .55rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-band p { margin: 0; color: #e2e8ef; }
.cta-band .button { background: white; border-color: white; color: var(--navy) !important; white-space: nowrap; }
.cta-band .button:hover { background: #f2f5f8; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-card {
  border-top: 4px solid var(--navy);
  padding: 1.6rem;
  background: var(--soft);
}
.contact-card .portrait-small { width: 150px; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.35rem; }
.contact-method { padding: 1rem 0; border-top: 1px solid #d5d9dd; }
.contact-method:first-of-type { border-top: 0; }
.contact-method span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-method a { font-weight: 700; word-break: break-word; }

form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 700; color: #24303a; font-size: .92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #bac1c8;
  background: white;
  color: var(--ink);
  border-radius: 2px;
  padding: .85rem .9rem;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,42,83,.12); }
textarea { min-height: 180px; resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: .86rem; }
.hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; }

.legal { max-width: 900px; }
.legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal p, .legal li { color: #404b55; }

.site-footer { background: #0c1722; color: #c8d0d8; padding: 3.2rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-logo { width: 175px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.site-footer h3 { color: white; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.site-footer a { color: #e6ebf0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid #26313c; margin-top: 2.4rem; padding-top: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #9ea8b2; }
.footer-bottom p { margin: 0; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.35rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 18px 28px rgba(10,42,83,.09);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem .4rem; }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: .5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait-wrap { justify-self: start; width: min(72vw, 380px); }
  .card-grid.three { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .header-inner { min-height: 76px; }
  .brand img { width: 160px; }
  .site-nav { top: 76px; }
  .hero { padding: 3.7rem 0 4.5rem; }
  .hero::before { display: none; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.65rem); }
  .hero-portrait-wrap { width: min(82vw, 350px); }
  .hero-portrait-wrap::before { inset: 12px -12px -12px 12px; }
  .card-grid, .form-row { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
