/*
 * Repair Location geo templates — single-repair_location.php,
 * parts/geo-general.php, parts/geo-vendor.php, parts/city-data.php.
 *
 * Adapted from the Detroit vendor-layout design. Converted from the
 * design file's inline styles to semantic classes here so 300 pages
 * share one stylesheet instead of repeating inline style attributes
 * on every field-driven element.
 *
 * Palette, straight from the design:
 *   #0a2d47  navy (hero, dark section backgrounds)
 *   #00507F  brand blue (links, headings-on-white accents)
 *   #218d00  green (primary CTA)
 *   #333a3f  dark gray (stats band)
 *   #f4f7f9  light gray (alternating section background)
 *   #e3e8ec  hairline borders
 */

.geo-page * { box-sizing: border-box; }
.geo-page { font-family: Arial, Helvetica, sans-serif; color: #1d2529; }
.geo-page h1, .geo-page h2, .geo-page h3, .geo-page h4 { margin: 0; letter-spacing: -0.01em; }
.geo-page p { margin: 0; }
.geo-page a { color: #00507F; text-decoration: none; }
.geo-page a:hover { color: #218d00; text-decoration: underline; }
.geo-page__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.geo-hero { position: relative; background: #0a2d47; color: #fff; overflow: hidden; }
.geo-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 24px 34px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.geo-hero__main { max-width: 520px; }
.geo-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(33, 141, 0, .8); background: rgba(33, 141, 0, .18); color: #5fc93f; padding: 5px 11px; border-radius: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; }
.geo-hero__h1 { font-size: 44px; line-height: 1.08; font-weight: 700; margin-bottom: 18px; }
.geo-hero__subhead { font-size: 18px; line-height: 1.55; color: #d3e0ea; margin-bottom: 26px; }
.geo-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.geo-btn { display: inline-flex; align-items: center; border-radius: 3px; padding: 13px 22px; font-weight: 700; font-size: 15px; letter-spacing: .02em; cursor: pointer; border: 0; }
/* .geo-page prefix bumps specificity above the plain-link rule (.geo-page a)
   above — without it, that rule's color wins over these on every button,
   since ".geo-page a" (class + element) outweighs a single class alone. */
.geo-page .geo-btn--primary { background: #218d00; color: #fff !important; flex-direction: column; line-height: 1.15; }
.geo-page .geo-btn--primary:hover { background: #1a7000; color: #fff !important; text-decoration: none; }
.geo-btn--primary small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.geo-page .geo-btn--outline { border: 2px solid rgba(255, 255, 255, .55); color: #fff !important; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.geo-page .geo-btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff !important; text-decoration: none; }
.geo-hero__note { font-size: 13.5px; color: #9fb6c8; margin-bottom: 20px; }
.geo-hero__checks { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px; justify-content: start; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 16px; }
.geo-hero__check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #dce7ef; }
.geo-hero__check-icon { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #218d00; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.geo-hero__map-placeholder { border: 1px dashed rgba(255, 255, 255, .4); border-radius: 3px; padding: 8px 12px; text-align: center; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; margin: 0 24px 22px; max-width: 1152px; margin-left: auto; margin-right: auto; }

/* Estimate form panel */
.geo-form-panel { background: #fff; border-radius: 4px; padding: 22px 22px 18px; box-shadow: 0 18px 44px rgba(3, 18, 30, .42); color: #1d2529; }
.geo-form-panel h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.geo-form-panel__note { font-size: 13.5px; color: #5d6b74; margin-bottom: 16px; }
.geo-form-placeholder { border: 1px dashed #c3ced5; background: #f9fbfc; min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 13px; color: #7c8891; }

/* Stat band */
.geo-stats { background: #333a3f; }
.geo-stats__inner { max-width: 1200px; margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.geo-stats__item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.geo-stats__num { font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.geo-stats__label { font-size: 14px; color: #b6bfc5; }

/* Two-column section (coverage intro + map, ZASP, etc.) */
.geo-split { padding: 56px 24px; }
.geo-split__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.geo-split--top { align-items: start; }
.geo-split h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.geo-split p { font-size: 16px; line-height: 1.65; color: #3c4a53; margin-bottom: 14px; }
.geo-split p:last-child { margin-bottom: 0; }
.geo-local-proof { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid #218d00; font-size: 15px; font-style: italic; line-height: 1.6; color: #4d5b64; }
.geo-bg-alt { background: #f4f7f9; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; }
.geo-map-placeholder, .geo-badge-placeholder, .geo-reviews-placeholder { border: 1px dashed #c3ced5; background: #f9fbfc; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.geo-map-embed { min-height: 220px; border: 1px solid #e3e8ec; overflow: hidden; }
.geo-map-embed iframe { display: block; min-height: 220px; }
.geo-placeholder__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00507F; }
.geo-placeholder__note { font-size: 14px; line-height: 1.55; color: #5d6b74; }

/* Section headings (centered, standalone sections) */
.geo-section { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; }
.geo-section h2 { font-size: 30px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.geo-section__lead { font-size: 16px; color: #5d6b74; margin-bottom: 28px; text-align: center; }

/* Problem / failure-mode cards */
.geo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.geo-card { border: 1px solid #e3e8ec; border-top: 3px solid #00507F; padding: 20px; }
.geo-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.geo-card p { font-size: 15px; line-height: 1.6; color: #4d5b64; }
.geo-card__link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Process steps */
.geo-steps-section { background: #0a2d47; color: #fff; margin-top: 56px; padding: 56px 0; }
.geo-steps-section h2 { text-align: center; margin-bottom: 28px; }
.geo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.geo-step { background: #fff; padding: 22px; color: #1d2529; }
.geo-step__num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #218d00; }
.geo-step h3 { font-size: 18px; font-weight: 700; margin: 8px 0; }
.geo-step p { font-size: 15px; line-height: 1.6; color: #4d5b64; }

/* Model grid (vendor only) */
.geo-model-group h3 { font-size: 19px; font-weight: 700; color: #00507F; padding-bottom: 8px; border-bottom: 2px solid #218d00; margin-bottom: 18px; }
.geo-model-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 34px; }
.geo-model { border: 1px solid #e3e8ec; padding: 12px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.geo-model:hover { border-color: #218d00; }
.geo-model__photo { width: 100%; aspect-ratio: 1 / 1; background: #eef2f5; border: 1px dashed #b3c0c9; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #7d8b95; overflow: hidden; }
.geo-model__photo img { width: 100%; height: 100%; object-fit: cover; }
.geo-model__name { font-size: 14px; font-weight: 700; color: #00507F; }

/* Why choose us (benefit grid) */
.geo-benefits-section { background: #f4f7f9; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; margin-top: 56px; }
.geo-benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 16px; }
.geo-benefit { border-top: 3px solid #218d00; padding-top: 14px; }
.geo-benefit h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.geo-benefit p { font-size: 14px; line-height: 1.55; color: #4d5b64; }
.geo-benefits-section__footnote { font-size: 12.5px; line-height: 1.5; color: #7c8891; font-style: italic; }

/* Mid-page CTA band */
.geo-cta-band { background: #00507F; color: #fff; }
.geo-cta-band__inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.geo-cta-band h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.geo-cta-band p { font-size: 16px; color: #cfe0eb; }
.geo-cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Two-box plan cards */
.geo-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.geo-plan { border: 1px solid #e3e8ec; padding: 24px; }
.geo-plan h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.geo-plan p { font-size: 15px; line-height: 1.65; color: #4d5b64; margin-bottom: 14px; }
.geo-plan a { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Coverage-area list (municipalities within the metro, not separate CPT posts) */
.geo-coverage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 32px; text-align: center; }
.geo-coverage-list a { display: block; font-size: 15px; padding: 7px 0; border-bottom: 1px solid #eaeff2; }

/* FAQ */
.geo-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.geo-faq-item { border-top: 1px solid #e3e8ec; padding: 18px 0; }
.geo-faq-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.geo-faq-item p { font-size: 15px; line-height: 1.6; color: #4d5b64; }

/* Related-content two-box (troubleshooting links / nearby cities) */
.geo-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.geo-related-box { background: #f4f7f9; padding: 24px; }
.geo-related-box h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00507F; margin-bottom: 14px; }
.geo-related-box__links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.geo-related-box__links--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; }

/* Final CTA */
.geo-final-cta { background: #0a2d47; color: #fff; margin-top: 56px; }
.geo-final-cta__inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.geo-final-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.geo-final-cta p { font-size: 16px; color: #c3d6e3; max-width: 640px; margin: 0 auto 24px; }
.geo-final-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Brand switcher — every other brand's page for the same city (§8) */
.geo-brand-switcher { text-align: center; font-size: 14px; padding: 20px 0; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; }
.geo-brand-switcher__label { color: #5d6b74; margin-right: 6px; }
.geo-brand-switcher__sep { margin: 0 8px; color: #c3ced5; }

/* Brand hub (general pages only) — prominent card grid linking out to
   every vendor brand's page for the same city, since the general page
   is meant to act as a mini-hub funneling into brand-specific pages. */
.geo-brand-hub-section { background: #f4f7f9; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; }
.geo-brand-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.geo-brand-hub-card { display: block; background: #fff; border: 1px solid #e3e8ec; border-top: 3px solid #218d00; padding: 20px; text-align: center; font-weight: 700; font-size: 16px; color: #00507F; }
.geo-brand-hub-card:hover { border-color: #218d00; background: #fbfdfc; text-decoration: none; }

/* Generic sections — global content blocks, General pages only
   (parts/generic-section.php). Reuses the card/benefit visual language
   already on the page; no design reference existed for these blocks. */
.geo-generic h2 { font-size: 30px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.geo-generic .geo-section__lead { max-width: 820px; margin-left: auto; margin-right: auto; }
.geo-generic__inner { padding: 56px 24px; }
.geo-generic__footnote { font-size: 12.5px; line-height: 1.5; color: #7c8891; font-style: italic; margin-top: 14px; }
.geo-cards--4 { grid-template-columns: repeat(4, 1fr); }
.geo-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.geo-type-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e8ec; border-top: 3px solid #218d00; }
/* contain, not cover: show the whole photo/logo instead of cropping it to fill the box */
.geo-type-card__img { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid #eef2f5; padding: 12px; overflow: hidden; }
.geo-type-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* brand logos are wide and short: a flatter box with more side padding */
.geo-brands-band .geo-type-card__img { aspect-ratio: 16 / 9; padding: 18px 28px; }
.geo-type-card__body { padding: 18px 18px 20px; }
.geo-type-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.geo-type-card p { font-size: 15px; line-height: 1.6; color: #4d5b64; }
.geo-brands-band { background: #f4f7f9; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; margin-top: 56px; }
.geo-brands-band .geo-type-card { border-top-color: #00507F; }
.geo-type-grid--4 { grid-template-columns: repeat(4, 1fr); }
.geo-fast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.geo-fast-card { text-align: center; border: 1px solid #e3e8ec; border-top: 3px solid #00507F; padding: 24px 18px; }
.geo-fast-card__img { margin-bottom: 12px; }
.geo-fast-card__img img { max-width: 72px; height: auto; }
.geo-fast-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.geo-fast-card p { font-size: 15px; line-height: 1.6; color: #4d5b64; }

/* Free-form WYSIWYG content (body_freeform field) — no fixed structure,
   but headings/paragraphs/lists inside it still need real typography or
   they render as flat, unstyled text with no visual distinction from
   whatever section comes before it. */
.geo-freeform { padding-top: 8px; }
.geo-freeform h2 { font-size: 26px; font-weight: 700; margin-top: 32px; margin-bottom: 14px; }
.geo-freeform h3 { font-size: 20px; font-weight: 700; margin-top: 26px; margin-bottom: 10px; }
.geo-freeform h2:first-child, .geo-freeform h3:first-child { margin-top: 0; }
.geo-freeform p { font-size: 16px; line-height: 1.65; color: #3c4a53; margin-bottom: 14px; }
.geo-freeform ul, .geo-freeform ol { margin: 0 0 14px; padding-left: 22px; }
.geo-freeform li { font-size: 16px; line-height: 1.6; color: #3c4a53; margin-bottom: 6px; }

/* Responsive: collapse to single/double column below 900px, matching the
   precedent set by the troubleshooting-guide template's mobile handling. */
@media (max-width: 900px) {
	.geo-hero__inner { grid-template-columns: 1fr; }
	.geo-split__inner { grid-template-columns: 1fr; }
	.geo-stats__inner { grid-template-columns: repeat(2, 1fr); }
	.geo-cards { grid-template-columns: 1fr; }
	.geo-cards--4, .geo-type-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.geo-steps { grid-template-columns: repeat(2, 1fr); }
	.geo-benefits { grid-template-columns: repeat(2, 1fr); }
	.geo-model-grid { grid-template-columns: repeat(3, 1fr); }
	.geo-plan-grid { grid-template-columns: 1fr; }
	.geo-coverage-list { grid-template-columns: repeat(2, 1fr); }
	.geo-faq-grid { grid-template-columns: 1fr; }
	.geo-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.geo-cards--4, .geo-type-grid--4 { grid-template-columns: 1fr; }
	.geo-benefits { grid-template-columns: 1fr; }
}