/* =====================================================
   JOHN R. FOLEY, P.C. — SHARED STYLESHEET
   ===================================================== */

:root {
  --navy: #0A1F3D;
  --navy-soft: #1a3358;
  --navy-darker: #050f1e;
  --cream: #FAF8F3;
  --cream-darker: #F2EEE6;
  --oxblood: #7A1E2E;
  --gold: #d9b98a;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-soft-2: #6A6A6A;
  --rule: #D4CEC3;
  --rule-soft: #E8E3D8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.005em;
}

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

img { max-width: 100%; display: block; }

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0;
}
.utility-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-right { display: flex; gap: 2rem; }
.utility-right a:hover { color: white; }

/* ===== HEADER ===== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--oxblood); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--oxblood); }
.main-nav a.active::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 1px solid;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: transparent;
  color: var(--navy);
}
.btn-primary.on-dark {
  background: white;
  color: var(--navy);
  border-color: white;
}
.btn-primary.on-dark:hover {
  background: transparent;
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: white;
}
.btn-secondary.on-dark {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary.on-dark:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

/* ===== SECTIONS ===== */
section { padding: 6rem 0; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--oxblood);
}
.section-eyebrow.on-dark {
  color: var(--gold);
}
.section-eyebrow.on-dark::before {
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 1.75rem;
  max-width: 820px;
}
.section-title em {
  font-style: italic;
  color: var(--oxblood);
}
.section-title.on-dark {
  color: white;
}
.section-title.on-dark em {
  color: var(--gold);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 2rem;
}
.lead.on-dark { color: rgba(255,255,255,0.85); }

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background: var(--navy);
  color: white;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-header .container { position: relative; }
.page-header-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-header-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.page-header h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-header-sub {
  font-size: 1.08rem;
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { margin: 0 0.6rem; color: rgba(255,255,255,0.3); }

/* ===== PROSE ===== */
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.prose p:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  padding-right: 0.75rem;
  padding-top: 0.4rem;
  color: var(--navy);
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  font-size: 1.02rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  position: relative;
  color: var(--ink);
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--oxblood);
  font-weight: 500;
}

/* ===== PULL QUOTE / ASIDE ===== */
.aside-box {
  background: var(--cream-darker);
  border-left: 3px solid var(--oxblood);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}
.aside-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}

/* ===== TWO-COLUMN CONTENT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.two-col .col-left .section-title { margin-bottom: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 70px;
  margin-bottom: 1.5rem;
  filter: brightness(1.2);
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-size: 0.88rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--navy);
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.cta-strip h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}
.cta-strip h3 em {
  font-style: italic;
  color: var(--gold);
}
.cta-strip p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  font-size: 1.02rem;
}
.cta-strip-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== RELATED / CARD GRIDS ===== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.related-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(10, 31, 61, 0.05);
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.related-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
}
.related-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.service-card-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.related-card-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.related-card-arrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  transition: all 0.3s ease;
}
.related-card:hover .related-card-arrow {
  color: var(--oxblood);
  letter-spacing: 0.16em;
}

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  section { padding: 4rem 0; }
  .page-header { padding: 3.5rem 0 3rem; }
  .prose p:first-child::first-letter {
    font-size: 3rem;
    padding-top: 0.3rem;
  }

  /* hamburger replaces inline nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule-soft);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    box-shadow: 0 6px 18px rgba(10,31,61,0.06);
  }
  body.nav-open .main-nav { max-height: 480px; }
  .main-nav a {
    padding: 1.05rem 1.5rem;
    border-top: 1px solid var(--rule-soft);
    font-size: 0.85rem;
  }
  .main-nav a:first-child { border-top: 0; }
  .main-nav a::after { display: none; }

  /* utility bar: keep phone, hide city-anchor links */
  .utility-right { gap: 1.25rem; }
  .utility-right a:not([href^="tel:"]) { display: none; }
}

@media (max-width: 760px) {
  .header-inner { padding: 0.9rem 1.25rem; }
  .logo img { height: 44px; }

  .utility-bar { font-size: 0.7rem; padding: 0.45rem 0; letter-spacing: 0.06em; }
  .utility-inner { padding: 0 1.25rem; }

  .container, .container-narrow { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem; }
  .footer-bottom { padding: 1.5rem 1.25rem 0; }

  section { padding: 3.25rem 0; }
  .page-header { padding: 2.5rem 0 2.25rem; }

  .group-col { padding: 2.5rem 1.25rem; }
  .offices { padding: 4rem 0; }
}

@media (max-width: 560px) {
  .utility-left { display: none; }
  .utility-inner { justify-content: center; }
}

