/* =====================================================
   PRACTICE AREA CARD
===================================================== */
/* No height: 100% here. The card is a grid item and grid already stretches it
   to the row height (align-items defaults to stretch). Combining the two with
   flex-grow on the paragraph made each card overflow its grid area, which is
   what pulled the second row up so it overlapped the first by 22px. */
.pa-card {
  background: var(--white);
  border: 1px solid var(--brand-gray);
  border-radius: var(--radius);
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  box-shadow: 0 1px 2px rgba(43, 51, 60, 0.04);
}

/* Cards with no photograph keep their original top padding. */
.pa-card:not(:has(.pa-card__media)) {
  padding-top: 34px;
}

.pa-card:hover {
  border-color: var(--brick);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(54, 80, 114, 0.42);
}

.pa-card__icon {
  width: 34px;
  height: 34px;
  color: var(--brick);
  margin-bottom: 14px;
}

.pa-card__icon svg {
  width: 100%;
  height: 100%;
}

.pa-card h3 {
  margin-bottom: 10px;
}

.pa-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pa-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pushes "Read more" to the bottom so every card's CTA lines up, without the
   paragraph itself stretching and leaving a gulf of white under short copy. */
.pa-card__more {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pa-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.pa-card:hover .pa-card__more svg {
  transform: translateX(3px);
}

/* Compact variant used in sidebars / related lists */
.pa-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pa-pill:hover {
  border-color: var(--brick);
  color: var(--brick);
}

/* =====================================================
   ATTORNEY CARD
===================================================== */
/* height: 100% removed for the same reason as .pa-card — grid already stretches
   these to the row height. */
.attorney-card {
  background: var(--white);
  border: 1px solid var(--brand-gray);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 2px rgba(43, 51, 60, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.attorney-card:hover {
  border-color: var(--brick);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(54, 80, 114, 0.42);
}

.attorney-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--slate-pale);
  overflow: hidden;
}

.attorney-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-card__body {
  padding: 24px 26px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.attorney-card__role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 6px;
}

.attorney-card h3 {
  margin-bottom: 10px;
}

.attorney-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.attorney-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Placeholder avatar shown when no featured image has been uploaded yet */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--slate) 0%, var(--ink) 100%);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =====================================================
   AREAS OF EXPERTISE — two-column checked list
===================================================== */
.expertise {
  background: var(--parchment-deep);
  border: 1px solid var(--brand-gray);
  border-radius: var(--radius);
  padding: 34px 36px;
}

.expertise__title {
  margin-bottom: 4px;
}

.expertise__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  margin-top: 20px;
}

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

.expertise__cols li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(22, 35, 58, 0.08);
  font-size: 0.95rem;
  color: var(--ink);
}

.expertise__cols li svg {
  width: 15px;
  height: 15px;
  color: var(--brick);
  flex-shrink: 0;
  margin-top: 4px;
}

/* =====================================================
   LEDGER / HISTORY TIMELINE
===================================================== */
.ledger {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 1.5px solid var(--brand-gray);
}

.ledger__entry {
  position: relative;
  padding-bottom: 56px;
}

.ledger__entry:last-child {
  padding-bottom: 0;
}

.ledger__entry::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2.5px solid var(--brick);
}

.ledger__stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brick);
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.ledger__entry h3 {
  margin-bottom: 10px;
}

.ledger__entry p {
  color: var(--ink-soft);
}

/* =====================================================
   PULL QUOTE / CLOSING STATEMENT
===================================================== */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--brick);
  padding-left: 26px;
  max-width: 62ch;
  margin-top: 56px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   THREE PILLARS (differentiators)
===================================================== */
.pillar {
  padding: 8px 0;
}

.pillar__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brick);
  margin-bottom: 10px;
  display: block;
}

/* =====================================================
   CONTACT
===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail:first-child {
  padding-top: 0;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--brick);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail a:hover {
  color: var(--brick);
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 7px;
}

/* Border uses --line-strong: form controls need 3:1 against their background
   per WCAG 1.4.11. The old --line hairline measured 1.32:1. */
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem; /* 16px stops iOS Safari zooming on focus */
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--slate);
}

/* Server-flagged invalid fields. Colour is paired with an icon and message so
   it is never the only indicator (WCAG 1.4.1 Use of Colour). */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
  background: #fdf7f5;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--error);
}

.field__error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.field .required-mark {
  color: var(--error);
  margin-left: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field--honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.94rem;
  font-weight: 600;
}

.form-notice--success {
  background: #e7f0e5;
  color: #33532f;
  border: 1px solid #b7d1af;
}

.form-notice--error {
  background: #f5e4e0;
  color: var(--error);
  border: 1px solid #e2b6ab;
}

/* =====================================================
   MISC: PDF chip, related section, disclaimer box, 404
===================================================== */
.pdf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pdf-chip:hover {
  border-color: var(--slate);
  color: var(--brick);
}

.pdf-chip svg {
  width: 15px;
  height: 15px;
}

.credentials-block {
  margin-top: 8px;
}

.credentials-block h4 {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.credentials-block ul {
  margin-bottom: 28px;
}

.credentials-block li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.credentials-block li:last-child {
  border-bottom: none;
}

.not-found-wrap {
  text-align: center;
  padding: 90px 0;
}

.not-found-wrap .seal {
  margin: 0 auto 28px;
}
