/* ---- Consultation modal ---- */
.consult-modal {
  /* The global `* { margin: 0 }` reset overrides the UA stylesheet's
     `dialog:modal { margin: auto }`, which is what normally centers a
     showModal() dialog — so centering has to be set explicitly here. */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 480px;
  width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.consult-modal::backdrop { background: color-mix(in srgb, var(--navy-deep) 55%, transparent); }
.consult-modal-inner { padding: clamp(24px, 4vw, 40px); position: relative; }
.consult-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--charcoal-soft);
}
.consult-modal-title { margin-bottom: 6px; font-size: 1.5rem; }
.consult-modal-sub { color: var(--charcoal-soft); font-size: 0.92rem; margin-bottom: 20px; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
/* Fixed two-column layouts. These were inline `grid-template-columns` on the
   pages, which no media query could override — the contact form's own minimum
   content width then forced a 537px-wide page on a 390px phone. */
.split-grid,
.bio-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.split-grid { grid-template-columns: 1fr 1.1fr; }
.bio-grid { grid-template-columns: 220px 1fr; }
/* grid items default to min-width:auto, so wide content refuses to shrink */
.split-grid > *, .bio-grid > * { min-width: 0; }
@media (max-width: 820px) {
  .split-grid, .bio-grid { grid-template-columns: 1fr; }
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--charcoal-soft); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem; }
.card-date {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin: 4px 0 8px;
  letter-spacing: 0.01em;
}

.tag {
  display: inline-block;
  background: var(--cream-tint);
  color: var(--navy-mid);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---- Team ---- */
.team-card { text-align: left; }
.team-card .team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cream-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card .team-title { color: var(--navy-mid); font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.team-card .team-meta { font-size: 0.85rem; color: var(--charcoal-soft); }

/* ---- Locations ---- */
.location-card address { font-style: normal; margin-bottom: 12px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--cream) 92%, transparent);
  padding: var(--section-pad) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .nav-brand-mark { color: var(--cream); font-size: 1.8rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; margin: 12px 0 20px; color: var(--brass-light); }
.footer-heading { color: var(--cream); font-size: 1rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.footer-col p { color: color-mix(in srgb, var(--cream) 75%, transparent); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { color: var(--sky); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: color-mix(in srgb, var(--cream) 80%, transparent); font-size: 0.9rem; }
.footer-links a:hover { color: var(--sky); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  padding-top: 20px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.footer-legal-links a { color: color-mix(in srgb, var(--cream) 70%, transparent); margin-left: 16px; }
.footer-disclaimer-line {
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--cream) 48%, transparent);
  margin-top: 18px;
  line-height: 1.6;
}
.footer-disclaimer-line a { color: color-mix(in srgb, var(--cream) 60%, transparent); }

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