:root {
  color-scheme: light;
  --ink: #171717;
  --coal: #1e1e1e;
  --charcoal: #272525;
  --gold: #d29b2a;
  --gold-deep: #a97512;
  --paper: #f6f3ed;
  --soft: #e6e7e8;
  --white: #fff;
  --focus: #f6c75a;
  --line: rgba(30, 30, 30, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(210, 155, 42, 0.2);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  touch-action: manipulation;
}

button,
summary {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.7vw, 4.65rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  font-size: 1rem;
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--coal);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(30, 30, 30, 0.97);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.28rem);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
}

.site-nav a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.hero {
  min-height: min(680px, calc(100svh - 116px));
  display: grid;
  place-items: center;
  padding: clamp(38px, 6vw, 74px) clamp(22px, 5vw, 72px);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.96), rgba(30, 30, 30, 0.8) 48%, rgba(30, 30, 30, 0.52)),
    url("../imgs/courtjustice.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(430px, 84vw);
  margin: 0 auto 18px;
}

.hero h1 {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 16px;
  margin-left: auto;
  font-size: clamp(2.15rem, 4.45vw, 3.75rem);
}

.hero p {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
  color: #f1eee7;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 8px 18px;
  border-top: 1px solid rgba(210, 155, 42, 0.7);
  border-bottom: 1px solid rgba(210, 155, 42, 0.7);
  color: var(--gold) !important;
  font-family: var(--display);
  font-size: clamp(1.06rem, 1.7vw, 1.36rem);
  font-style: italic;
  line-height: 1.1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--coal);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--coal);
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.section,
.page-hero {
  padding: clamp(46px, 6.5vw, 82px) clamp(22px, 5vw, 72px);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.76)),
    url("../imgs/court.jpg") center / cover;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.76)),
    url("../imgs/courtroom.jpg") center / cover;
}

.contact-hero,
.insurance-hero {
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.72)),
    url("../imgs/lawjustice.jpg") center / cover;
}

.page-hero > div,
.section-grid,
.section-heading,
.service-grid,
.case-panel,
.quote-grid,
.profile-card,
.split-section,
.credential-grid,
.contact-section,
.sitemap-section,
.feature-band-inner {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.page-hero p {
  max-width: 660px;
  color: #eee8df;
  font-size: 1.05rem;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.35rem);
}

.section-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.home-overview {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

.overview-grid,
.service-catalog,
.service-catalog-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding-bottom: clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.overview-heading h2 {
  max-width: 560px;
}

.overview-copy {
  color: #45413a;
  font-size: 1.05rem;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.proof-points div {
  min-height: 96px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.06);
}

.proof-points span {
  display: block;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.proof-points p {
  margin: 8px 0 0;
  color: #45413a;
  font-size: 0.92rem;
}

.compact-heading {
  margin-top: clamp(34px, 5vw, 54px);
  margin-bottom: 24px;
}

.copy-block {
  color: #45413a;
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 850px;
}

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

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.contact-card,
.credential-card,
.sitemap-card,
blockquote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.07);
}

.service-card {
  min-height: 230px;
  padding: 28px;
  border-top: 5px solid var(--gold);
}

.service-card h2,
.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.service-code {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold-deep);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-deep);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-section {
  background: var(--coal);
  color: var(--white);
}

.case-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.case-panel p {
  color: #eee8df;
}

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

.login-card {
  display: grid;
  min-height: 246px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--coal);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.login-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 155, 42, 0.65);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(210, 155, 42, 0.16), transparent 44%),
    var(--coal);
  color: var(--white);
}

.login-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.login-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.login-card p {
  margin-bottom: 0;
  color: #eee8df;
  font-size: 0.95rem;
}

.login-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 24px;
  background: var(--white);
  color: var(--gold-deep);
}

