/* ==========================================================================
   McCarthy Law & Advisory, PLLC — site styles
   Fonts are loaded via <link> tags in each page <head> (faster than @import).
   ========================================================================== */

:root {
  --navy: #101d33;
  --navy-light: #1b2e4d;
  --gold: #a9812f;
  --gold-light: #c9a34f;
  --gold-text: #7d5e21;
  --cream: #f7f5f1;
  --gray: #55606e;
  --border: #e2e0da;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: #232b36;
  background: #ffffff;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

/* Visible keyboard focus everywhere (WCAG 2.4.7 / 1.4.11).
   Navy ring on light backgrounds, gold ring inside the dark bands. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* Fallback for browsers without :focus-visible */
a:focus,
button:focus,
summary:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

header a:focus,
header a:focus-visible,
.hero a:focus,
.hero a:focus-visible,
.cta-band a:focus,
.cta-band a:focus-visible,
.pull-quote-section a:focus,
.pull-quote-section a:focus-visible,
.article-header a:focus,
.article-header a:focus-visible,
footer a:focus,
footer a:focus-visible,
.skip-link:focus {
  outline-color: var(--gold-light);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sans {
  font-family: var(--sans);
}

/* Underlined links inside body copy, for link identification without color alone */
.inline-link,
.contact-info a,
.article-body a,
.disclaimer-box a,
.footer-wrap a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* Header / Nav */
header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand-link {
  display: block;
  line-height: 0;
}

.logo-wordmark {
  height: 44px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

nav a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] {
  border-bottom: 2px solid var(--gold-light);
}

/* Hero */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 34px),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  background-color: var(--navy);
  color: #fff;
  padding: 70px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero .logo-wordmark-lg {
  height: 92px;
  width: auto;
  margin: 0 auto 32px;
  display: block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  max-width: 700px;
  margin: 0 auto 26px;
  font-weight: 600;
  line-height: 1.3;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  color: #dde0e7;
}

.hero-tagline {
  max-width: 720px;
  margin: 0 auto 18px;
}

.hero-tagline p {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 6px auto;
  max-width: none;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 15px 34px;
  min-height: 44px;
  border: 1px solid var(--gold-light);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* Credential strip */
.cred-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.cred-strip-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  font-family: var(--sans);
  /* Scales down just enough to keep all four credentials on one line */
  font-size: clamp(0.66rem, 0.45rem + 0.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}

.cred-strip-wrap span.item {
  padding: 0 clamp(9px, 1.1vw, 18px);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.cred-strip-wrap span.item:last-child {
  border-right: none;
}

.cred-strip-wrap .accent {
  color: var(--gold-text);
}

.cred-strip-wrap .accent-crimson {
  color: #8f1828;
}

/* Below tablet the four credentials stack as a tidy 2x2 instead of wrapping 3+1 */
@media (max-width: 940px) {
  .cred-strip-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
    font-size: 0.74rem;
  }

  .cred-strip-wrap span.item {
    padding: 0 10px;
    /* let long credentials wrap inside their cell rather than overflow the page */
    white-space: normal;
    line-height: 1.4;
  }

  .cred-strip-wrap span.item:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 420px) {
  .cred-strip-wrap {
    font-size: 0.68rem;
  }
}


/* Home-page bio band: small portrait beside the text */
.bio-band {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.bio-band-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border);
}

.bio-band-text p {
  text-align: left;
}

@media (max-width: 700px) {
  .bio-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    justify-items: center;
  }

  .bio-band-photo {
    max-width: 170px;
  }
}

/* ==========================================================================
   Mobile navigation
   ========================================================================== */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  padding: 10px 14px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--gold-light);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-light);
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Collapse the menu only when JavaScript can reopen it. Without JS the
   links stay visible, so the site is never unusable. */
@media (max-width: 780px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav-wrap {
    justify-content: space-between;
    align-items: center;
  }

  .js .nav-wrap > nav[aria-label="Main"] {
    width: 100%;
    order: 3;
  }

  .js #primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    order: 3;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .js #primary-nav.is-open {
    display: flex;
  }

  .js #primary-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .js #primary-nav a {
    display: block;
    width: 100%;
    padding: 15px 2px;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .js #primary-nav a.active,
  .js #primary-nav a[aria-current="page"] {
    color: var(--gold-light);
    border-bottom: none;
  }
}



