/* Cohesive modern theme for public pages */
:root {
  --primary: #667eea;
  --primary-600: #5a67d8;
  --secondary: #764ba2;
  --accent: #ffd700;
  --success: #50C878;
  --error: #FF6B6B;
  --warning: #FFB347;
  --info: #87CEEB;

  --bg: #f8f9fa;
  --bg-contrast: #ffffff;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-contrast: #111827;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

html, body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

::selection {
  background: rgba(102, 126, 234, 0.25);
}

/* Containers */
.container {
  max-width: 1200px;
}

/* Navbar / Header */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  header {
    background: rgba(17, 24, 39, 0.75);
  }
  header.scrolled {
    background: rgba(17, 24, 39, 0.9);
  }
}

/* Links */
 a { transition: color .2s ease, opacity .2s ease; }
 a:hover { color: var(--primary); }

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Cards */
.card,
.feature-card,
.business-card,
.detail-section,
.reviews-section,
.breadcrumb {
  background: var(--bg-contrast);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.feature-card:hover,
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Sections */
.section-title h2 {
  color: var(--text);
  position: relative;
}
.section-title h2:after {
  content: "";
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: -10px;
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
}

/* Category chips */
.business-category,
.badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
}

/* Ratings */
.stars { color: var(--accent); }
.rating-text { color: var(--text-muted); }

/* Business image handling */
.business-image { background: var(--gradient); }
.business-image img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer { background: #1a202c; color: #cbd5e1; }
footer a { color: #a0aec0; }
footer a:hover { color: var(--primary); }
.footer-bottom { border-color: #2d3748; }

/* Animations */
.animate-on-scroll { will-change: transform, opacity; }

/* Utilities */
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Responsive tweaks */
@media (max-width: 768px) {
  .section-title h2:after { right: 0; transform: none; }
}

/* Text clamp helper for descriptions */
.business-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2; /* nonstandard fallback */
}
