/* Inner page shared layouts */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.practice-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.practice-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.practice-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin: 0.85rem 0 0.5rem;
}

.practice-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.content-block {
  max-width: 720px;
}

.content-block h2 {
  margin: 2.5rem 0 1rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

/* About page — tighter intro blocks + smaller side image */
.about-intro.split-2 {
  grid-template-columns: minmax(0, 1fr) min(260px, 28%);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.about-intro .content-block {
  max-width: none;
}

.about-intro .content-block h2 {
  margin: 1.1rem 0 0.55rem;
}

.about-intro .content-block h2:first-child {
  margin-top: 0;
}

.content-block__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.content-block__heading .icon-line {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.about-intro .content-block .content-block__heading {
  margin: 1.1rem 0 0.55rem;
}

.about-intro .content-block p + p {
  margin-top: 0.75rem;
}

.about-intro__media {
  position: relative;
  max-width: 100%;
  margin-left: 0;
  min-height: 0;
  overflow: hidden;
}

.about-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-values__title {
  margin-bottom: 1.25rem !important;
}

/* Core values — 4 tall cards in one row */
.practice-grid--values {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.practice-grid--values .practice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 150px;
  padding: 1.5rem 1.15rem 1.75rem;
}

.practice-grid--values .practice-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.practice-grid--values .practice-card__icon svg {
  width: 30px;
  height: 30px;
}

.practice-grid--values .practice-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.practice-grid--values .practice-card p {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.about-story.split-2 {
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
}

.about-story__primary {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.2vw, 1.65rem);
}

.about-story__copy.content-block {
  max-width: none;
}

.about-story__media {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.about-story__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.about-story__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.about-story__pillar {
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.about-story__pillar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.about-story__pillar p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.about-story__letter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-story__letter-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.about-story__portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.about-story__letter-meta h2 {
  margin: 0.2rem 0 0;
}

.about-story__role {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-story__letter .content-block {
  max-width: none;
}

.about-story__copy h2 {
  margin: 1.35rem 0 0.65rem;
}

.about-story__copy h2:first-child {
  margin-top: 0;
}

.content-block p + p {
  margin-top: 1rem;
}

.content-block ul {
  margin: 1rem 0 1rem 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}

.content-block li + li {
  margin-top: 0.4rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.team-group + .team-group {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.team-group__title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-grid--lead {
  grid-template-columns: minmax(0, 760px);
}

.team-grid--legal {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid .team-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.team-grid .team-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  align-items: stretch;
}

.team-grid--lead .team-card--featured {
  grid-column: auto;
}

.team-grid .team-card--featured .team-card__photo {
  aspect-ratio: auto;
  min-height: 520px;
}

.team-grid .team-card--featured .team-card__body {
  padding: 2rem 2.25rem;
  align-self: center;
}

.team-grid .team-card__photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a334f, #0a1e36);
  overflow: hidden;
  flex-shrink: 0;
}

.team-grid .team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.team-grid .team-card__body {
  padding: 1.15rem 0.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-grid .team-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-grid .team-card__role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

.team-grid .team-card__bio {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted, #4a5568);
}

.team-grid .team-card__bio + .team-card__bio {
  margin-top: 0.65rem;
}

.team-grid .team-card__highlights {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.team-grid .team-card__highlights li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted, #4a5568);
}

.team-grid .team-card__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.team-grid .team-card--featured .team-card__bio {
  font-size: 0.95rem;
}

.team-grid .team-card--featured .team-card__highlights li {
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .team-grid--legal {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .team-grid .team-card--featured {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card--featured .team-card__photo {
    min-height: 320px;
    aspect-ratio: 3 / 4;
  }
}

/* Contact page — editorial split (no form) */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-layout .section__label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-channel {
  display: block;
  padding: 1.15rem 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

.contact-channel:last-of-type {
  border-bottom: 1px solid var(--gray-200);
}

.contact-channel:hover,
.contact-channel:focus-visible {
  color: var(--gold-hover);
}

.contact-channel__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.35rem;
}

.contact-channel__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.contact-channel:hover .contact-channel__value,
.contact-channel:focus-visible .contact-channel__value {
  color: var(--gold-hover);
}

.contact-meta {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.contact-meta div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.contact-meta dt {
  color: var(--gray-400);
  font-weight: 600;
}

.contact-meta dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-meta a {
  color: var(--navy);
  font-weight: 600;
}

.contact-meta a:hover {
  color: var(--gold-hover);
}

.contact-offices__firm {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-office {
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-200);
}

.contact-office:last-child {
  border-bottom: 1px solid var(--gray-200);
}

.contact-office h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

.contact-office p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 36rem;
}

.contact-office__map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1rem;
  transition: color var(--transition), border-color var(--transition);
}

.contact-office__map:hover {
  color: var(--gold-hover);
  border-color: var(--gold-hover);
}

.contact-fees__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-fees__head .section__title {
  margin-bottom: 0.75rem;
}

.contact-fees__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.fee-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.fee-row {
  display: grid;
  grid-template-columns: minmax(140px, 12rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.fee-row h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.fee-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

@media (max-width: 640px) {
  .fee-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  padding: 1.5rem;
  background: var(--off-white);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.88rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-row__thumb {
  aspect-ratio: 16 / 11;
  background: var(--navy);
  overflow: hidden;
}

.article-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row__meta {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.article-row h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.article-row p {
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .practice-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-grid--values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-intro.split-2 {
    grid-template-columns: 1fr;
  }

  .about-intro__media {
    max-width: min(100%, 280px);
    margin-inline: 0;
    height: auto;
    overflow: visible;
  }

  .about-intro__media img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .team-grid--lead {
    grid-template-columns: minmax(0, 760px);
  }

  .team-grid .team-card--featured {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .split-2 {
    grid-template-columns: 1fr;
  }

  .about-intro__media {
    max-width: min(100%, 280px);
  }

  .team-grid .team-card--featured {
    display: block;
  }

  .team-grid .team-card--featured .team-card__photo {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .about-story__pillars {
    grid-template-columns: 1fr;
  }

  .about-story__portrait {
    width: 64px;
    height: 64px;
  }

  /* Core values: icon-only strip on mobile */
  .practice-grid--values {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.35rem, 2vw, 0.75rem);
  }

  .practice-grid--values .practice-card {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    min-height: 0;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
    justify-content: center;
  }

  .practice-grid--values .practice-card:hover {
    border-color: transparent;
    box-shadow: none;
  }

  .practice-grid--values .practice-card__icon {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .practice-grid--values .practice-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .practice-grid--values .practice-card h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .practice-grid--values .practice-card p {
    display: none;
  }
}

@media (max-width: 480px) {
  .practice-grid:not(.practice-grid--values),
  .team-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .practice-grid--values .practice-card__icon {
    width: 44px;
    height: 44px;
  }

  .practice-grid--values .practice-card__icon svg {
    width: 22px;
    height: 22px;
  }
}
