/* ==========================================================================
   JANTA JUSTICE — Header & Promotion Ads
   ========================================================================== */

:root {
  /* Brand palette — forest green & bronze (logo) */
  --white: #FFFFFF;
  --navy: #0B3D2E;
  --navy-hover: #0F4D3A;
  --bronze: #A67C52;
  --bronze-hover: #8B6914;
  --orange: #A67C52;
  --orange-hover: #8B6914;
  /* Legacy aliases kept for existing component styles */
  --green: #0B3D2E;
  --green-hover: #0F4D3A;
  --gold: #A67C52;
  --gold-hover: #8B6914;
  --text: #222222;
  --text-muted: #5A6672;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-scroll: 0 2px 16px rgba(0, 0, 0, 0.08);

  --cream: #FDFCF8;

  --font-brand: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --radius: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: #F7F9FB;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-scroll);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-row--main {
  min-height: 72px;
  padding: 10px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand--compact img {
  width: 56px;
  height: 56px;
}

.brand--footer img {
  width: 72px;
  height: 72px;
}

.brand--compact {
  gap: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-name .brand-cap {
  font-size: 1.15em;
  line-height: 0.9;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: rgba(11, 61, 46, 0.06);
}

.nav-link.active {
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(166, 124, 82, 0.1);
  color: var(--green);
}

/* Header auth buttons */
.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-header--ghost {
  color: var(--text);
  background: transparent;
}

.btn-header--ghost:hover {
  color: var(--green);
  background: rgba(11, 61, 46, 0.06);
}

.btn-header--outline {
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
}

.btn-header--outline:hover {
  background: rgba(11, 61, 46, 0.06);
}

.btn-header--gold {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(166, 124, 82, 0.25);
}

.btn-header--gold:hover {
  background: var(--gold-hover);
}

.btn-header--green {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 2px 8px rgba(11, 61, 46, 0.2);
}

.btn-header--green:hover {
  background: var(--green-hover);
}

.btn-header--block {
  width: 100%;
}

.btn-header--sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-header:focus-visible,
.btn-find-advocate:focus-visible,
.btn-filter-toggle:focus-visible,
.btn-result:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* User menu */
.header-user-menu {
  position: relative;
  flex-shrink: 0;
}

.header-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-user-toggle:hover,
.header-user-menu.open .header-user-toggle {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.header-user-toggle .chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.header-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.header-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-name--compact {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 140px;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

.header-user-menu.open .header-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user-dropdown a,
.header-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.header-user-dropdown a:hover,
.header-user-dropdown button:hover {
  background: rgba(166, 124, 82, 0.1);
  color: var(--green);
}

/* Minimal header (auth / dashboard) */
.site-header--minimal .header-row--main {
  min-height: 64px;
}

.header-minimal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}

.header-minimal-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.header-minimal-link:hover {
  color: var(--green);
  background: rgba(11, 61, 46, 0.06);
}

.header-minimal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-user-greeting {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-actions--user {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.btn-search {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.btn-search:hover {
  background: var(--gold-hover);
}

.btn-search--block {
  width: 100%;
  margin-top: 8px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  margin-left: auto;
  transition: background var(--transition);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle:hover {
  background: rgba(11, 61, 46, 0.06);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.mobile-drawer.open {
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--white);
  padding: 20px;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer-panel,
  .mobile-drawer-backdrop,
  .mobile-toggle span {
    transition: none;
  }
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-close {
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.mobile-drawer-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(11, 61, 46, 0.06);
  color: var(--green);
}

.mobile-accordion summary {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-accordion summary::-webkit-details-marker {
  display: none;
}

.mobile-accordion a {
  display: flex;
  align-items: center;
  padding: 10px 14px 10px 28px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  min-height: 44px;
}

.mobile-accordion a:hover {
  color: var(--green);
  background: rgba(11, 61, 46, 0.04);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

[data-header-auth-guest][hidden],
[data-header-auth-user][hidden],
.mobile-auth-hidden {
  display: none !important;
}

.mobile-actions .btn-header--block {
  min-height: 44px;
}

/* ==========================================================================
   PROMOTION ADS
   ========================================================================== */

.promotion-ads {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(166, 124, 82, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(145deg, #0B3D2E 0%, #062820 45%, #041A14 100%);
  padding: 60px 24px 80px;
  overflow: hidden;
  border-bottom: none;
}

.promotion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.promotion-content {
  max-width: 520px;
}

.promotion-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.promotion-title-gold {
  color: var(--gold);
  font-style: italic;
}

.promotion-title-white {
  color: var(--white);
  display: block;
}

.promotion-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
  max-width: 420px;
  line-height: 1.6;
}

.promotion-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.promotion-trust li strong {
  color: var(--gold);
  font-weight: 700;
}

.promotion-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 440px;
}

.promotion-search input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.promotion-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.promotion-search input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.14);
}

.promotion-search .btn-promo {
  flex-shrink: 0;
}

.promotion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.btn-promo--primary {
  background: var(--gold);
  color: var(--green);
}

.btn-promo--primary:hover {
  background: var(--gold-hover);
}

.btn-promo--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-promo--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(166, 124, 82, 0.1);
}

.promotion-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.promotion-carousel-wrap {
  width: 100%;
  max-width: 520px;
  outline: none;
}

.promotion-carousel-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.35);
  border-radius: var(--radius-lg);
}

.promotion-carousel-wrap--static .advocate-card {
  transform: scale(1);
  opacity: 1;
  width: 170px;
}

.promotion-carousel-wrap--static .promotion-carousel-controls {
  display: none;
}

.promotion-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 320px;
  touch-action: pan-y;
}

.promotion-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.promotion-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background var(--transition), border-color var(--transition);
}

.promotion-nav-btn svg {
  width: 20px;
  height: 20px;
}

.promotion-nav-btn:hover {
  background: rgba(166, 124, 82, 0.25);
  border-color: var(--gold);
  color: var(--gold);
}

.promotion-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promotion-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.promotion-dot::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--transition), transform var(--transition);
}

.promotion-dot.is-active::after,
.promotion-dot:hover::after {
  background: var(--gold);
  transform: scale(1.15);
}

.advocate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  width: 170px;
  flex-shrink: 0;
  transform: scale(0.88);
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.advocate-card--active {
  width: 200px;
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  border-color: rgba(166, 124, 82, 0.5);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.35);
}

