/**
 * KCdesi Business Directory — Redesign Stylesheet
 * File:    assets/css/businesses.css
 * Version: 1.0.38
 *
 * Enqueued only on the directory page (see class-shortcodes.php).
 * All new rules are namespaced under .kcd-biz-redesign to avoid
 * collisions with existing kcdesi-directory.css styles.
 *
 * Brand tokens:
 *   Saffron dark:    #2a1a00   (hero bg start)
 *   Saffron mid:     #a0450a   (hero bg end)
 *   Teal dark:       #004d52
 *   Teal mid:        #00838f
 *   Orange:          #e07b27
 *   Gold:            #f0c060
 *   Cream bg:        #f5f0e8
 *   White:           #ffffff
 *   Dark text:       #1a1a1a
 *   Muted text:      #888888
 *   Light border:    #e0d8c8
 */

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL RESETS FOR REDESIGN WRAPPER
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign {
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  font-size: 14px;
  background: #f5f0e8;
}

.kcd-biz-redesign *,
.kcd-biz-redesign *::before,
.kcd-biz-redesign *::after {
  box-sizing: border-box;
}

.kcd-biz-redesign a {
  text-decoration: none;
  color: inherit;
}

/* Shared button styles */
.biz-btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
  line-height: 1.2;
}
.biz-btn:hover { opacity: 0.88; }

.biz-btn-orange {
  background: #e07b27;
  color: #ffffff;
  border-color: #e07b27;
}
.biz-btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}
.biz-btn-gold-outline {
  background: transparent;
  color: #f0c060;
  border-color: #f0c060;
}

