/**
 * CP · Geo Cards — self-contained styles (token-driven, brand-agnostic).
 * Scoped under .cp-geo-cards. Ported from the `.geo-grid` / `.geo-card` rules
 * on the approved installation page.
 */
.cp-geo-cards {
  --gc-fg: var(--wp--preset--color--text);
  --gc-primary: var(--wp--preset--color--primary);
  --gc-white: var(--wp--preset--color--white);
  --gc-display: var(--wp--preset--font-family--barlow-condensed);
  --gc-body: var(--wp--preset--font-family--roboto);
  --gc-cream: #FFF9F0;
  --gc-border: #E5E3DF;
  --gc-muted: #767676;
  --gc-max: 1100px;
  padding: var(--cp-section-py, 80px) clamp(24px, 5vw, 80px);
}
.cp-geo-cards.is-surface-white { background: var(--gc-white); }
.cp-geo-cards.is-surface-cream { background: var(--gc-cream); }
.cp-geo-cards .head { max-width: var(--gc-max); margin: 0 auto; }
.cp-geo-cards .head__lead {
  font-family: var(--gc-body); font-size: 17px; line-height: 27.2px;
  color: var(--gc-fg); margin: 12px 0 0; max-width: none;
}
.cp-geo-cards .eyebrow {
  font-family: var(--gc-body); font-weight: 600; font-size: 11px; line-height: 24px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gc-fg); margin: 0;
}
.cp-geo-cards .head h2 {
  font-family: var(--gc-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.005em; color: var(--gc-fg); margin: 11px 0 0;
}
.cp-geo-cards .head h2 em { font-style: normal; color: var(--gc-primary); }
.cp-geo-cards .geo-grid {
  max-width: var(--gc-max); margin: 32px auto 0; display: grid; gap: 20px;
}
.cp-geo-cards .geo-card {
  background: var(--gc-white); border: 1px solid var(--gc-border); border-top: 3px solid var(--gc-primary);
  border-radius: 2px; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cp-geo-cards a.geo-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); border-color: var(--gc-primary);
}
.cp-geo-cards .geo-card h3 {
  font-family: var(--gc-display); font-weight: 700; font-size: 22px; line-height: 1.15;
  color: var(--gc-fg); margin: 0;
}
.cp-geo-cards .geo-card__meta { font-family: var(--gc-body); font-size: 13px; color: var(--gc-muted); }
.cp-geo-cards .geo-card__link {
  margin-top: 2px; font-family: var(--gc-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--gc-primary);
}
.cp-geo-cards .geo-card--soon { opacity: 0.92; }
.cp-geo-cards .geo-card--soon .geo-card__link { color: var(--gc-muted); }
/* The column count is the block's own (inline), so the breakpoints must win
   over it: two columns below 980px, one below 640px, as the Playbooks run. */
@media (max-width: 980px) { .cp-geo-cards .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .cp-geo-cards .geo-grid { grid-template-columns: 1fr !important; } }

/* The city page's region band (`is-variant-region`): centred like the Playbook's
   recognition band, a button to the hub, the state coverage map, the nearby
   cities under a second heading and an "Also serving" line. */
.cp-geo-cards.is-variant-region .head { text-align: center; }
/* The kicker is the Playbooks' .recognition__eyebrow, set in 700 (re-audit SA8). */
.cp-geo-cards.is-variant-region .eyebrow { font-weight: 700; }
.cp-geo-cards .geo-hub { text-align: center; margin: 28px 0 0; }
.cp-geo-cards .geo-hub .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--gc-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 4px; text-decoration: none; white-space: nowrap;
  background: var(--gc-primary); color: var(--wp--custom--color--on-primary);
}
.cp-geo-cards .geo-hub .btn:hover { background: var(--wp--custom--color--primary-hover); }
.cp-geo-cards .geo-map { max-width: 640px; margin: 32px auto 0; }
.cp-geo-cards .geo-map img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cp-geo-cards .geo-subheading {
  font-family: var(--gc-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.005em; color: var(--gc-fg); margin: 48px 0 0; text-align: center;
}
.cp-geo-cards .geo-subheading em { font-style: normal; color: var(--gc-primary); }
/* Sibling cards centre under the centred heading, however many a hub has (one for Sarasota). */
.cp-geo-cards.is-variant-region .geo-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.cp-geo-cards.is-variant-region .geo-card { flex: 0 1 220px; text-align: center; }
/* Centred at every width in both Playbooks (the band's text-align); the link is
   the brand's secondary ink, and a brand whose link carries the uppercase rule
   underline sets `is-link-rule` (Grästen; re-audit MSA1). */
.cp-geo-cards.is-variant-region .geo-card__link { color: var(--wp--custom--color--secondary-fg, var(--gc-primary)); }
.cp-geo-cards.is-variant-region.is-link-rule .geo-card__link { align-self: center; border-bottom: 2px solid var(--gc-primary); padding-bottom: 3px; }
.cp-geo-cards .geo-note {
  font-family: var(--gc-body); font-size: 14px; line-height: 22px; color: #555555;
  max-width: 760px; margin: 24px auto 0; text-align: center;
}
@media (max-width: 640px) { .cp-geo-cards.is-variant-region .geo-card { flex-basis: 100%; } }

/* The state pages and the Service Areas index (`is-variant-split`): the coverage
   map left, the intro right, the cards below -- the Playbook's `.split--map`. */
.cp-geo-cards .geo-split {
  max-width: var(--gc-max); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cp-geo-cards .geo-split .head { max-width: none; margin: 0; }
.cp-geo-cards .geo-split .head h2 { font-size: 36px; line-height: 1.08; }
.cp-geo-cards .geo-split .head__lead { font-size: 16px; margin-top: 14px; }
.cp-geo-cards .geo-split__media { margin: 0; }
.cp-geo-cards .geo-split__media img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cp-geo-cards.is-variant-split .geo-grid { margin-top: 56px; }
@media (max-width: 980px) {
  .cp-geo-cards .geo-split { grid-template-columns: 1fr; gap: 32px; }
  .cp-geo-cards .geo-split .head h2 { font-size: 26px; }
}