.advocate-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
}

.advocate-card--active .advocate-photo {
  height: 155px;
}

.advocate-body {
  padding: 16px 14px 18px;
  text-align: center;
}

.advocate-body h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.advocate-name-row {
  margin-bottom: 4px;
}

.advocate-name-row h3 {
  margin-bottom: 0;
}

.verified-badge--hero {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 10px;
  padding: 2px 6px;
}

.advocate-practice {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}

.advocate-location {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 8px;
}

.hero-promoted-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--gold);
  border-radius: var(--radius-pill);
}

.advocate-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.advocate-book-btn {
  display: none;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.advocate-book-btn:hover {
  background: var(--green-hover);
}

.advocate-card--active .advocate-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .advocate-card {
    transition: none;
  }

  .promotion-dot::after {
    transition: none;
  }
}

.advocate-body p {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.advocate-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
}

.stars svg {
  width: 13px;
  height: 13px;
}

.rating-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.advocate-card > .btn-result--favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  min-width: 32px;
  padding: 6px;
}

.advocate-card > .btn-result--favorite svg {
  width: 16px;
  height: 16px;
}

.advocate-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

button.advocate-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.advocate-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FEATURED ADVOCATES
   ========================================================================== */

.featured-advocates {
  background: var(--cream);
  padding: 40px 24px 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-header {
  text-align: center;
  margin-bottom: 28px;
}

.featured-title-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.featured-title {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-promoted-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(166, 124, 82, 0.2);
  border: 1px solid rgba(166, 124, 82, 0.45);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.featured-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.featured-carousel-wrap {
  outline: none;
}

.featured-carousel-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.25);
  border-radius: var(--radius-lg);
}

.featured-carousel-wrap--static .featured-note {
  display: none;
}

.featured-viewport {
  overflow: hidden;
  width: 100%;
  min-height: 220px;
  margin-bottom: 20px;
}

.featured-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}

.featured-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 4px;
  box-sizing: border-box;
}

.featured-card {
  position: relative;
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.featured-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.featured-card-media {
  position: relative;
  width: 38%;
  min-height: 180px;
  flex-shrink: 0;
  background: #E8EEF2;
}

.featured-photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: top center;
}