/* Shared section heading */
.biz-section-head { margin-bottom: 20px; }
.biz-section-head-center { text-align: center; }
.biz-section-title {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #004d52;
  margin: 0 0 4px;
  line-height: 1.3;
}
.biz-section-sub {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   ZONE 1 — HERO
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-hero {
  background: linear-gradient(135deg, #003d42 0%, #00838f 100%);
  padding: 36px 40px 30px;
  text-align: center;
}

.biz-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.biz-hero-title {
  font-family: Georgia, serif;
  font-size: 34px;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
  font-weight: normal;
}

.biz-hero-tagline {
  font-size: 15px;
  color: #b8dde0;
  margin: 0 0 22px;
  line-height: 1.5;
}

.biz-stat-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.biz-stat { text-align: center; }

.biz-stat-num {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  color: #f0c060;
  font-weight: bold;
  line-height: 1.1;
}

.biz-stat-lbl {
  display: block;
  font-size: 11px;
  color: #b8dde0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

.biz-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════
   ZONE 2 — FEATURED PARTNERS
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-featured {
  background: #ffffff;
  padding: 32px 40px;
}

.biz-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.biz-featured-card {
  border-radius: 10px;
  padding: 18px;
  position: relative;
}

.biz-fc-prime   { border: 2px solid #f0c060; background: #fffdf5; }
.biz-fc-premium { border: 2px solid #00838f; background: #f5fdfe; }

.biz-f-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff3cc;
  color: #7a5000;
  border: 1px solid #f0c060;
}

.biz-f-badge-premium {
  background: #e8f4f5;
  color: #004d52;
  border-color: #00838f;
}

.biz-fc-name {
  font-family: Georgia, serif;
  font-size: 15px;
  color: #004d52;
  margin: 0 0 5px;
  font-weight: normal;
}

.biz-fc-name a { color: #004d52; }
.biz-fc-name a:hover { color: #00838f; }

.biz-fc-meta {
  font-size: 11px;
  color: #00838f;
  margin-bottom: 8px;
}

.biz-fc-desc {
  font-size: 12px;
  color: #555555;
  line-height: 1.55;
  margin: 0 0 10px;
}

.biz-fc-contact {
  font-size: 12px;
  color: #e07b27;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.biz-fc-contact a { color: #e07b27; }

/* ══════════════════════════════════════════════════════════════════════
   ZONE 3 — CATEGORY GRID
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-categories {
  background: #f5f0e8;
  padding: 32px 40px;
}

.biz-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.biz-cat-grid-extra {
  margin-top: 14px;
  margin-bottom: 0;
}

.biz-cat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid #e0d8c8;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.biz-cat-card:hover {
  border-color: #00838f;
  box-shadow: 0 2px 8px rgba(0, 131, 143, 0.12);
}

.biz-cat-icon { font-size: 26px; margin-bottom: 7px; }
.biz-cat-name { font-size: 12px; color: #004d52; font-weight: bold; margin-bottom: 3px; }
.biz-cat-count { font-size: 11px; color: #aaaaaa; }

.biz-cat-more-wrap {
  text-align: center;
}

.biz-cat-more-toggle {
  display: inline-block;
  padding: 10px 16px;
  font-size: 13px;
  color: #00838f;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.biz-cat-more-toggle::-webkit-details-marker { display: none; }
.biz-cat-more-toggle:hover { color: #004d52; }

/* ══════════════════════════════════════════════════════════════════════
   ZONE 4 — SEARCH BAR
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-search-bar {
  background: #004d52;
  padding: 18px 40px;
}

.biz-search-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.biz-search-field {
  flex: 2;
  min-width: 180px;
  background: #ffffff;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 13px;
  color: #1a1a1a;
  border: none;
  outline: none;
}

.biz-search-field::placeholder { color: #999999; }

.biz-select {
  flex: 1;
  min-width: 130px;
  background: #005d63;
  border: 1px solid #00838f;
  color: #b8dde0;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════
   ZONE 5 — MAIN LISTING
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-listing-section {
  background: #f5f0e8;
  padding: 28px 40px;
}

.biz-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.biz-listing-header-left { display: flex; align-items: baseline; gap: 8px; }

.biz-listing-title {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #004d52;
  margin: 0;
  font-weight: normal;
}

.biz-listing-count {
  font-size: 14px;
  color: #888888;
}

.biz-listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.biz-listing-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #e0d8c8;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.biz-listing-card:hover { border-color: #00838f; }

.biz-listing-thumb {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  background: #e8e0d0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.biz-listing-thumb-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}

.biz-listing-thumb-emoji { font-size: 24px; }

.biz-listing-body { flex: 1; min-width: 0; }

.biz-listing-name {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #004d52;
  margin: 0 0 4px;
  font-weight: normal;
  line-height: 1.3;
}

.biz-listing-name a { color: #004d52; }
.biz-listing-name a:hover { color: #00838f; }

.biz-listing-meta {
  font-size: 11px;
  color: #888888;
  margin-bottom: 5px;
}

.biz-listing-desc {
  font-size: 12px;
  color: #555555;
  line-height: 1.5;
  margin: 0;
}

/* Tier / New badges */
.biz-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: normal;
  white-space: nowrap;
}

.biz-badge-prime     { background: #fff3cc; color: #7a5000; border: 1px solid #f0c060; }
.biz-badge-premium   { background: #e8f4f5; color: #004d52; border: 1px solid #00838f; }
.biz-badge-community { background: #efefef; color: #555555; border: 1px solid #cccccc; }
.biz-badge-new       { background: #edf9f0; color: #1a7a3a; border: 1px solid #5dc87a; }

/* Mid-page interstitial */
.biz-interstitial {
  background: linear-gradient(90deg, #003d42, #00838f);
  border-radius: 10px;
  padding: 24px 32px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.biz-interstitial-text h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 6px;
  font-weight: normal;
}

.biz-interstitial-text p {
  font-size: 13px;
  color: #b8dde0;
  margin: 0;
}

/* Pagination — inherits existing kcd-pagination behaviour, light restyle */
.biz-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 4px;
  flex-wrap: wrap;
}

.biz-page-btn {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #e0d8c8;
  color: #004d52;
  cursor: pointer;
  transition: background 0.15s;
}

.biz-page-btn.active,
.biz-page-btn:hover {
  background: #004d52;
  color: #ffffff;
  border-color: #004d52;
}

/* ══════════════════════════════════════════════════════════════════════
   ZONE 6 — SOCIAL PROOF
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-social-proof {
  background: #ffffff;
  padding: 36px 40px;
  text-align: center;
}

.biz-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 22px 0 28px;
}

.biz-proof-item {
  background: #f5f0e8;
  border-radius: 8px;
  padding: 22px 18px;
}

.biz-proof-icon { display: block; font-size: 30px; margin-bottom: 8px; }

.biz-proof-num {
  display: block;
  font-family: Georgia, serif;
  font-size: 26px;
  color: #004d52;
  font-weight: bold;
  margin-bottom: 5px;
}

.biz-proof-text {
  font-size: 12px;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

.biz-testimonial {
  background: #f5f0e8;
  border-left: 4px solid #e07b27;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}

.biz-testimonial p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #333333;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.7;
}

.biz-testimonial cite {
  font-size: 12px;
  color: #00838f;
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════════════
   ZONE 7 — BOTTOM CTA
   ══════════════════════════════════════════════════════════════════════ */

.kcd-biz-redesign .biz-bottom-cta {
  background: #1a1a1a;
  padding: 44px 40px;
  text-align: center;
}

.biz-cta-title {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #f0c060;
  margin: 0 0 10px;
  font-weight: normal;
}

.biz-cta-body {
  font-size: 14px;
  color: #aaaaaa;
  margin: 0 auto 26px;
  max-width: 560px;
  line-height: 1.6;
}

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

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 768px
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Zone 1 */
  .kcd-biz-redesign .biz-hero { padding: 28px 20px 22px; }
  .biz-hero-title { font-size: 24px; }
  .biz-stat-bar { gap: 20px; }
  .biz-stat-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Zone 2 */
  .kcd-biz-redesign .biz-featured { padding: 24px 20px; }
  .biz-featured-grid { grid-template-columns: 1fr; }

  /* Zone 3 */
  .kcd-biz-redesign .biz-categories { padding: 24px 20px; }
  .biz-cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Zone 4 */
  .kcd-biz-redesign .biz-search-bar { padding: 16px 20px; }
  .biz-search-inner { flex-direction: column; }
  .biz-search-field,
  .biz-select { width: 100%; flex: none; }

  /* Zone 5 */
  .kcd-biz-redesign .biz-listing-section { padding: 20px; }
  .biz-listing-grid { grid-template-columns: 1fr; }
  .biz-interstitial { flex-direction: column; text-align: center; padding: 20px; }

  /* Zone 6 */
  .kcd-biz-redesign .biz-social-proof { padding: 28px 20px; }
  .biz-proof-grid { grid-template-columns: 1fr; }

  /* Zone 7 */
  .kcd-biz-redesign .biz-bottom-cta { padding: 32px 20px; }
  .biz-cta-btns { flex-direction: column; align-items: center; }
  .biz-cta-title { font-size: 22px; }
}

/* ── Featured section footer link ────────────────────────────────────── */
.biz-featured-footer {
  text-align: center;
  padding: 20px 0 4px;
}
.biz-see-all-partners {
  display: inline-block;
  color: #004d52;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #00838f;
  padding-bottom: 2px;
  transition: color 0.15s;
}
.biz-see-all-partners:hover { color: #00838f; }

/* ── View-all businesses link ─────────────────────────────────────────── */
.biz-view-all-wrap {
  text-align: center;
  padding: 24px 0 8px;
}
.biz-view-all-link {
  display: inline-block;
  color: #004d52;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #00838f;
  padding-bottom: 2px;
  transition: color 0.15s;
}
.biz-view-all-link:hover { color: #00838f; }

/* ── Gold-outline CTA button specificity fix ─────────────────────────── */
.kcd-biz-redesign .biz-bottom-cta .biz-btn-gold-outline,
.kcd-biz-redesign .biz-bottom-cta .biz-btn-gold-outline:visited {
  color: #f0c060;
  border-color: #f0c060;
}

/* ── Filtered / inner results page ───────────────────────────────────── */
.biz-results-page {
  padding: 28px 40px 40px;
}
.biz-results-header {
  margin-bottom: 20px;
}
.biz-results-back {
  display: inline-block;
  font-size: 13px;
  color: #00838f;
  text-decoration: none;
  margin-bottom: 10px;
}
.biz-results-back:hover { text-decoration: underline; }
.biz-results-title {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #004d52;
  margin: 0;
  font-weight: normal;
}
.biz-results-search {
  margin-bottom: 24px;
  background: #f5f0e8;
  padding: 14px 18px;
  border-radius: 6px;
  flex-wrap: wrap;
  gap: 10px;
}
.biz-results-count {
  font-size: 13px;
  color: #888;
  margin: 0 0 14px;
}
.biz-results-grid-wrap .biz-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .biz-results-page { padding: 20px; }
  .biz-results-search { flex-direction: column; }
}
