/* ============================================
   HBHK Law — Design System & Styles
   Navy: #0A1F3F  Gold: #B8860B  Cream: #FAF8F5
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #1A1A1A;
  background: #FAF8F5;
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- CSS Variables --- */
:root {
  --navy: #0A1F3F;
  --navy-light: #122D54;
  --navy-dark: #071528;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --cream: #FAF8F5;
  --cream-dark: #F5F0E8;
  --text: #1A1A1A;
  --text-light: #555555;
  --text-muted: #999999;
  --border: #E8E4DF;
  --sans: 'Source Sans 3', -apple-system, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --container: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-light);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.6;
}

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

/* --- Buttons --- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-secondary:hover {
  background: rgba(250,248,245,0.1);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10,31,63,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(10,31,63,0.97);
  border-bottom-color: rgba(184,134,11,0.3);
  padding: 12px 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: block;
}
.navbar-logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s;
}
.navbar.scrolled .navbar-logo-img {
  height: 75px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  margin-left: 8px;
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--cream);
  display: block;
  margin: 6px 0;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 100;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  color: var(--cream);
  font-weight: 500;
}

/* --- Homepage Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 40%, #0D2440 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-circle {
  position: absolute;
  border: 1px solid rgba(184,134,11,0.1);
  border-radius: 50%;
}
.hero-circle-1 { top: 15%; right: 10%; width: 300px; height: 300px; opacity: 0.5; }
.hero-circle-2 { bottom: 20%; left: 5%; width: 200px; height: 200px; opacity: 0.4; }
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-content {
  max-width: 900px;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.hero h1 { color: var(--cream); margin-bottom: 28px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(250,248,245,0.75);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { font-size: 16px; padding: 16px 40px; }

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-up-1 { animation-delay: 0.2s; }
.fade-up-2 { animation-delay: 0.4s; }
.fade-up-3 { animation-delay: 0.6s; }
.fade-up-4 { animation-delay: 0.8s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Inner Page Hero --- */
.page-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 40%, #0D2440 100%);
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 {
  color: var(--cream);
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 56px);
}
.page-hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(250,248,245,0.7);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero-breadcrumbs {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(250,248,245,0.5);
  margin-bottom: 24px;
}
.page-hero-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.page-hero-breadcrumbs li::before {
  content: '›';
  margin-right: 8px;
  color: rgba(250,248,245,0.3);
}
.page-hero-breadcrumbs li:first-child::before {
  display: none;
}
.page-hero-breadcrumbs a {
  color: var(--gold-light);
  transition: color 0.2s;
}
.page-hero-breadcrumbs a:hover {
  color: var(--cream);
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 24px;
  background: var(--navy);
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-section h2 {
  color: var(--cream);
  margin-bottom: 16px;
}
.cta-section p,
.cta-section-text {
  font-family: var(--serif);
  color: rgba(250,248,245,0.65);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-section-heading {
  color: var(--cream);
  margin-bottom: 16px;
}
.cta-buttons,
.cta-section-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section .btn-outline {
  color: var(--cream);
  border-color: var(--cream);
}
.cta-section .btn-outline:hover {
  background: rgba(250,248,245,0.1);
  color: var(--cream);
}

/* --- Content Section (inner pages) --- */
.content-section {
  padding: 80px 24px;
}
.content-section.alt {
  background: var(--cream-dark);
}
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}
.content-section h2 {
  margin-bottom: 24px;
}
.content-section h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}
.content-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}
.content-section ul, .content-section ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-light);
  line-height: 1.8;
}
.content-section li {
  margin-bottom: 8px;
}