/* Section wrappers */
section {
  padding: 70px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.1rem);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.section-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 40px;
}

.subtle {
  text-align: center;
  color: var(--gray);
  font-family: var(--sans);
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-more {
  text-align: center;
  margin-top: 34px;
  font-family: var(--sans);
}

.matters-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray);
  text-align: left;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Pull quote / narrative */
.pull-quote-section {
  background: var(--navy);
  color: #f2f2f2;
  position: relative;
}

.pull-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.55;
  color: #eceef2;
}

.pull-quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-style: normal;
  font-size: 6rem;
  color: var(--gold-light);
  opacity: 0.6;
  display: block;
  line-height: 1;
  margin-bottom: -10px;
}

.pull-quote .attribution {
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Practice area cards */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.practice-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.practice-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

@media (max-width: 900px) {
  .practice-grid-3,
  .practice-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.practice-card {
  background: var(--cream);
  border-top: 4px solid var(--gold);
  padding: 38px 34px;
}

.practice-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--gold-text);
}

.practice-card h3,
.practice-card .card-heading {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

.practice-card p.lead {
  font-family: var(--sans);
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.practice-card ul {
  padding-left: 20px;
  font-family: var(--sans);
  font-size: 0.93rem;
  color: #333;
}

.practice-card li {
  margin-bottom: 9px;
}

/* About / bio */
.bio-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.bio-grid-3 {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 240px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "left main photo"
    "left main right";
  column-gap: 45px;
  row-gap: 26px;
  align-items: start;
}

.bio-col-left  { grid-area: left; }
.bio-col-main  { grid-area: main; }
.bio-col-photo { grid-area: photo; }
.bio-col-right { grid-area: right; }

/* Credential groups: plain headings on desktop, tap-to-open on phones.
   The open/closed state is set by a small script; without it everything
   stays open, so the content is never trapped behind a control. */
.cred-group > summary {
  list-style: none;
  cursor: default;
}

.cred-group > summary::-webkit-details-marker {
  display: none;
}

.subsection-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 6px;
}

.subsection-rule {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 26px;
}

.experience-section {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 50px;
}

.experience-item {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
}

.experience-item .org {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.experience-item .role {
  color: var(--gray);
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--border);
  display: block;
}

/* Fallback for browsers without aspect-ratio support (older Safari) */
@supports not (aspect-ratio: 3 / 4) {
  .bio-photo {
    height: auto;
  }
}

.credentials {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.credentials h4,
.credentials .cred-heading {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 22px 0 8px;
  font-weight: 700;
}

.credentials ul {
  list-style: none;
  color: var(--gray);
}

.credentials li {
  margin-bottom: 6px;
}

.credentials li strong {
  color: #333;
}

.cred-note {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gray);
}

.highlight-list {
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 18px;
  padding-left: 20px;
  color: #333;
}

.highlight-list li {
  margin-bottom: 8px;
}

/* Alt bg section */
.bg-alt {
  background: var(--cream);
}

/* Community grid */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 20px;
}

.community-item {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  font-family: var(--sans);
}

.community-item h4,
.community-item h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.community-item p {
  color: #333;
  font-size: 0.93rem;
}

@media (max-width: 800px) {
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* News / articles (retained for a future blog) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.news-card {
  border: 1px solid var(--border);
  padding: 30px;
  transition: border-color 0.2s ease;
}

.news-card:hover {
  border-color: var(--gold);
}

.news-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.news-card p {
  font-family: var(--sans);
  color: var(--gray);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.read-more {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 800px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-header {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 60px 24px 50px;
}

.article-header .news-date {
  color: var(--gold-light);
}

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
  max-width: 780px;
  margin: 10px auto 0;
  line-height: 1.25;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: #2a2f38;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2,
.article-body h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 30px 0 14px;
}

.article-body ol,
.article-body ul {
  margin: 0 0 22px 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.7rem);
  margin-bottom: 22px;
  line-height: 1.3;
}

.botcheck {
  display: none !important;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
}

.contact-info h4,
.contact-info .contact-heading {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--gold-text);
  margin-bottom: 6px;
}

.contact-info p,
.contact-info address {
  font-family: var(--sans);
  font-style: normal;
  margin-bottom: 24px;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
}

form label,
form legend {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 6px;
  display: block;
  padding: 0;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #767268;
  border-radius: 2px;
  /* 16px minimum prevents iOS Safari from zooming the page on focus */
  font-size: 16px;
  font-family: var(--sans);
  color: #232b36;
  background: #fff;
}

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