/* ===== ATTORNEY INDEX / GRID PAGES ===== */
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.attorney-card {
  cursor: pointer;
  transition: transform 0.4s ease;
  display: block;
}
.attorney-card:hover { transform: translateY(-6px); }
.attorney-photo {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: center top;
  background: var(--navy);
  margin-bottom: 1.5rem;
  filter: grayscale(0.15);
  transition: filter 0.5s ease;
}
.attorney-card:hover .attorney-photo { filter: grayscale(0); }
.attorney-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.attorney-role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 1rem;
}
.attorney-focus {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  margin-bottom: 1rem;
}
.attorney-link {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  font-weight: 500;
  transition: all 0.25s;
}
.attorney-card:hover .attorney-link { letter-spacing: 0.18em; }

/* ===== ATTORNEY DETAIL PAGE ===== */
.attorney-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}
.attorney-detail-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: center top;
  background: var(--navy);
  display: block;
}
.attorney-focus-line {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.sidebar-block h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.sidebar-block ul { list-style: none; padding-left: 0; }
.sidebar-block li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  padding: 0.45rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.sidebar-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--oxblood);
}

@media (max-width: 960px) {
  .attorney-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .attorney-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .attorney-detail-photo { max-width: 340px; }
  .sidebar-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .attorney-grid { grid-template-columns: 1fr; }
}

/* ===== PRACTICE INDEX: GROUP HEAD NAME LINK ===== */
/* Kept in CSS, not inline: Netlify's pretty-URL rewrite corrupts <a> attributes that contain quotes. */
.group-head-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 500;
}

/* ===== MEDIATION BOOKING PAGE ===== */
.med-intro { padding: 5rem 0 4rem; }
.med-link {
  color: var(--oxblood);
  border-bottom: 1px solid rgba(122,30,46,0.35);
  transition: border-color 0.2s;
}
.med-link:hover { border-bottom-color: var(--oxblood); }

.med-fee {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.med-fee-figure {
  background: white;
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--navy);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.med-fee-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.med-fee-unit {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.med-booking {
  background: var(--cream-darker);
  border-top: 1px solid var(--rule-soft);
  padding: 5rem 0 6rem;
}
.med-booking [hidden] { display: none !important; }
.med-fallback {
  background: white;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--oxblood);
  padding: 1.75rem 2rem;
  max-width: 820px;
}
.med-fallback p { font-size: 1.05rem; line-height: 1.7; }
.med-alert {
  background: white;
  border: 1px solid var(--oxblood);
  border-left-width: 3px;
  color: var(--oxblood);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
  font-weight: 400;
}

/* calendar */
.med-cal {
  background: white;
  border: 1px solid var(--rule-soft);
  padding: 2rem;
  scroll-margin-top: 120px;
}
.med-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.med-cal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--navy);
}
.med-cal-nav {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.med-cal-nav:hover:not(:disabled) { background: var(--navy); color: white; }
.med-cal-nav:disabled { border-color: var(--rule); color: var(--rule); cursor: default; }
.med-cal-weekdays, .med-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.med-cal-weekdays {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.med-day {
  border: 1px solid var(--rule-soft);
  background: var(--cream);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 9.5rem;
}
.med-day-empty { background: transparent; border-color: transparent; }
.med-day-date { display: flex; align-items: baseline; gap: 0.5rem; }
.med-day-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.med-day-name { display: none; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.med-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: white;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.med-slot-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.med-slot-range { font-size: 0.74rem; font-weight: 300; opacity: 0.85; }
.med-slot:hover:not(:disabled), .med-slot.is-selected { background: var(--navy); color: white; }
.med-slot.is-selected { box-shadow: inset 0 0 0 1px var(--gold); }
.med-slot:focus-visible, .med-cal-nav:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.med-slot:disabled {
  background: var(--cream-darker);
  border-color: var(--rule-soft);
  color: #a9a397;
  cursor: not-allowed;
}
.med-slot.is-unavailable .med-slot-label { text-decoration: line-through; }
.med-slot.is-loading { opacity: 0.55; }
.med-cal-none { grid-column: 1 / -1; color: var(--ink-soft); padding: 1rem 0; }
.med-cal-legend {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.med-key { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--navy); background: white; margin-left: 0.75rem; }
.med-key:first-child { margin-left: 0; }
.med-key-closed { border-color: var(--rule-soft); background: var(--cream-darker); }
.med-cal-tz { margin-left: auto; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

/* intake form */
.med-form { margin-top: 2.5rem; scroll-margin-top: 110px; }
.med-selected {
  background: white;
  border: 1px dashed var(--rule);
  padding: 1.25rem 1.5rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}
.med-selected.has-selection { border: 1px solid var(--navy); border-left-width: 3px; color: var(--ink); }
.med-selected strong { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 500; color: var(--navy); }
.med-selected-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oxblood); font-weight: 500; flex-basis: 100%; }
.med-fieldset {
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 0.5rem;
  margin-bottom: 1.5rem;
}
.med-fieldset legend {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  padding-right: 1rem;
}
.med-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.med-field { display: flex; flex-direction: column; gap: 0.4rem; }
.med-field > span, .med-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.med-sub { margin: 0.5rem 0 0.85rem; color: var(--navy); }
.med-sub small, .med-radio small { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--ink-soft-2); font-size: 0.82rem; }
.med-sub small { margin-left: 0.5rem; }
.med-field input {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.med-field input:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.med-field input.is-invalid { border-color: var(--oxblood); }
.med-error { color: var(--oxblood); font-size: 0.82rem; font-style: normal; font-weight: 400; min-height: 1em; }
.med-error-form { margin-top: 1rem; font-size: 0.95rem; }
.med-radio-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 0.75rem; }
.med-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: white;
  border: 1px solid var(--rule);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.med-radio:hover { border-color: var(--navy); }
.med-radio input { margin-top: 0.3rem; accent-color: var(--navy); }
.med-radio span { font-weight: 400; color: var(--navy); }
.med-radio small { display: block; margin-top: 0.15rem; }
.med-submit { border-top: 1px solid var(--rule); padding-top: 2rem; }
.med-note { font-size: 0.92rem; color: var(--ink-soft); max-width: 640px; margin: 1rem 0 1.5rem; }
.med-submit .btn-primary { font-family: inherit; }
.med-submit .btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* confirmation */
.med-success {
  background: white;
  border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--navy);
  padding: 2.5rem;
  max-width: 820px;
  scroll-margin-top: 120px;
}
.med-success:focus { outline: none; }
.med-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.med-success-title span { color: var(--oxblood); white-space: nowrap; }
.med-success-unpaid { font-size: 1.05rem; margin-bottom: 1.5rem; }
.med-success-unpaid strong { font-weight: 500; color: var(--oxblood); }
.med-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.5rem;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}
.med-summary dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding-top: 0.2rem; }
.med-summary dd { overflow-wrap: anywhere; }
.med-success p { margin-bottom: 1.5rem; line-height: 1.7; }

