/* Brand colors and shared settings */
:root {
  --blue: #074587;
  --bright: #1472d3;
  --navy: #082947;
  --ink: #142c42;
  --muted: #526678;
  --pale: #f1f5f8;
  --line: #d6e0e7;
  --white: #fff;
  --header: 92px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(56px, 6.2vw, 104px);
  --layout-gap: clamp(32px, 5vw, 76px);
  --radius: 0;
  --duration: 180ms;
  --text-body: clamp(1rem, 0.95rem + 0.16vw, 1.0625rem);
  --text-h1: clamp(2.125rem, 1.25rem + 3.2vw, 4.625rem);
  --text-h2: clamp(1.75rem, 1.2rem + 2.1vw, 3.375rem);
  --text-h3: clamp(1.25rem, 1.08rem + 0.65vw, 1.5rem);
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--text-body);
  line-height: 1.65;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: var(--text-h1);
  margin-bottom: 28px;
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: 26px;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
}

p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 67ch;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1472d3;
  outline-offset: 5px;
}

/* Shared layout */
.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: auto;
}

.section {
  padding: var(--section-space) 0;
}

.pale {
  background: var(--pale);
}

.navy {
  background: var(--navy);
  color: white;
}

.navy p {
  color: #c7d8e7;
}

.navy .eyebrow {
  color: #a5caf3;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
}

/* Buttons and text links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  padding: 17px 26px;
  border: 1px solid var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 52px;
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button.light {
  background: white;
  border-color: white;
  color: var(--blue);
}

.button.light:hover {
  background: #dfeeff;
}

.button.small {
  padding: 14px 22px;
  min-height: 46px;
}

.text-link {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
}

.text-link:hover {
  color: var(--bright);
}

/* Skip navigation */
.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  background: white;
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  height: var(--header);
}

.header-inner {
  width: min(1408px, calc(100% - var(--gutter) * 2));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.15;
  white-space: nowrap;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-logo.missing-logo {
  display: none;
}

/* Main navigation */
nav#primary-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav ul a {
  font-size: 0.9rem;
  white-space: nowrap;
}

nav ul a:hover,
nav ul a[aria-current="page"] {
  color: var(--bright);
}

.nav-pair {
  display: flex;
  align-items: center;
  gap: 7px;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  color: var(--blue);
  width: 44px;
  height: 44px;
}

.mega-menu {
  position: absolute;
  top: calc(var(--header) - 1px);
  right: max(var(--gutter), calc((100% - 1408px) / 2));
  left: max(var(--gutter), calc((100% - 1408px) / 2));
  background: white;
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--line);
  padding: 42px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  box-shadow: 0 16px 25px #08294712;
}

.mega-menu[hidden] {
  display: none;
}

.mega-menu h2 {
  font-size: 2rem;
}

.mega-menu > div:last-child {
  display: grid;
  align-content: start;
}

.mega-menu > div:last-child a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.mobile-toggle,
.mobile-close {
  display: none;
}

/* Homepage hero */
.home-hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 0;
  max-width: 1600px;
  margin-inline: auto;
}

.hero-copy {
  padding: clamp(48px, 5vw, 80px) clamp(32px, 4vw, 64px);
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 1.35rem + 3.3vw, 5rem);
}

.hero-copy p {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.blue-dot {
  color: var(--bright);
}

.hero-note {
  margin-top: clamp(32px, 3.5vw, 56px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-note span:first-child {
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--blue);
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 45% center;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--blue);
  color: white;
  padding: 28px 38px;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* Editorial sections */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--layout-gap);
}

.split.reverse .split-copy {
  order: 2;
}

.editorial-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.split-copy > p {
  max-width: 50ch;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.split .section-heading {
  margin-bottom: 25px;
}

.section-heading p {
  max-width: 58ch;
}

/* Service list */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 50px 1.1fr 1.2fr 70px;
  align-items: center;
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--duration);
}

.service-row h3 {
  font-size: 1.55rem;
  margin: 0;
}

.service-row p {
  font-size: 0.98rem;
  margin: 0;
}

.row-number {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
}

.row-action {
  font-size: 0.82rem;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  justify-self: end;
}

.service-row:hover {
  background: #e7f0f7;

}