/* Content Grid (2 column layout) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 12px;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 16px;
}

.feature-card p:last-child,
.feature-card ul:last-child {
  margin-bottom: 0;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
}
.sidebar-card li {
  margin-bottom: 8px;
}
.sidebar-card a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s;
  display: block;
  padding: 6px 0;
}
.sidebar-card a:hover {
  color: var(--gold);
}

/* --- Trust Bar --- */
.trust-bar {
  background: #0F2847;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184,134,11,0.2);
  overflow: hidden;
}
.trust-scroll {
  display: flex;
  animation: trustScroll 30s linear infinite;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  white-space: nowrap;
}
.trust-item-diamond { color: var(--gold-light); font-size: 10px; }
.trust-item-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,248,245,0.7);
}
@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Practice Area Cards --- */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.practice-card {
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.35s;
}
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,31,63,0.08);
  border-color: transparent;
}
.practice-card:hover::before { width: 100%; }
.practice-card-icon { font-size: 28px; margin-bottom: 16px; }
.practice-card h3 { margin-bottom: 10px; }
.practice-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }
.practice-card-link {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Sub-topic Cards --- */
.subtopics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.subtopic-card {
  background: #fff;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.subtopic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,31,63,0.08);
  border-color: var(--gold);
}
.subtopic-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.subtopic-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.subtopic-card .practice-card-link {
  margin-top: 0;
}

/* --- Stats Strip --- */
.stats-strip {
  background: var(--navy);
  padding: 80px 24px;
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat-number {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(250,248,245,0.6);
  margin-top: 8px;
}

/* --- Attorney Cards --- */
.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.attorney-card { text-align: center; transition: transform 0.3s; }
.attorney-card:hover { transform: translateY(-6px); }
.attorney-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  overflow: hidden;
  transition: all 0.3s;
}
.attorney-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
  background-color: var(--navy); /* Ensure image covers initials if it has transparency */
}
.attorney-card:hover .attorney-avatar {
  box-shadow: 0 8px 24px rgba(10,31,63,0.2);
}
.attorney-initials {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-light);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attorney-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.attorney-focus { font-size: 15px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.attorney-credential { font-family: var(--sans); font-size: 12px; color: var(--text-muted); font-style: italic; }

/* --- Attorney Profile Page --- */
.attorney-profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}
.attorney-profile-sidebar {
  position: sticky;
  top: 100px;
  text-align: center;
}
.attorney-profile-sidebar .attorney-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}
.attorney-profile-sidebar .attorney-initials {
  font-size: 56px;
}
.attorney-profile-sidebar h2 {
  font-size: 28px;
  margin-bottom: 4px;
}
.attorney-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.attorney-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
}
.attorney-meta-icon {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.attorney-profile-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.attorney-profile-content h3:first-child {
  margin-top: 0;
}
.attorney-profile-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* --- Courthouse Callout --- */
.courthouse {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}
.courthouse-icon { font-size: 40px; margin-bottom: 20px; }
.courthouse p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 24px;
}
.courthouse-detail {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  padding: 36px 32px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.testimonial-stars { color: var(--gold-light); font-size: 18px; margin-bottom: 12px; }
.testimonial-text {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 15px; }
.testimonial-type { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }

/* --- Google Review Callout --- */
.review-callout {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}
.review-stars {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
}
.review-rating {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
}
.review-count {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.review-source {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Case Results --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-top: 3px solid var(--gold);
}
.result-type {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.result-outcome {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.result-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
  padding: 100px 24px;
  background: var(--navy);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h2 { color: var(--cream); margin-bottom: 20px; }
.contact-info p { color: rgba(250,248,245,0.65); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-detail-icon { font-size: 20px; }
.contact-detail-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact-detail-value { color: var(--cream); font-size: 18px; font-weight: 600; }
.contact-detail-text { color: rgba(250,248,245,0.8); font-size: 15px; }

/* Contact Page Layout */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
.contact-page-map {
  min-height: 500px;
}
.contact-page-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-page-form {
  padding: 48px 40px;
  background: #fff;
}
.contact-page-form h2 {
  margin-bottom: 8px;
}
.contact-page-form .section-subtitle {
  margin: 0 0 24px;
}

/* Directions Section */
.directions-section {
  background: var(--cream-dark);
  padding: 60px 24px;
}
.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.direction-card {
  background: #fff;
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.direction-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
}
.direction-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Form */
.contact-form-wrap {
  background: rgba(250,248,245,0.05);
  border: 1px solid rgba(250,248,245,0.1);
  padding: 36px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input {
  font-family: var(--sans);
  font-size: 15px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D1CEC8;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: #999; }
textarea.form-input { resize: vertical; }
.form-submit { width: 100%; font-size: 16px; padding: 16px; }
.form-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,248,245,0.4);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
}

/* Light form (on white/cream backgrounds) */
.form-light .contact-form-wrap {
  background: #fff;
  border-color: var(--border);
}
.form-light .form-disclaimer {
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-category {
  margin-bottom: 40px;
}
.faq-category h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: #fff;
}
.faq-question {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--gold);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
}
.timeline-year {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Awards Grid --- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.award-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s;
}
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,31,63,0.06);
}
.award-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.award-card h4 {
  margin-bottom: 8px;
}
.award-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Resource Cards --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: all 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,31,63,0.08);
  border-color: var(--gold);
}
.resource-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.resource-card h3 {
  margin-bottom: 12px;
}
.resource-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: all 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,31,63,0.08);
  border-color: var(--gold);
}
.blog-card-date {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.blog-card:hover h3 {
  color: var(--gold);
}
.blog-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card .practice-card-link {
  margin-top: 0;
}

/* --- Service Area Page --- */
.key-facts-list {
  list-style: none;
  padding: 0;
}
.key-facts-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}
.key-facts-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* --- Community Section --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.community-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
}
.community-card h4 {
  margin-bottom: 12px;
}
.community-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- How We Work Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step-card {
  text-align: center;
  counter-increment: step;
}
.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step-card h4 {
  margin-bottom: 8px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Disclaimer --- */
.disclaimer {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  padding: 60px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: block;
  margin-bottom: 24px;
}
.footer-logo-img {
  height: 120px;
  width: auto;
  display: block;
}
.footer-address { font-size: 14px; color: rgba(250,248,245,0.5); line-height: 1.7; }
.footer-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(250,248,245,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.08);
  padding-top: 24px;
}
.footer-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,248,245,0.3);
  line-height: 1.7;
  text-align: center;
}

/* --- Mobile Call Bar --- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--gold);
  padding: 14px 20px;
  display: none;
  text-align: center;
}
.mobile-call-bar a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* --- Section Spacing --- */
.section { padding: 100px 24px; }

/* --- Responsive --- */
@media (max-width: 1199px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .attorney-profile-grid {
    grid-template-columns: 1fr;
  }
  .attorney-profile-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-call-bar { display: block; }
  .hero-content { padding: 100px 20px 60px; }
  .page-hero { padding: 120px 20px 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-page-map { min-height: 300px; }
  .contact-page-form { padding: 32px 24px; }
  .content-section { padding: 60px 20px; }
  .cta-section { padding: 60px 20px; }
  .directions-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 60px; }
}

@media (min-width: 769px) {
  .mobile-toggle { display: none; }
}

/* --- Exit Intent Modal --- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,63,0.7);
  backdrop-filter: blur(4px);
}
.exit-modal-content {
  position: relative;
  background: var(--cream);
  padding: 48px 40px;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.exit-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.exit-modal-close:hover {
  color: var(--navy);
}
.exit-modal-content h3 {
  margin-bottom: 12px;
}
.exit-modal-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}
