/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d4af37;
  --primary-dark: #b8941e;
  --primary-light: #f0d474;
  --accent-color: #ffd700;
  --secondary-color: #888888;
  --success-color: #d4af37;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --background: #0a0a0a;
  --card-background: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #2a2a2a;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  color: white;
  padding: 4rem 0 5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(20, 20, 20, 0.9) 50%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(212,175,55,0.05)" width="50" height="50"/><rect fill="rgba(212,175,55,0.05)" x="50" y="50" width="50" height="50"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-image {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8941e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  color: #e0e0e0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Search Section */
.search-section {
  margin: -3rem auto 3rem;
  position: relative;
  z-index: 10;
}

.search-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl), var(--gold-glow);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  backdrop-filter: blur(10px);
}

.search-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input,
.form-group select {
  background-color: #0f0f0f;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background-color: #1a1a1a;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #000000;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.4), var(--gold-glow);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--primary-color) 100%);
  box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Results Section */
.results-section {
  margin: 3rem 0;
}

.results-header {
  margin-bottom: 2rem;
}

.results-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.result-count {
  color: var(--text-secondary);
  font-size: 1rem;
}

.results-group {
  margin-bottom: 3rem;
}

.results-group-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.results-list {
  display: grid;
  gap: 1.5rem;
}

/* Result Cards */
.result-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.result-card:hover {
  box-shadow: var(--shadow-xl), var(--gold-glow);
  transform: translateY(-4px);
  border-color: var(--primary-dark);
}

.result-card:hover::before {
  opacity: 1;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.result-name {
  font-size: 1.5rem;
  color: var(--text-primary);
  flex: 1;
}

.result-type-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.result-type-badge.lawyer {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Rating */
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--warning-color);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.rating-number {
  font-weight: 600;
  color: var(--text-primary);
}

.review-count {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Specialties */
.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.specialty-tag {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.specialty-tag:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

/* Result Details */
.result-details {
  color: var(--text-primary);
  line-height: 1.8;
}

.result-details p {
  margin-bottom: 0.5rem;
}

.result-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.result-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.result-details a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.bio {
  margin-top: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.firm-info {
  margin-top: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.no-results p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  color: white;
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
}

footer p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.disclaimer {
  font-size: 0.875rem;
  opacity: 0.75;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 3rem 0 4rem;
    min-height: 400px;
  }

  .hero-background {
    background-position: 65% center;
  }

  .logo-image {
    max-width: 160px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.875rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

  .search-section {
    margin: -2.5rem auto 2rem;
  }

  .search-card {
    padding: 2rem;
    border-radius: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-name {
    font-size: 1.25rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .result-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2.5rem 0 3.5rem;
    min-height: 350px;
  }

  .hero-background {
    background-position: 60% center;
  }

  .logo-image {
    max-width: 140px;
  }

  header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .search-card {
    padding: 1.5rem;
  }

  .search-card h2 {
    font-size: 1.375rem;
  }

  .results-header h2 {
    font-size: 1.5rem;
  }

  .results-group-title {
    font-size: 1.25rem;
  }

  .result-card {
    padding: 1.25rem;
  }
}

.btn-link { display: block; align-self: flex-start; text-align: left; background: none; border: 0; padding: 0.25rem 0; color: var(--primary-color); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.results-section .prompt { color: var(--text-secondary); padding: 1rem 0; }

.metro-list { list-style: none; columns: 3 240px; column-gap: 2rem; padding: 0; }
.metro-list li { padding: 0.25rem 0; break-inside: avoid; }
.metro-list a { color: var(--primary-color); text-decoration: none; }
.metro-list a:hover { text-decoration: underline; }

.footer-links a { color: var(--primary-color); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.prose { max-width: 760px; margin: 2rem auto 3rem; }
.prose h2 { margin: 2rem 0 0.5rem; font-size: 1.3rem; }
.prose p, .prose li { color: var(--text-secondary); margin: 0.6rem 0; }
.prose ul { padding-left: 1.4rem; }
.prose a { color: var(--primary-color); }
