/* Legal Forms & Services hub — Lawyer Directory theme */
:root {
  --lfs-navy: #0a1f5c;
  --lfs-blue: #0b5ed7;
  --lfs-blue-light: #1d72f2;
  --lfs-blue-soft: #eef3ff;
  --lfs-text: #111827;
  --lfs-muted: #6b7280;
  --lfs-border: #e5e7eb;
  --lfs-panel: #f4f7fc;
  --lfs-white: #ffffff;
  --lfs-radius: 12px;
}

.lfs-page {
  font-family: 'Outfit', sans-serif;
  color: var(--lfs-text);
  background: var(--lfs-white);
}

.lfs-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb */
.lfs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lfs-muted);
  padding: 18px 0 8px;
  flex-wrap: wrap;
}

.lfs-breadcrumb a {
  color: var(--lfs-muted);
  text-decoration: none;
}

.lfs-breadcrumb a:hover {
  color: var(--lfs-blue);
}

.lfs-breadcrumb span.sep {
  color: #cbd5e1;
}

/* Hero */
.lfs-hero {
  background-image:
    linear-gradient(115deg, rgba(6, 15, 46, 0.92) 0%, rgba(8, 20, 58, 0.82) 45%, rgba(10, 31, 92, 0.65) 100%),
    url('/images/content.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--lfs-border);
  position: relative;
  overflow: hidden;
}

.lfs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lfs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  min-height: 85vh;
  position: relative;
  z-index: 1;
}

.lfs-hero h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}

.lfs-hero-sub {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #7fb3ff;
  margin: 0 0 18px;
}

.lfs-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 520px;
}

.lfs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lfs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--lfs-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.lfs-btn-primary:hover {
  background: var(--lfs-blue-light);
  color: #fff;
}

.lfs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #fff;
  color: var(--lfs-blue);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--lfs-blue);
  transition: all 0.15s;
}

.lfs-btn-outline:hover {
  background: var(--lfs-blue-soft);
  color: var(--lfs-blue);
}

.lfs-hero .lfs-btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.lfs-hero .lfs-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.lfs-hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 31, 92, 0.12);
  height: 460px;
}

.lfs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats bar */
.lfs-stats {
  background: #dce8f8;
  padding: 28px 0;
}

.lfs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.lfs-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--lfs-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.lfs-stat-label {
  font-size: 13px;
  color: var(--lfs-muted);
  line-height: 1.4;
}

/* Split content sections */
.lfs-split {
  padding: 56px 0;
}

.lfs-split--alt {
  background: var(--lfs-panel);
}

.lfs-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lfs-split-inner.reverse .lfs-split-media {
  order: 2;
}

.lfs-split-inner.reverse .lfs-split-content {
  order: 1;
}

.lfs-split-media {
  border-radius: var(--lfs-radius);
  overflow: hidden;
  height: 280px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.lfs-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfs-split-media.round img {
  border-radius: 50%;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  display: block;
}

.lfs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lfs-blue);
  margin-bottom: 10px;
  display: block;
}

.lfs-split-content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--lfs-navy);
}

.lfs-split-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--lfs-muted);
  margin: 0 0 20px;
}

.lfs-entity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.lfs-entity-pill {
  padding: 8px 14px;
  border: 1px solid var(--lfs-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--lfs-text);
}

/* Resource cards */
.lfs-resources {
  padding: 56px 0;
  background: #fff;
}

.lfs-resources h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 36px;
  color: var(--lfs-navy);
}

.lfs-resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lfs-res-card {
  background: #fff;
  border: 1px solid var(--lfs-border);
  border-radius: var(--lfs-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.lfs-res-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--lfs-blue-soft);
  border-bottom: 1px solid var(--lfs-border);
}

.lfs-res-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #061d48, #0b5ed7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.lfs-res-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--lfs-navy);
}

.lfs-res-body {
  padding: 18px 20px 22px;
}

.lfs-res-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lfs-res-links li {
  border-bottom: 1px solid #f1f5f9;
}

.lfs-res-links li:last-child {
  border-bottom: none;
}

.lfs-res-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--lfs-blue);
  text-decoration: none;
}

.lfs-res-links a:hover {
  color: var(--lfs-blue-light);
}

.lfs-res-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* Need help CTA */
.lfs-help {
  padding: 48px 0 64px;
  background: var(--lfs-panel);
  position: relative;
}

.lfs-help::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b5ed7' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.lfs-help-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.lfs-help h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--lfs-navy);
}

.lfs-help p {
  font-size: 14px;
  color: var(--lfs-muted);
  margin: 0 0 24px;
}

.lfs-help-form {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lfs-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.lfs-help-form input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.lfs-help-form button {
  background: var(--lfs-blue);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lfs-help-form button:hover {
  background: var(--lfs-blue-light);
}

@media (max-width: 992px) {
  .lfs-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
  }

  .lfs-hero-media {
    height: 320px;
  }

  .lfs-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lfs-split-inner {
    grid-template-columns: 1fr;
  }

  .lfs-split-inner.reverse .lfs-split-media,
  .lfs-split-inner.reverse .lfs-split-content {
    order: unset;
  }

  .lfs-resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lfs-hero-media {
    height: 240px;
  }

  .lfs-stats-grid {
    grid-template-columns: 1fr;
  }

  .lfs-help-form {
    flex-direction: column;
  }

  .lfs-help-form button {
    justify-content: center;
  }
}