@media (max-width: 960px) {
  .med-row { grid-template-columns: 1fr; gap: 1rem; }
  .med-slot-range { font-size: 0.68rem; }
  .med-cal { padding: 1.25rem; }
}
@media (max-width: 760px) {
  .med-intro { padding: 3.25rem 0 2.5rem; }
  .med-booking { padding: 3.25rem 0 4rem; }
  .med-fee { grid-template-columns: 1fr; gap: 1rem; }
  .med-radio-row { grid-template-columns: 1fr; gap: 0.75rem; }
  /* the month becomes a list: one row per bookable day */
  .med-cal-weekdays { display: none; }
  .med-cal-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .med-day.med-day-empty { display: none; }
  .med-day { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .med-day-date { grid-column: 1 / -1; }
  .med-day-name { display: inline; }
  .med-slot { align-items: center; text-align: center; padding: 0.7rem 0.5rem; }
  .med-slot-range { font-size: 0.74rem; }
  .med-cal-tz { margin-left: 0; flex-basis: 100%; }
  .med-success { padding: 1.75rem 1.25rem; }
  .med-summary { grid-template-columns: 1fr; gap: 0.15rem; }
  .med-summary dd { margin-bottom: 0.75rem; }
}

/* Six nav items: keep them on one line between the 960px hamburger breakpoint and full width. */
.main-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1100px) {
  .main-nav { gap: 1.5rem; }
}

/* ===== Practice areas from practice_areas.yaml (2026-10) ===== */

