:root {
  --ink: #16202a;
  --muted: #5b6672;
  --line: #d9e0e7;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --blue: #174f73;
  --blue-dark: #103a55;
  --green: #2f6f5e;
  --amber: #b66b2a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 150px;
  max-height: 52px;
  object-fit: contain;
}

.brand-text {
  display: none;
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  padding: 12px 16px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(22, 32, 42, 0.08);
}

.site-nav.is-open {
  display: block;
}

.site-nav a {
  display: block;
  padding: 10px 8px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--soft);
  color: var(--blue-dark);
}

.hero {
  padding: 64px 0 52px;
  background: linear-gradient(180deg, #eef4f7 0%, #ffffff 100%);
}

.hero-grid,
.split {
  display: grid;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 760px;
  color: #31404d;
  font-size: 1.15rem;
}

.hero-card,
.notice,
.boundary-box,
.contact-panel,
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.06);
}

.hero-card,
.contact-panel,
.resource-panel {
  padding: 24px;
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--soft);
}

.grid {
  display: grid;
  gap: 22px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.04);
}

.card p:last-child,
.notice p:last-child,
.boundary-box p:last-child {
  margin-bottom: 0;
}


.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.path-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-top: 4px solid var(--green);
}

.path-card:nth-child(2) {
  border-top-color: var(--blue);
}

.steps {
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-top: 54px;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 20px;
  left: 22px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.featured-resource {
  display: grid;
  gap: 22px;
}

.resource-kicker {
  color: var(--green);
  font-weight: 700;
  margin-bottom: 4px;
}

.status-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8eef3;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.button:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

.button.secondary:hover {
  background: var(--soft);
  color: var(--blue-dark);
}

.list-clean {
  margin: 0;
  padding-left: 20px;
}

.list-clean li {
  margin-bottom: 9px;
}

.notice {
  padding: 18px;
  border-left: 5px solid var(--green);
}

.boundary-box {
  padding: 22px;
  border-left: 5px solid var(--amber);
}

.media-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1922;
}

.media-box video {
  display: block;
  width: 100%;
}

.series-intro { padding-bottom: 40px; }
.series-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.series-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; text-decoration: none; }
.resource-entry { scroll-margin-top: 88px; }
.resource-entry.alt { background: var(--soft); }
.resource-entry .resource-panel { display: grid; gap: 22px; }
.resource-copy { max-width: 820px; }
.video-meta { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.download-group h3 { margin-bottom: 0; }
.download-group .actions { margin-top: 12px; }
.button span { margin-left: 0.3em; font-weight: 400; }

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

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

.site-footer {
  padding: 42px 0;
  background: #16202a;
  color: #e8eef3;
  border-top: 4px solid var(--green);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer a {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  align-items: center;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .small {
  color: #b9c5cf;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    gap: 2px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* Version 2 additions: retain the existing visual system with clearer content layouts. */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--blue-dark);
  color: #ffffff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
}
.trust-grid p {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
}
.credentials-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.06);
}
.service-list {
  display: grid;
  gap: 0;
  max-width: 900px;
}
.service-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-list article:first-child {
  padding-top: 0;
}
.service-list article:last-child {
  border-bottom: 0;
}
.service-list h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.narrow {
  max-width: 780px;
}
.details-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.details-list dt,
.details-list dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.details-list dt {
  padding-right: 18px;
  font-weight: 700;
}
.resource-note,
.urgent-note {
  margin-top: 24px;
}
.redirect-page {
  min-height: 100vh;
  padding: 36px 0;
  background: linear-gradient(180deg, #eef4f7 0%, #ffffff 100%);
}
.redirect-brand {
  margin-bottom: 42px;
}
.redirect-panel {
  max-width: 720px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.06);
}
@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--max));
  }
  .hero {
    padding: 48px 0 40px;
  }
  .section {
    padding: 48px 0;
  }
  .card,
  .hero-card,
  .contact-panel,
  .resource-panel,
  .credentials-panel {
    padding: 20px;
  }
  .details-list {
    grid-template-columns: 1fr;
  }
  .details-list dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .details-list dd {
    padding-top: 2px;
  }
  .button {
    width: 100%;
  }
  .series-nav { display: grid; }
  .series-nav a { border-radius: 6px; }
}

/* Final controlled refinement pass. */
.service-card-grid {
  max-width: none;
  gap: 22px;
  align-items: start;
}
.service-card-grid article {
  height: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.04);
}
.service-card-grid article:first-child,
.service-card-grid article:last-child {
  padding: 24px;
  border: 1px solid var(--line);
}
.cta-section {
  padding-top: 0;
}
.cta-panel {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--soft);
}
.cta-panel .actions {
  margin-top: 20px;
}
.about-intro {
  display: grid;
  gap: 28px;
  align-items: start;
}
.gerry-portrait {
  align-self: end;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}
