/* Tyler Bankruptcy — Professional Law Firm Theme */
/* Palette: Deep Slate + Forest Teal — trustworthy, calm, professional */

:root {
  --bg-body: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-dark: #1b2a3a;
  --bg-darker: #0f1c2b;

  --text-main: #2d3748;
  --text-muted: #636e7f;
  --text-light: #f1f3f5;

  --accent-primary: #1a7a5c;
  --accent-hover: #14614a;
  --accent-light: #e8f5f0;

  --border-light: #e2e6ea;
  --border-focus: #1a7a5c;

  --space-xs: 0.75rem;
  --space-sm: 1.5rem;
  --space-md: 3rem;
  --space-lg: 5rem;

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 8px rgba(27,42,58,0.06);
  --shadow-md: 0 8px 24px rgba(27,42,58,0.1);
  --shadow-lg: 0 16px 48px rgba(27,42,58,0.12);
  --transition: all 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
}

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

.shell {
  width: min(100%, 1140px);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}
a:hover { color: var(--accent-hover); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  line-height: 1.3;
  margin-top: 0;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h2::after { display: none; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: var(--accent-primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26,122,92,0.25);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,122,92,0.35);
  color: white;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.btn-ghost:hover {
  background: white;
  color: var(--bg-dark);
  border-color: white;
}
.btn-small {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════ */
/* HEADER & NAVIGATION                   */
/* ══════════════════════════════════════ */

.header-topbar {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.header-topbar .shell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.75rem;
  height: 34px;
}
.header-topbar a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.78rem;
}
.header-topbar a:hover { color: white; }
.header-topbar .topbar-separator {
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.2);
}

.site-header {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(27,42,58,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--bg-dark);
  text-decoration: none;
}
.brand:hover { color: var(--bg-dark); text-decoration: none; }
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-divider {
  width: 1px; height: 26px;
  background: var(--border-light);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--bg-dark);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

/* Nav Links */
.primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-left: auto;
}
.primary-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.primary-nav li > a {
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  display: block;
  white-space: nowrap;
}
.primary-nav li > a:hover,
.primary-nav li > a[aria-current="page"] {
  color: var(--accent-primary);
  background: var(--accent-light);
  text-decoration: none;
}

/* Dropdowns */
.has-panel { position: relative; }
.panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.15rem;
}
.panel a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}
.panel a:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  text-decoration: none;
}
.has-panel:hover .panel { display: flex; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.nav-actions .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted) !important;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}
.lang-link:hover {
  color: var(--accent-primary) !important;
  text-decoration: none;
}
.lang-link .flag-icon {
  width: 16px; height: 12px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}
.nav-toggle { display: none; }

/* ══════════════════════════════════════ */
/* HERO — SHARED BASE                    */
/* ══════════════════════════════════════ */

.hero {
  position: relative;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content,
.hero-centered {
  position: relative;
  z-index: 2;
}

/* ── Frosted glass text panel ── */
.hero-glass {
  background: rgba(15, 28, 43, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 3.5rem 4.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 620px; margin-inline: auto; }
.hero h1 { color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero .eyebrow { color: rgba(255,255,255,0.8); letter-spacing: 0.15em; }
.hero p:last-of-type { margin-bottom: 0; }

/* ══════════════════════════════════════ */
/* HERO — HOME PAGE                      */
/* ══════════════════════════════════════ */

.home-hero {
  background-color: var(--bg-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  padding-block: 6rem;
}

.home-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(15,28,43,0.25) 0%, rgba(15,28,43,0.35) 100%);
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.25rem;
}

/* ══════════════════════════════════════ */
/* HERO — INTERIOR PAGES (with photo)    */
/* ══════════════════════════════════════ */

.interior-hero {
  position: relative;
  background-color: var(--bg-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding-block: var(--space-lg);
  overflow: hidden;
}

.interior-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(15,28,43,0.2) 0%, rgba(15,28,43,0.3) 100%);
}

.interior-hero .hero-glass {
  padding: 2.5rem 3.5rem;
  max-width: 720px;
}

.interior-hero h1 { color: white; font-size: clamp(2rem, 3.5vw, 2.8rem); text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.interior-hero p {
  color: rgba(255,255,255,0.92);
  margin-inline: auto;
  max-width: 600px;
}
.interior-hero-img { display: none; }

/* Breadcrumbs */
.breadcrumbs {
  margin-block: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
.breadcrumbs ol {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0; margin: 0;
}
.breadcrumbs a { color: rgba(255,255,255,0.65); }
.breadcrumbs a:hover { color: white; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════ */
/* BENEFITS                              */
/* ══════════════════════════════════════ */

.benefits-section {
  background: var(--bg-dark);
  color: white;
  padding-block: var(--space-lg);
}
.benefits-section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
  color: white;
}
.benefits-section h2::after { display: none; }
.benefits-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-inline: auto;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.benefit-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}
.benefit-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-primary);
  color: white;
}
.benefit-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-content h3 {
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.4rem;
}
.benefit-content p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* ══════════════════════════════════════ */
/* HOW IT WORKS                          */
/* ══════════════════════════════════════ */

