/* Iowa Local Business Directory — Grasshopper Suite */
/* Dark navy nav, white content, purple accents */

:root {
  --navy: #0a0a0f;
  --navy-light: #1a1a2e;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --gold: #f59e0b;
  --red: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
}

/* Navigation */
.nav {
  background: var(--navy);
  color: var(--white);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span { color: var(--purple); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero .lead-btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background 0.2s;
}

.hero .lead-btn:hover { background: var(--purple-light); }

/* Section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

/* City Grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.city-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--gray-900);
  transition: all 0.2s;
}

.city-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(124,58,237,0.1);
  transform: translateY(-2px);
}

.city-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }

.city-card .count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.city-card .categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.category-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Business List */
.business-list { list-style: none; }

.business-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-900);
  transition: background 0.2s;
}

.business-item:hover { background: var(--gray-50); }

.business-item .info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.business-item .info .meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.business-item .rating {
  color: var(--gold);
  font-size: 0.875rem;
}

.business-item .phone {
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Business Detail Page */
.business-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 1.5rem;
}

.business-header .back-link {
  color: var(--purple);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.business-header .back-link:hover { text-decoration: underline; }

.business-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.business-header .stars {
  color: var(--gold);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.business-header .review-count {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.business-contact {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.business-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-call {
  background: var(--emerald);
  color: var(--white);
}

.btn-call:hover { background: var(--emerald-light); }

.btn-website {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-website:hover { border-color: var(--purple); color: var(--purple); }

.business-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.business-detail h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--gray-900);
}

.business-detail p, .business-detail ul {
  color: var(--gray-700);
  line-height: 1.7;
}

.business-detail ul { list-style: none; padding: 0; }

.business-detail li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.business-detail li::before {
  content: "•";
  color: var(--purple);
  position: absolute;
  left: 0;
}

.business-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--purple);
}

/* Lead Capture */
.lead-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lead-bar .lead-text {
  font-size: 0.9375rem;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.lead-bar input, .lead-bar select {
  padding: 0.625rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.875rem;
  font-family: var(--font);
  min-width: 180px;
}

.lead-bar button {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.lead-bar button:hover { background: var(--purple-light); }

/* Claim Listing Box */
.claim-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  text-align: center;
}

.claim-box h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.claim-box p { color: var(--gray-300); margin-bottom: 1rem; font-size: 0.9375rem; }

.claim-box a {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.claim-box a:hover { background: var(--purple-light); }

/* Premium badge */
.premium-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ad placeholder */
.ad-container {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-container .ad-label {
  color: var(--gray-300);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--gray-500);
  padding: 1rem 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

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

.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--gray-500);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  margin-top: 3rem;
}

.footer a {
  color: var(--purple-light);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-light); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-light); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .city-grid { grid-template-columns: 1fr; }
  .business-contact { flex-direction: column; }
  .lead-bar { flex-direction: column; align-items: stretch; }
  .lead-bar input, .lead-bar select { min-width: unset; }
}

/* Utility */
.text-purple { color: var(--purple); }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