.login-card-bottom strong {
  color: var(--gold-deep);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card-bottom span {
  color: var(--coal);
  font-size: 1.3rem;
  line-height: 1;
}

.service-catalog-heading {
  margin-bottom: clamp(26px, 4vw, 40px);
  text-align: center;
}

.service-catalog-heading .section-kicker {
  margin-right: auto;
  margin-left: auto;
}

.service-catalog-heading h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.service-catalog-heading p:not(.section-kicker) {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: #45413a;
}

.service-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.service-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(30, 30, 30, 0.08);
}

.service-group-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: var(--coal);
  color: var(--white);
}

.service-group-heading span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.service-group-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
}

.service-items {
  display: grid;
  flex: 1;
  align-content: start;
}

.service-item {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.service-item:first-child {
  border-top: 0;
}

.service-item h4 {
  margin: 0 0 8px;
  color: var(--coal);
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.15;
}

.service-item p {
  margin: 0;
  color: #514c45;
}

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

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

blockquote {
  margin: 0;
  padding: 28px;
  background: #f9f7f2;
}

blockquote p {
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.45;
}

cite {
  display: block;
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 900;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead {
  color: var(--gold-deep);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-facts {
  display: grid;
  gap: 14px;
}

.profile-facts div {
  padding: 22px;
  border-radius: 8px;
  background: var(--coal);
  color: var(--white);
}

.profile-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.45rem;
}

.profile-facts p {
  margin: 0;
  color: #eee8df;
}

.stacked-list {
  display: grid;
  gap: 16px;
}

.stacked-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.credential-grid,
.contact-grid,
.sitemap-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.credential-card,
.contact-card,
.sitemap-card {
  padding: 28px;
}

.credential-card ul {
  margin: 0;
  padding-left: 20px;
}

.faq-section {
  background: #f0ebe2;
}

.faq-list {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.06);
}

.faq-list summary {
  min-height: 56px;
  padding: 18px 22px;
  color: var(--coal);
  cursor: pointer;
  font-weight: 900;
  list-style-position: inside;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: #45413a;
}

.contact-section {
  display: grid;
  gap: 20px;
}

.primary-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--coal);
  color: var(--white);
}

.primary-contact h2,
.primary-contact p {
  grid-column: 1;
}

.primary-contact .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.primary-contact p {
  color: #eee8df;
}

.note {
  color: #625b52;
  font-size: 0.95rem;
}

.sitemap-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sitemap-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--gold-deep);
  font-weight: 800;
}

.contact-card a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.feature-band {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: var(--coal);
  color: var(--white);
}

.feature-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(10px, 2vw, 22px) 0;
}

.feature-band p {
  color: #eee8df;
}

.site-footer {
  padding: 54px clamp(22px, 5vw, 72px) 26px;
  background: var(--coal);
  color: var(--white);
}

.footer-grid,
.footer-bottom {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--gold);
  font-family: var(--display);
}

.footer-grid h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.footer-grid p,
.footer-grid a {
  color: #eee8df;
  overflow-wrap: anywhere;
}

.footer-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #d8d1c7;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 22px;
    background: var(--coal);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section-grid,
  .split-section,
  .overview-grid,
  .service-catalog,
  .service-item,
  .case-panel,
  .profile-card,
  .primary-contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .compact-grid,
  .quote-grid,
  .login-grid,
  .credential-grid,
  .contact-grid,
  .sitemap-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-band-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-contact h2,
  .primary-contact p,
  .primary-contact .button {
    grid-column: 1;
    grid-row: auto;
  }

  .page-hero {
    min-height: 290px;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 190px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero-logo {
    width: min(280px, 86vw);
    margin-bottom: 12px;
  }

  .button {
    width: 100%;
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
    margin-top: 18px;
  }

  .hero-line {
    display: flex;
    max-width: 100%;
    margin-top: 14px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 1.08rem;
  }

  .page-hero {
    min-height: 255px;
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .section,
  .page-hero {
    padding-right: 22px;
    padding-left: 22px;
  }

  .home-overview {
    padding-top: 38px;
  }

  .proof-points {
    grid-template-columns: 1fr;
  }

  .login-card-top,
  .service-group-heading,
  .service-item {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (min-width: 901px) {
  .service-list .service-card:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .login-card:hover {
    transform: none;
  }
}
