/* =========================
   BASE RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}

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

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

/* =========================
   UTILITIES
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn-ghost {
  color: #0f172a;
}

/* =========================
   ICONS
========================= */
.icon {
  font-size: 18px;
  color: #64748b;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  position: relative;
}

/* LOGO */
.brand img {
  height: 100px;
}

/* SEARCH */
.header-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-search form {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
}

.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

/* TOGGLE BUTTON */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  .header-search form {
    max-width: 380px;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  /* show toggle only on mobile */
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* hide nav by default */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 6px 0;
  }

  /* search below header */
  .header-search {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .header-search form {
    max-width: 100%;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
  .brand img {
    height: 42px;
  }

  .header-search input {
    font-size: 13px;
  }
}


/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(180deg, #f1f5ff 0%, #ffffff 100%);
  padding: 120px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 18px;
  color: #64748b;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HERO SEARCH
========================= */
.hero-search {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  width: 260px;
}

.input-group input {
  border: none;
  outline: none;
  width: 100%;
}

/* =========================
   HERO TAGS
========================= */
.hero-tags {
  margin-top: 32px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tags .label {
  font-weight: 600;
}

.hero-tags span {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* =========================
   STATS
========================= */
.stats {
  padding: 100px 0;
  text-align: center;
}

.section-subtitle {
  margin-top: 12px;
  color: #64748b;
  font-size: 18px;
}

.stats-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat-card i {
  width: 64px;
  height: 64px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: auto;
}

.stat-card h3 {
  font-size: 36px;
  margin-top: 20px;
}

.stat-card p {
  font-weight: 600;
  margin-top: 8px;
}

.stat-card small {
  color: #64748b;
}

/* =========================
   CATEGORIES
========================= */
.categories {
  background: #f8fafc;
  padding: 100px 0;
  text-align: center;
}

.category-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.category-card i {
  width: 48px;
  height: 48px;
  background: #eef2ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 22px;
}

.category-card h4 {
  margin-top: 16px;
}

.category-card .meta {
  color: #64748b;
  font-size: 14px;
}

/* =========================
   RECENT BUSINESSES
========================= */
.recent-businesses {
  padding: 100px 0;
}

.business-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.business-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.business-card img {
  height: 220px;
  object-fit: cover;
}

.business-card h4 {
  padding: 16px;
}

.business-card .rating {
  padding: 0 16px;
  color: #64748b;
}

.business-card p {
  padding: 0 16px 16px;
  color: #64748b;
}

/* =========================
   CTA
========================= */
.cta {
  background: #3b82f6;
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.cta-box p {
  max-width: 700px;
  margin: 16px auto 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta small {
  display: block;
  margin-top: 24px;
  opacity: 0.9;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid #e5e7eb;
}

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

.footer-brand h3 span {
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 999px;
}

.site-footer a {
  display: block;
  margin-top: 10px;
  color: #64748b;
}

.site-footer p {
  color: #64748b;
}

.copyright {
  margin-top: 48px;
  text-align: center;
  color: #64748b;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .stats-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 38px;
  }

  .header-search {
    display: none;
  }

  .stats-grid,
  .category-grid,
  .business-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
