/* =========================================================
   Bellwether Medical Injury Law — Medical Malpractice Demo
   Philadelphia, Pennsylvania
   Standalone. No Tailwind. No shared dependencies.
   Namespace prefix: bw-
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Clinical palette */
  --bw-white:        #ffffff;
  --bw-bg:           #f6f8fb;       /* pale blue-grey surface */
  --bw-bg-2:         #edf1f6;       /* slightly deeper surface */
  --bw-bg-3:         #e2e8f0;       /* panel borders */

  /* Deep navy */
  --bw-navy:         #1a2740;       /* primary dark */
  --bw-navy-2:       #243352;       /* lighter navy */
  --bw-navy-3:       #2f4268;       /* accent navy */

  /* Oxygenated blue accent */
  --bw-blue:         #2b7fff;       /* primary accent */
  --bw-blue-lt:      #4d95ff;       /* lighter */
  --bw-blue-pale:    #dbeafe;       /* tints */
  --bw-blue-dim:     rgba(43, 127, 255, 0.12);

  /* Crimson — data emphasis only */
  --bw-crimson:      #c0392b;
  --bw-crimson-lt:   #e05444;
  --bw-crimson-pale: #fde8e6;

  /* Text */
  --bw-text:         #1a2740;       /* primary */
  --bw-text-2:       #344667;       /* body */
  --bw-text-3:       #5a6e8a;       /* muted */
  --bw-text-4:       #8fa3bb;       /* very muted */

  /* Rules */
  --bw-line:         rgba(26, 39, 64, 0.10);
  --bw-line-2:       rgba(26, 39, 64, 0.18);
  --bw-line-blue:    rgba(43, 127, 255, 0.25);

  /* Typography */
  --bw-ff-serif:     "Source Serif 4", "Georgia", serif;
  --bw-ff-sans:      "IBM Plex Sans", "system-ui", sans-serif;

  /* Layout */
  --bw-max:          1280px;
  --bw-pad-x:        clamp(20px, 4.5vw, 72px);
  --bw-sec-y:        clamp(72px, 8vw, 120px);

  /* Radii */
  --bw-r-sm:         2px;
  --bw-r-md:         4px;
  --bw-r-lg:         8px;

  /* Motion */
  --bw-ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bw-ff-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bw-white);
  color: var(--bw-text-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

::selection { background: var(--bw-blue-pale); color: var(--bw-navy); }

/* ---------- 3. Skip Link ---------- */
.bw-skip {
  position: absolute;
  left: -9999px;
  top: 4px;
  background: var(--bw-blue);
  color: var(--bw-white);
  padding: 10px 20px;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 200;
  font-family: var(--bw-ff-sans);
  font-size: 14px;
}
.bw-skip:focus { left: 16px; }

/* ---------- 4. Typography ---------- */
h1, h2, h3 {
  font-family: var(--bw-ff-serif);
  font-weight: 400;
  color: var(--bw-text);
  line-height: 1.2;
}

.bw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bw-ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bw-blue);
  margin: 0 0 18px;
}
.bw-eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bw-blue);
  flex-shrink: 0;
}
.bw-eyebrow--light { color: rgba(255,255,255,0.6); }
.bw-eyebrow--light::before { background: rgba(255,255,255,0.4); }

/* ---------- 5. Buttons ---------- */
.bw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--bw-ff-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  border-radius: var(--bw-r-md);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s var(--bw-ease),
    color 0.2s var(--bw-ease),
    border-color 0.2s var(--bw-ease),
    box-shadow 0.2s var(--bw-ease);
}
.bw-btn:focus-visible {
  outline: 2px solid var(--bw-blue);
  outline-offset: 3px;
}
.bw-btn--lg { height: 52px; padding: 0 28px; font-size: 14px; }

.bw-btn--primary {
  background: var(--bw-blue);
  color: var(--bw-white);
  border-color: var(--bw-blue);
}
.bw-btn--primary:hover {
  background: var(--bw-blue-lt);
  border-color: var(--bw-blue-lt);
  box-shadow: 0 6px 20px -4px rgba(43, 127, 255, 0.45);
}