/* Homepage process preview */
.process-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 50px 0 40px;
  border-top: 1px solid var(--line);
}

.process-ribbon li {
  padding: 28px 20px 0 0;
  position: relative;
}

.process-ribbon li::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

.process-ribbon span {
  font-size: 0.85rem;
  color: var(--blue);
  display: block;
  margin-bottom: 20px;
}

.process-ribbon h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* Industry preview */
.industry-preview {
  position: relative;
}

.industry-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  margin: 40px 0;
}

.industry-links a {
  padding: 22px 0;
  border-bottom: 1px solid #ffffff40;
  font-size: 1.4rem;
}

.industry-links a:hover {
  color: #a5caf3;
}

/* Company principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
}

.principles > div {
  border-top: 2px solid var(--blue);
  padding-top: 25px;
}

.principles h3 {
  font-size: 1.55rem;
}

.principles p {
  font-size: 1rem;
}

.navy .principles > div {
  border-color: #6d9bca;
}

.principle-icon {
  width: 32px;
  height: 32px;
  margin: 0 0 20px;
}

/* Resources preview */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.resource-grid img {
  aspect-ratio: 1.5;
  object-fit: cover;
  width: 100%;
}

.resource-copy {
  padding: 26px 0 0;
}

.resource-copy .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 14px;
}

.resource-copy h3 {
  font-size: var(--text-h3);
}

.resource-copy p {
  font-size: 1rem;
}

/* Contact call to action */
.contact-band {
  background: var(--blue);
  color: white;
  padding: 65px 0;
}

.contact-band .eyebrow {
  color: #d3e8ff;
}

.band-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.band-row h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.5vw, 3.7rem);
}

/* Footer */
footer {
  background: #061f36;
  color: white;
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.65fr) minmax(0, 1.2fr);
  gap: 60px;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 22px;
  object-fit: contain;
}

.footer-brand h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-brand h2 span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-brand p {
  color: #b4c7d8;
  font-size: 0.94rem;
}

footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 25px;
}

footer a {
  display: block;
  font-size: 0.9375rem;
  color: #c4d6e5;
  padding: 9px 0;
  min-height: 44px;
  overflow-wrap: anywhere;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid #ffffff25;
  margin-top: 55px;
  padding-top: 25px;
  font-size: 0.75rem;
  color: #b4c7d8;
}

.footer-bottom > div {
  display: flex;
  gap: 25px;
}

.footer-bottom a {
  font-size: 0.75rem;
  padding: 0;
}

/* Internal page heroes */
.page-hero {
  background: var(--pale);
  padding: 52px 0 65px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--layout-gap);
  align-items: center;
}

.page-hero h1 {
  font-size: var(--text-h1);
  margin-bottom: 0;
}

.page-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  gap: 25px;
  font-size: 0.76rem;
  margin-bottom: 38px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: underline;
}

.page-hero.text-only .page-hero-grid {
  display: block;
}

.page-hero.text-only h1 {
  max-width: 850px;
}

/* Service details */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--layout-gap);
}

.detail-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.detail-grid p {
  font-size: 1rem;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  padding: 5px 0;
}

.scope-note {
  font-size: 0.87rem;
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  margin-top: 40px;
}

/* Claims process page */
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: var(--layout-gap);
  align-items: start;
}

.process-aside {
  position: sticky;
  top: calc(var(--header) + 28px);
}

.process-aside h2 {
  font-size: 2.5rem;
}

.process-aside p {
  font-size: 1rem;
}

.process-aside nav {
  display: grid;
}

.process-aside nav a {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-aside nav a span {
  color: var(--blue);
}

.process-aside nav a.active {
  color: var(--blue);
  font-weight: 700;
}

.timeline {
  border-left: 1px solid var(--line);
  padding-left: 55px;
}

.process-step {
  position: relative;
  padding: 15px 0 65px;
  scroll-margin-top: 0;
}

.process-step h2 {
  font-size: 2.15rem;
}

.process-step .eyebrow {
  margin-bottom: 12px;
}

.step-number {
  position: absolute;
  left: -77px;
  top: 13px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.process-step p {
  font-size: 1.04rem;
}

.narrow {
  max-width: 800px;
}

/* Industries page */
.industry-table {
  border-top: 1px solid var(--line);
}

.industry-table article {
  display: grid;
  grid-template-columns: 50px 1fr 1.1fr;
  gap: 35px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.industry-table h2 {
  font-size: 1.7rem;
  margin: 0;
}

.industry-table p {
  margin: 0;
  font-size: 1rem;
}

/* Educational guides */
.guide:nth-of-type(odd) {
  background: var(--pale);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--layout-gap);
}

.guide h3 {
  font-size: 1.25rem;
  margin-top: 35px;
  margin-bottom: 12px;
}

.guide h3:first-child {
  margin-top: 0;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--layout-gap);
}

.contact-details {
  margin-top: 40px;
}

.contact-details h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
  margin-top: 30px;
}