.how-it-works {
  background: var(--bg-body);
  padding-block: var(--space-lg);
}
.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--space-md);
}
.how-it-works h2::after { display: none; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.step-item { text-align: center; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.step-item h3 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.75rem; }
.step-item p { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }

/* ══════════════════════════════════════ */
/* CONTENT SECTIONS                      */
/* ══════════════════════════════════════ */

.content-section {
  max-width: 780px;
  margin: 0 auto;
  padding-block: var(--space-md);
  line-height: 1.85;
}
.content-section h2 {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
}
.content-section h2::after { display: none; }
.content-section p { margin-bottom: 1.5rem; }
.content-section ul, .content-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.content-section li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════ */
/* SERVICE CARDS                         */
/* ══════════════════════════════════════ */

.service-cards-wrap {
  background: var(--bg-body);
  padding-block: var(--space-lg);
}
.service-cards-wrap h2 {
  text-align: center;
  margin-bottom: var(--space-md);
  border: none;
  padding-left: 0;
}
.service-cards-wrap h2::after { display: none; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-cards article {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-bottom: 3px solid transparent;
  text-align: center;
  transition: var(--transition);
}
.service-cards article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent-primary);
}
.service-cards h3 { color: var(--bg-dark); }
.service-cards a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* ══════════════════════════════════════ */
/* MID CTA                               */
/* ══════════════════════════════════════ */

.mid-cta {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}
.mid-cta h2 {
  color: white;
  border: 0;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.mid-cta h2::after { display: none; }
.mid-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

/* ══════════════════════════════════════ */
/* ATTORNEY BIO                          */
/* ══════════════════════════════════════ */

.attorney-section {
  background: var(--bg-surface);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ── Attorney intro: photo + bio side by side ── */
.attorney-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 3rem;
}
.attorney-photo-wrap { position: relative; }
.attorney-photo-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-primary);
}
.attorney-bio h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.attorney-bio h2::after { display: none; }
.attorney-bio .eyebrow { margin-bottom: 0.25rem; }
.attorney-lead {
  font-size: 1.15rem !important;
  color: var(--text-main) !important;
  font-weight: 500;
  line-height: 1.75;
}
.attorney-bio p {
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ── 4-card details grid ── */
.attorney-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.attorney-detail-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
}
.attorney-detail-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* ── Collapsible detail cards ── */
.detail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.detail-toggle .chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.detail-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.detail-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.detail-body.open {
  max-height: 300px;
  margin-top: 1rem;
}
.attorney-detail-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.attorney-detail-card li {
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}
.attorney-detail-card li:last-child { border-bottom: none; }

/* ── Attorney CTA row ── */
.attorney-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

/* ══════════════════════════════════════ */
/* FAQ ACCORDION                         */
/* ══════════════════════════════════════ */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-section-title {
  background: var(--bg-dark);
  color: white;
  padding: 0.9rem 1.5rem;
  border-left: 3px solid var(--accent-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}
.faq-question:hover { background: var(--accent-light); }
.faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-weight: 700;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ══════════════════════════════════════ */
/* REVIEWS                               */
/* ══════════════════════════════════════ */

.ratings-summary {
  text-align: center;
  margin-bottom: var(--space-md);
  padding: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
}
.review-card blockquote {
  margin: 0 0 1rem 0;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
}
.review-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-dark);
}
.review-source {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════ */
/* BLOG                                  */
/* ══════════════════════════════════════ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.blog-card img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.blog-card > div { padding: 1.5rem; }
.blog-card h3 { margin-top: 0; }
.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════ */
/* CONTACT FORM                          */
/* ══════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-md);
}
.secure-form fieldset {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow-sm);
}
.secure-form legend {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark);
  padding-inline: 0.5rem;
}
.secure-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
.secure-form input,
.secure-form select,
.secure-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-body);
  transition: var(--transition);
}
.secure-form input:focus,
.secure-form select:focus,
.secure-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(26,122,92,0.12);
}
.secure-form .form-row {
  margin-bottom: 0.25rem;
}
.secure-form .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.secure-form .consent-group {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.secure-form .consent-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}
.secure-form .consent-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
}
.secure-form .math-row {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #FFFBEB;
  border-radius: var(--radius-sm);
  border: 1px solid #F6E05E;
}
.secure-form .math-row label {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--text-main);
}
.secure-form .math-row input { max-width: 120px; }
.secure-form .btn { margin-top: 1.5rem; width: 100%; }
.secure-form .form-status {
  text-align: center;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 1rem;
}
.hp-label, .hp, .hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0; width: 0;
}
.secure-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.secure-form .checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
  flex-shrink: 0;
  accent-color: var(--accent-primary);
}
.secure-form .checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.secure-form .math-captcha {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #FFFBEB;
  border-radius: var(--radius-sm);
  border: 1px solid #F6E05E;
}
.secure-form .math-captcha input { max-width: 120px; }
.secure-form .form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}
.free-consultation-badge {
  background: var(--accent-primary);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: -1px;
}

/* TOC */
.toc {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-block: 2rem;
  border-left: 3px solid var(--accent-primary);
}
.toc ol { padding-left: 1.5rem; }

/* Service area note */
.service-area-note {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-primary);
  padding: 1.5rem 2rem;
  margin-block: 2rem;
  text-align: center;
}
.service-area-note p { margin: 0; font-size: 1rem; color: var(--text-main); }
.service-area-note strong { color: var(--bg-dark); }

