/* Perez-Siam & Associates, perezsiamlaw.com.
   Community association attorneys, Miami. Established 1988.
   Vanilla CSS. Navy / chartreuse brand kit. Source Serif 4 + Public Sans. */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ── Tokens ── */
:root {
  --navy: #1C4289;
  --navy-deep: #0D2A5C;
  --chartreuse: #D1CF26;
  --paper: #F7F6F2;
  --paper-dim: #EFEDE5;
  --ink: #14181F;
  --muted: #5A6472;
  --white: #FFFFFF;
  --border: rgba(20,24,31,0.12);
  --border-lt: rgba(20,24,31,0.08);
  --shadow-sm: 0 2px 8px rgba(13,42,92,0.08);
  --shadow-md: 0 10px 34px rgba(13,42,92,0.14);
  --shadow-lg: 0 22px 60px rgba(13,42,92,0.20);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --z-nav: 500;
  --z-mobile: 600;
  --z-consent: 900;
  --z-acc-fab: 950;
  --z-acc-panel: 960;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-deep); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 62ch; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy-deep); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 1000; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ── Focus rings ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-secondary:hover { background: var(--navy-deep); color: var(--white); }
.btn-on-dark { background: var(--chartreuse); color: var(--navy-deep); }
.btn-on-dark:hover { background: #e6e43f; }
.btn-ghost-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(247,246,242,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-lt);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; min-height: 72px; }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { height: 42px; width: auto; }
.main-nav { display: none; }
@media (min-width: 1040px) {
  .main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
  .main-nav > ul { display: contents; }
  .main-nav > ul > li { position: relative; }
  .has-dropdown { display: flex; align-items: center; }
  .main-nav li > a, .nav-dropdown-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; font-weight: 600; font-size: 0.95rem; color: var(--navy-deep);
    border-radius: var(--radius-sm); background: none; border: none;
  }
  .nav-dropdown-toggle { padding: 10px 8px; margin-left: -4px; }
  .main-nav li > a:hover, .main-nav li > a[aria-current="page"], .nav-dropdown-toggle:hover { color: var(--navy); background: var(--paper-dim); }
  .main-nav li > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--chartreuse); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.18s; }
  .has-dropdown:hover .nav-dropdown-toggle svg,
  .has-dropdown:focus-within .nav-dropdown-toggle svg { transform: rotate(180deg); }
  .nav-dropdown {
    position: absolute; top: 100%; left: 0; margin-top: 6px;
    background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 8px; width: 250px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  }
  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
  /* Rev 3: compact 4-cluster dropdown, replacing the 14-link mega-menu */
  .nav-dropdown-compact { display: grid; gap: 2px; }
  .nav-dropdown-compact a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 6px; font-size: 0.9rem; color: var(--ink);
  }
  .nav-dropdown-compact .icon-wrap {
    width: 26px; height: 26px; border-radius: 50%; background: var(--paper-dim); color: var(--navy);
    display: flex; align-items: center; justify-content: center; flex: none; transition: background 0.15s, color 0.15s;
  }
  .nav-dropdown-compact .icon-wrap svg { width: 14px; height: 14px; }
  .nav-dropdown-compact a:hover { background: var(--paper-dim); color: var(--navy); }
  .nav-dropdown-compact a:hover .icon-wrap { background: var(--navy); color: var(--white); }
  .nav-dropdown-all { border-top: 1px solid var(--border-lt); margin-top: 6px; padding-top: 8px; }
  .nav-dropdown-all a { font-weight: 700; color: var(--navy); }
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-phone { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-deep); font-size: 0.95rem; }
.nav-phone svg { width: 18px; height: 18px; color: var(--navy); }
@media (min-width: 780px) { .nav-phone { display: flex; } }
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
@media (min-width: 1040px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy-deep); margin: 0 auto; transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border-lt);
  max-height: 0; overflow: hidden auto; transition: max-height 0.25s ease;
}
.mobile-nav.open { max-height: 80vh; }
@media (min-width: 1040px) { .mobile-nav { display: none !important; } }
@media (max-width: 1039px) { .mobile-nav { display: flex; } }
.mobile-nav a, .mobile-nav summary { display: block; padding: 14px 24px; font-weight: 600; border-bottom: 1px solid var(--border-lt); color: var(--navy-deep); }
.mobile-nav details > div { background: var(--paper-dim); }
.mobile-nav details a { padding-left: 40px; font-weight: 500; font-size: 0.94rem; }
.mobile-nav summary { display: flex; justify-content: space-between; align-items: center; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .m-cta { background: var(--navy); color: var(--white); text-align: center; margin: 14px 24px; border-radius: var(--radius-sm); border-bottom: none; }

/* ── Sticky mobile call bar ── */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: flex; background: var(--navy-deep);
  box-shadow: 0 -8px 24px rgba(13,42,92,0.25);
}
.mobile-call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px; font-weight: 700; color: var(--white); font-size: 1rem;
}
.mobile-call-bar svg { width: 20px; height: 20px; color: var(--chartreuse); }
@media (min-width: 780px) { .mobile-call-bar { display: none; } }
body.has-mobile-call-bar { padding-bottom: 62px; }
@media (min-width: 780px) { body.has-mobile-call-bar { padding-bottom: 0; } }