.contact-details a {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 0;
}

/* Contact form */
.form-panel {
  padding: clamp(24px, 3vw, 42px);
  background: var(--pale);
}

.form-panel h2 {
  font-size: 2rem;
}

.form-panel > p {
  font-size: 0.93rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #9eafbd;
  background: white;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  min-height: 49px;
}

.field textarea {
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a42020;
}

.field-error {
  display: block;
  color: #a42020;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 6px;
}

.help {
  font-size: 0.8rem;
  margin: 9px 0 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--blue);
}

.consent label {
  font-size: 0.85rem;
}

.consent a {
  text-decoration: underline;
}

form > .button {
  margin-top: 25px;
}

#form-status {
  font-size: 0.9rem;
  margin-top: 22px;
}

#form-status a {
  text-decoration: underline;
  color: var(--blue);
}

/* Privacy and terms pages */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--layout-gap);
}

.legal-notice {
  padding: 22px;
  background: var(--pale);
  font-size: 0.95rem;
}

.legal-layout section {
  margin-bottom: 40px;
}

.legal-layout h2 {
  font-size: 1.65rem;
}

/* Custom 404 page */
.error-number {
  display: block;
  font-size: 6rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 40px;
}

/* Subtle scroll reveals */
.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal-ready.visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
.readiness-questions {
  background: var(--pale);
  padding: 40px;
}

.readiness-questions h3 {
  font-size: 1.25rem;
  margin-top: 24px;
}

.readiness-questions p {
  font-size: 1rem;
}
/* Intrinsic sizing prevents long content from widening grid tracks. */
.container > *, .split > *, .page-hero-grid > *, .home-hero > *,
.footer-grid > *, .principles > *, .resource-grid > *, .detail-grid > *,
.contact-layout > *, .process-layout > *, .guide-grid > *, .legal-layout > *,
.form-grid > *, .service-row > *, .industry-table article > * { min-width: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
.button { max-width: 100%; text-align: center; }
.text-link { min-height: 44px; }
.brand-logo { flex: 0 0 auto; }
.hero-photo { min-height: 520px; }
.resource-grid img { height: auto; }
.resource-copy { display: flex; flex-direction: column; align-items: flex-start; }
.resource-copy .text-link { margin-top: auto; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; font-size: 1rem; }
.field textarea { min-height: 150px; }
.field label { font-size: 0.9375rem; }
.help, .optional, .consent label { font-size: 0.875rem; }
.help { line-height: 1.55; }
.form-panel > .help { margin-bottom: 24px; }
.consent label { min-height: 44px; cursor: pointer; }
.consent { padding-block: 6px; }
#form-status { overflow-wrap: anywhere; }
#form-status a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-layout a, .contact-details a { overflow-wrap: anywhere; }
.legal-layout a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb { flex-wrap: wrap; row-gap: 8px; }
.footer-bottom { align-items: center; }
.footer-bottom > div { flex-wrap: wrap; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; }
.menu-backdrop { display: none; }
.process-aside nav a { min-height: 44px; align-items: baseline; }
.process-aside nav a span { flex-shrink: 0; }
.readiness-questions { padding: clamp(24px, 3vw, 40px); }
.readiness-questions > p:last-child, .legal-layout section:last-child { margin-bottom: 0; }
img[src*="about-team"], img[src*="contact-conversation"] { object-position: center 42%; }
img[src*="process-coordination"] { object-position: 55% center; }
@media (hover: none) { .service-row:hover { background: transparent; } }
.brand-logo { height: auto; aspect-ratio: 1312 / 1199; object-fit: contain; }
