/* ================================================================
   Public/css/county-cities-grid.css
   ShieldWise Security — "Cities We Serve" section redesign
   Scoped entirely to .security-cities-sec / .ccg-* — no global
   selectors, no impact on header, footer, or other sections.
   ================================================================ */

/* ---- Section wrapper overrides --------------------------------- */
.security-cities-sec {
  background: #f7f5f0;
  padding: 64px 0 60px;
  border-top: 3px solid #d4af37;
  position: relative;
}

/* Remove the old ::before pseudo-element decoration */
.security-cities-sec::before {
  display: none;
}

/* ---- Layout shell ---------------------------------------------- */
.ccg-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Heading ---------------------------------------------------- */
.ccg-heading {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem) !important;
  font-weight: 700 !important;
  color: #0d1f3c !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px 0 !important;
}

/* Remove old ::after underline — replaced by explicit bar element */
.ccg-heading::after,
.security-cities-sec h2::after {
  display: none !important;
}

.ccg-bar {
  display: block;
  width: 44px;
  height: 3px;
  background: #d4af37;
  border-radius: 2px;
  margin: 10px 0 22px 0;
}

.ccg-intro {
  color: #666;
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 28px 0 !important;
  max-width: 680px;
  padding: 0 !important;
}

/* ---- Pill grid -------------------------------------------------- */
.ccg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ccg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px 7px 11px;
  background: #fff;
  border: 1.5px solid #dedad2;
  border-radius: 100px;
  font-size: 0.855rem;
  font-weight: 600;
  color: #1a3c6e;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .17s ease, color .17s ease,
              box-shadow .17s ease, background .17s ease;
  cursor: pointer;
}

.ccg-pill::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4af37;
  flex-shrink: 0;
  transition: transform .17s ease;
}

a.ccg-pill:hover,
a.ccg-pill:focus {
  border-color: #d4af37;
  color: #0d1f3c;
  background: #fffbef;
  box-shadow: 0 2px 10px rgba(212,175,55,.18);
  text-decoration: none;
}

a.ccg-pill:hover::before,
a.ccg-pill:focus::before {
  transform: scale(1.5);
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 768px) {
  .security-cities-sec {
    padding: 48px 0 44px;
  }
  .ccg-pill {
    font-size: 0.82rem;
    padding: 6px 13px 6px 10px;
  }
  .ccg-grid {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .security-cities-sec {
    padding: 38px 0 34px;
  }
  .ccg-heading {
    font-size: 1.25rem !important;
  }
  .ccg-grid {
    gap: 7px;
  }
}

/* ---- Reduced-motion respect ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ccg-pill,
  .ccg-pill::before {
    transition: none;
  }
}