/* ══════════════════════════════════════ */
/* FOOTER                                */
/* ══════════════════════════════════════ */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding-block: 4rem;
  font-size: 0.95rem;
  border-top: 3px solid var(--accent-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h2 { color: white; border: 0; font-size: 1.3rem; }
.site-footer h2::after { display: none; }
.site-footer a {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
}
.site-footer a:hover { color: white; }
.footer-office-hours {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}
.footer-service-area {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-top: 0.25rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.mobile-call-cta { display: none; }

/* ── Social Proof / Trust Bar ── */
.trust-bar {
  background: var(--bg-dark);
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--accent-primary);
}
.trust-bar .shell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}
.trust-bar-rating {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1;
}
.trust-bar-stars {
  color: #f6b93b;
  font-size: 1rem;
  letter-spacing: 1px;
}
.trust-bar-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}
.trust-bar-label strong {
  color: #fff;
  font-size: 0.9rem;
  display: block;
}
.trust-bar-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}
.trust-bar-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.trust-bar-cta:hover { color: #fff; }
.trust-bar-cta svg { width: 16px; height: 16px; }

/* ── Review Platform Badges ── */
.review-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.platform-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.platform-badge .rating-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--bg-dark);
  line-height: 1;
}
.platform-badge .rating-stars {
  color: #f6b93b;
  font-size: 1.25rem;
  margin: 0.5rem 0;
  letter-spacing: 2px;
}
.platform-badge .platform-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.platform-badge .review-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.platform-badge .platform-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}
.platform-badge .platform-link:hover { text-decoration: underline; }

/* Review cards with stars */
.review-card .review-stars {
  color: #f6b93b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}
.review-card .review-content p {
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* ── Press & News ── */
.press-section {
  background: var(--bg-body);
  padding-block: var(--space-md);
}
.press-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.press-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.press-logo img { max-width: 100px; height: auto; }
.press-logo span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.press-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.press-body h3 a {
  color: var(--text-main);
  text-decoration: none;
}
.press-body h3 a:hover { color: var(--accent-primary); }
.press-body .press-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.press-body .press-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* ══════════════════════════════════════ */
/* RESPONSIVE                            */
/* ══════════════════════════════════════ */

@media (max-width: 960px) {

  .footer-grid,
  .service-cards,
  .reviews-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-topbar { display: none; }

  .nav-inner {
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 12px 24px rgba(27,42,58,0.15);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    margin: 0;
    z-index: 999;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    align-items: stretch;
  }

  .primary-nav li > a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
  }

  .primary-nav li > a:hover,
  .primary-nav li > a[aria-current="page"] {
    background: rgba(26,122,92,0.2);
    color: white;
  }

  .has-panel:hover .panel { display: none; }

  .panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent-primary);
    padding: 0 0 0 1rem;
    min-width: unset;
    display: flex !important;
    background: transparent;
  }

  .panel a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
  }
  .panel a:hover {
    background: rgba(26,122,92,0.2);
    color: white;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    width: 40px; height: 40px;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
  }
  .nav-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }

  .brand-sub { display: none; }

  .mobile-call-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--accent-primary);
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2000;
    font-size: 0.9rem;
  }

  .attorney-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .attorney-photo-wrap img {
    max-width: 260px;
    margin-inline: auto;
  }
  .attorney-details-grid {
    grid-template-columns: 1fr;
  }
  .attorney-detail-card { text-align: left; }
  .attorney-cta { flex-direction: column; align-items: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .secure-form .form-row { grid-template-columns: 1fr; }

  .home-hero { padding-block: 4rem; }
  .hero-glass { padding: 2rem 1.5rem; max-width: 100%; }
  .trust-badges { flex-direction: column; gap: 0.5rem; align-items: center; }
  .secure-form .form-row-2col { grid-template-columns: 1fr; }

  .trust-bar .shell { gap: 1.5rem; text-align: center; justify-content: center; }
  .trust-bar-divider { display: none; }
  .review-platforms { grid-template-columns: 1fr; }
  .press-card { grid-template-columns: 1fr; text-align: center; }
  .press-logo { flex-direction: row; justify-content: center; }
}