.featured-avatar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promoted-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(166, 124, 82, 0.25);
  border: 1px solid rgba(166, 124, 82, 0.5);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.featured-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(11, 61, 46, 0.08);
  border: 1px solid rgba(11, 61, 46, 0.15);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.featured-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.featured-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  border: 1.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.featured-nav-btn svg {
  width: 20px;
  height: 20px;
}

.featured-nav-btn:hover {
  background: rgba(11, 61, 46, 0.06);
  border-color: var(--green);
}

.featured-card-body {
  flex: 1;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.featured-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}

.featured-profile-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  transition: background var(--transition);
}

button.featured-profile-link {
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

.featured-profile-link:hover {
  background: rgba(11, 61, 46, 0.06);
}

.featured-verified {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
  background: rgba(11, 61, 46, 0.08);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.featured-specialty {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: #F0F4F8;
  border-radius: var(--radius-pill);
}

.featured-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.featured-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.featured-price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.featured-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.featured-rating .star-icons {
  color: var(--gold);
  letter-spacing: 1px;
  margin-right: 4px;
}

.featured-rating .review-count {
  font-weight: 400;
  color: var(--text-muted);
}

.featured-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-featured-book {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
  transition: background var(--transition);
}

button.btn-featured-book {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.featured-card > .btn-result--favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.btn-featured-book:hover {
  background: var(--green-hover);
}

.btn-featured-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.featured-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.featured-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.featured-dot::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: #D1D5DB;
  transition: background var(--transition), transform var(--transition);
}

.featured-dot.is-active::after,
.featured-dot:hover::after {
  background: var(--green);
  transform: scale(1.15);
}

.featured-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .featured-track {
    transition: none;
  }

  .featured-dot::after {
    transition: none;
  }
}

/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */

.search-section {
  background: var(--white);
  padding: 20px 24px 48px;
}

.search-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.search-compact {
  margin-bottom: 28px;
}

.search-section-title {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1;
}

.advocate-search-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

.search-input-wrap .field-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: #9CA3AF;
}

.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-filter-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.btn-filter-toggle:hover,
.btn-filter-toggle.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(11, 61, 46, 0.04);
}

.btn-filter-toggle.is-active svg {
  color: var(--green);
}

.search-filters-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition), opacity var(--transition), margin var(--transition);
}

.search-filters-panel.is-open {
  max-height: 320px;
  opacity: 1;
  margin-top: 12px;
}

.search-filters-panel[hidden] {
  display: block;
}

.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px;
  background: #F8F9FA;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.search-field select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235A6672'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: border-color var(--transition);
}

.search-field select:focus {
  border-color: var(--gold);
}

.btn-find-advocate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-find-advocate svg {
  width: 18px;
  height: 18px;
}

.btn-find-advocate:hover {
  background: var(--gold-hover);
}

/* Search results preview */
.search-results-preview {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.results-preview-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
}

.results-preview-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.results-promo-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green) 0%, #062820 100%);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(11, 61, 46, 0.2);
}

.results-promo-banner--advocate {
  position: relative;
  border: 2px solid rgba(166, 124, 82, 0.45);
}

.results-promo-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.btn-result--promo.btn-result--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.btn-result--promo.btn-result--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-result--promo.btn-result--primary {
  background: var(--gold);
  color: var(--green);
  border: none;
}

.btn-result--promo.btn-result--primary:hover {
  filter: brightness(1.05);
}

.results-promo-banner--advocate > .btn-result--favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.results-promo-photo {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.results-promo-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold);
  color: var(--green);
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.results-promo-copy h4 {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.results-promo-copy p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 520px;
  line-height: 1.5;
}

.btn-results-promo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  background: var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-results-promo:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.result-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.result-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.result-card > .btn-result--favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.result-card-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.result-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.result-name-row h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(11, 61, 46, 0.08);
  border-radius: var(--radius-pill);
}

.verified-badge svg {
  width: 14px;
  height: 14px;
}

.result-practice {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.result-rating .stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}