/* Practice menu: hover/focus dropdown on desktop, indented list in the mobile menu */
.main-nav .nav-item { position: relative; display: flex; align-items: center; }
.main-nav .nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  padding: 0.85rem 0;
  min-width: 15rem;
  background: var(--cream);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 10px 24px rgba(10,31,61,0.08);
  z-index: 50;
}
.main-nav .nav-item:hover .nav-sub,
.main-nav .nav-item:focus-within .nav-sub { display: block; }
.main-nav .nav-sub a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.76rem;
}
.main-nav .nav-sub a::after { display: none; }
/* invisible bridge so the menu stays open while the pointer crosses the gap */
.main-nav .nav-item::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.9rem; }
@media (max-width: 960px) {
  body.nav-open .main-nav { max-height: 760px; }
  .main-nav .nav-item { display: block; align-self: stretch; text-align: center; }
  .main-nav .nav-item::before { display: none; }
  .main-nav .nav-item > a { display: block; border-top: 1px solid var(--rule-soft); }
  .main-nav .nav-sub {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .main-nav .nav-sub a { padding: 0.7rem 1.5rem; font-size: 0.74rem; color: var(--ink-soft); border-top: 0; }
}

/* Footer: two practice-group columns generated from the data file */
.footer-grid-practice { grid-template-columns: 1.3fr repeat(5, 1fr); gap: 2rem; }
.footer-col h4 a { color: inherit; }
.footer-col h4 a:hover { color: var(--gold); }
@media (max-width: 960px) { .footer-grid-practice { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 760px) { .footer-grid-practice { grid-template-columns: 1fr; gap: 2rem; } }

/* Links added to practice pages */
.section-title a { color: inherit; }
.section-title a:hover { color: var(--oxblood); }
.group-name a { color: inherit; }
.group-name a:hover { color: var(--gold); }
.related-more { margin-top: 2.5rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.related-more a { color: var(--oxblood); }
.related-more a:hover { text-decoration: underline; }
.groups-litigation-link { text-align: center; margin-top: 3rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.groups-litigation-link a { color: var(--gold); }
.groups-litigation-link a:hover { color: white; }
.cta-strip p a.cta-inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Contact page (2026-10) ===== */
.cf-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.cf-form { margin-top: 0; }
.cf-row-2 { grid-template-columns: repeat(2, 1fr); }
.cf-hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-optional { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--ink-soft-2); margin-left: 0.35rem; }
.cf-form select, .cf-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.cf-form textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.cf-form select:focus, .cf-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cf-form select.is-invalid, .cf-form textarea.is-invalid { border-color: var(--oxblood); }
.cf-caution { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.75rem; }
.cf-other { visibility: hidden; }
.cf-other.is-shown { visibility: visible; }
#cf-turnstile { margin-bottom: 1.25rem; min-height: 65px; }
.cf-offices { border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.cf-office { margin-bottom: 2rem; }
.cf-office p { color: var(--ink-soft); margin-top: 0.35rem; }
.cf-phone { color: var(--navy); font-weight: 400; }
@media (max-width: 960px) {
  .cf-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  .cf-row-2 { grid-template-columns: 1fr; }
  .cf-other { display: none; }
  .cf-other.is-shown { display: flex; }
}

/* Practice-area FAQ (rendered from page front matter by area.njk) */
.prose .faq { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.prose .faq h3 { margin-top: 1.75rem; }
.prose p.faq-note { font-size: 0.85rem; font-style: italic; color: var(--ink-soft-2); margin-top: 2rem; }

/* Results disclaimer under any passage that states a case result */
.prose p.results-disclaimer { font-size: 0.85rem; font-style: italic; color: var(--ink-soft-2); margin-top: -0.5rem; }

/* ===== ATTORNEY PROFILE HEADER (photo + contact card) ===== */
.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;
}
.atty-hero {
  position: relative;
  background: var(--cream-darker);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 0;
}
.atty-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-detroit.jpg') center 35% / cover no-repeat;
  opacity: 0.34;
}
.atty-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,248,243,0.35), rgba(250,248,243,0.78));
}
.atty-hero .container { position: relative; z-index: 1; }
.atty-breadcrumb { color: var(--ink-soft); padding-top: 2rem; margin-bottom: 0; }
.atty-breadcrumb a { color: var(--navy); }
.atty-breadcrumb a:hover { color: var(--oxblood); }
.atty-breadcrumb .breadcrumb-sep { color: var(--rule); }
.atty-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: end;
  padding-top: 2rem;
}
.atty-hero-photo { justify-self: end; width: 100%; max-width: 420px; }
.atty-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center top;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(10,31,61,0.28);
}
.atty-card {
  position: relative;
  align-self: center;
  margin: 1rem 0 3.5rem;
  max-width: 560px;
  background: var(--navy);
  color: white;
  padding: 2.75rem 3rem 2.5rem;
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 60px rgba(10,31,61,0.25);
}
.atty-card-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.atty-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}
.atty-card-first { display: block; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: 0.01em; }
.atty-card-last {
  display: block;
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.98;
}
.atty-card-title {
  margin-top: 0.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}