.bw-btn--outline {
  background: transparent;
  color: var(--bw-white);
  border-color: rgba(255,255,255,0.35);
}
.bw-btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* ---------- 6. Section Heads ---------- */
.bw-section-head { margin-bottom: 48px; }
.bw-section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  margin: 6px 0 16px;
  color: var(--bw-navy);
}
.bw-section-head__body {
  font-size: 15px;
  color: var(--bw-text-3);
  max-width: 56ch;
  line-height: 1.7;
}
.bw-section-head--light h2 { color: var(--bw-white); }
.bw-section-head__body--light { color: rgba(255,255,255,0.6); }

/* ---------- 7. Navigation ---------- */
.bw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.bw-nav.is-scrolled {
  border-color: var(--bw-line-2);
  background: rgba(255, 255, 255, 0.97);
}
.bw-nav__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Brand */
.bw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bw-navy);
  white-space: nowrap;
}
.bw-brand__mark { color: var(--bw-blue); flex-shrink: 0; display: flex; }
.bw-brand__text {
  font-family: var(--bw-ff-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.bw-brand__sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  font-family: var(--bw-ff-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bw-text-3);
  margin-top: 2px;
}
.bw-brand--footer .bw-brand__text { color: var(--bw-white); }
.bw-brand--footer .bw-brand__sub { color: rgba(255,255,255,0.5); }
.bw-brand--footer .bw-brand__mark { color: var(--bw-blue-lt); }

/* Nav links */
.bw-nav__links {
  justify-self: center;
  display: flex;
  gap: 4px;
}
.bw-nav__links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bw-text-3);
  padding: 6px 12px;
  border-radius: var(--bw-r-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.bw-nav__links a:hover { color: var(--bw-navy); background: var(--bw-bg); }
.bw-nav__links a:focus-visible { outline: 2px solid var(--bw-blue); outline-offset: 2px; }

/* Nav right */
.bw-nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bw-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bw-navy);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.bw-nav__phone:hover { color: var(--bw-blue); }

/* Hamburger */
.bw-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--bw-line-2);
  border-radius: var(--bw-r-md);
  padding: 0;
}
.bw-nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--bw-navy);
  border-radius: 1px;
  transition: transform 0.25s var(--bw-ease), opacity 0.25s;
}
.bw-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bw-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bw-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.bw-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px var(--bw-pad-x) 24px;
  border-top: 1px solid var(--bw-line);
  background: var(--bw-white);
}
.bw-drawer.is-open { display: flex; }
.bw-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}
.bw-drawer nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--bw-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-text-2);
  transition: color 0.2s;
}
.bw-drawer nav a:hover { color: var(--bw-blue); }
.bw-drawer__cta { align-self: flex-start; margin-top: 4px; }

@media (max-width: 1040px) {
  .bw-nav__links { display: none; }
  .bw-nav__phone { display: none; }
  .bw-nav__cta   { display: none; }
  .bw-nav__toggle { display: flex; }
  .bw-nav__inner { grid-template-columns: auto 1fr; }
}

/* ---------- 8. Hero ---------- */
.bw-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.bw-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bw-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.7) brightness(0.85);
}
.bw-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(26, 39, 64, 0.95) 0%,
      rgba(26, 39, 64, 0.80) 55%,
      rgba(26, 39, 64, 0.45) 100%
    ),
    linear-gradient(
      to top,
      rgba(26, 39, 64, 0.90) 0%,
      transparent 50%
    );
}
.bw-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 180px) var(--bw-pad-x) 0;
}
.bw-hero__content { max-width: 680px; }

.bw-hero__title {
  font-family: var(--bw-ff-serif);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.1;
  color: var(--bw-white);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.bw-hero__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin: 0 0 36px;
  font-weight: 300;
}

