:root {
  --navy: #0B2545;
  --blue: #1E4F9C;        /* exact blue from the AE mark */
  --blue-dark: #163C78;
  --red: #D62828;         /* accent only */
  --muted: #4A5B78;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --line: #DCE3EE;
  --footer-text: #C9D4E6;
  --footer-link: #A9C4F5;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
}

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

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-color: var(--red); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .site-header { position: sticky; top: 0; z-index: 50; } }
@media (max-width: 639px) { html { scroll-padding-top: 16px; } }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand-rule { width: 2px; align-self: stretch; background: var(--navy); }
.brand-name { font-weight: 700; line-height: 1.1; font-size: 1rem; }
.brand-name span { display: block; }

.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 12px; min-height: 44px;
  color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--blue); border-bottom-color: var(--red); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 64px; }
.eyebrow {
  margin: 0 0 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.lede { max-width: 38rem; font-size: 1.1875rem; margin: 0 0 32px; }

.hero-stripes {
  position: absolute; top: 0; right: -40px; display: grid;
  grid-template-columns: repeat(2, 48px); gap: 10px; transform: skewX(-18deg); opacity: .9;
}
.hero-stripes span { display: block; height: 70px; }
.hero-stripes span:nth-child(1) { background: var(--red); }
.hero-stripes span:nth-child(2) { background: var(--blue); }
.hero-stripes span:nth-child(3) { background: #E88A8A; }
.hero-stripes span:nth-child(4) { background: #7F9CCB; }
@media (max-width: 639px) { .hero-stripes { right: -70px; opacity: .35; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  border: 2px solid var(--blue);
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); }
.btn-secondary:hover { color: var(--blue-dark); border-color: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--red); }
@media (max-width: 479px) { .btn { width: 100%; justify-content: center; } }

/* Icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.625rem, 4vw, 2.125rem); }
.section h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; background: var(--red); }
.section-intro { color: var(--muted); margin: 0 0 32px; }

.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.service .icon { width: 32px; height: 32px; color: var(--blue); }
.service h3 { font-size: 1.125rem; margin: 0; }

#about p { margin: 0 0 1em; }
.credential { margin-top: 1.5em; padding-left: 16px; border-left: 3px solid var(--red); }

.contact-note { font-size: 1.125rem; margin: 0 0 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: grid; grid-template-columns: 24px 64px 1fr auto; align-items: center; gap: 12px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-list .icon { color: var(--blue); }
.contact-label { font-weight: 600; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .contact-list li { grid-template-columns: 24px 1fr; }
  .contact-list a, .contact-list .copy-btn { grid-column: 1 / -1; justify-self: start; }
}

/* Visible email address and copy button */
[hidden] { display: none !important; }
.email-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 20px 0 0; font-size: 1.0625rem;
}
.email-label { color: var(--muted); font-weight: 600; }
.email-text { font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.copy-btn {
  font: inherit; font-size: .875rem; font-weight: 600; line-height: 1;
  min-height: 36px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  color: var(--blue); background: #fff; border: 1.5px solid var(--blue);
}
.copy-btn:hover { color: var(--blue-dark); border-color: var(--blue-dark); box-shadow: inset 0 -2px 0 var(--red); }
.copy-btn.is-copied { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Footer */
.site-footer { background: var(--navy); color: var(--footer-text); padding: 40px 0; border-top: 3px solid var(--red); }
.footer-inner p { margin: 0 0 6px; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.125rem; }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #fff; text-decoration-color: var(--red); }
.footer-small { font-size: .875rem; margin-top: 16px !important; }
