/* Focus, motion, and responsive safeguards. */
:root { --gold: #8a6210; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c8a14a;
  outline-offset: 3px;
}

.button {
  touch-action: manipulation;
  transition: background-color .2s, border-color .2s, transform .2s;
  color: #fff;
}

.practice-card {
  touch-action: manipulation;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* Homepage banner: a legal visual with space reserved for the hero copy. */
.hero-image {
  background-image: linear-gradient(90deg, rgba(5, 16, 31, .94) 0%, rgba(5, 16, 31, .76) 52%, rgba(5, 16, 31, .15) 100%), url('../images/lady-justice-hero.png') !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
}

.faq-group { margin-top: 54px; }
.faq-group h2 { color: #0b1f3a; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.faq-group details { border-top: 1px solid #dfe4eb; padding: 0; }
.faq-group details:last-child { border-bottom: 1px solid #dfe4eb; }
.faq-group summary { color: #0b1f3a; cursor: pointer; font-weight: 700; list-style: none; padding: 20px 36px 20px 0; position: relative; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { color: #c8a14a; content: '+'; font-size: 1.5rem; font-weight: 400; position: absolute; right: 4px; top: 14px; }
.faq-group details[open] summary::after { content: '−'; }
.faq-group details p { color: #596475; margin: 0; max-width: 68ch; padding: 0 36px 22px 0; }
.faq-cta { background: #f8f9fa; margin-top: 64px; padding: 38px; }
.form-note { color: #596475; font-size: .84rem; margin-top: 18px; }
.case-evaluation { background: #fff; }
.evaluation-card { background: #f8f9fa; border-top: 3px solid #8a6210; padding: 34px; }
.evaluation-card h3 { color: #0b1f3a; font-size: 1.65rem; }
.evaluation-card .check-list { margin-bottom: 26px; }
.faq-preview { background: #fff; }
.section-heading-row { align-items: end; display: flex; gap: 24px; justify-content: space-between; }
.insights-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.insight-card { background: #fff; border: 1px solid #dfe4eb; display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.insight-card h3 { color: #0b1f3a; font-size: 1.55rem; }
.insight-card h3 a { text-decoration: none; }
.insight-card > .text-link { margin-top: auto; padding-top: 18px; }
.office-map { border: 0; display: block; height: 220px; margin-top: 24px; width: 100%; }
.form-notice { border-left: 4px solid #0b1f3a; margin: 20px 0; padding: 14px 16px; }
.form-notice-success { background: #edf7ee; border-color: #226b34; color: #164c24; }
.form-notice-error { background: #fff1f1; border-color: #a12828; color: #721b1b; }
.page-main .entry-content { overflow-wrap: anywhere; }
.entry-content h2 { scroll-margin-top: 130px; }
.practice-hero { background: linear-gradient(90deg, rgba(5, 16, 31, .96), rgba(5, 16, 31, .72)), url('../images/lady-justice-hero.png') center / cover no-repeat; color: #fff; padding: 96px 0; }
.practice-hero .container { max-width: 860px; margin-left: max(24px, calc((100vw - 1160px) / 2)); }
.practice-hero h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.practice-hero .lead { color: #eef2f6; max-width: 720px; }
.related-insights { margin-top: 68px; }
.practice-faq { margin-top: 62px; }

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

@media (max-width: 560px) {
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .evaluation-card, .faq-cta { padding: 28px 22px; }
  .office-map { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .practice-card { transition: none !important; }
  .button:hover,
  .practice-card:hover { transform: none; }
}