.bw-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stat rail */
.bw-stat-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.bw-stat {
  display: grid;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.bw-stat:last-child { border-right: 0; }
.bw-stat__num {
  font-family: var(--bw-ff-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--bw-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.bw-stat__label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

@media (max-width: 680px) {
  .bw-stat-rail { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .bw-stat { border-right: 0; padding-right: 0; }
  .bw-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 24px; }
  .bw-hero { min-height: auto; padding-top: 32px; }
}

/* ---------- 9. Credibility Strip ---------- */
.bw-strip {
  background: var(--bw-navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bw-strip__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.bw-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px 20px 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 180px;
}
.bw-strip__item svg { color: var(--bw-blue-lt); flex-shrink: 0; }
.bw-strip__divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin-right: 28px;
}
@media (max-width: 840px) {
  .bw-strip__inner { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
  .bw-strip__divider { display: none; }
  .bw-strip__item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
  .bw-strip__item:last-child { border-bottom: 0; }
}

/* ---------- 10. Injury-Type Selector ---------- */
.bw-injury {
  background: var(--bw-white);
  padding: var(--bw-sec-y) 0;
}
.bw-injury__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-injury__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--bw-line-2);
}
.bw-injury__tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bw-line-2);
  background: var(--bw-bg);
}
.bw-injury__tab {
  display: block;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bw-line);
  font-family: var(--bw-ff-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.bw-injury__tab:last-child { border-bottom: 0; }
.bw-injury__tab:hover { background: var(--bw-bg-2); color: var(--bw-navy); }
.bw-injury__tab.is-active {
  background: var(--bw-white);
  color: var(--bw-blue);
  border-right: 2px solid var(--bw-blue);
  margin-right: -1px;
  font-weight: 600;
}
.bw-injury__tab:focus-visible { outline: 2px solid var(--bw-blue); outline-offset: -2px; }

.bw-injury__panels { flex: 1; }
.bw-injury__panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 480px;
}
.bw-injury__panel[hidden] { display: none; }
.bw-injury__panel-img {
  overflow: hidden;
  background: var(--bw-bg-2);
}
.bw-injury__panel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.bw-injury__panel-content {
  padding: 36px 40px;
  display: grid;
  gap: 24px;
  align-content: start;
}
.bw-injury__panel-content h3 {
  font-family: var(--bw-ff-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  color: var(--bw-navy);
  margin-bottom: 4px;
}

/* Documentary panels */
.bw-doc-block { display: grid; gap: 8px; }
.bw-doc-block h4 {
  font-family: var(--bw-ff-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bw-text-3);
  border-bottom: 1px solid var(--bw-line);
  padding-bottom: 6px;
}
.bw-doc-block p {
  font-size: 14px;
  color: var(--bw-text-2);
  line-height: 1.7;
}
.bw-doc-block--accent {
  background: var(--bw-bg);
  border: 1px solid var(--bw-line-2);
  border-left: 3px solid var(--bw-crimson);
  padding: 16px 18px;
}
.bw-doc-block--accent h4 { color: var(--bw-crimson); border-color: rgba(192, 57, 43, 0.2); }

@media (max-width: 1040px) {
  .bw-injury__layout { grid-template-columns: 1fr; }
  .bw-injury__tabs { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--bw-line-2); }
  .bw-injury__tab { flex: 1; min-width: 120px; text-align: center; border-bottom: 0; border-right: 1px solid var(--bw-line); padding: 12px 14px; }
  .bw-injury__tab.is-active { border-right: 1px solid var(--bw-line); border-bottom: 2px solid var(--bw-blue); margin-right: 0; margin-bottom: -1px; }
}
@media (max-width: 760px) {
  .bw-injury__panel { grid-template-columns: 1fr; }
  .bw-injury__panel-img { aspect-ratio: 16/7; }
  .bw-injury__panel-content { padding: 24px 20px; }
}

/* ---------- 11. Case Review Flow ---------- */
.bw-flow {
  background: var(--bw-navy);
  padding: var(--bw-sec-y) 0;
}
.bw-flow__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-flow .bw-section-head h2 { color: var(--bw-white); margin-bottom: 12px; }