/* ── Sections / rhythm ── */
main { display: block; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } .section-tight { padding: 40px 0; } }
.section-alt { background: var(--white); }
.section-deep { background: var(--navy-deep); color: var(--white); }
.section-deep h2, .section-deep h3, .section-deep h4 { color: var(--white); }
.section-deep p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.section-deep .kicker { color: var(--chartreuse); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; padding: 56px 0 60px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; padding: 40px 0 0; gap: 0; } }
.hero-content { padding-top: 12px; padding-bottom: 12px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--chartreuse); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); margin-bottom: 18px; }
.hero .lede { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: relative; align-self: stretch; }
.hero-figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); }
@media (max-width: 980px) { .hero-figure { margin-top: 32px; } .hero-figure img { border-radius: var(--radius); min-height: 220px; max-height: 320px; } }
.hero-figure::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, rgba(13,42,92,0.30) 0%, rgba(13,42,92,0.02) 55%);
}
@media (max-width: 980px) { .hero-figure::before { background: linear-gradient(180deg, rgba(13,42,92,0.08) 40%, rgba(13,42,92,0.28) 100%); } }

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--navy-deep); color: var(--white); padding: 52px 0 44px; }
.page-hero .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.84rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a:hover { color: var(--chartreuse); }
.page-hero .breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 62ch; font-size: 1.05rem; }

/* ── Practice-page hero, rev 3 (REVISION3.md section 3) ── clean cluster
   eyebrow + H1 + one short lede + CTA, the long intro moved into the body. */
.practice-hero .cluster-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--chartreuse); margin-bottom: 16px;
}
.practice-hero .cluster-eyebrow .icon-wrap {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.14);
  color: var(--white); display: flex; align-items: center; justify-content: center; flex: none;
}
.practice-hero .cluster-eyebrow .icon-wrap svg { width: 13px; height: 13px; }
.practice-hero .lede { margin-bottom: 6px; }
.practice-hero .hero-ctas { margin-top: 24px; }

/* ── Closing CTA band, rev 3 (REVISION3.md section 3), every practice
   sub-page ends by pointing back to contact. ── */
.cta-band-inner { text-align: center; }
.cta-band-inner h2 { margin-bottom: 10px; }
.cta-band-inner p { max-width: 52ch; margin: 0 auto 26px; }
.cta-band-inner .hero-ctas { justify-content: center; }

.team-hero-grid { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .team-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.team-hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.14); }
.team-hero-photo img { width: 100%; height: 100%; min-height: 220px; max-height: 320px; object-fit: cover; display: block; }