.gerry-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
.credentials-panel-wide {
  margin-top: 28px;
}
.credentials-list {
  display: grid;
  gap: 9px 28px;
  margin: 0;
  padding-left: 20px;
}
@media (min-width: 760px) {
  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-intro {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.65fr);
  }
  .credentials-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .service-card-grid article,
  .service-card-grid article:first-child,
  .service-card-grid article:last-child,
  .cta-panel {
    padding: 20px;
  }
  .gerry-portrait {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Client-review PDF print rules. */
@media print {
  @page {
    size: A4;
    margin: 11mm 10mm 12mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: #ffffff;
    font-size: 10.5pt;
  }

  body {
    line-height: 1.45;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .site-header {
    position: static;
    background: #ffffff;
  }

  .header-inner {
    min-height: 58px;
    gap: 12px;
  }

  .brand img {
    width: 118px;
    max-height: 40px;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
    position: static;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    display: inline-block;
    padding: 3px 5px;
    font-size: 7.8pt;
  }

  .hero {
    padding: 28px 0 24px;
  }

  h1 {
    max-width: none;
    font-size: 28pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 12pt;
  }

  h1,
  h2,
  h3 {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .lead {
    font-size: 11.5pt;
  }

  .section {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .grid {
    gap: 14px;
  }

  .card,
  .hero-card,
  .notice,
  .boundary-box,
  .contact-panel,
  .resource-panel,
  .credentials-panel,
  .gerry-portrait,
  .cta-panel,
  .trust-strip,
  .site-footer,
  .service-card-grid article {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .card,
  .hero-card,
  .contact-panel,
  .resource-panel,
  .credentials-panel,
  .service-card-grid article {
    padding: 17px;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-grid p {
    padding: 12px 7px;
    font-size: 9pt;
  }

  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card-grid article,
  .service-card-grid article:first-child,
  .service-card-grid article:last-child {
    padding: 17px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1.6fr) minmax(185px, 0.55fr);
    gap: 20px;
  }

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

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

  .step-card {
    padding: 17px 17px 17px 58px;
  }

  .step-card::before {
    top: 17px;
    left: 17px;
  }

  .section.alt .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-section {
    padding-top: 0;
  }

  .cta-panel {
    padding: 18px;
  }

  .featured-resource {
    gap: 14px;
  }

  .resource-entry { padding: 20px 0; break-inside: avoid-page; page-break-inside: avoid; }
  .resource-entry .resource-panel { gap: 12px; }
  .resource-entry video { height: 155px; object-fit: contain; }
  .series-nav { display: none; }

  .actions {
    margin-top: 14px;
  }

  .button {
    min-height: 36px;
    padding: 7px 12px;
  }

  .site-footer {
    padding: 15px 0;
    font-size: 8.5pt;
    line-height: 1.3;
  }

  .site-footer p {
    margin-bottom: 9px;
  }

  .bankruptcy-page main {
    font-size: 9pt;
    line-height: 1.3;
  }

  .bankruptcy-page .hero {
    padding: 12px 0;
  }

  .bankruptcy-page .section {
    padding: 12px 0;
  }

  .bankruptcy-page h1 {
    font-size: 23pt;
  }

  .bankruptcy-page h2 {
    font-size: 14pt;
  }

  .bankruptcy-page .card,
  .bankruptcy-page .boundary-box {
    padding: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .footer-links {
    max-width: 280px;
    justify-content: flex-end;
    gap: 8px 12px;
  }

  a[href]::after {
    content: none !important;
  }
}

/* v3.1 review refinement: approved Home hero and Gerry profile card. */
.home-hero { padding: 72px 0 64px; background: linear-gradient(135deg, #eef5f6 0%, #ffffff 68%); }
.home-hero-grid { display: grid; gap: 42px; align-items: center; }
.home-hero-copy { max-width: 720px; }
.home-hero-copy h1 { color: var(--blue-dark); font-size: clamp(2.7rem, 6vw, 5rem); }
.highlight-statement { max-width: 660px; margin: 26px 0 20px; padding: 14px 20px; border-left: 5px solid var(--amber); color: var(--blue-dark); font-size: 1.22rem; font-weight: 700; }
.home-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.cta-microcopy { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.home-profile-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, .8fr); gap: 12px; min-height: 390px; padding: 28px 24px 0; overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 18px 45px rgba(16, 58, 85, .16); }
.profile-card-copy { position: relative; z-index: 1; padding-bottom: 26px; }
.profile-card-kicker { margin-bottom: 2px; color: var(--green); font-weight: 700; }
.home-profile-card h2 { color: var(--blue-dark); font-size: clamp(1.75rem, 3vw, 2.35rem); }
.profile-contact { margin-top: 22px; font-weight: 700; }
.profile-contact a { text-decoration: none; }
.confidentiality { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.profile-card-portrait { align-self: end; margin: 0 -24px 0 0; height: 100%; min-height: 350px; }
.profile-card-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.practitioner-section .cards { align-items: stretch; }
@media (min-width: 1080px) { .home-hero-grid { grid-template-columns: minmax(0, 1.32fr) minmax(380px, .78fr); } }
@media (max-width: 700px) { .home-profile-card { grid-template-columns: minmax(0, 1fr) 135px; min-height: 430px; } .profile-card-portrait { min-height: 390px; } }
@media (max-width: 520px) { .home-actions { display: grid; gap: 16px; } .home-actions > div { min-width: 0; } .home-profile-card { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; padding: 22px 18px 0; } .profile-card-portrait { min-height: 350px; margin-right: -18px; } .profile-card-copy { padding-bottom: 20px; } }


/* v3.1 fees transparency panel. */
.fees-panel {
  padding: 0 0 48px;
  background: var(--paper);
}
.fees-panel .container {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--soft);
}
.fees-panel h2 {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.25rem;
}
.fees-panel p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .95rem;
}
.fees-panel p:last-child { margin-bottom: 0; }
@media (max-width: 420px) {
  .fees-panel { padding-bottom: 36px; }
  .fees-panel .container { padding: 18px 20px; }
}