.atty-card-rows { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.atty-card-rows li { margin: 0; }
.atty-card-rows a,
.atty-card-rows button,
.atty-card-static {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.42rem 0;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 500;
  color: white;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.atty-card-static { cursor: default; }
.atty-card-rows a:hover,
.atty-card-rows button:hover { color: var(--gold); }
.atty-card-rows svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atty-card-note {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-left: 0.35rem;
}
.atty-card-linkedin {
  position: absolute;
  right: 2.25rem;
  bottom: 2.1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  color: white;
  transition: background 0.2s, color 0.2s;
}
.atty-card-linkedin:hover { background: var(--gold); color: var(--navy); }
.atty-card-linkedin svg { width: 22px; height: 22px; }

/* Bio beside the Areas of Practice box */
.atty-body { padding: 4.5rem 0 5rem; }
.atty-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 4.5rem;
  align-items: start;
}
.atty-aside {
  position: sticky;
  top: 8.5rem;
  background: var(--cream-darker);
  border-top: 3px solid var(--navy);
  padding: 2.25rem 2rem 2rem;
}
.atty-aside-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
.atty-aside-list { list-style: none; margin: 0; padding: 0; }
.atty-aside-list li { border-top: 1px solid var(--rule); }
.atty-aside-list li:last-child { border-bottom: 1px solid var(--rule); }
.atty-aside-list a {
  display: block;
  padding: 0.8rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  transition: color 0.2s, padding-left 0.2s;
}
.atty-aside-list a:hover { color: var(--oxblood); padding-left: 0.35rem; }
.atty-aside-group {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--oxblood);
}
.atty-aside-cta { display: block; margin-top: 1.75rem; text-align: center; }

@media (max-width: 960px) {
  .atty-hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 1.75rem; }
  .atty-hero-photo { justify-self: center; max-width: 320px; }
  .atty-card { max-width: none; margin: 0 -2rem; padding: 2.25rem 2rem 2rem; box-shadow: none; }
  .atty-body { padding: 3rem 0 3.5rem; }
  .atty-body-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .atty-aside { position: static; }
}
@media (max-width: 760px) {
  .atty-card { margin: 0 -1.25rem; padding: 2rem 1.25rem 1.75rem; }
  .atty-card-rows a, .atty-card-rows button, .atty-card-static { font-size: 1rem; }
}

/* Print PDF: a clean one-lawyer bio sheet */
@media print {
  .utility-bar, .site-header, .footer, .cta-strip,
  .atty-breadcrumb, .atty-card-action, .atty-card-linkedin, .atty-aside-cta,
  .atty-aside-group, .nav-toggle { display: none !important; }
  body { background: white; }
  .atty-hero { background: none; border-bottom: 1px solid #999; overflow: visible; }
  .atty-hero::before, .atty-hero::after { display: none; }
  .atty-hero { padding: 0 !important; }
  .atty-hero-grid { grid-template-columns: 1.6in 1fr; gap: 0.35in; align-items: center; padding: 0 0 0.25in; }
  .atty-hero-photo { max-width: 1.6in; }
  .atty-hero-photo img { box-shadow: none; }
  .atty-card { background: none; color: black; margin: 0; padding: 0; border: 0; box-shadow: none; max-width: none; }
  .atty-card-eyebrow, .atty-card-title, .atty-card-note { color: #333; }
  .atty-card-title { border-bottom: 0; padding-bottom: 0.4rem; }
  .atty-card-first { font-size: 1.4rem; }
  .atty-card-last { font-size: 2.4rem; }
  .atty-card-rows { margin-top: 0.3rem; }
  .atty-card-rows a, .atty-card-static { color: black; font-size: 0.95rem; padding: 0.12rem 0; }
  .atty-card-rows svg { stroke: #333; width: 15px; height: 15px; }
  .atty-body { padding: 0.3in 0 0; }
  .atty-body-grid { grid-template-columns: 1fr; gap: 0.25in; }
  .atty-aside { position: static; background: none; border-top: 1px solid #999; padding: 0.2in 0 0; }
  .atty-aside-list li, .atty-aside-list li:last-child { border: 0; }
  .atty-aside-list a { padding: 0.1rem 0; font-size: 1.05rem; }
  .prose p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.8rem; }
  section { padding-top: 0.3in !important; padding-bottom: 0.2in !important; background: none !important; }
  .sidebar-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
  .sidebar-block li { padding: 0.15rem 0 0.15rem 1.25rem; font-size: 0.88rem; }
  .sidebar-block h4 { margin-bottom: 0.5rem; padding-bottom: 0.4rem; }
  .section-title { margin-bottom: 1.25rem !important; }
  .prose ul li { margin-bottom: 0.35rem; font-size: 0.95rem; }
  .prose h2, .sidebar-block h4 { break-after: avoid; }
  .sidebar-block, .prose li { break-inside: avoid; }
}