/* Stage rail */
.bw-flow__stages {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bw-flow__stages::-webkit-scrollbar { display: none; }

.bw-flow__stage-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 24px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.bw-flow__stage-btn::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.bw-flow__stage-btn:hover { background: rgba(255,255,255,0.04); }
.bw-flow__stage-btn.is-active::after { background: var(--bw-blue); }
.bw-flow__stage-btn:focus-visible { outline: 2px solid var(--bw-blue); outline-offset: 2px; }

.bw-flow__stage-num {
  font-family: var(--bw-ff-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.bw-flow__stage-btn.is-active .bw-flow__stage-num { color: var(--bw-blue-lt); }

.bw-flow__stage-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.bw-flow__stage-btn.is-active .bw-flow__stage-name,
.bw-flow__stage-btn:hover .bw-flow__stage-name { color: var(--bw-white); }

.bw-flow__connector {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Panels */
.bw-flow__panels { }
.bw-flow__panel {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.bw-flow__panel[hidden] { display: none; }
.bw-flow__panel-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}
.bw-flow__panel-main {
  padding: 40px 40px;
  display: grid;
  gap: 16px;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.bw-flow__panel-main h3 {
  font-family: var(--bw-ff-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  color: var(--bw-white);
  margin-bottom: 4px;
}
.bw-flow__panel-main p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}
.bw-flow__merit-intro {
  font-family: var(--bw-ff-serif);
  font-size: 17px !important;
  color: rgba(255,255,255,0.85) !important;
  font-style: italic;
  border-left: 3px solid var(--bw-blue);
  padding-left: 16px;
  margin-left: 0;
}
.bw-flow__panel-meta {
  padding: 40px 32px;
  display: grid;
  gap: 24px;
  align-content: start;
}
.bw-meta-row { display: grid; gap: 4px; }
.bw-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.bw-meta-value {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  line-height: 1.5;
}
.bw-meta-value--zero {
  color: var(--bw-blue-lt);
  font-weight: 600;
}

@media (max-width: 860px) {
  .bw-flow__panel-grid { grid-template-columns: 1fr; }
  .bw-flow__panel-main { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 28px 24px; }
  .bw-flow__panel-meta { padding: 24px; }
  .bw-flow__stage-btn { padding: 14px 16px 16px; }
}

/* ---------- 12. Medical Review Team ---------- */
.bw-medteam {
  background: var(--bw-bg);
  padding: var(--bw-sec-y) 0;
  border-top: 1px solid var(--bw-line-2);
  border-bottom: 1px solid var(--bw-line-2);
}
.bw-medteam__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-medteam__intro {
  max-width: 68ch;
  margin-bottom: 48px;
}
.bw-medteam__intro h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--bw-navy);
  margin: 8px 0 20px;
  line-height: 1.25;
}
.bw-medteam__intro p {
  font-size: 15px;
  color: var(--bw-text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.bw-medteam__intro p:last-child { margin-bottom: 0; }
.bw-medteam__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .bw-medteam__cards { grid-template-columns: 1fr; } }

.bw-medteam__card {
  background: var(--bw-white);
  border: 1px solid var(--bw-line-2);
}
.bw-medteam__card-img {
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bw-bg-2);
}
.bw-medteam__card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bw-ease);
}
.bw-medteam__card:hover .bw-medteam__card-img img { transform: scale(1.03); }
.bw-medteam__card-body {
  padding: 32px 28px;
  display: grid;
  gap: 12px;
}
.bw-medteam__card-body h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--bw-navy);
}
.bw-medteam__card-body p {
  font-size: 14px;
  color: var(--bw-text-3);
  line-height: 1.7;
}

/* Check list */
.bw-check-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--bw-line);
  padding-top: 16px;
  margin-top: 4px;
}
.bw-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--bw-text-3);
  line-height: 1.5;
}
.bw-check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%232b7fff' stroke-width='1'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%232b7fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- 13. Results ---------- */
.bw-results {
  background: var(--bw-white);
  padding: var(--bw-sec-y) 0;
}
.bw-results__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-results__head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bw-line-2);
}
.bw-results__head h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--bw-navy);
  margin: 6px 0 16px;
}
.bw-results__disclaimer {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--bw-text-4);
  background: var(--bw-bg);
  border: 1px solid var(--bw-line-2);
  border-left: 3px solid var(--bw-crimson);
  padding: 10px 14px;
  line-height: 1.5;
  max-width: 64ch;
  margin: 0;
}
.bw-results__disclaimer svg { flex-shrink: 0; margin-top: 1px; color: var(--bw-crimson); }