/* ── Triage module ── */
.triage-intro { max-width: 680px; margin-bottom: 40px; }
.triage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 767px) { .triage-grid { grid-template-columns: 1fr; } }
.triage-item {
  background: var(--paper); border: 1px solid var(--border-lt); border-left: 4px solid var(--chartreuse);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.triage-item[open] { background: var(--white); border-color: var(--navy); box-shadow: var(--shadow-md); }
.triage-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 24px 26px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy-deep);
}
.triage-item summary::-webkit-details-marker { display: none; }
.triage-item summary .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s; }
.triage-item summary .plus svg { width: 16px; height: 16px; color: var(--navy); }
.triage-item[open] summary .plus { background: var(--navy); transform: rotate(45deg); }
.triage-item[open] summary .plus svg { color: var(--white); }
.triage-panel { padding: 0 26px 26px; }
.triage-panel dl { display: grid; gap: 14px; margin-bottom: 16px; }
.triage-panel dt { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); margin-bottom: 4px; }
.triage-panel dd { color: var(--ink); font-size: 0.96rem; line-height: 1.6; }
.triage-panel-links { display: flex; flex-wrap: wrap; gap: 10px; }
.triage-panel-links a {
  font-size: 0.9rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--chartreuse);
  padding-bottom: 1px;
}
.triage-panel-links a:hover { color: var(--navy-deep); }

/* ── Who we represent: slim strip, not a third card section ── */
.represent-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  padding: 26px 30px; background: var(--white); border: 1px solid var(--border-lt);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.represent-item { display: flex; align-items: center; gap: 14px; }
.represent-item .icon-wrap {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.represent-item .icon-wrap svg { width: 20px; height: 20px; }
.represent-item b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-deep); }
.represent-item span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 700px) { .represent-strip { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ── Firm / about strip ── */
.firm-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .firm-grid { grid-template-columns: 1fr; gap: 28px; } }
.firm-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 28px 0; }
.firm-stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--white); }
.firm-stat span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); }

/* ── Headshot panel (rev 2: replaces the repeated full-size family photo
   in the "family practice" band; the family photo now leads the hero) ── */
.headshot-panel {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 26px; display: grid; gap: 20px;
}
.headshot-item { display: flex; align-items: center; gap: 14px; }
.headshot-item img {
  flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 2px solid rgba(255,255,255,0.25);
}
.headshot-item b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1rem; }
.headshot-item span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ── Practice grid (used on the /practice-areas/ index) ── */
.practice-groups { display: grid; gap: 40px; }
.practice-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.15rem; scroll-margin-top: 100px; }
.practice-group h3 .tag { width: 8px; height: 8px; border-radius: 2px; background: var(--chartreuse); }
.practice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.practice-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.practice-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.practice-card h4 { font-size: 1.02rem; line-height: 1.35; }
.practice-card p { font-size: 0.87rem; line-height: 1.55; }
.practice-card .card-link { margin-top: auto; font-size: 0.84rem; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
.practice-card .card-link svg { width: 14px; height: 14px; transition: transform 0.15s; }
.practice-card:hover .card-link svg { transform: translateX(3px); }
.practice-lead { grid-column: 1 / -1; }
@media (min-width: 640px) { .practice-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 28px; } }
.practice-lead h4 { font-size: 1.25rem; }