.field-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray);
  margin: -2px 0 8px;
}

.radio-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0;
  min-height: 44px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  margin: 0;
  accent-color: var(--navy);
}

form button {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 15px 34px;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

form button:hover {
  background: var(--gold-text);
  color: #fff;
}

.disclaimer-box {
  border: 1px solid var(--border);
  background: var(--cream);
  padding: 20px 24px;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4a5462;
  margin-top: 40px;
}

/* Footer */
footer {
  background: var(--navy);
  color: #c3c9d3;
  padding: 40px 24px 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  border-top: 3px solid var(--gold);
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  line-height: 1.8;
}

.footer-firm {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.footer-nav a {
  display: inline-block;
  padding: 3px 0;
  border-bottom: none;
}

.footer-nav a:hover {
  text-decoration-color: var(--gold-light);
}

.footer-legal {
  max-width: 1100px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #a6adba;
}

.footer-legal p {
  margin-bottom: 10px;
  max-width: 100%;
}

.footer-legal strong {
  color: #d3d8e0;
}

.footer-copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .practice-grid,
  .bio-grid,
  .bio-grid-3,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .experience-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Photo and admissions first on small screens, then the bio, then the long CV list */
  .bio-grid-3 > div:nth-child(3) {
    order: 1;
  }

  .bio-grid-3 > div:nth-child(2) {
    order: 2;
  }

  .bio-grid-3 > div:nth-child(1) {
    order: 3;
  }

  .bio-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .cred-strip-wrap span.item {
    border-right: none;
    padding: 0 14px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 40px 20px;
  }

  .subtle {
    margin-bottom: 32px;
  }

  .section-rule {
    margin-bottom: 28px;
  }

  .nav-wrap {
    padding: 12px 20px;
  }

  nav ul {
    gap: 6px 18px;
    font-size: 0.8rem;
  }

  nav a {
    padding: 8px 0;
  }

  .logo-wordmark {
    height: 36px;
  }

  .hero {
    padding: 48px 20px 44px;
  }

  .hero .logo-wordmark-lg {
    height: 64px;
    margin-bottom: 24px;
  }

  .hero-tagline p {
    font-size: 0.78rem;
    letter-spacing: 1.6px;
  }

  .practice-card {
    padding: 28px 22px;
  }

  .btn {
    width: 100%;
    max-width: 340px;
    padding: 15px 20px;
  }

  form button {
    align-self: stretch;
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .footer-nav a {
    padding: 6px 0;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Windows High Contrast Mode */
@media (forced-colors: active) {
  .btn,
  form button {
    border: 1px solid ButtonText;
  }
}

/* Print */
@media print {
  header nav,
  .skip-link,
  .cta-band,
  .btn,
  form button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  header,
  footer,
  .hero,
  .pull-quote-section {
    background: #fff !important;
    color: #000 !important;
  }

  .footer-legal,
  footer,
  .hero p,
  .pull-quote {
    color: #000 !important;
  }

  section {
    padding: 18pt 0;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}

/* --- About page on phones: photo, biography, then the collapsible lists --- */
@media (max-width: 800px) {
  .bio-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
    row-gap: 8px;
  }

  .bio-col-photo { order: 1; grid-area: auto; }
  .bio-col-main  { order: 2; grid-area: auto; }
  .bio-col-left  { order: 3; grid-area: auto; }
  .bio-col-right { order: 4; grid-area: auto; }

  .bio-col-main {
    margin-bottom: 14px;
  }

  .bio-col-left .credentials,
  .bio-col-right .credentials {
    margin-top: 0;
  }

  .cred-group {
    border-top: 1px solid var(--border);
  }

  .bio-col-right .cred-group:last-of-type {
    border-bottom: 1px solid var(--border);
  }

  .cred-group > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 2px;
    min-height: 44px;
  }

  .cred-group > summary .cred-heading {
    margin: 0;
    font-size: 1.1rem;
  }

  /* chevron, rotated when the group is open */
  .cred-group > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-right: 2px solid var(--gold-text);
    border-bottom: 2px solid var(--gold-text);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .cred-group[open] > summary::after {
    transform: rotate(-135deg);
  }

  .cred-group > ul {
    padding-bottom: 18px;
  }
}
