/* =====================================================================
   LOCALBUDDY — FIND A SERVICE — categories-refresh.css (2026-11)
   ---------------------------------------------------------------------
   Loaded AFTER categories.css. Remove the <link> in categories.php to
   roll back. Scoped to body.lb-cat.

   1. Page header (.lbc-hero) — title, subtitle, trust points
   2. Filters card polish
   3. Provider cards: taller photo (faces/logos no longer cropped),
      auto-fill grid, softer shadows
   4. Map + ad banner (ad now sits below the results)
   ===================================================================== */

body.lb-cat {
  --lbr-radius: 16px;
  --lbr-card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
  --lbr-card-shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 40px rgba(16, 24, 40, .12);
}


/* ---------------------------------------------------------------------
   1. PAGE HEADER
   --------------------------------------------------------------------- */
body.lb-cat .lbc-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 34px 40px;
  border: 1px solid #dcefe2;
  border-radius: 22px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(248, 197, 28, .20), transparent 70%),
    radial-gradient(380px 240px at 0% 120%, rgba(11, 107, 52, .12), transparent 70%),
    linear-gradient(135deg, #f3faf5 0%, #ffffff 60%, #fffaf0 100%);
}

body.lb-cat .lbc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 107, 52, .10);
  font-size: 13px;
  font-weight: 700;
  color: var(--lb-green);
}

body.lb-cat .lbc-hero-title {
  margin: 14px 0 0;
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--lb-ink);
}
body.lb-cat .lbc-hero-title span { color: var(--lb-green); }

body.lb-cat .lbc-hero-sub {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--lb-text, #475467);
}

body.lb-cat .lbc-hero-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.lb-cat .lbc-hero-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
}
body.lb-cat .lbc-hero-points li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
body.lb-cat .lbc-hero-points strong { font-size: 15px; font-weight: 800; color: var(--lb-ink); }
body.lb-cat .lbc-hero-points small { font-size: 13px; color: var(--lb-muted); }

body.lb-cat .lbc-hero-ico {
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lb-green-soft, #e8f4ec);
  color: var(--lb-green);
  font-size: 17px;
}
body.lb-cat .lbc-hero-points li:nth-child(2) .lbc-hero-ico { background: #fff4d6; color: #b7791f; }
body.lb-cat .lbc-hero-points li:nth-child(3) .lbc-hero-ico { background: #e8f1fd; color: #1d5fbf; }


/* ---------------------------------------------------------------------
   2. FILTERS
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.lb-cat .lbc-filters {
    margin: 18px 0 26px;
    padding: 16px 18px 18px;
    border-color: #e9edf1;
    border-radius: 16px;
    box-shadow: var(--lbr-card-shadow);
  }
  body.lb-cat .lbc-filters .filter-select,
  body.lb-cat .lbc-filters .filter-input {
    height: 48px;
    border-color: #d6dce3;
    border-radius: 10px;
    font-size: 15px;
  }
  body.lb-cat .lbc-label { font-size: 13.5px; color: #344054; }
}


/* ---------------------------------------------------------------------
   3. RESULTS + PROVIDER CARDS
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.lb-cat .lbc-results-head h2 { font-size: 28px; }

  body.lb-cat .lbc-grid,
  body.lb-cat .lbc-skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
  }

  body.lb-cat .lbc-card {
    border-color: #eceff3;
    border-radius: var(--lbr-radius);
    box-shadow: var(--lbr-card-shadow);
  }
  body.lb-cat .lbc-card:hover { transform: translateY(-4px); box-shadow: var(--lbr-card-shadow-hover); }

  /* Taller photo so faces and logos are not cut off (was 16:7) */
  body.lb-cat .lbc-card-media { aspect-ratio: 4 / 3; }
  body.lb-cat .lbc-card-media img { object-position: center 25%; }

  body.lb-cat .lbc-card-body { padding: 12px 16px 16px; gap: 2px; }
  body.lb-cat .lbc-card-title { font-size: 16.5px; font-weight: 800; }
  body.lb-cat .lbc-card-cat { font-size: 13.5px; }
  body.lb-cat .lbc-card-place { font-size: 13.5px; }

  body.lb-cat .lbc-card-actions { gap: 8px; padding-top: 12px; }
  body.lb-cat .lbc-act { height: 38px; border-radius: 10px; font-size: 13.5px; }

  body.lb-cat .lbc-skeleton { height: 300px; border-radius: var(--lbr-radius); }
}

/* Empty state */
body.lb-cat .lbc-empty {
  border-radius: var(--lbr-radius);
}


/* ---------------------------------------------------------------------
   4. MAP + AD BANNER
   --------------------------------------------------------------------- */
@media (min-width: 992px) {
  body.lb-cat .lbc-map-shell {
    border-radius: var(--lbr-radius);
    box-shadow: var(--lbr-card-shadow);
  }
}

body.lb-cat .lbc-adv-bottom { margin-top: 40px; border-radius: var(--lbr-radius); }


/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1200px) {
  body.lb-cat .lbc-hero { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  body.lb-cat .lbc-hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.lb-cat .lbc-hero-points li { padding: 10px 12px; gap: 10px; }
}

@media (max-width: 991.98px) {
  body.lb-cat .lbc-hero-points { grid-template-columns: 1fr; }
}

/* Mobile: compact header, the sticky search right below it */
@media (max-width: 767.98px) {
  body.lb-cat .lbc-hero {
    display: block;
    padding: 16px 16px 14px;
    border-radius: 18px;
  }
  body.lb-cat .lbc-hero-kicker { padding: 3px 10px; font-size: 11.5px; }
  body.lb-cat .lbc-hero-title { margin-top: 8px; font-size: 22px; }
  body.lb-cat .lbc-hero-sub { margin-top: 6px; font-size: 13.5px; }
  body.lb-cat .lbc-hero-points { display: none; }

  body.lb-cat .lbc-adv-bottom { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  body.lb-cat .lbc-card:hover { transform: none; }
}