.review-count {
  font-weight: 400;
  color: var(--text-muted);
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-fee {
  font-size: 13px;
  color: var(--text);
}

.result-fee strong {
  color: var(--green);
}

.result-actions {
  display: flex;
  gap: 10px;
}

.btn-result {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

button.btn-result--outline,
button.btn-result--primary {
  appearance: none;
  -webkit-appearance: none;
}

.btn-result--outline {
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
}

.btn-result--outline:hover {
  background: rgba(11, 61, 46, 0.06);
}

.btn-result--primary {
  color: var(--white);
  background: var(--green);
  border: 1.5px solid var(--green);
}

.btn-result--primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background:
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(166, 124, 82, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #0B3D2E 0%, #062820 55%, #041A14 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 24px 0;
  margin-top: 8px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand--footer {
  margin-bottom: 16px;
}

.brand-name--footer {
  color: var(--white);
}

.brand-tagline--footer {
  color: var(--bronze);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  background: var(--bronze);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-col-title {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--bronze);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--bronze);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--bronze);
}

.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--bronze);
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.btn-footer-cta:hover {
  background: var(--bronze-hover);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 24px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--bronze);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1280px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .promotion-ads {
    padding: 48px 24px 64px;
  }

  .promotion-inner {
    gap: 32px;
  }

  .promotion-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .promotion-cards {
    min-height: 320px;
  }

  .promotion-carousel-wrap {
    max-width: 460px;
  }

  .advocate-card {
    width: 155px;
  }

  .advocate-card--active {
    width: 185px;
  }

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

