:root {
  --navy: #001e4c;
  --navy-deep: #001640;
  --ink: #102044;
  --blue: #5ecdf4;
  --muted: #5c6672;
  --line: #e3e8ee;
  --card: #eef5fd;
  --white: #ffffff;
  --page-max: 1240px;
  --pad: clamp(1.5rem, 2.5vw, 2.5rem);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 14px 34px rgba(0, 30, 76, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

#hero,
#services,
#about,
#contact {
  scroll-margin-top: 1rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  z-index: 50;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  transform: none;
}

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

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid var(--navy);
  border-radius: 5px;
  padding: 0.85rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

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

.btn-fill:hover,
.btn-fill:focus-visible {
  background: #002864;
  border-color: #002864;
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f4f8fc;
}

.btn-block {
  width: 100%;
}

.btn:focus-visible,
.nav-link:focus-visible,
.header-phone:focus-visible,
.connect-list a:focus-visible,
.logo:focus-visible,
.nav-toggle:focus-visible,
.service-more:focus-visible,
.modal-close:focus-visible,
.consult-form input:focus-visible,
.consult-form textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.site-header {
  background: var(--white);
  position: relative;
  z-index: 20;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 4.6rem;
}

.logo-brush {
  position: absolute;
  left: 8%;
  top: -18%;
  width: 210%;
  height: 78%;
  z-index: 0;
  pointer-events: none;
}

.logo-li {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 3.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.78;
}

.logo-rule {
  width: 1px;
  align-self: stretch;
  margin: 0.35rem 0;
  background: var(--navy);
}

.logo-name {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars {
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover {
  color: #16386f;
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--navy);
  padding-bottom: 0.15rem;
}

.nav-link[aria-disabled="true"] {
  cursor: default;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg {
  width: 1.05rem;
  height: 1.05rem;
}

.hero {
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.6rem 1.5rem 1.75rem 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: min(9.4em, 100%);
  min-width: 0;
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.9rem, calc(4.3vw - 0.25rem), 3.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.lede,
.about-copy p {
  max-width: 34rem;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.about-copy p + p {
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-photo {
  position: relative;
  height: clamp(220px, 36vh, 360px);
  align-self: center;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.72) 10%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.services {
  background: var(--white);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list > li {
  padding: 2.5rem 1.15rem 1.35rem;
  text-align: center;
  border-left: 1px solid var(--line);
}

.service-list > li:first-child {
  border-left: 0;
}

.service-icon {
  width: 3.15rem;
  height: 3.15rem;
  color: var(--navy);
}

.service-list h3 {
  margin: 0.95rem 0 0.45rem;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-list p {
  margin: 0 auto;
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.service-more:hover {
  color: #002864;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 76, 0.62);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(85vh, 40rem);
  overflow: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 22px 50px rgba(0, 30, 76, 0.28);
  padding: 1.85rem 1.7rem 1.45rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
}

.modal-close svg {
  width: 0.9rem;
  height: 0.9rem;
}

.modal-close:hover {
  background: var(--blue);
}

.modal-dialog h2 {
  margin: 0 2.2rem 0.9rem 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-copy {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.modal-copy p {
  margin: 0 0 0.9rem;
}

.modal-copy p:last-child {
  margin-bottom: 0;
}

.modal-copy p:has(+ .modal-cta) {
  margin-bottom: 0;
}

.modal-copy ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.modal-copy li + li {
  margin-top: 0.25rem;
}

.modal-cta {
  margin-top: 0.35rem;
}

.modal-cta + .modal-cta {
  margin-top: 0.75rem;
}

.modal-copy .modal-disclosure {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  text-align: left;
}

.modal-note {
  margin: 1.15rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.55;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  width: 100%;
}

@media (max-width: 760px) {
  .modal {
    padding: 0.85rem;
  }

  .modal-dialog {
    width: 100%;
    max-height: min(88vh, 40rem);
    padding: 1.55rem 1.15rem 1.2rem;
    border-radius: 12px 12px 10px 10px;
  }

  .modal-copy {
    font-size: 1rem;
  }
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

@media (min-width: 981px) {
  .about-band {
    align-items: stretch;
  }

  .connect {
    height: 100%;
  }

  .consult-form {
    flex: 1;
    height: 100%;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  }

  .consult-field-wide {
    height: 100%;
    min-height: 0;
  }

  .consult-form textarea {
    flex: 1 1 auto;
    min-height: 9rem;
  }
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.about-lower {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.about-copy {
  min-width: 0;
}

.about-copy h2,
.connect-details h2 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.about-copy h2 {
  max-width: min(16em, 100%);
  min-width: 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.portrait {
  margin: 0;
  align-self: start;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
  background: #d5d8dc;
}

.connect {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.1rem;
}

.connect-details h2 {
  font-size: 1.85rem;
}

.connect-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.connect-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
}

.connect-list li:last-child {
  margin-bottom: 0;
}

.connect-brokercheck {
  padding-left: calc(1.15rem + 0.7rem);
}

.connect-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.connect-list a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.connect-list a:hover {
  text-decoration: underline;
}

.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.consult-form[hidden] {
  display: none;
}

.consult-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consult-notice,
.consult-hint,
.consult-thanks,
.consult-error {
  margin: 0;
}

.consult-notice {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consult-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.consult-field-wide,
.consult-notice,
.consult-required-note,
.consult-error,
.consult-form .btn {
  grid-column: 1 / -1;
}

.consult-required-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.req {
  color: #c0392b;
}

.consult-field legend {
  padding: 0;
}

.consult-field > label,
.consult-field legend {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.consult-field > label {
  display: block;
}

.consult-field > label input {
  display: block;
  margin-top: 0.35rem;
}

.consult-hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.consult-form input[type="text"],
.consult-form input[type="email"],
.consult-form input[type="tel"],
.consult-form textarea {
  width: 100%;
  border: 1px solid #c9d4e2;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  padding: 0.7rem 0.75rem;
}

.consult-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.consult-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 0.9rem;
}

.consult-choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}

.consult-choices input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--navy);
}

.consult-form .btn {
  margin-top: 0.15rem;
}

.consult-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.consult-error {
  color: #8a2b2b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consult-thanks {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--card);
  border-radius: 8px;
  padding: 0.95rem 1rem;
}

.consult-thanks[hidden] {
  display: none;
}

.consult-thanks:focus {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.connect .btn {
  margin-top: 0.15rem;
}

.site-footer {
  background: var(--navy);
}

.compliance-frame {
  display: block;
  width: 100%;
  height: 6.25rem;
  border: 0;
  background: var(--navy);
}

@media (max-width: 760px) {
  .compliance-frame {
    height: 8.5rem;
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 0.9rem;
  }

  .primary-nav {
    gap: 0.9rem;
  }

}

@media (max-width: 1040px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-list > li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-list > li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .service-list > li:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.4rem var(--pad) 1.2rem;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav > .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta {
    width: 100%;
  }

  .about-band,
  .consult-form,
  .about-lower {
    grid-template-columns: 1fr;
  }

  .portrait img {
    width: min(100%, 220px);
  }
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2.4rem 0 1.6rem;
  }

  .hero h1,
  .about-copy h2,
  .lede,
  .about-copy p {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-photo {
    height: 200px;
    order: 2;
  }

  .hero-photo::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 22%);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list > li,
  .service-list > li:nth-child(odd),
  .service-list > li:nth-child(-n + 2) {
    border: 0;
    border-top: 1px solid var(--line);
  }

  .service-list > li:first-child {
    border-top: 0;
  }

  .portrait img {
    max-width: 320px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }

  .about-copy h2 {
    max-width: none;
  }
}

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