/* Shared brand lockup and responsive navigation. */
.wrap { width: min(1440px, calc(100% - 64px)); }
header { height: 124px; }
.nav { gap: 28px; }
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo, .brand-lockup .logo { display: block; width: 555px; max-width: none; flex: 0 1 555px; min-width: 0; }
.logo img { display: block; width: 100%; height: auto; overflow: visible; }
.heritage-badge { flex: 0 0 90px; width: 90px; height: 90px; }
nav { gap: clamp(14px, 1.7vw, 30px); flex: none; white-space: nowrap; }
nav a[aria-current="page"] { color: #6f2542; text-decoration: underline; text-decoration-color: #c89c3d; text-underline-offset: 7px; }
.footer > img { width: min(540px, 100%); }
.hero-firm { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 3px; margin: 0 0 12px; color: #fff !important; font-weight: 700; }
.hero-firm strong { font-size: 21px; }
.hero-firm span { font-size: 16px; color: #79334d; background: #fff; padding: 5px 10px; border-radius: 3px; }
.hero-copy > p:not(.overline) { max-width: 680px; }
.billing-note { display: block; margin-top: 18px; color: var(--navy); }
.simple-footer { background: #041522; color: #c4d1d6; padding: 28px 0; }
.simple-footer .wrap { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b65575; outline-offset: 3px; }
@media (max-width: 1470px) {
  .logo, .brand-lockup .logo { width: 505px; flex-basis: 505px; }
  .heritage-badge { flex-basis: 75px; width: 75px; height: 75px; }
  .brand-lockup { gap: 12px; }
}
@media (max-width: 1470px) {
  header { height: 112px; }
  .menu { display: flex; border: 0; background: none; width: 44px; height: 44px; flex: 0 0 44px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
  .menu span { display: block; width: 26px; height: 2px; background: var(--navy); }
  .menu em { position: absolute; clip: rect(0 0 0 0); }
  nav { display: none; position: absolute; left: 0; right: 0; top: 112px; background: #fff; padding: 24px max(32px, calc((100vw - 1440px)/2)); flex-direction: column; align-items: stretch; gap: 16px; border-top: 1px solid var(--line); box-shadow: 0 14px 30px rgba(4, 25, 41, .13); white-space: normal; }
  nav.open { display: flex; }
  .nav-button { text-align: center; }
  .brand-lockup .logo { width: min(555px, calc(100vw - 210px)); flex-basis: auto; }
  .logo { width: min(555px, calc(100vw - 120px)); flex-basis: auto; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1440px); }
  .utility .wrap { height: auto; min-height: 44px; padding: 7px 0; display: block; line-height: 1.35; }
  .utility .wrap span:first-child { display: block; }
  .utility .wrap span:last-child { display: none; }
  header { height: 88px; }
  nav { top: 88px; padding: 24px 16px; }
  .nav { gap: 8px; }
  .brand-lockup { gap: 7px; }
  .heritage-badge { flex: 0 0 52px; width: 52px; height: 52px; }
  .heritage-badge b { font-size: 18px; }
  .brand-lockup .logo { width: min(300px, calc(100vw - 124px)); }
  .logo { width: min(340px, calc(100vw - 92px)); }
  .menu { flex-basis: 38px; width: 38px; }
  .hero-firm { display: block; }
  .hero-firm strong, .hero-firm span { display: block; font-size: 16px; line-height: 1.4; }
  .hero { min-height: 760px; height: auto; padding: 80px 0; }
  .hero-trust { margin-top: 30px; }
  .simple-footer .wrap { flex-direction: column; gap: 8px; }
}

/* One high-contrast brand treatment in the header, hero and footer. */
.footer > img { width: min(580px, 100%); height: auto; background: #fff; padding: 18px; align-self: start; }
@media (min-width: 1101px) { .footer { grid-template-columns: minmax(420px, 1.8fr) .7fr .8fr 1fr; gap: 32px; } }

/* Invoice-payment entry points share one destination until hosted checkout is available. */
#navlinks { gap: 14px; }
#navlinks .nav-button { padding: 13px 14px; }
.pay-now-button { background: #79334d; color: #fff; border-radius: 2px; padding: 13px 16px; text-align: center; }
#navlinks .pay-now-button:hover { background: #62273e; color: #fff; }
.payment-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #526370; font-size: 14px; }
.payment-footer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.invoice-payments { scroll-margin-top: 140px; background: var(--paper); }
.payment-status { color: #79334d; font-weight: 700; }
.payment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.payment-note { font-size: 14px; margin-top: 20px; }
@media (max-width: 600px) { .payment-footer { justify-content: flex-start; } .invoice-payments { scroll-margin-top: 105px; } }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.client-portal-button { background: var(--navy); color: #fff; padding: 13px 16px; border-radius: 2px; text-align: center; }
#navlinks .client-portal-button:hover { background: var(--deep); color: #fff; }
#client-portal { scroll-margin-top: 140px; }
@media (min-width: 1471px) {
  #navlinks { display: grid; grid-template-columns: repeat(7, auto); gap: 12px 20px; justify-content: end; }
  .nav-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 1470px) { .nav-actions { flex-direction: column; align-items: stretch; } }
@media (max-width: 600px) { #client-portal { scroll-margin-top: 105px; } }

/* Main navigation takes precedence over compact client action buttons. */
#navlinks > a { font-size: 16px; font-weight: 600; }
#navlinks .nav-actions { gap: 10px; }
#navlinks .nav-actions > a { font-size: 13px; line-height: 1.4; padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1471px) { #navlinks { gap: 16px 22px; } }
@media (max-width: 1470px) { #navlinks .nav-actions > a { min-height: 44px; } }

/* Elegant italic typography for the firm tagline only. */
.hero-firm span { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

/* Keep firm identification together in each footer. */
.simple-footer > .wrap:first-child, footer > .footnote { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