/* ── Practice cluster overview (homepage compact overview, rev 2) ── */
.cluster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .cluster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cluster-grid { grid-template-columns: 1fr; } }
.cluster-card {
  background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cluster-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cluster-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.cluster-card .icon-wrap svg { width: 24px; height: 24px; }
.cluster-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cluster-card p { font-size: 0.92rem; margin-bottom: 16px; }
.cluster-links { display: grid; gap: 8px; }
.cluster-links a { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.cluster-links a:hover { color: var(--navy-deep); }
.cluster-cta { text-align: center; margin-top: 36px; }

/* ── Contact block ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-card { background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; }
.form-field .hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 0.96rem; color: var(--ink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8892a0; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--navy); background: var(--white); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #16794a; }
.form-status.err { color: #b3261e; }

.info-card { display: grid; gap: 20px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .icon-wrap { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; }
.info-item .icon-wrap svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 0.98rem; margin-bottom: 3px; }
.info-item a, .info-item span { color: var(--muted); font-size: 0.94rem; }
.info-item a:hover { color: var(--navy); }

.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-lt); aspect-ratio: 16/10; background: var(--paper-dim); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.map-placeholder p { max-width: 34ch; font-size: 0.86rem; }

/* ── Attorneys + staff, rev 3 unified team-card (REVISION3.md section 1) ──
   Same rounded-rectangle frame, same aspect ratio, no circles, so all six
   people read as one consistent grid instead of attorney rectangles next
   to staff circles. Per-person zoom/origin-y set as CSS custom properties
   inline (see render_team_portrait() in build.py) so every face lands at
   the same scale and eye line despite the source photos being shot at
   different photographer zoom levels. */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.team-grid + .team-grid { margin-top: 28px; }
.team-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card .portrait { aspect-ratio: 4/3.6; overflow: hidden; background: var(--paper-dim); }
.team-card .portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(var(--zoom, 1)); transform-origin: 50% var(--origin-y, 30%);
}
.team-card .body { flex: 1; padding: 22px 24px 26px; }
.team-card h3, .team-card h4 { font-size: 1.2rem; margin-bottom: 2px; }
.team-card .role { color: var(--navy); font-weight: 700; font-size: 0.86rem; display: block; margin-bottom: 4px; }
.team-card dl { display: grid; gap: 8px; margin-top: 14px; }
.team-card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.team-card dd { font-size: 0.88rem; color: var(--ink); margin-bottom: 4px; }

/* ── Article (practice pages) ── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 36px; } }
.article-body { max-width: 68ch; }
.article-body > .lede { margin-bottom: 8px; }
.article-lead {
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border-lt);
  font-size: 1.2rem; line-height: 1.55;
}
.article-body h2 { margin: 0 0 14px; font-size: 1.5rem; }
.article-body p { margin-bottom: 4px; color: var(--ink); }
.article-block { display: flex; gap: 18px; align-items: flex-start; }
.article-block + .article-block { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--border-lt); }
.block-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-dim); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.block-body h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--navy-deep); }
.block-body p { color: var(--ink); font-size: 0.98rem; line-height: 1.7; }
.article-closing { margin-top: 40px; padding: 24px 26px; background: var(--paper); border-left: 4px solid var(--chartreuse); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-deep); }

.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.cta-card { background: var(--navy-deep); color: var(--white); border-radius: var(--radius); padding: 26px; }
.cta-card .attorney-mini { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cta-card .attorney-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cta-card .attorney-mini span { font-size: 0.82rem; color: rgba(255,255,255,0.7); display: block; }
.cta-card .attorney-mini b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.cta-card h4 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.cta-card p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin-bottom: 18px; }

.related-card { background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.related-card h4 { font-size: 0.98rem; margin-bottom: 14px; }
.related-card ul { display: grid; gap: 10px; }
.related-card a { font-size: 0.9rem; font-weight: 600; color: var(--navy-deep); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.related-card a svg { width: 16px; height: 16px; flex-shrink: 0; }
.related-card a:hover { color: var(--navy); }

/* ── Blog ── */
.blog-post { max-width: 68ch; }
.blog-post .byline { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.blog-post p { margin-bottom: 18px; color: var(--ink); }
.blog-post h2 { margin: 34px 0 12px; font-size: 1.4rem; }

/* ── FAQ style accordion used on contact page ── */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy-deep); display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 16px; font-size: 0.92rem; }

/* ── Fade-in reveal (gated to html.js so no-JS never hides content) ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  html.js .fade-up.visible { opacity: 1; transform: none; }
}

/* ── Footer ── */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .wordmark { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--white); display: block; margin-bottom: 4px; }
.footer-brand .wordmark span { color: var(--chartreuse); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.88rem; margin-top: 12px; max-width: 32ch; }
.footer-col h5 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: rgba(255,255,255,0.82); }
.footer-col a:hover { color: var(--chartreuse); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 26px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--chartreuse); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Consent banner ── */
.consent-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: var(--z-consent);
  max-width: 420px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px; display: none;
}
.consent-banner.show { display: block; }
.consent-banner h4 { font-size: 1.02rem; margin-bottom: 6px; }
.consent-banner p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 16px; }
.consent-banner p a { color: var(--navy); font-weight: 700; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { padding: 10px 18px; font-size: 0.86rem; }
@media (max-width: 480px) {
  .consent-banner { left: 12px; right: 12px; bottom: 76px; max-width: none; }
}

/* ── Accessibility widget ── */
.acc-fab {
  position: fixed; right: 20px; bottom: 90px; z-index: var(--z-acc-fab);
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--white);
  border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: transform 0.2s, background 0.2s;
}
.acc-fab:hover { background: var(--navy-deep); transform: translateY(-2px); }
.acc-fab svg { width: 28px; height: 28px; }
@media (min-width: 780px) { .acc-fab { bottom: 24px; } }

