:root { color-scheme: light; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 10rem; }
body {
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
:focus-visible {
  outline: 3px solid #0E4B75;
  outline-offset: 3px;
}
footer :focus-visible,
.on-navy :focus-visible {
  outline-color: #ffffff;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 80;
  transform: translateY(-140%);
  border-radius: 0 0 0.8rem 0.8rem;
  background: #ffffff;
  color: #0E4B75;
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { transform: none; }
#main:focus,
#main:focus-visible { outline: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.icon-close { display: none; }
details[open] .icon-open { display: none; }
details[open] .icon-close { display: inline-flex; }
.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  max-height: calc(100dvh - var(--mobile-panel-top, 8.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 75, 117, 0.12);
  box-shadow: 0 18px 40px -28px rgba(14, 75, 117, 0.55);
}
#mobile-nav[open] .mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  max-height: none;
  padding: 0 1rem 1.5rem;
  border: 0;
  box-shadow: none;
  background: #ffffff;
}
.mobile-panel-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1rem 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(14, 75, 117, 0.1);
}
.mobile-panel-bar img {
  height: 4.5rem;
  width: auto;
}
.mobile-panel-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #F2F8F9;
  color: #0E4B75;
}
[data-nav][aria-current="location"] {
  color: #0E4B75;
  text-decoration: underline;
  text-decoration-color: #F07C33;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.btn-orange { background: #F07C33; color: #1A2E3B; }
.btn-orange:hover { background: #0E4B75; color: #ffffff; }
.btn-navy { background: #0E4B75; color: #ffffff; }
.btn-navy:hover { background: #F07C33; color: #1A2E3B; }
.btn-teal { background: #ffffff; color: #0E4B75; border-color: #22A3A6; }
.btn-teal:hover { background: #E7F6F6; }
.field {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(14, 75, 117, 0.22);
  background: #ffffff;
  color: #1A2E3B;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.field::placeholder { color: #3E5563; }
.recaptcha-wrap {
  margin-top: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
}
.form-status.is-error {
  border: 1px solid #7F1D1D;
  background: #ffffff;
  color: #7F1D1D;
}
.form-status.is-pending {
  border: 1px solid rgba(14, 75, 117, 0.2);
  background: #ffffff;
  color: #0E4B75;
}
.form-status.is-ok {
  border: 1px solid #1B7F82;
  background: #ffffff;
  color: #0E4B75;
}

.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-trigger { display: inline-flex; align-items: center; }
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 2.75rem;
  margin-left: -0.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-drop-toggle svg { transition: transform 0.15s ease; }
.nav-drop:hover .nav-drop-toggle svg,
.nav-drop:focus-within .nav-drop-toggle svg,
.nav-drop.is-open .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  width: min(36rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(14, 75, 117, 0.12);
  background: #ffffff;
  box-shadow: 0 22px 44px -28px rgba(14, 75, 117, 0.55);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.nav-drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.9rem;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel,
.nav-drop.is-open .nav-drop-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-drop-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  max-height: min(70vh, 32rem);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.nav-drop-all { grid-column: 1 / -1; }
.nav-drop-panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  color: #1A2E3B;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.nav-drop-panel a:hover,
.nav-drop-panel a:focus-visible { background: #F2F8F9; color: #0E4B75; }
.nav-drop-panel a[aria-current="page"] { background: #F2F8F9; color: #0E4B75; font-weight: 700; }
.mobile-services > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-weight: 600;
}
.mobile-services > summary:hover { background: #F2F8F9; }
.mobile-services ul {
  display: grid;
  gap: 0.15rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 0.35rem;
  list-style: none;
}
.mobile-services a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: inherit;
  text-decoration: none;
}
.mobile-services a:hover,
.mobile-services a:focus-visible { background: #F2F8F9; }
.mobile-services a[aria-current="page"] { background: #F2F8F9; color: #0E4B75; font-weight: 700; }
.svc-chevron { transition: transform 0.15s ease; }
.mobile-services[open] .svc-chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