.bw-results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--bw-line-2);
  border: 1px solid var(--bw-line-2);
}
.bw-result {
  background: var(--bw-white);
  padding: 32px 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.bw-result:hover { background: var(--bw-bg); }
.bw-result--featured {
  background: var(--bw-bg);
}
.bw-result__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bw-text-4);
  font-family: var(--bw-ff-sans);
}
.bw-result__amount {
  font-family: var(--bw-ff-sans);
  font-weight: 600;
  font-size: clamp(34px, 3.5vw, 52px);
  color: var(--bw-crimson);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.bw-result__case {
  font-family: var(--bw-ff-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--bw-navy);
  margin: 0;
  line-height: 1.3;
}
.bw-result__detail {
  font-size: 13px;
  color: var(--bw-text-3);
  line-height: 1.65;
}
@media (max-width: 900px) { .bw-results__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bw-results__grid { grid-template-columns: 1fr; } }

/* ---------- 14. Lifetime Care ---------- */
.bw-lifetime {
  background: var(--bw-navy);
  padding: var(--bw-sec-y) 0;
}
.bw-lifetime__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .bw-lifetime__inner { grid-template-columns: 1fr; } }

.bw-lifetime__content h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  color: var(--bw-white);
  margin: 8px 0 24px;
  line-height: 1.3;
}
.bw-lifetime__content p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}
.bw-lifetime__content p:last-child { margin-bottom: 0; }

.bw-lifetime__stat-block {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.bw-lstat {
  background: rgba(255,255,255,0.04);
  padding: 28px 28px;
  display: grid;
  gap: 8px;
}
.bw-lstat__num {
  font-family: var(--bw-ff-sans);
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 48px);
  color: var(--bw-crimson-lt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.bw-lstat__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}
.bw-lifetime__note {
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(255,255,255,0.15);
  padding: 14px 16px;
}
.bw-lifetime__note p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 0;
}

/* ---------- 15. Attorneys ---------- */
.bw-attorneys {
  background: var(--bw-bg);
  padding: var(--bw-sec-y) 0;
  border-top: 1px solid var(--bw-line-2);
}
.bw-attorneys__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-attorneys__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .bw-attorneys__grid { grid-template-columns: 1fr; max-width: 560px; } }

.bw-attorney {
  background: var(--bw-white);
  border: 1px solid var(--bw-line-2);
  display: grid;
  grid-template-rows: auto 1fr;
}
.bw-attorney__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bw-bg-2);
}
.bw-attorney__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--bw-ease);
}
.bw-attorney:hover .bw-attorney__photo img { transform: scale(1.04); }
.bw-attorney__body {
  padding: 28px 26px;
  display: grid;
  gap: 0;
  align-content: start;
}
.bw-attorney__name {
  font-family: var(--bw-ff-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--bw-navy);
  margin: 0 0 4px;
}
.bw-attorney__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bw-blue);
  margin: 0 0 18px;
}
.bw-attorney__creds {
  border-top: 1px solid var(--bw-line);
  border-bottom: 1px solid var(--bw-line);
  padding: 14px 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.bw-attorney__creds li {
  font-size: 12px;
  color: var(--bw-text-3);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}
.bw-attorney__creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--bw-blue);
  opacity: 0.5;
}
.bw-attorney__bio {
  font-size: 13.5px;
  color: var(--bw-text-3);
  line-height: 1.7;
}

/* ---------- 16. Statute of Limitations ---------- */
.bw-sol {
  background: var(--bw-white);
  padding: var(--bw-sec-y) 0;
  border-top: 1px solid var(--bw-line-2);
}
.bw-sol__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .bw-sol__inner { grid-template-columns: 1fr; } }