.acc-panel {
  position: fixed; right: 20px; bottom: 152px; z-index: var(--z-acc-panel);
  width: 330px; max-width: calc(100vw - 32px); max-height: calc(100vh - 180px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--border-lt); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; display: none;
}
.acc-panel.open { display: block; }
@media (min-width: 780px) { .acc-panel { bottom: 86px; } }
.acc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.acc-panel-head h2 { font-size: 1.05rem; color: var(--navy-deep); margin: 0; }
.acc-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); padding: 2px 8px; border-radius: 6px; }
.acc-close:hover { color: var(--navy); background: var(--paper); }
.acc-sub { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0 8px; font-weight: 700; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--navy-deep); font-size: 0.8rem; font-weight: 600; line-height: 1.25; transition: border-color 0.15s, background 0.15s; }
.acc-btn svg { width: 22px; height: 22px; color: var(--navy); pointer-events: none; }
.acc-btn span { pointer-events: none; }
.acc-btn:hover { border-color: var(--navy); background: var(--paper); }
.acc-btn[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.acc-btn[aria-pressed="true"] svg { color: var(--white); }
.acc-btn .lvl { font-size: 0.68rem; opacity: 0.85; }
.acc-reset { width: 100%; margin-top: 14px; padding: 11px; border: none; border-radius: var(--radius-sm); background: var(--paper); color: var(--navy-deep); font-weight: 700; font-size: 0.85rem; }
.acc-reset:hover { background: var(--paper-dim); }
.acc-fineprint { font-size: 0.68rem; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }

html.acc-text1 { font-size: 18.5px; }
html.acc-text2 { font-size: 20.5px; }
html.acc-text3 { font-size: 22.5px; }
html.acc-readable *:not(.acc-fab):not(.acc-fab *) { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
html.acc-spacing p, html.acc-spacing li, html.acc-spacing a, html.acc-spacing span,
html.acc-spacing h1, html.acc-spacing h2, html.acc-spacing h3, html.acc-spacing h4 {
  letter-spacing: 0.06em !important; line-height: 1.9 !important; word-spacing: 0.14em !important;
}
html.acc-links a:not(.acc-fab):not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; color: #0b3fb0 !important; font-weight: 600 !important; }
html.acc-titles h1, html.acc-titles h2, html.acc-titles h3, html.acc-titles h4 { outline: 2px dashed var(--navy); outline-offset: 3px; background: rgba(28,66,137,0.07); }
html.acc-bigcursor, html.acc-bigcursor * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 3l30 18-12 3 8 14-5 3-8-14-9 9z" fill="white" stroke="black" stroke-width="2" stroke-linejoin="round"/></svg>') 6 3, auto !important; }
html.acc-noanim *, html.acc-noanim *::before, html.acc-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.acc-dark #site-header, html.acc-dark main, html.acc-dark #site-footer, html.acc-dark .mobile-call-bar { filter: invert(1) hue-rotate(180deg); }
html.acc-dark img, html.acc-dark video { filter: invert(1) hue-rotate(180deg); }
html.acc-high #site-header, html.acc-high main, html.acc-high #site-footer { filter: contrast(1.4) saturate(1.25); }
html.acc-mono #site-header, html.acc-mono main, html.acc-mono #site-footer { filter: grayscale(1); }
.acc-guide { position: fixed; left: 0; right: 0; height: 44px; background: rgba(28,66,137,0.10); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); pointer-events: none; z-index: 940; display: none; top: 0; }
html.acc-guide-on .acc-guide { display: block; }

/* ── Utility ── */
.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; }
.center-text { text-align: center; }
.mt-0 { margin-top: 0; }

/* ── 404 ── */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; color: var(--navy); line-height: 1; margin-bottom: 12px; }
.error-page p { max-width: 46ch; margin: 14px auto 28px; }
