/* ==========================================================================
   DallasDUILawyer.com — Design System
   ========================================================================== */
:root {
  --navy: #0c1b2e;
  --navy-2: #12253d;
  --navy-3: #1a3252;
  --gold: #c9a227;
  --gold-2: #e3bc45;
  --gold-soft: #f4e9c8;
  --ink: #1d2836;
  --muted: #5b6a7a;
  --paper: #f8f6f1;
  --white: #ffffff;
  --line: #e6e1d4;
  --danger: #b23b3b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 27, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(12, 27, 46, 0.22);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 16px; z-index: 999; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 8px; font-weight: 700;
  font-size: 1rem; text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 8px 22px rgba(201, 162, 39, 0.4); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(201, 162, 39, 0.55); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-block { display: block; width: 100%; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--navy); color: #cfd9e5; font-size: .85rem; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar strong { color: var(--gold-2); font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(12,27,46,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--navy); line-height: 1.05; }
.brand-name span { color: var(--gold); }
.brand-tag { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a, .nav-parent {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
  padding: 10px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; font-family: var(--font-body);
}
.main-nav a:hover, .nav-parent:hover, .nav-item:focus-within .nav-parent { background: var(--paper); color: var(--navy); }
.nav-item { position: relative; }
.nav-caret { width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; list-style: none;
  display: none; margin: 0; border: 1px solid var(--line);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; font-size: .9rem; border-radius: 7px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff;
  padding: 11px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .98rem;
  white-space: nowrap; transition: background .15s ease;
}
.header-phone:hover { background: var(--navy-3); }
.header-phone svg { width: 17px; height: 17px; fill: var(--gold-2); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 84px 0 92px;
  background: var(--navy) url("hero-dallas-skyline.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,17,30,.93) 22%, rgba(10,22,38,.72) 55%, rgba(10,22,38,.38) 100%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 700; margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { color: var(--gold-2); font-style: normal; }
.hero-sub { font-size: 1.13rem; color: #d5dde8; max-width: 560px; margin-bottom: 26px; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; }
.hero-bullets li { display: flex; gap: 11px; align-items: flex-start; color: #e8edf3; font-weight: 500; font-size: .99rem; }
.check-icon { width: 21px; height: 21px; border-radius: 50%; background: rgba(201,162,39,.18); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-icon svg { width: 11px; height: 11px; stroke: var(--gold-2); stroke-width: 3; fill: none; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .85rem; color: #9fb0c3; }
.hero-note strong { color: var(--gold-2); }

/* ---------- Lead form ---------- */
.lead-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 30px 30px 26px;
  color: var(--ink);
}
.lead-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.lead-card .lead-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.lead-form { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; letter-spacing: .02em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid #d8d3c6; border-radius: 8px;
  font-size: .95rem; font-family: var(--font-body); color: var(--ink); background: #fdfcf9;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-consent { display: flex; gap: 9px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-fineprint { font-size: .74rem; color: #8a94a1; line-height: 1.5; margin: 4px 0 0; }
.form-error { color: var(--danger); font-size: .8rem; font-weight: 600; display: none; }
.form-success { display: none; text-align: center; padding: 34px 10px; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 14px; }
.form-success h3 { font-size: 1.35rem; }
.form-success p { color: var(--muted); font-size: .95rem; }

/* ---------- Trust bar / stats ---------- */
.trustbar { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.07); padding: 34px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.stat-label { color: #b9c6d4; font-size: .88rem; margin-top: 7px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.card-icon {
  width: 48px; height: 48px; border-radius: 11px; background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 23px; height: 23px; stroke: var(--gold-2); fill: none; stroke-width: 1.9; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0 0 12px; }
.card-link { color: var(--gold); font-weight: 700; font-size: .9rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700; color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.split ul.tick-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 13px; }
.tick-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.tick-list strong { color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.testimonial p { color: var(--ink); font-size: .96rem; font-style: italic; margin: 0; flex: 1; }
.testimonial-cite { font-size: .85rem; color: var(--muted); font-weight: 600; font-style: normal; }

/* ---------- FAQ ---------- */
.faq-section-title {
  max-width: 820px; margin: 2.6rem auto 1.1rem; font-size: 1.5rem;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.faq-section-title:first-of-type { margin-top: 0; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 13px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 19px 24px; font-weight: 700; color: var(--navy); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; line-height: 1; flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq-list .faq-a { padding: 0 24px 20px; color: var(--muted); font-size: .95rem; }
.faq-list .faq-a p { margin: 0 0 .8em; }
.faq-list .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 65%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d0dd; max-width: 620px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 1; }
.cta-deadline {
  display: inline-block; background: rgba(178,59,59,.16); border: 1px solid rgba(226,106,106,.5);
  color: #f0b9b9; border-radius: 999px; padding: 8px 20px; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff;
  padding: 64px 0 58px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: -120px; bottom: -180px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.16), transparent 65%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; max-width: 800px; }
.page-hero .page-sub { color: #c4d0dd; font-size: 1.08rem; max-width: 700px; margin: 0; }
.breadcrumbs { font-size: .82rem; margin-bottom: 20px; color: #93a5b9; position: relative; z-index: 1; }
.breadcrumbs a { color: var(--gold-2); text-decoration: none; }
.breadcrumbs span { margin: 0 7px; color: #5f7185; }

/* ---------- Article / content layout ---------- */
.content-wrap { display: grid; grid-template-columns: 1fr 330px; gap: 56px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 1.6em; font-size: 1.65rem; }
.article-body h3 { margin-top: 1.5em; font-size: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.article-body li { margin-bottom: .5rem; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0 1.8rem; font-size: .92rem; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto;
}
.article-body th {
  background: var(--navy); color: #fff; text-align: left; padding: 12px 15px; font-family: var(--font-body);
  font-size: .83rem; letter-spacing: .03em; white-space: nowrap;
}
.article-body td { padding: 11px 15px; border-top: 1px solid var(--line); vertical-align: top; }
.article-body tr:nth-child(even) td { background: #fbf9f4; }
.callout {
  background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
  padding: 20px 24px; margin: 1.6rem 0; font-size: .96rem;
}
.callout strong { color: var(--navy); }
.callout-urgent { background: #faecec; border-left-color: var(--danger); }
.meta-line { color: var(--muted); font-size: .85rem; margin-bottom: 26px; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 22px; position: sticky; top: 96px; }
.sidebar-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.sidebar-card.dark { background: var(--navy); color: #fff; border: none; }
.sidebar-card.dark h3 { color: #fff; font-size: 1.15rem; }
.sidebar-card.dark p { color: #b9c6d4; font-size: .9rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.sidebar-card ul a {
  display: block; padding: 8px 10px; border-radius: 7px; text-decoration: none; color: var(--ink);
  font-size: .9rem; font-weight: 500;
}
.sidebar-card ul a:hover { background: #fff; color: var(--navy); }
.sidebar-card ul a.active { color: var(--gold); font-weight: 700; }

/* ---------- Location strip ---------- */
.loc-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600;
  transition: all .15s ease;
}
.loc-pill:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebdcd; padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 44px; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-name span { color: var(--gold-2); }
.footer-brand p { margin-top: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #aebdcd; text-decoration: none; transition: color .15s ease; }
.footer-col a:hover { color: var(--gold-2); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; font-size: .78rem; line-height: 1.7; color: #7e90a4;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #8fa1b5;
}
.footer-bottom a { color: #aebdcd; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }
.site-credit {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px;
  display: flex; justify-content: center;
}
.site-credit-link {
  display: inline-flex; align-items: center; gap: 16px; text-decoration: none;
  color: #aebdcd; font-size: .85rem; transition: color .15s ease;
}
.site-credit-link:hover { color: var(--gold-2); }
.site-credit-link strong { color: #e6edf4; font-weight: 700; }
.site-credit-link:hover strong { color: var(--gold-2); }
.site-credit-link img {
  display: block; width: 145px; height: 60px; object-fit: cover;
  border-radius: 10px; background: #faf7f0;
}

/* ---------- Reviewing-attorney placeholder blocks ---------- */
.placeholder-flag {
  display: inline-block; background: #b45309; color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 5px; padding: 3px 10px;
  margin-bottom: 10px;
}
.review-byline {
  border: 2px dashed #d97706; background: #fffbeb; border-radius: 10px;
  padding: 15px 18px 13px; margin: 0 0 2rem;
}
.review-byline-body { display: flex; gap: 13px; align-items: center; }
.review-byline-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: #fde8c8; color: #b45309; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem; border: 1.5px dashed #d97706;
}
.review-byline-text { margin: 0; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.review-byline-date { display: block; color: #92600c; font-size: .82rem; margin-top: 2px; }
.reviewer-bio {
  border: 2px dashed #d97706; background: #fffbeb; border-radius: var(--radius);
  padding: 24px 26px 20px; margin: 2.2rem 0 0;
}
.reviewer-bio-inner { display: flex; gap: 20px; align-items: flex-start; }
.reviewer-bio-photo {
  width: 92px; height: 92px; border-radius: 14px; flex-shrink: 0;
  background: #fde8c8; color: #b45309; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .72rem; letter-spacing: .06em; border: 1.5px dashed #d97706;
}
.reviewer-bio-cred { color: #92600c; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.reviewer-bio p:last-child { margin-bottom: 0; font-size: .94rem; }
@media (max-width: 620px) {
  .reviewer-bio-inner { flex-direction: column; }
}

/* ---------- Related-links box (topical clusters) ---------- */
.related-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-top: 2.4rem;
}
.related-box h3 { margin-bottom: 12px; font-size: 1.12rem; }
.related-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.related-box li { border-top: 1px solid var(--line); padding-top: 11px; }
.related-box li:first-child { border-top: 0; padding-top: 0; }
.related-box a { font-weight: 700; text-decoration: none; color: var(--navy); }
.related-box a:hover { color: var(--gold); }
.related-box span { display: block; color: var(--muted); font-size: .86rem; margin-top: 1px; }

/* ---------- Content freshness line ---------- */
.content-reviewed {
  color: var(--muted); font-size: .83rem; margin: 2.2rem 0 0;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.content-reviewed time { font-weight: 600; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.badge {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px;
  font-size: .82rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.badge svg { width: 15px; height: 15px; fill: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cards, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .header-phone .phone-text { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    box-shadow: var(--shadow-lg); padding: 14px 4% 22px; border-top: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .nav-parent { width: 100%; padding: 13px 12px; font-size: 1rem; }
  .nav-parent { justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--gold-soft); border-radius: 0; padding: 0 0 0 14px; }
  .nav-item.open .dropdown { display: block; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .cards, .testimonials, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Attorney directory (Task 1) ---------- */
.directory-notice {
  background: #f6f2e6; border: 1px solid #e3d9bc; border-radius: 12px;
  padding: 20px 24px; margin-bottom: 26px; font-size: .92rem; line-height: 1.65;
}
.directory-notice p { margin: 0 0 8px; }
.directory-notice p:last-child { margin-bottom: 0; }
.directory-notice .demo-note { color: #92680a; font-size: .85rem; }
.directory-filters {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: end;
  margin-bottom: 26px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.directory-filters label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.directory-filters select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .95rem; min-width: 200px; background: #fff; color: var(--navy);
}
.filter-count { font-size: .88rem; color: var(--muted); margin-left: auto; }
.attorney-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.attorney-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.attorney-card-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sample-flag {
  background: #eef2f6; color: #52657a; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 5px; padding: 3px 9px;
}
.tier-badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 3px 9px; }
.tier-featured { background: #f4e8c3; color: #7a5c0a; border: 1px solid #e0c876; }
.tier-enhanced { background: #e8eef9; color: #2c4a7c; border: 1px solid #b9cbe8; }
.tier-basic { background: #f1f3f5; color: #66727f; border: 1px solid #d8dde2; }
.attorney-card h3 { margin: 0; font-size: 1.18rem; }
.attorney-card .firm-name { font-size: .88rem; color: var(--muted); font-weight: 500; font-family: Inter, sans-serif; }
.attorney-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.focus-tag {
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600;
  border-radius: 20px; padding: 4px 11px;
}
.attorney-bio { font-size: .92rem; line-height: 1.6; margin: 0; flex: 1; }
.bar-verify { font-size: .78rem; color: var(--muted); margin: 0; }
.attorney-forms { margin-top: 46px; display: grid; gap: 34px; }
.attorney-form-block {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  scroll-margin-top: 110px;
}
.attorney-form-block h3 { margin-top: 0; }
.form-scoped-note {
  background: #eef7ee; border: 1px solid #c9e2c9; color: #2c6a2c;
  border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin: 0 0 18px;
}
.attorney-card.hidden-by-filter { display: none; }
.directory-mini .attorney-card { padding: 18px; gap: 9px; }
.directory-mini .attorney-card h3 { font-size: 1rem; }
.directory-mini .attorney-bio, .directory-mini .bar-verify { display: none; }
.directory-mini { display: grid; gap: 14px; }
@media (max-width: 640px) {
  .directory-filters { flex-direction: column; align-items: stretch; }
  .directory-filters select { min-width: 0; width: 100%; }
  .filter-count { margin-left: 0; }
  .attorney-grid { grid-template-columns: 1fr; }
}