.bw-sol__text h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  color: var(--bw-navy);
  margin: 8px 0 24px;
  line-height: 1.3;
}
.bw-sol__text p {
  font-size: 15px;
  color: var(--bw-text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.bw-sol__text p:last-child { margin-bottom: 0; }
.bw-sol__note {
  font-size: 13px !important;
  color: var(--bw-text-3) !important;
  background: var(--bw-bg);
  border: 1px solid var(--bw-line-2);
  border-left: 3px solid var(--bw-blue);
  padding: 14px 16px;
  line-height: 1.6 !important;
}

.bw-sol__callout {
  position: sticky;
  top: 80px;
}
.bw-sol__callout-inner {
  background: var(--bw-navy);
  padding: 36px 32px;
  display: grid;
  gap: 20px;
}
.bw-sol__callout-inner h3 {
  font-family: var(--bw-ff-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--bw-white);
  margin-bottom: 4px;
}
.bw-sol__list {
  display: grid;
  gap: 12px;
}
.bw-sol__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bw-sol__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bw-sol__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bw-blue);
  margin-top: 6px;
}

/* ---------- 17. Fees ---------- */
.bw-fees {
  background: var(--bw-navy-2);
  padding: var(--bw-sec-y) 0;
}
.bw-fees__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
}
.bw-fees .bw-section-head { margin-bottom: 40px; }
.bw-fees__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 680px) { .bw-fees__grid { grid-template-columns: 1fr; } }

.bw-fee-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  padding: 32px 28px;
  transition: background 0.2s;
}
.bw-fee-item:hover { background: rgba(255,255,255,0.06); }
.bw-fee-item__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--bw-blue-dim);
  border: 1px solid var(--bw-line-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bw-blue-lt);
}
.bw-fee-item h3 {
  font-family: var(--bw-ff-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--bw-white);
  margin: 0 0 8px;
}
.bw-fee-item p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ---------- 18. FAQ ---------- */
.bw-faq {
  background: var(--bw-white);
  padding: var(--bw-sec-y) 0;
  border-top: 1px solid var(--bw-line-2);
}
.bw-faq__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) { .bw-faq__inner { grid-template-columns: 1fr; } }

.bw-faq__head h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  color: var(--bw-navy);
  margin: 8px 0 14px;
}
.bw-faq__head p {
  font-size: 14px;
  color: var(--bw-text-3);
  line-height: 1.65;
}

.bw-faq__list {
  border-top: 2px solid var(--bw-navy);
}
.bw-faq__item {
  border-bottom: 1px solid var(--bw-line-2);
}
.bw-faq__question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--bw-ff-serif);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 400;
  color: var(--bw-text);
  transition: color 0.2s;
}
.bw-faq__question::-webkit-details-marker { display: none; }
.bw-faq__question:hover { color: var(--bw-blue); }
.bw-faq__item[open] .bw-faq__question { color: var(--bw-navy); }
.bw-faq__item:focus-within { outline: 2px solid var(--bw-blue); outline-offset: 2px; }

/* Plus/minus icon */
.bw-faq__icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--bw-line-2);
  border-radius: 50%;
}
.bw-faq__icon::before,
.bw-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--bw-blue);
  top: 50%; left: 50%;
  border-radius: 1px;
  transition: transform 0.25s var(--bw-ease);
}
.bw-faq__icon::before {
  width: 8px; height: 1px;
  transform: translate(-50%, -50%);
}
.bw-faq__icon::after {
  width: 1px; height: 8px;
  transform: translate(-50%, -50%);
}
.bw-faq__item[open] .bw-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.bw-faq__answer {
  padding: 0 0 20px;
}
.bw-faq__answer p {
  font-size: 14.5px;
  color: var(--bw-text-3);
  line-height: 1.75;
  max-width: 60ch;
}

/* ---------- 19. Contact Form ---------- */
.bw-contact {
  background: var(--bw-bg);
  padding: var(--bw-sec-y) 0;
  border-top: 1px solid var(--bw-line-2);
}
.bw-contact__inner {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 0 var(--bw-pad-x);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .bw-contact__inner { grid-template-columns: 1fr; } }

