/* pages.css: inner pages (About, Services, Team, Career, Gallery, Contact, legal, Knowledge Center) */

/* ---------- Page header ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: '';
  position: absolute;
  top: -10rem;
  right: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 183, 216, 0.17), rgba(54, 183, 216, 0) 65%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue-2), var(--c-cyan), var(--c-teal));
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header__intro { max-width: 42rem; margin: 0; font-size: var(--fs-lead); color: var(--text-2); }

/* ---------- Content with sidebar (also used by the admin area) ---------- */
.content-layout,
.admin-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) {
  .content-layout,
  .admin-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Reading text ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.check-list { margin-bottom: 1rem; list-style: none; }
.check-list li { position: relative; margin-bottom: 0.55rem; padding-left: 1.6rem; }
.check-list li::before {
  content: '';
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.2;
}
.check-list li::after {
  content: '';
  position: absolute;
  top: 0.58em;
  left: 0.27rem;
  width: 0.5rem;
  height: 0.26rem;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

.steps { margin-bottom: 1rem; padding-left: 1.25rem; }
.steps li { margin-bottom: 0.6rem; padding-left: 0.35rem; }

/* ---------- Link list (About overview) ---------- */
.link-list { margin-top: 1.5rem; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.link-list li + li { border-top: 1px solid var(--border); }
.link-list a { display: block; padding: 1rem 1.25rem; text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.link-list a:hover { background: var(--highlight); }
.link-list__title { display: block; font-weight: 700; color: var(--heading); }
.link-list__text { display: block; color: var(--text-2); }

/* ---------- Facts ---------- */
.facts { border-top: 1px solid var(--border); }
.facts__row { display: grid; gap: 0.15rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 40rem) { .facts__row { grid-template-columns: 11rem minmax(0, 1fr); } }
.facts dt { font-weight: 700; color: var(--heading); }
.facts dd { margin: 0; }
.facts--stacked .facts__row,
.contact-info .facts--stacked .facts__row { grid-template-columns: 1fr; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; list-style: none; }
.team-member { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.team-member__photo,
.team-member__img { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 0.9rem; object-fit: cover; border-radius: var(--radius); }
.team-member__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--bg-tint);
  border: 1px dashed var(--accent);
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}
.team-member__name { margin-bottom: 0.2rem; font-size: 1.1rem; }
.team-member__role { margin-bottom: 0.25rem; font-weight: 700; color: var(--accent); }
.team-member__qual { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-muted); }
.team-note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Call-to-action band ---------- */
.cta-band { padding-block: 2.75rem; background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { margin-bottom: 0.25rem; }
.cta-band p { margin: 0; color: var(--text-2); }

/* ---------- Career ---------- */
.openings { list-style: none; margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.openings__item { padding: 1.1rem 1.25rem; }
.openings__item + .openings__item { border-top: 1px solid var(--border); }
.openings__item h3 { margin-bottom: 0.15rem; }
.openings__meta { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; list-style: none; }
.gallery-item figure { margin: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); }
.gallery-item figcaption { margin-top: 0.4rem; font-size: 0.95rem; color: var(--text-muted); }
.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--bg-tint);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.gallery-note { margin-top: 1.25rem; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }

/* Trap field for bots. Moved off-screen rather than display:none */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal-meta { color: var(--text-muted); }
.legal-note { margin-top: 2rem; padding: 0.85rem 1rem; background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius); font-size: 0.95rem; color: var(--notice-text); }

/* ---------- Knowledge Center search ---------- */
.kc-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.kc-search__field { flex: 1 1 16rem; max-width: 30rem; }
.kc-search__clear { align-self: center; }
.kc-count { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Article (also used inside the editor) ---------- */
.article { max-width: 46rem; }
.article__meta { margin-bottom: 1.25rem; font-size: 0.95rem; color: var(--text-muted); }
.article__img { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article__back { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.article__body h2 { margin-top: 2rem; }
.article__body h3 { margin-top: 1.5rem; }
.article__body ul,
.article__body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article__body li { margin-bottom: 0.35rem; }
.article__body blockquote { margin: 1.25rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--gold); color: var(--text-2); }

.preview-banner { padding-block: 0.75rem; background: var(--notice-bg); border-bottom: 1px solid var(--notice-border); font-size: 0.95rem; color: var(--notice-text); }
.preview-banner a { color: inherit; }
/* ---------- Firm content: accordions, callouts, profiles, branches ---------- */
.accordion { margin-bottom: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.accordion summary { padding: 0.9rem 1.1rem; font-weight: 700; color: var(--heading); cursor: pointer; }
.accordion[open] summary { border-bottom: 1px solid var(--border); }
.accordion__body { padding: 1rem 1.1rem 0.4rem; }
.accordion__body ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.accordion__body li { margin-bottom: 0.5rem; }
.accordion__body h3 { margin-top: 0.5rem; }

.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius-lg); font-weight: 600; color: var(--heading); }
.note-list { margin-bottom: 1rem; padding-left: 1.25rem; }
.note-list li { margin-bottom: 0.6rem; }

.branch-list { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 40rem) { .branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.branch-list li { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.branch-list h3 { font-size: 1.05rem; }
.branch-list p { margin: 0; color: var(--text-2); }

.org-chart { margin-bottom: 0.75rem; list-style: none; }
.org-chart li { margin-bottom: 0.5rem; padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; color: var(--heading); }
.org-specialists { display: grid; gap: 0.5rem; margin-bottom: 1rem; list-style: none; }
@media (min-width: 40rem) { .org-specialists { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.org-specialists li { padding: 0.6rem 1rem; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); }

.profile-list { display: grid; gap: 1.5rem; list-style: none; }
.profile { display: grid; gap: 1.25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (min-width: 40rem) { .profile { grid-template-columns: 11rem minmax(0, 1fr); } }
.profile__photo,
.profile__img { width: 100%; max-width: 14rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.profile__photo { display: flex; align-items: center; justify-content: center; padding: 0.5rem; background: var(--bg-tint); border: 1px dashed var(--accent); font-size: 0.9rem; text-align: center; color: var(--text-muted); }
.profile__name { margin-bottom: 0.15rem; font-size: 1.3rem; }
.profile__role { margin-bottom: 0.75rem; font-weight: 700; color: var(--accent); }
.profile__facts { display: grid; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }
@media (min-width: 40rem) { .profile__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.profile__facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.profile__facts dd { margin: 0; }