@media (max-width: 1024px) {
  .main-nav,
  .header-auth,
  .header-user-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-row--main {
    min-height: 64px;
  }

  .promotion-ads {
    padding: 40px 20px 56px;
  }

  .promotion-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promotion-title {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
  }

  .promotion-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .promotion-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

  .promotion-trust {
    justify-content: center;
    gap: 10px 16px;
  }

  .promotion-search {
    margin-left: auto;
    margin-right: auto;
  }

  .promotion-actions {
    justify-content: center;
  }

  .promotion-cards {
    width: 100%;
    max-width: 480px;
    min-height: 320px;
    margin-top: 24px;
    margin-inline: auto;
  }

  .promotion-carousel {
    gap: 16px;
  }

  .advocate-card {
    width: 140px;
  }

  .advocate-card--active {
    width: 165px;
  }

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

  .fa-page,
  .public-page {
    padding: 32px 20px 48px;
  }

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

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

  .search-filters-panel.is-open {
    max-height: 480px;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .featured-actions,
  .result-actions {
    flex-direction: column;
  }

  .results-promo-banner {
    flex-wrap: wrap;
  }

  .results-promo-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .promotion-cards {
    min-height: auto;
    overflow: hidden;
  }

  .promotion-carousel-wrap {
    max-width: 100%;
    padding-inline: 0;
  }

  .promotion-carousel {
    gap: 0;
    justify-content: center;
    overflow: visible;
    min-height: auto;
  }

  .promotion-carousel .advocate-card:not(.advocate-card--active) {
    display: none;
  }

  .promotion-carousel .advocate-card--active {
    width: min(280px, 100%);
    margin: 0 auto;
    transform: scale(1);
    opacity: 1;
    z-index: 2;
  }

  .promotion-carousel-wrap--static .advocate-card:not(.advocate-card--active) {
    display: none;
  }

  .promotion-carousel-wrap--static .advocate-card--active {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .featured-slide {
    grid-template-columns: 1fr;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-card-media {
    width: 100%;
    min-height: 160px;
  }

  .featured-photo {
    min-height: 160px;
  }

  .fa-filters,
  .search-filters,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-promo-banner {
    flex-direction: column;
    text-align: center;
  }

  .results-promo-actions {
    flex-direction: column;
  }

  .results-promo-actions .btn-result,
  .btn-results-promo {
    width: 100%;
  }

  .advocate-card > .btn-result--favorite,
  .featured-card > .btn-result--favorite,
  .result-card > .btn-result--favorite {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .btn-result,
  .advocate-book-btn,
  .btn-featured-book,
  .btn-featured-contact {
    min-height: 44px;
  }

  .fa-modal-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 0 16px;
  }

  .header-minimal-nav {
    display: none;
  }

  .header-minimal-actions {
    margin-left: auto;
  }

  .header-user-name--compact {
    display: none;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .brand-name {
    font-size: 14px;
  }

  .promotion-ads {
    padding: 36px 16px 48px;
  }

  .promotion-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  .promotion-subtitle {
    font-size: 15px;
  }

  .promotion-trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .promotion-search {
    flex-direction: column;
    align-items: stretch;
  }

  .promotion-search .btn-promo {
    width: 100%;
  }

  .promotion-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-promo {
    width: 100%;
  }

  .search-section {
    padding: 16px 16px 40px;
  }

  .featured-advocates {
    padding: 28px 16px 24px;
  }

  .featured-avatar {
    display: none;
  }

  .results-promo-banner {
    padding: 28px 24px;
  }

  .results-promo-copy p {
    margin: 0 auto;
  }

  .fa-page {
    padding: 24px 16px 40px;
  }

  .fa-page-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .fa-modal {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .fa-modal-panel {
    padding: 20px 16px;
  }

  .fa-book-field-row {
    grid-template-columns: 1fr;
  }

  .fa-book-field input,
  .fa-book-field select,
  .fa-book-field textarea,
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }

  .fa-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fa-profile-actions .btn-result {
    flex: 1 1 100%;
  }

  .public-page {
    padding: 28px 16px 48px;
  }

  .public-page h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .public-card {
    padding: 18px 16px;
  }

  .search-main-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-main-row .search-input-wrap,
  .search-main-row .btn-find-advocate {
    width: 100%;
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
  }

  .search-input-wrap {
    padding: 0 16px;
  }

  .search-input-wrap input,
  .search-input-wrap input::placeholder {
    font-size: 16px;
    line-height: 1.4;
  }

  .search-input-wrap input {
    height: 100%;
  }

  .search-main-row .btn-find-advocate {
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
  }

  /* Mobile: Find Advocate is enough — hide Filters and its dropdown panel */
  .search-main-row .btn-filter-toggle,
  .search-filters-panel {
    display: none !important;
  }

  .result-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .result-name-row {
    justify-content: center;
  }

  .result-rating {
    justify-content: center;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Find Advocate page */
.fa-page {
  padding: 32px 20px 64px;
  background: var(--cream, #FFFBF5);
  min-height: 60vh;
}

.fa-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.fa-page-header {
  margin-bottom: 28px;
}

.fa-page-header h1 {
  font-family: 'Poppins', sans-serif;
  color: var(--green, #0B3D2E);
  margin: 0 0 8px;
}

.fa-page-header p {
  color: var(--text-muted, #5a6b63);
  margin: 0;
}

.fa-search-form {
  margin-bottom: 24px;
}

.fa-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fa-result-count {
  font-size: 14px;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 16px;
}

.fa-promo-banner {
  margin-bottom: 20px;
}

.fa-promo-banner .results-promo-banner {
  margin-bottom: 0;
}

.fa-results-grid .result-card {
  margin-bottom: 0;
}

.fa-result-card .result-actions {
  flex-wrap: wrap;
}

.btn-result--gold {
  background: var(--gold, #A67C52);
  color: #fff;
  border: none;
}

.btn-result--gold:hover {
  filter: brightness(1.05);
}

.btn-result--favorite {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  padding: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.btn-result--favorite svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-result--favorite:hover {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.06);
}

.btn-result--favorite.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(225, 29, 72, 0.1);
}

.fa-profile-actions .btn-result--favorite {
  width: auto;
  min-width: 44px;
  flex: 0 0 auto;
}

.results-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted, #5a6b63);
}

.results-empty a,
.results-empty-clear {
  color: var(--green, #0B3D2E);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.results-empty-clear:hover {
  color: var(--green-hover, #0F4D3A);
}

.btn-featured-contact--link {
  text-decoration: none;
  cursor: pointer;
}

.btn-featured-contact--link:hover {
  opacity: 0.85;
}

/* Profile modal (public find-advocate) */
.fa-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fa-modal.is-open {
  display: flex;
}

.fa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 46, 0.5);
}

.fa-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.fa-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted, #5a6b63);
  line-height: 1;
}

.fa-book-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #E5E7EB);
}

.fa-book-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border, #E5E7EB);
}

.fa-book-header-text {
  flex: 1;
  min-width: 0;
}

.fa-book-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green, #0B3D2E);
  margin: 0 0 4px;
  padding-right: 0;
}

.fa-book-advocate-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0 0 4px;
}

.fa-book-advocate-meta {
  font-size: 13px;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 6px;
}

.fa-book-fee {
  font-size: 14px;
  font-weight: 600;
  color: var(--green, #0B3D2E);
  margin: 0;
}

.fa-book-advocate-stats {
  font-size: 13px;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 6px;
}

.fa-book-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.fa-book-step-indicator {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text-muted, #5a6b63);
  background: rgba(11, 61, 46, 0.06);
  border: 1px solid var(--border, #E5E7EB);
}

.fa-book-step-indicator.is-active {
  color: var(--white, #fff);
  background: var(--green, #0B3D2E);
  border-color: var(--green, #0B3D2E);
}

.fa-book-step-indicator.is-done {
  color: var(--green, #0B3D2E);
  border-color: rgba(11, 61, 46, 0.25);
}

.fa-book-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fa-book-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.fa-book-summary {
  background: rgba(11, 61, 46, 0.04);
  border: 1px solid rgba(11, 61, 46, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.fa-book-summary-list {
  margin: 0;
}

.fa-book-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(11, 61, 46, 0.08);
}

.fa-book-summary-list > div:last-child {
  border-bottom: none;
}

.fa-book-summary-list dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted, #5a6b63);
}

.fa-book-summary-list dd {
  margin: 0;
  text-align: right;
  color: var(--text, #1a1a1a);
}

.fa-book-summary-total {
  margin-top: 4px;
  padding-top: 10px !important;
  border-top: 1px solid rgba(11, 61, 46, 0.15) !important;
  font-weight: 700;
}

.fa-book-summary-total dd {
  color: var(--green, #0B3D2E);
}

.fa-book-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fa-book-payment-option {
  flex: 1;
  min-width: 90px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 10px;
  cursor: pointer;
  background: var(--white, #fff);
}

.fa-book-payment-option:has(input:checked) {
  border-color: var(--green, #0B3D2E);
  background: rgba(11, 61, 46, 0.06);
  color: var(--green, #0B3D2E);
}

.fa-book-payment-option input {
  margin: 0;
}

.fa-book-step-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.fa-book-back-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green, #0B3D2E);
  cursor: pointer;
  font-family: inherit;
}

.fa-book-back-link:hover {
  text-decoration: underline;
}

.fa-book-confirmed-id {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 12px;
}

.fa-book-confirmed-details {
  font-size: 14px;
  color: var(--text, #1a1a1a);
  margin-bottom: 20px;
  line-height: 1.5;
}

.fa-book-confirmed-details p {
  margin: 0 0 6px;
}

.fa-book-confirmed-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fa-book-confirmed-actions .btn-result {
  width: 100%;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fa-book-form .btn-result,
.fa-book-step-actions .btn-result,
#fa-book-pay.btn-result {
  min-height: 44px;
}

.fa-book-form .btn-result.is-loading,
#fa-book-pay.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fa-book-guest-note {
  font-size: 13px;
  color: var(--green, #0B3D2E);
  background: rgba(11, 61, 46, 0.06);
  border: 1px solid rgba(11, 61, 46, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
}

.fa-book-guest-note a {
  color: inherit;
  font-weight: 700;
}

.fa-book-field-hint {
  font-size: 12px;
  color: var(--text-muted, #5a6b63);
  margin: -4px 0 12px;
}

.fa-book-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text, #1a1a1a);
}

.fa-book-mode-toggle {
  display: flex;
  gap: 8px;
}

.fa-book-mode-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--green, #0B3D2E);
  background: var(--white, #fff);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition, 0.2s ease), border-color var(--transition, 0.2s ease), color var(--transition, 0.2s ease);
}

.fa-book-mode-btn.is-active {
  color: var(--white, #fff);
  background: var(--green, #0B3D2E);
  border-color: var(--green, #0B3D2E);
}

.fa-book-mode-btn:hover:not(.is-active) {
  border-color: var(--green, #0B3D2E);
  background: rgba(11, 61, 46, 0.04);
}

.fa-book-error {
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
  margin: 0 0 8px;
}

.fa-book-form .btn-result.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fa-book-success-view {
  text-align: center;
  padding: 24px 8px 8px;
}

.fa-book-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--green, #0B3D2E);
  margin: 0 0 8px;
}

.fa-book-success-text {
  font-size: 14px;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 20px;
  line-height: 1.5;
}

.fa-book-success-view .btn-result {
  width: 100%;
}

.fa-book-form p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text, #1a1a1a);
}

.fa-book-field {
  margin-bottom: 14px;
}

.fa-book-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text, #1a1a1a);
}

.fa-book-field input,
.fa-book-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  font-family: inherit;
}

.fa-book-form .btn-result {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .fa-book-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fa-book-payment-methods {
    flex-direction: column;
  }

  .fa-book-payment-option {
    width: 100%;
  }
}

.fa-profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.fa-profile-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.fa-profile-header-text {
  flex: 1;
  min-width: 0;
}

.verified-badge--profile {
  margin-bottom: 8px;
}

.fa-profile-location {
  font-size: 13px;
  color: var(--text-muted, #5a6b63);
  margin: 4px 0 0;
}

.fa-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.fa-profile-stat {
  background: var(--cream, #F8F6F1);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.fa-profile-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--green, #0B3D2E);
  line-height: 1.2;
}

.fa-profile-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #5a6b63);
  margin-top: 4px;
  line-height: 1.3;
}

.fa-profile-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #E5E7EB);
}

.fa-profile-rating-stars {
  color: var(--gold, #A67C52);
  letter-spacing: 1px;
}

.fa-profile-rating-count {
  font-size: 13px;
  color: var(--text-muted, #5a6b63);
}

.fa-profile-details {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.fa-profile-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 14px;
}

.fa-profile-details dt {
  font-weight: 600;
  color: var(--text-muted, #5a6b63);
}

.fa-profile-details dd {
  margin: 0;
  color: var(--text, #1a1a1a);
}

.fa-profile-about,
.fa-profile-education,
.fa-profile-practice-areas,
.fa-profile-reviews {
  margin-bottom: 20px;
}

.fa-profile-about h4,
.fa-profile-education h4,
.fa-profile-practice-areas h4,
.fa-profile-reviews h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green, #0B3D2E);
  margin: 0 0 10px;
}

.fa-profile-about p,
.fa-profile-education p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted, #5a6b63);
  margin: 0;
}

.fa-profile-practice-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted, #5a6b63);
}

.fa-profile-review {
  background: #F9FAFB;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.fa-profile-review:last-child {
  margin-bottom: 0;
}

.fa-profile-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.fa-profile-review-head strong {
  font-size: 14px;
  color: var(--green, #0B3D2E);
}

.fa-profile-review-stars {
  color: var(--gold, #A67C52);
  font-size: 13px;
  letter-spacing: 1px;
}

.fa-profile-review-case {
  font-size: 12px;
  color: var(--text-muted, #5a6b63);
  margin: 0 0 6px;
}

.fa-profile-review-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text, #374151);
  margin: 0;
  font-style: italic;
}

.fa-profile-body h3 {
  color: var(--green, #0B3D2E);
  margin: 0 0 8px;
}

.fa-profile-practice {
  font-weight: 600;
  color: var(--gold, #A67C52);
}

.fa-profile-fee {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.fa-profile-fee span {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted, #5a6b63);
}

.fa-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border, #E5E7EB);
}

.fa-profile-actions .btn-result {
  flex: 1;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
}

/* Public content pages */
.public-page {
  padding: 40px 20px 64px;
  background: var(--cream, #FFFBF5);
  min-height: 60vh;
}

.public-page-inner {
  max-width: 800px;
  margin: 0 auto;
}

.public-page h1 {
  font-family: 'Poppins', sans-serif;
  color: var(--green, #0B3D2E);
  margin: 0 0 12px;
}

.public-page h2 {
  color: var(--green, #0B3D2E);
  margin: 32px 0 12px;
  scroll-margin-top: 100px;
}

.public-page p, .public-page li {
  color: #333;
  line-height: 1.7;
}

.public-card {
  background: #fff;
  border: 1px solid rgba(11, 61, 46, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.contact-form .search-field {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(11, 61, 46, 0.2);
  border-radius: 8px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-contact-submit {
  background: var(--green, #0B3D2E);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-contact-submit:hover {
  filter: brightness(1.1);
}
