:root {
  /* Navy and white, matching SiteScanner */
  --navy: #12284b;        /* main brand color: text, buttons, header */
  --navy-2: #1d3a66;      /* hover / secondary navy */
  --navy-deep: #0b1a33;   /* darkest backgrounds (home hero, menu) */
  --on-navy: #c9d8f2;     /* light accent for text on navy */
  --bg: #ffffff;
  --surface: #f7f9fc;
  --ink: #12284b;
  --muted: #4b5870;
  --line: #e3e8f0;
  --soft: #eef2f8;
  --error: #b91c1c;
  --heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}
body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }
main { flex: 1 0 auto; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

a { color: var(--navy); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--on-navy); outline-offset: 2px; }
.hero :focus-visible, main :focus-visible { outline-color: var(--navy); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; }
.skip:focus { left: 0; z-index: 50; }

/* ---------- Header and hamburger ---------- */
.site-header {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: .6rem 1.25rem;
  position: relative; z-index: 20;
}
.menu-toggle {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; color: var(--navy);
}
.menu-toggle:hover { background: var(--soft); }
.menu-toggle:focus-visible { outline-color: var(--navy-2); }
.bars { display: grid; gap: 5px; width: 1.6rem; }
.bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none;
}

/* Slide-out menu */
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(11,26,51,.5); backdrop-filter: blur(2px); z-index: 30;
}
.menu-backdrop[hidden], .site-menu[hidden] { display: none; }
.site-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
  width: min(20rem, 85vw);
  background: var(--navy-deep);
  box-shadow: 8px 0 40px rgba(11,26,51,.35);
  padding: 5.5rem 1.75rem 2rem;
  animation: slide-in .2s ease-out;
}
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a {
  display: block; padding: .8rem 0;
  font-family: var(--heading); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-menu a:hover { color: var(--on-navy); }
.site-menu a[aria-current="page"] { color: var(--on-navy); }
/* keep the toggle visible above the open menu so it can close it */
body.menu-open .site-header { z-index: 50; background: transparent; border-color: transparent; }
body.menu-open .menu-toggle { color: #fff; }
body.menu-open .menu-toggle:hover { background: rgba(255,255,255,.1); }

/* ---------- Home ---------- */
body.home { background: var(--navy-deep); }
body.home .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-color: transparent;
}
body.home .menu-toggle { color: #fff; }
body.home .menu-toggle:hover { background: rgba(255,255,255,.1); }
.home-hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--navy-deep);
}
.home-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.home-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,26,51,.55) 0%, rgba(11,26,51,0) 45%);
}
.home-title {
  position: relative; z-index: 1;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.home-actions .button { background: #fff; color: var(--navy); }
.home-actions .button:hover { background: var(--soft); }
.home-actions .button.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.home-actions .button.secondary:hover { background: rgba(255,255,255,.1); }
.home-tagline {
  margin: clamp(.75rem, 2vw, 1.25rem) 0 0;
  color: var(--on-navy);
  font-family: var(--heading); font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: .06em;
}
.home-hero h1 {
  position: relative; z-index: 1;
  margin: 0; padding: 0;
  max-width: none;
  color: #fff;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -0.035em;
  border-left: 0;
}

/* ---------- Inner pages ---------- */
h1, h2 { font-family: var(--heading); line-height: 1.15; margin: 0; color: var(--navy); }
.home-hero h1 { color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.rows h2 { font-weight: 700; }
aside h2 { font-weight: 700; margin-bottom: 1rem; }
p { margin: 0 0 1rem; }

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem); }
.hero h1 { padding-left: 1rem; border-left: 5px solid var(--navy); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-top: 1.25rem; }

.rows { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; gap: .5rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.rows p { margin: 0; color: var(--muted); max-width: 55ch; }
@media (min-width: 46rem) {
  .rows li { grid-template-columns: 1fr 1.6fr; align-items: baseline; }
}

.button {
  display: inline-block; cursor: pointer;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 10px; padding: .8rem 1.4rem;
  font: 600 1rem var(--body); text-decoration: none;
}
.button:hover { background: var(--navy-2); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; padding-bottom: 4rem; }
@media (min-width: 46rem) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.field { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input, textarea {
  width: 100%; font: inherit; color: inherit;
  background: #fff; border: 1px solid #cfd7e3; border-radius: 10px; padding: .75rem .9rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(29,58,102,.15); }
[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); margin: .35rem 0 0; font-size: .95rem; }
.notice { background: var(--soft); border-left: 4px solid var(--navy); padding: .9rem 1rem; border-radius: 8px; }
.notice.error { background: #fdecec; border-left-color: var(--error); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dl { margin: 0; }
dt { font-weight: 600; }
dd { margin: 0 0 1rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.5rem; font-size: .92rem; }
.site-footer a { color: var(--navy); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .site-menu { animation: none; } }

/* Secondary button + button row (used on What we offer) */
.button.secondary { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.button.secondary:hover { background: var(--soft); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-menu .ext span { font-size: .9em; opacity: .7; }
