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

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --green-text: #085041;
  --white: #ffffff;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* NAV */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 400;
  transition: color 0.15s;
}

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

.btn-list {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-list:hover { background: var(--green-dark); }

/* HERO */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 12px;
}

.hero h1 span { color: var(--green); }

.hero p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.search-box {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 36px;
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
}

.search-box select {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  min-width: 0;
}

.search-box select:first-child {
  border-right: 1px solid var(--border);
}

.btn-search {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-search:hover { background: var(--green-dark); }

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

/* MAIN BODY */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.section-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

.section-link:hover { text-decoration: underline; }

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.cat-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.08);
}

.cat-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--green);
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cat-subs {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* COMPANY CARDS */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.15s;
}

.company-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.company-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.company-city {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.company-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--green-text);
  margin-bottom: 10px;
}

.company-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-btns {
  display: flex;
  gap: 8px;
}

.btn-wa {
  flex: 1;
  padding: 9px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.15s;
}

.btn-wa:hover { opacity: 0.9; }

.btn-email {
  flex: 1;
  padding: 9px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s;
}

.btn-email:hover { background: var(--bg); }

/* EMPTY STATE */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 36px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.btn-list-green {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-list-green:hover { background: var(--green-dark); }

/* BANNER */
.banner {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
}

.banner-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.btn-banner {
  background: var(--white);
  color: var(--green-dark);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.btn-banner:hover { opacity: 0.92; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 64px;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 15px;
  font-weight: 600;
}

.footer-logo span { color: var(--green); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* LOADING SKELETON */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .search-box { flex-direction: column; border: none; padding: 0; box-shadow: none; gap: 10px; }
  .search-box select { border: 1.5px solid var(--border-dark); border-radius: var(--radius); padding: 12px; }
  .search-box select:first-child { border-right: 1.5px solid var(--border-dark); }
  .btn-search { border-radius: var(--radius); padding: 12px; }
  .stats { gap: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .banner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}