.bw-contact__left h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--bw-navy);
  margin: 8px 0 16px;
  line-height: 1.25;
}
.bw-contact__left > p {
  font-size: 15px;
  color: var(--bw-text-3);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 48ch;
}
.bw-contact__office {
  border-top: 1px solid var(--bw-line-2);
  padding-top: 24px;
  margin-bottom: 24px;
}
.bw-contact__office address {
  font-size: 14px;
  color: var(--bw-text-3);
  line-height: 1.8;
}
.bw-contact__office a {
  color: var(--bw-blue);
  transition: color 0.2s;
}
.bw-contact__office a:hover { color: var(--bw-navy); }
.bw-contact__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bw-bg-2);
}
.bw-contact__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Form */
.bw-form {
  background: var(--bw-white);
  border: 1px solid var(--bw-line-2);
  padding: 36px 32px;
  display: grid;
  gap: 20px;
}
.bw-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .bw-form__row { grid-template-columns: 1fr; } }

.bw-form__group {
  display: grid;
  gap: 6px;
}
.bw-form__group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bw-text-3);
}
.bw-form__group input,
.bw-form__group select,
.bw-form__group textarea {
  width: 100%;
  font-family: var(--bw-ff-sans);
  font-size: 14px;
  color: var(--bw-text);
  background: var(--bw-white);
  border: 1px solid var(--bw-line-2);
  border-radius: 0;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.bw-form__group input::placeholder,
.bw-form__group textarea::placeholder {
  color: var(--bw-text-4);
}
.bw-form__group input:focus,
.bw-form__group select:focus,
.bw-form__group textarea:focus {
  border-color: var(--bw-blue);
  box-shadow: 0 0 0 3px var(--bw-blue-dim);
}
.bw-form__group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%235a6e8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
}
.bw-form__group textarea { resize: vertical; min-height: 120px; }

.bw-form__group--check { }
.bw-form__check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--bw-text-3);
  cursor: pointer;
  line-height: 1.5;
}
.bw-form__check-label input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--bw-blue);
  cursor: pointer;
}

.bw-form__hipaa {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bw-blue-pale);
  border: 1px solid var(--bw-line-blue);
  border-left: 3px solid var(--bw-blue);
  padding: 14px 14px;
}
.bw-form__hipaa svg { color: var(--bw-blue); flex-shrink: 0; margin-top: 2px; }
.bw-form__hipaa p {
  font-size: 12px;
  color: var(--bw-text-2);
  line-height: 1.6;
}

/* ---------- 20. Footer ---------- */
.bw-footer {
  background: var(--bw-navy);
  border-top: 2px solid rgba(43, 127, 255, 0.3);
}
.bw-footer__top {
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--bw-pad-x) clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(36px, 5vw, 72px);
}
@media (max-width: 860px) { .bw-footer__top { grid-template-columns: 1fr; } }

.bw-footer__brand p {
  margin: 12px 0 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.bw-footer__address {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.bw-footer__address a {
  color: var(--bw-blue-lt);
  transition: color 0.2s;
}
.bw-footer__address a:hover { color: var(--bw-white); }

.bw-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) { .bw-footer__cols { grid-template-columns: 1fr 1fr; } }

.bw-footer__col h3 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: var(--bw-ff-sans);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bw-footer__col ul { display: grid; gap: 10px; }
.bw-footer__col li {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}
.bw-footer__col a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.bw-footer__col a:hover { color: var(--bw-white); }

.bw-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 28px var(--bw-pad-x);
}
.bw-footer__disclaimer p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  max-width: 92ch;
  margin: 0 0 10px;
}
.bw-footer__disclaimer p:last-child { margin-bottom: 0; }

.bw-footer__bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--bw-max);
  margin: 0 auto;
  padding: 16px var(--bw-pad-x);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
.bw-footer__demo { font-style: italic; }

/* ---------- 21. Scroll-reveal ---------- */
.bw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--bw-ease), transform 0.55s var(--bw-ease);
}
.bw-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .bw-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .bw-attorney__photo img,
  .bw-medteam__card-img img { transition: none; }
}

/* ---------- 22. Focus visible global ---------- */
:focus-visible {
  outline: 2px solid var(--bw-blue);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }
