/* ============================================
   716 Spotlight - Styles
   Community-first design inspired by Let's Talk Augusta
   Dark nav/hero, warm community feel
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #f59e0b;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Text-based logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.logo-716 {
  color: #f59e0b;
}

.logo-img {
  height: 44px;
  width: auto;
}

/* Desktop Nav */
header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

header nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

header nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

header nav a.active {
  color: #ffffff;
}

.nav-cta {
  background: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: #d97706 !important;
  transform: translateY(-1px);
}

/* ---------- Mobile Menu Toggle ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Mobile Navigation ---------- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #0f172a;
  z-index: 1200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-logo {
  height: 36px;
  width: auto;
}

.mobile-nav-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
}

.mobile-nav-title .logo-716 {
  color: #f59e0b;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.mobile-nav-close:hover {
  color: #ffffff;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.mobile-nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 24px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-links a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.mobile-nav-links .mobile-cta {
  margin: 16px 24px 0;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
}

.mobile-nav-links .mobile-cta:hover {
  background: #d97706;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(170deg, #0f172a 0%, #1e3a5f 100%);
  padding: 80px 24px 60px;
  text-align: center;
  color: #ffffff;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid #f59e0b;
}

.hero-cta:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(170deg, #0f172a 0%, #1e3a5f 100%);
  padding: 60px 24px 50px;
  text-align: center;
  color: #ffffff;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* ---------- Search & Filter Bar ---------- */
.search-section {
  background: #f8fafc;
  padding: 32px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #ffffff;
}

.search-bar input:focus {
  outline: none;
  border-color: #3b82f6;
}

.search-bar button {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #dc2626;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: #2563eb;
}

.filter-btn .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.filter-btn.active .arrow {
  transform: rotate(180deg);
}

.filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.filter-menu.open {
  display: block;
}

.filter-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: #334155;
  transition: background 0.15s;
}

.filter-menu a:hover,
.filter-menu a.active {
  background: #f1f5f9;
  color: #0f172a;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-tag button {
  background: none;
  border: none;
  color: #0369a1;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.filter-tag button:hover {
  color: #ef4444;
}

.results-count {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #64748b;
}

/* ---------- Map Section ---------- */
.map-section {
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  margin-top: -20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  z-index: 10;
  position: relative;
  border: 3px solid #ffffff;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.popup-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.popup-category {
  font-size: 0.85rem;
  color: #3b82f6;
  font-weight: 500;
  margin-bottom: 4px;
}

.popup-address {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
}

.popup-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
}

.popup-link:hover {
  color: #d97706;
}

/* ---------- Business Directory Grid ---------- */
.directory-section {
  padding: 48px 24px 60px;
  background: #f8fafc;
}

.directory-container {
  max-width: 1200px;
  margin: 0 auto;
}

.directory-header {
  text-align: center;
  margin-bottom: 36px;
}

.directory-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.directory-header p {
  color: #64748b;
  font-size: 1rem;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.business-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.business-card-logo {
  flex-shrink: 0;
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.business-card-logo img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  display: block;
}

.business-card-body {
  width: 100%;
}

.business-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.business-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.business-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.business-category-tag {
  display: none;
}

.business-card-town {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.business-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 8px;
}

.business-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
}

.business-card-footer a,
.business-card-footer span {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.business-card-footer a:hover {
  color: #3b82f6;
}

.featured-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: #64748b;
}

.no-results h3 {
  font-size: 1.3rem;
  color: #334155;
  margin-bottom: 8px;
}

/* ---------- Social Sidebar ---------- */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 1.2rem;
  transition: transform 0.2s, opacity 0.2s;
}

.social-sidebar a:hover {
  transform: translateX(-4px);
  opacity: 0.9;
}

.social-fb {
  background: #1877f2;
  border-radius: 8px 0 0 0;
}

.social-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-tt {
  background: #000000;
  border-radius: 0 0 0 8px;
}

.social-sidebar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(170deg, #0f172a 0%, #1e3a5f 100%);
  padding: 64px 24px;
  text-align: center;
  color: #ffffff;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ---------- About Page ---------- */
.about-section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-section .highlight {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

.about-section .highlight p {
  color: #92400e;
  margin-bottom: 0;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.how-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.how-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.how-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 0;
}

/* ---------- Get Featured Page ---------- */
.featured-section {
  padding: 60px 24px;
}

.featured-container {
  max-width: 900px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.value-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.value-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: #64748b;
}

/* ---------- Forms ---------- */
.form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-button {
  display: block;
  width: 100%;
  background: #f59e0b;
  color: #0f172a;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.submit-button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.form-note {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-section p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #f59e0b;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: #f59e0b;
  color: #0f172a;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: #f59e0b;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Header */
  header nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-container {
    height: 64px;
  }

  /* Hero */
  .hero {
    padding: 56px 20px 44px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero {
    padding: 44px 20px 36px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  /* Stats */
  .stats-bar-inner {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  /* Search */
  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    width: 100%;
  }

  /* Map */
  #map {
    height: 300px;
    margin-top: -12px;
  }

  /* Directory */
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .directory-section {
    padding: 36px 20px 48px;
  }

  /* Social sidebar */
  .social-sidebar {
    display: none;
  }

  /* CTA */
  .cta-section {
    padding: 48px 20px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* About */
  .about-section {
    padding: 40px 20px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  /* Get Featured */
  .featured-section {
    padding: 40px 20px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-card {
    padding: 16px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-dropdown {
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: space-between;
  }

  .filter-menu {
    width: 100%;
  }
}
