/* ==========================================================================
   SPN LEGAL — INNER PAGE SHARED PATTERNS
   Used by every template that isn't the homepage: page hero, breadcrumb,
   FAQ block, filter bar, pagination.
   ========================================================================== */

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-block: var(--sp-5);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--green-800); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { color: var(--text-secondary); font-weight: 600; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: var(--parchment);
  padding-block: var(--sp-7) var(--sp-9);
}
.page-hero__title { margin-top: var(--sp-4); max-width: 20ch; }
.page-hero__desc { margin-top: var(--sp-5); max-width: 62ch; }
.page-hero__meta { display: flex; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-7); }
.page-hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.page-hero__meta-item span:first-child { font-size: var(--fs-xs); color: var(--text-muted); }
.page-hero__meta-item span:last-child { font-weight: 600; color: var(--text-primary); }

.page-hero--split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); align-items: center; }
.page-hero--split .page-hero__media { height: 100%; min-height: 320px; overflow: hidden; }
.page-hero--split .page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); }
@media (max-width: 900px) {
  .page-hero--split { grid-template-columns: 1fr; }
  .page-hero--split .page-hero__media { order: -1; min-height: 260px; }
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.filter-chip {
  padding: 8px 18px;
  font-size: var(--fs-xs); font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--green-700); color: var(--green-800); }
.filter-chip.is-active { background: var(--green-800); border-color: var(--green-800); color: var(--text-on-dark); }
.filter-bar__search {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; min-width: 220px;
}
.filter-bar__search input { border: none; outline: none; font-size: var(--fs-small); background: transparent; width: 100%; }
.filter-bar__search svg { color: var(--text-muted); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-9); }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: background var(--dur-fast);
}
.pagination a:hover { background: var(--surface-sunken); }
.pagination .is-active { background: var(--green-800); color: var(--text-on-dark); font-weight: 600; }

/* ---------- SIDEBAR LAYOUT (practice area / industry / article detail) ---------- */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-9); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-6)); display: flex; flex-direction: column; gap: var(--sp-6); }
.sidebar-card { background: var(--parchment); padding: var(--sp-6); border: 1px solid var(--sand-line); }
.sidebar-card h5 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-muted); font-weight: 700; margin-bottom: var(--sp-4); }
.sidebar-card ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.sidebar-card a { font-size: 0.9rem; }
.sidebar-people { display: flex; flex-direction: column; gap: var(--sp-4); }
.sidebar-person { display: flex; align-items: center; gap: var(--sp-3); }
.sidebar-person__photo { width: 52px; height: 52px; flex-shrink: 0; overflow: hidden; background: var(--surface-sunken); }
.sidebar-person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); }
.sidebar-person__name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.sidebar-person__role { font-size: var(--fs-xs); color: var(--text-muted); }

@media (max-width: 960px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 260px; }
}

/* ---------- PROSE (article / practice area body copy) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-2); font-size: var(--fs-h3); }
.prose h3 { margin-top: var(--sp-7); font-size: 1.2rem; }
.prose ul { display: flex; flex-direction: column; gap: var(--sp-3); padding-left: 0; }
.prose ul li { display: flex; gap: 10px; font-size: 1rem; color: var(--text-secondary); line-height: var(--lh-relaxed); }
.prose ul li::before { content: ""; width: 5px; height: 5px; background: var(--brass); margin-top: 10px; flex-shrink: 0; }
.prose blockquote {
  border-left: 2px solid var(--brass);
  padding-left: var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  font-style: italic;
}

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align: center; padding-block: var(--sp-9); }
.empty-state p { max-width: 46ch; margin-inline: auto; margin-top: var(--sp-3); }

/* ---------- RESPONSIVE 2-COLUMN LAYOUTS (contact form, lawyer profile hero) ---------- */
.two-col-equal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-9); align-items: flex-start; }
.profile-hero-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--sp-9); align-items: start; }
@media (max-width: 900px) {
  .two-col-equal { grid-template-columns: 1fr; }
  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-hero-grid .person-card__photo { max-width: 320px; }
}

/* ---------- SIMPLE HERO (legal / 404 / search) ---------- */
.simple-hero { padding-block: var(--sp-8) var(--sp-7); border-bottom: 1px solid var(--border); }
.simple-hero h1 { margin-top: var(--sp-3); }

/* ==========================================================================
   SHARED CROSS-PAGE PATTERNS
   These were originally written for the homepage but are reused across
   About, People, Insights, Careers, Overseas Association and more — they
   live here (loaded on every page) rather than in home.css (homepage only)
   so every page that reuses the pattern actually gets the CSS for it.
   ========================================================================== */

/* Hero action row (used by every inner-page hero, not just the homepage) */
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Positioning / lead-paragraph band (About, Overseas Association, Careers, Home) */
.positioning__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-9); align-items: flex-start; }
.positioning__lead { font-size: clamp(1.4rem, 1.8vw + 0.5rem, 2.1rem); font-family: var(--font-display); font-weight: 450; line-height: 1.35; color: var(--text-primary); }
.positioning__body { display: flex; flex-direction: column; gap: var(--sp-5); }
@media (max-width: 900px) { .positioning__grid { grid-template-columns: 1fr; } }

/* Numbered feature list (Home, About "What Sets Us Apart", Careers culture points) */
.why-us { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-9); }
.why-us__media { position: relative; height: 100%; min-height: 480px; overflow: hidden; }
.why-us__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%); }
.why-us__list { display: flex; flex-direction: column; }
.why-us__item { display: flex; gap: var(--sp-6); padding-block: var(--sp-6); border-top: 1px solid var(--border); }
.why-us__item:last-child { border-bottom: 1px solid var(--border); }
.why-us__num { font-family: var(--font-display); font-size: 1.5rem; color: var(--brass); flex-shrink: 0; width: 3ch; }
.why-us__item h4 { margin-bottom: var(--sp-2); }
.why-us__item p { font-size: 0.9375rem; }
@media (max-width: 900px) { .why-us { grid-template-columns: 1fr; } .why-us__media { min-height: 300px; order: -1; } }

/* People grid (Home, About, People directory, Lawyer Profile "colleagues") */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 1024px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }

/* Insights grid (Home, Insights hub) */
.insights-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--sp-7); }
.insights-grid .insight-card:first-child .insight-card__img { aspect-ratio: 16/11; }
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }

/* Credentials / case-update list (Home, Insights, Careers openings table) */
.credentials-strip { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--border); }
.credentials-list { display: flex; flex-direction: column; }
.credential-row {
  display: grid; grid-template-columns: 140px 1fr auto;
  gap: var(--sp-6); align-items: center;
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--dur-base);
}
.credential-row:hover { background: var(--surface-sunken); }
.credential-row__date { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.credential-row__title { font-size: 0.95rem; color: var(--text-primary); line-height: var(--lh-normal); }
@media (max-width: 720px) {
  .credential-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .credential-row__date { order: -1; }
}

/* Variant used for the Careers openings table (title / location / type / apply) */
.credential-row--openings { grid-template-columns: 1fr 160px 160px auto; }
@media (max-width: 720px) {
  .credential-row--openings { grid-template-columns: 1fr; }
}
