:root {
  color-scheme: light;
  --blue-950: #0a1729;
  --blue-900: #10233f;
  --blue-800: #18355d;
  --blue-700: #244a78;
  --gold-600: #b58a43;
  --gold-500: #d1a85f;
  --ink: #172033;
  --muted: #5f6b7d;
  --line: #d9e0ea;
  --soft-line: #edf1f6;
  --paper: #f6f2ec;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --success: #1f7a4d;
  --danger: #a33b35;
  --shadow-lg: 0 28px 80px rgba(16, 35, 63, .18);
  --shadow-md: 0 16px 42px rgba(16, 35, 63, .12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: white;
  background: var(--blue-900);
  clip: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(217, 224, 234, .84);
  backdrop-filter: blur(18px);
}

.site-header--static {
  position: static;
}

.topbar {
  color: rgba(255, 255, 255, .86);
  background: var(--blue-950);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 16px;
}

.topbar a {
  text-decoration: none;
}

.topbar a:hover {
  color: white;
}

.topbar__separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .22);
}

.nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  width: min(270px, 56vw);
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  box-shadow: 0 14px 32px rgba(16, 35, 63, .16);
}

.brand img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(1.12);
  opacity: .94;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--blue-900);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-alt);
}

.nav-links .nav-cta {
  color: white;
  background: var(--blue-900);
  box-shadow: 0 10px 26px rgba(16, 35, 63, .18);
}

.nav-links .nav-cta:hover {
  background: var(--blue-800);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--blue-900);
}

.hero {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  color: white;
  background: var(--blue-950);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 23, 41, .94) 0%, rgba(10, 23, 41, .80) 45%, rgba(10, 23, 41, .38) 100%),
    url("/assets/images/banner-office.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  content: "";
  background: linear-gradient(0deg, rgba(10, 23, 41, .92), transparent);
}

.hero__content {
  display: grid;
  min-height: 720px;
  align-content: center;
  padding: 80px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-500);
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  color: var(--blue-950);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 22px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
}

.hero__lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
}

.hero__actions,
.contact-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: white;
  background: var(--gold-600);
  box-shadow: 0 16px 36px rgba(181, 138, 67, .28);
}

.button--primary:hover {
  background: #a9792d;
}

.button--ghost {
  color: white;
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
}

.button--secondary {
  color: white;
  background: var(--blue-900);
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 870px;
  margin: 70px 0 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.hero__facts div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.hero__facts div:last-child {
  border-right: 0;
}

.hero__facts dt {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__facts dd {
  margin: 6px 0 0;
  color: white;
  font-weight: 800;
}

.section {
  padding: 92px 0;
}

.section--intro {
  background: var(--paper);
}

.section--muted {
  background: var(--surface-alt);
  border-block: 1px solid var(--soft-line);
}

.section--official {
  background: var(--blue-950);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 72px;
  align-items: start;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
}

.rich-text {
  color: var(--muted);
  font-size: 18px;
}

.rich-text p:last-child,
.section-heading p:last-child {
  margin-bottom: 0;
}

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

.section-heading--compact {
  max-width: 680px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.practice-card,
.steps article,
.team-card,
.contact-card,
.intake-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 12px 36px rgba(16, 35, 63, .06);
}

.practice-card {
  min-height: 245px;
  padding: 28px;
}

.practice-card span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold-600);
  border: 1px solid rgba(181, 138, 67, .32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.practice-card h3,
.steps h3,
.team-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.practice-card p,
.steps p,
.team-card p {
  color: var(--muted);
}

.practice-card--featured {
  color: white;
  background:
    linear-gradient(135deg, rgba(16, 35, 63, .96), rgba(36, 74, 120, .92)),
    url("/assets/images/banner-law.jpg") center / cover no-repeat;
}

.practice-card--featured h3,
.practice-card--featured p {
  color: white;
}

.practice-card--featured span {
  color: white;
  border-color: rgba(255, 255, 255, .34);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 28px;
}

.steps strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: white;
  border-radius: 999px;
  background: var(--blue-900);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.team-photo {
  display: flex;
  height: 360px;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 22px 0;
  border-bottom: 1px solid var(--soft-line);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .12) 34%, transparent 58%),
    linear-gradient(145deg, #eef3f8 0%, #f8f5ee 52%, #ffffff 100%);
}

.team-photo img {
  width: 100%;
  max-width: 230px;
  max-height: 345px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.06) saturate(1.04) brightness(1.01);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.team-card > div {
  padding: 24px;
}

.team-role {
  margin-bottom: 8px;
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.official-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 48px;
  align-items: center;
  padding: 40px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: var(--shadow-lg);
}

.official-card h2,
.official-card p,
.official-card a {
  color: white;
}

.official-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.official-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-note,
.form-privacy {
  color: var(--muted);
}

.contact-actions {
  margin-top: 24px;
}

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

.intake-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 800;
}

.intake-form label:has(textarea),
.form-privacy,
.form-actions {
  grid-column: 1 / -1;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  outline: none;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(36, 74, 120, .12);
}

.form-privacy {
  margin: 0;
  font-size: 13px;
}

.section--closing {
  padding-top: 0;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.contact-card a,
.contact-card span {
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, .72);
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .7fr .7fr;
  gap: 32px;
}

.site-footer strong {
  color: white;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.footer-note {
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
}

.legal-page .site-header {
  position: static;
}

.narrow {
  max-width: 820px;
}

.narrow h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.narrow h2 {
  margin-top: 34px;
  font-size: 24px;
}

@media (max-width: 980px) {
  .topbar__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open,
  .nav-links--always {
    display: flex;
  }

  .nav-links--always {
    position: static;
    flex-direction: row;
    border: 0;
    box-shadow: none;
  }

  .hero,
  .hero__content {
    min-height: 640px;
  }

  .hero__facts,
  .practice-grid,
  .steps,
  .team-grid,
  .split,
  .official-card,
  .contact-layout,
  .closing,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .hero__facts div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar__separator,
  .topbar__inner span:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    min-height: auto;
    padding: 72px 0 34px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__facts {
    margin-top: 42px;
  }

  .intake-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .official-card,
  .closing {
    padding: 26px;
  }

  .button {
    width: 100%;
  }
}
