/* City page template (inc/city-render.php). Reuses base/city-hero/grid-card/why/faq/hoods/cta-band classes. */

.ca-city-section { --ca-bg: #fff; padding: 72px 32px; background: var(--ca-bg); }
.ca-city-section:nth-of-type(even) { --ca-bg: #f3f6fb; }
.ca-city-section .sec-in { max-width: 1240px; margin: 0 auto; }
.ca-city-section .sec-title { margin-bottom: 14px; }
.ca-city-section .sec-sub { margin-bottom: 28px; }

/* No root block-gap between topbar / header / main / footer, nor between sections (WP adds 24px by default). */
body.city-pages .wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > .ca-city-main, main.ca-city-main { margin-block-start: 0 !important; }
.ca-city-main > * + * { margin-block-start: 0 !important; }

/* Hero: centered, rating card full width underneath (matches the original design). */
/* override.css sets .city-hero { padding: 50px !important } later in the cascade; win on specificity. */
body .city-hero.ca-city-hero { padding: 0 0 64px !important; }
.ca-city-hero .hero-in { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
.ca-city-hero .city-hero-copy { text-align: center !important; }
.ca-city-hero .hero-eyebrow { margin-left: auto; margin-right: auto; }
.ca-city-hero p.lede { max-width: 820px; margin-left: auto; margin-right: auto; }
.ca-city-hero .hero-checks { justify-content: center; }
.ca-city-hero .hero-cta { justify-content: center !important; }
.ca-city-hero .hero-card { width: 100%; max-width: 1000px; margin: 0 auto; text-align: left; }
.ca-city-hero .hero-card-list { grid-template-columns: 1fr; }
.ca-city-crumb .county-crumb-nav { justify-content: flex-start; }
.ca-city-hero .ca-city-crumb { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto !important; padding: 10px 32px 16px !important; }
.ca-city-hero .county-crumb-bar { background: transparent; border: 0; padding: 0 !important; margin: 0 !important; }
.ca-city-hero .county-crumb-inner { padding: 0; max-width: none; }
.ca-city-hero .county-crumb-nav { font-size: 14px; color: rgba(255,255,255,.7); gap: 6px; }
.ca-city-hero .county-crumb-nav a { color: rgba(255,255,255,.7); }
.ca-city-hero .county-crumb-nav a:hover { color: #fff; }
.ca-city-hero .county-crumb-sep { color: rgba(255,255,255,.4); }
.ca-city-hero .county-crumb-current { color: #fff; font-weight: 700; }
.ca-city-hero .hero-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.ca-city-hero .hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 24px; backdrop-filter: blur(6px); }
.ca-city-hero .hero-card-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ca-city-hero .hero-card-rating { font-family: 'Barlow Condensed', sans-serif; font-size: 56px; font-weight: 900; line-height: 1; margin: 0; }
.ca-city-hero .hero-card-stars { color: #fbbc04; letter-spacing: 2px; margin: 0; }
.ca-city-hero .hero-card-meta { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.ca-city-hero .hero-card-list { display: grid; gap: 8px; }
.ca-city-hero .hero-card-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ca-city-hero .hero-card-row span:last-child { font-weight: 800; color: #fff; }
.ca-city-hero[style*="--ca-hero-img"]::before { background-image: linear-gradient(90deg, rgba(11,29,58,.96) 0%, rgba(11,29,58,.82) 55%, rgba(11,29,58,.55) 100%), var(--ca-hero-img); background-size: cover; background-position: center; }

/* Intro + facts */
.ca-city-intro-grid, .ca-city-install-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 48px; align-items: start; }
.ca-city-copy p { font-size: 17px; line-height: 1.75; color: var(--text-2); margin: 0 0 18px; }
.ca-city-copy p:last-child { margin-bottom: 0; }
.ca-city-facts { background: var(--navy); color: #fff; border-radius: 16px; padding: 26px 28px; position: sticky; top: 90px; }
.ca-city-facts h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; color: var(--accent); }
.ca-city-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ca-city-facts li { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.85); padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ca-city-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.ca-city-facts strong { color: #fff; }
.ca-city-facts a { color: var(--accent); font-weight: 700; }
.ca-city-rebate p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.6; }
.ca-city-rebate .btn-green { display: inline-flex; margin-top: 6px; }

/* Services */
.ca-city-service { display: block; color: inherit; text-decoration: none; }
.ca-city-service .svc-card-icon { font-size: 26px; background: #eef6ff; margin-bottom: 16px; }
.ca-city-service .service-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.ca-city-service .service-text { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0 0 14px; }
.ca-city-service .service-link { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }

/* Issues */
.ca-city-issues .why-card-body h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; }

/* Neighborhoods */
.ca-city-section.ca-hoods-section .ca-hoods-grid { grid-template-columns: repeat(4, 1fr); }

/* Gallery */
.ca-city-gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ca-city-gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: #e2e8f0; aspect-ratio: 4 / 3; position: relative; }
.ca-city-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-city-gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Reviews */
.ca-city-reviews .coolairusa-google-rating-home { padding: 0 !important; background: transparent !important; }

/* FAQ */
.ca-city-faq-wrap { max-width: 900px; }
.ca-city-faq-more { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.ca-city-faq-more a { color: var(--accent); font-weight: 700; }

/* Location */
.ca-city-location .loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ca-city-location .loc-map-iframe { width: 100%; height: 360px; border: 0; border-radius: 16px; }
.ca-city-location .loc-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.ca-city-location .loc-row-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); font-weight: 700; }
.ca-city-location .loc-row-val { font-size: 16px; color: var(--navy); font-weight: 600; }

/* Nearby */
.ca-city-nearby-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ca-city-nearby-links a { background: var(--off); border: 1px solid #e2e8f0; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; transition: .2s; }
.ca-city-nearby-links a:hover { border-color: var(--accent); color: var(--accent); }
.ca-city-nearby-links a.is-county { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA band */
.ca-city-cta { padding: 56px 32px; margin-top: 0; }

@media (max-width: 1024px) {
	.ca-city-section.ca-hoods-section .ca-hoods-grid { grid-template-columns: repeat(3, 1fr); }
	.ca-city-gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.ca-city-intro-grid, .ca-city-install-grid { grid-template-columns: 1fr; gap: 28px; }
	.ca-city-facts { position: static; }
}
@media (max-width: 768px) {
	.ca-city-section { padding: 52px 20px; }
	.ca-city-section.ca-hoods-section .ca-hoods-grid { grid-template-columns: repeat(2, 1fr); }
	.ca-city-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.ca-city-location .loc-grid { grid-template-columns: 1fr; }
	.ca-city-hero .hero-in { grid-template-columns: 1fr; padding: 0 20px; }
	.ca-city-hero .ca-city-crumb { padding: 10px 20px 12px !important; }
	.ca-city-crumb .county-crumb-nav { justify-content: center; }
	.ca-city-hero .county-crumb-nav { font-size: 13px; }
}

/* Intro & installation copy: lead paragraph, subheadings, inline links */
.ca-city-copy p { margin: 0 0 16px; }
.ca-city-copy p.ca-lead { font-size: 19px; line-height: 1.7; color: var(--navy, #0b1d3a); }
.ca-city-copy h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; color: var(--navy, #0b1d3a); text-transform: none; letter-spacing: .2px; margin: 30px 0 10px; padding-left: 14px; border-left: 4px solid var(--accent, #38bdf8); line-height: 1.2; }
.ca-city-copy a { color: #0f7fd6; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15,127,214,.35); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ca-city-copy a:hover { text-decoration-color: currentColor; }
@media (max-width: 768px) { .ca-city-copy p.ca-lead { font-size: 17px; } .ca-city-copy h3 { font-size: 21px; } }

/* Merged facts card */
.ca-city-hero .hero-card-row { align-items: center; }
.ca-city-hero .hero-card-row span:first-child { display: flex; flex-direction: column; gap: 2px; }
.ca-city-hero .hero-card-row span:last-child { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 16px; }
.ca-city-hero .hero-card-row small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: 0; }
.ca-city-intro-single { max-width: 860px; }

/* Job photos (right under the hero) */
.ca-city-section.ca-city-gallery { padding-top: 56px; padding-bottom: 48px; }
/* Staggered (masonry) like the live site: 3 columns / 6 photos on desktop so every column fills; 2 columns on phones */
.ca-city-gallery .camg-gallery { --camg-columns-desktop: 3 !important; --camg-columns-tablet: 3 !important; --camg-columns-mobile: 2 !important; }
.ca-gallery-fold.is-folded .camg-grid:not(.is-masonry) .camg-item:nth-of-type(n+7),
.ca-gallery-fold.is-folded .ca-city-gallery-grid figure:nth-of-type(n+7) { display: none; }
/* JS masonry (assets/js/city.js): CSS grid, each photo given a column and a row span; page order is kept */
.ca-city-gallery .camg-grid.is-masonry { columns: auto !important; column-count: auto !important; display: grid; grid-template-columns: repeat(var(--ca-cols, 3), minmax(0, 1fr)); grid-auto-rows: 4px; grid-auto-flow: row dense; column-gap: var(--camg-gap, 16px); row-gap: 0; align-items: start; }
.ca-city-gallery .camg-grid.is-masonry .camg-item { display: block; width: 100%; margin: 0 !important; }
.ca-city-gallery .camg-grid.is-masonry .camg-item[hidden] { display: none; }
.ca-city-gallery .camg-caption__title { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; line-height: 1.15; }
/* Approved tags are longer: smaller title, and the text sits above the date stamp in the photo's corner. */
.ca-city-gallery .camg-caption { padding: 40px 14px 30px; }
@media (max-width: 600px) {
	.ca-city-gallery .camg-caption { padding: 34px 10px 22px; }
	.ca-city-gallery .camg-caption__title { font-size: 14px; }
}

/* Read more fold */
.ca-fold-actions { margin: 6px 0 0; text-align: center; }
.ca-fold-btn { background: transparent; border: 2px solid var(--navy, #0b1d3a); color: var(--navy, #0b1d3a); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; padding: 12px 22px; border-radius: 8px; cursor: pointer; }
.ca-fold-btn:hover { background: var(--navy, #0b1d3a); color: #fff; }
.ca-text-fold.is-folded .ca-fold-d { display: none; }
.ca-text-fold.is-folded { position: relative; }
.ca-text-fold.is-folded:not(.no-rest)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--ca-bg, #fff)); pointer-events: none; }
.ca-text-fold.no-rest + .ca-text-more { display: none; }
@media (max-width: 768px) {
	.ca-text-fold.is-folded .ca-fold-m { display: none; }
	.ca-text-fold.no-rest + .ca-text-more { display: block; }
	.ca-text-fold.is-folded.no-rest::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--ca-bg, #fff)); }
}

/* Map with directions + neighborhoods (merged) */
.ca-city-location .loc-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 48px; align-items: center; }
.ca-city-location .loc-map-iframe { width: 100% !important; height: 280px !important; min-height: 0 !important; border: 0; border-radius: 16px; display: block; }
.ca-city-location .loc-info .sec-sub { margin-bottom: 0; }
.ca-city-location .loc-hoods-wrap { margin-top: 36px; padding-top: 28px; border-top: 1px solid #dbe4ef; }
.ca-city-location .loc-hoods-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy, #0b1d3a); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 14px; text-align: center; }
/* Flex rows (not grid) so a short last row is centered under the rows above, at every width. */
.ca-city-location .loc-hoods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ca-city-location .loc-hoods li { flex: 0 0 calc((100% - 30px) / 4); box-sizing: border-box; min-width: 0; }
@media (max-width: 980px) { .ca-city-location .loc-hoods li { flex-basis: calc((100% - 20px) / 3); } }
.ca-city-location .loc-hoods li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #dbe4ef; border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--navy, #0b1d3a); }
.ca-city-location .loc-hoods li span { color: #0f7fd6; font-weight: 700; }
@media (max-width: 900px) { .ca-city-location .loc-grid { grid-template-columns: 1fr; gap: 24px; } .ca-city-location .loc-map-iframe { height: 240px !important; } }
@media (max-width: 620px) { .ca-city-location .loc-hoods li { flex-basis: calc((100% - 10px) / 2); } }

/* Reviews: rating sources in one row */
/* Wide screens: rating | star bars (take the free space) | sources list. Narrower: sources in one row under the bars. */
@media (min-width: 981px) {
	.ca-city-reviews .coolairusa-grb-summary-card { grid-template-columns: auto minmax(0, 1fr) auto !important; }
}
@media (max-width: 980px) {
	.ca-city-reviews .coolairusa-grb-badges { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 10px 32px; align-items: center; padding-left: 0 !important; border-left: 0 !important; margin-top: 18px; }
}
.ca-city-reviews .coolairusa-grb-badges > div { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; }

/* Uniform section headings: blue label, title and intro line centered in every section (like the live site). Body copy stays left-aligned. */
.ca-city-section .sec-label { display: flex; justify-content: center; text-align: center; }
.ca-city-section .sec-title, .ca-city-section .sec-sub { text-align: center; margin-left: auto; margin-right: auto; }
.ca-city-section .sec-sub { max-width: 760px; }
.ca-city-intro-single { max-width: 860px; margin-left: auto; margin-right: auto; }
.ca-city-copy, .ca-city-copy p, .ca-city-copy h3 { text-align: left; }
/* The theme's location pattern styles .loc-map as a padded card with a tall map; keep it compact here. */
.ca-city-location .loc-map { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; height: auto !important; min-height: 0 !important; }
.ca-city-location .loc-map iframe { box-shadow: 0 10px 30px -14px rgba(15,23,42,.35); }

/* Map section: heading centered on the page; text left, compact map right */
.ca-city-location .loc-grid { margin-top: 8px; }
.ca-city-location .loc-text { font-size: 17px; line-height: 1.75; color: var(--text-2, #475569); margin: 0 0 18px; }
.ca-city-location .loc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
/* Same look as the hero buttons: green Schedule Service + red pulsing phone */
.ca-city-location .loc-btn { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; line-height: normal; padding: 18px 32px; border-radius: 9px; text-decoration: none !important; cursor: pointer; transition: all .2s; }
.ca-city-location .loc-btn-green { background: var(--green, #22c55e); box-shadow: 0 6px 22px rgba(34, 197, 94, .32); }
.ca-city-location .loc-btn-green:hover { background: var(--green-2, #16a34a); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 197, 94, .4); }
.ca-city-location .loc-btn-red { background: #ef4444; font-size: 20px; font-weight: 700; padding: 16px 30px; gap: 8px; animation: cityHeroPulseRed 2.5s ease-in-out infinite; }
.ca-city-location .loc-btn-red:hover { background: #dc2626; transform: scale(1.03); }
@media (max-width: 580px) { .ca-city-location .loc-btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ca-city-location .loc-btn-red { animation: none; } }
.ca-city-section.ca-city-location .loc-map, .ca-city-section.ca-city-location .loc-map-iframe { height: 300px !important; max-height: none !important; aspect-ratio: auto !important; }
.ca-city-section.ca-city-location .loc-map { overflow: hidden; border-radius: 16px; }
@media (max-width: 900px) { .ca-city-section.ca-city-location .loc-map, .ca-city-section.ca-city-location .loc-map-iframe { height: 240px !important; } }
/* Installation: heading centered above copy + rebate box */
.ca-city-install .sec-in + .ca-city-install-grid { margin-top: 8px; }

/* Nearby cities, inside the coverage section */
.ca-city-location .loc-nearby-wrap { margin-top: 32px; }
.ca-city-location .ca-city-nearby-links, .ca-city-nearby-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }

/* Problems + services (merged section) */
.ca-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
.ca-problem { background: #fff; border: 1px solid #dbe4ef; border-radius: 16px; padding: 24px; text-align: left; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ca-problem::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, #38bdf8); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.ca-problem:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.1); border-color: var(--accent, #38bdf8); }
.ca-problem:hover::before { transform: scaleX(1); }
.ca-problem-ico { width: 44px; height: 44px; border-radius: 12px; background: #e8f6fe; color: #0f7fd6; display: grid; place-items: center; margin-bottom: 14px; }
.ca-problem h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; color: var(--navy, #0b1d3a); font-size: 21px; letter-spacing: .3px; margin: 0 0 8px; text-align: left; }
.ca-problem p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2, #475569); }
.ca-problem p a { color: #0f7fd6; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(15,127,214,.35); text-underline-offset: 3px; }
.ca-services-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; color: var(--navy, #0b1d3a); font-size: 18px; letter-spacing: .4px; text-align: center; margin: 44px 0 14px; }
.ca-services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ca-service { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: #fff; border: 1px solid #dbe4ef; border-radius: 14px; text-decoration: none; color: var(--navy, #0b1d3a); font-weight: 700; font-size: 15px; text-align: center; transition: .2s; }
.ca-service svg { width: 30px; height: 30px; color: #0f7fd6; }
.ca-service:hover { border-color: var(--accent, #38bdf8); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.1); }
.ca-service svg { transition: transform .25s; }
.ca-service:hover svg { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .ca-problem, .ca-problem::before, .ca-service, .ca-service svg { transition: none; } }
@media (max-width: 900px) { .ca-problems { grid-template-columns: 1fr; } .ca-services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ca-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reviews: our reply under a review (Birdeye) */
.ca-city-reviews .coolairusa-grb-reply { margin: 10px 0 0; padding: 10px 12px; background: #f3f8fd; border-left: 3px solid #38bdf8; border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: #475569; }
.ca-city-reviews .coolairusa-grb-reply strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0f7fd6; margin-bottom: 3px; }
.ca-city-reviews .coolairusa-grb-review-header strong a { color: inherit; text-decoration: none; }
.ca-city-reviews .coolairusa-grb-review-header strong a:hover { text-decoration: underline; }
.ca-city-reviews .coolairusa-grb-recommends { font-size: 13px; font-weight: 700; color: #1877f2; }
.ca-city-hero .hero-card-hdr { flex-wrap: wrap; row-gap: 14px; border-bottom: 0; padding-bottom: 0; }
.ca-city-hero .hero-card-sources b i { font-style: normal; font-size: .6em; color: #fbbf24; margin-left: 3px; vertical-align: .25em; }
.ca-city-hero .hero-card-sources { display: flex; margin: 0 0 0 auto; padding: 0; list-style: none; }
.ca-city-hero .hero-card-sources li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.14); }
.ca-city-hero .hero-card-sources li:last-child { padding-right: 0; }
.ca-city-hero .hero-card-sources b { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; color: #fff; }
.ca-city-hero .hero-card-sources span { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; }
@media (max-width: 640px) {
	.ca-city-hero .hero-card-sources { margin: 0; width: 100%; }
	.ca-city-hero .hero-card-sources li { flex: 1 1 0; padding: 0 10px; }
	.ca-city-hero .hero-card-sources li:first-child { border-left: 0; padding-left: 0; }
	.ca-city-hero .hero-card-sources b { font-size: 22px; }
	.ca-city-hero .hero-card-sources span { white-space: normal; font-size: 10px; }
}

/* County pages (inc/county-render.php) */
.ca-county-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.ca-county-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid #dbe4ef; border-radius: 14px; text-decoration: none; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ca-county-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, #38bdf8); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.ca-county-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.1); border-color: var(--accent, #38bdf8); }
.ca-county-tile:hover::before { transform: scaleX(1); }
.ca-county-tile strong { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; text-transform: uppercase; color: var(--navy, #0b1d3a); letter-spacing: .3px; }
.ca-county-tile span { font-size: 13px; color: var(--text-2, #475569); }
@media (max-width: 1024px) { .ca-county-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ca-county-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ca-county-tile { padding: 14px; } .ca-county-tile strong { font-size: 17px; } }
.ca-county-services .ca-services { margin-top: 8px; }

/* Install section promo slider (ca_city_promo_html) */
.ca-promo, .ca-promo * { box-sizing: border-box; }
.ca-promo { position: sticky; top: 90px; background: linear-gradient(150deg, var(--navy, #0b1d3a) 0%, #13294d 100%); border-radius: 18px; color: #fff; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(11,29,58,.55); }
.ca-promo-track { display: flex; transition: transform .5s ease; }
.ca-promo-slide { flex: 0 0 100%; min-width: 0; padding: 18px 24px 10px; display: flex; flex-direction: column; }
.ca-promo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; margin-bottom: 8px; }
.ca-promo-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent, #38bdf8); }
.ca-promo-logo { display: inline-flex; align-items: center; height: 44px; }
.ca-promo-logo.is-wide { height: 30px; }
.ca-promo-logo img { height: 100%; width: auto; max-width: 170px; object-fit: contain; display: block; }
.ca-promo-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 6px; color: #fff; }
.ca-promo-title em { font-style: normal; color: var(--accent, #38bdf8); }
.ca-promo-text { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 12px; flex: 1; }
.ca-promo-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--green, #22c55e); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; cursor: pointer; transition: background .2s, transform .15s; }
.ca-promo-btn:hover { background: var(--green-2, #16a34a); transform: translateY(-1px); }
.ca-promo-controls { display: flex; align-items: center; justify-content: space-between; padding: 4px 24px 14px; }
.ca-promo-dots { display: flex; gap: 6px; }
.ca-promo-dot { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: rgba(255,255,255,.28); cursor: pointer; transition: width .3s, background .3s; }
.ca-promo-dot.is-on { width: 22px; background: var(--accent, #38bdf8); }
.ca-promo-arrows { display: flex; gap: 6px; }
.ca-promo-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; padding: 0; }
.ca-promo-arrow:hover { border-color: var(--accent, #38bdf8); color: var(--accent, #38bdf8); }
.ca-promo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent, #38bdf8); }
@media (max-width: 980px) { .ca-promo { position: static; } }
@media (prefers-reduced-motion: reduce) { .ca-promo-track { transition: none; } .ca-promo-bar { display: none; } }

/* ── City hero, split layout (Oct 2026): copy left, card right on desktop; stacked below 1200px.
   Top bar = company facts, hero = this city. Scoped to .ca-hero-split so county pages keep their hero. */
@media (min-width: 1200px) {
	body .ca-hero-split .hero-in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important; gap: 48px; align-items: center; text-align: left; }
	body .ca-hero-split .city-hero-copy { text-align: left !important; }
	.ca-hero-split .hero-eyebrow { margin-left: 0; margin-right: 0; }
	.ca-hero-split p.lede { max-width: 600px; margin-left: 0; margin-right: 0; }
	.ca-hero-split .hero-checks { justify-content: flex-start; }
	body .ca-hero-split .hero-cta { justify-content: flex-start !important; }
	.ca-hero-split .hero-card { max-width: none; margin: 0; }
}
.ca-hero-split h1 { font-size: clamp(38px, 4.4vw, 58px); }
.ca-hero-split h1 .ca-h1-l1 { display: block; text-wrap: balance; }
/* H1 line 2 ("Air Conditioning, HVAC & Plumbing") reads as a subtitle under "AC Repair in City, FL". */
.ca-city-hero h1 .ca-h1-l2 { display: block; font-size: .58em; line-height: 1.15; margin-top: .25em; letter-spacing: .02em; }

/* Card: local count first */
.ca-hero-split .ca-hc-top { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.ca-hero-split .ca-hc-count { font-family: 'Barlow Condensed', sans-serif; font-size: 56px; font-weight: 900; line-height: 1; color: var(--accent, #38bdf8); margin: 0; flex-shrink: 0; }
.ca-hero-split .ca-hc-cap { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }
.ca-hero-split .ca-hc-cap small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); }

/* Review sites row */
.ca-hero-split .ca-hc-sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 4px; padding: 12px 0 14px; list-style: none; border-top: 1px solid rgba(255,255,255,.1); }
.ca-hero-split .ca-hc-sites li { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.12); min-width: 0; }
.ca-hero-split .ca-hc-sites li:first-child { padding-left: 0; border-left: 0; }
.ca-hero-split .ca-hc-sites b { display: inline-flex; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.1; color: #fff; }
.ca-hero-split .ca-hc-star { font-style: normal; color: #fbbc04; font-size: 18px; margin-left: 3px; }
.ca-hero-split .ca-hc-thumb { width: 17px; height: 17px; fill: #1877f2; margin-left: 5px; }
.ca-hero-split .ca-hc-sites span { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.7); white-space: nowrap; }
.ca-hero-split .ca-hc-sites small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); white-space: nowrap; }

/* Rows: values never wrap; diagnostic shows residential + commercial */
.ca-hero-split .hero-card-row span:last-child { white-space: nowrap; }
.ca-hero-split .ca-hc-fees em { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-style: normal; }
.ca-hero-split .ca-hc-fees em i { font-style: normal; font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }

@media (max-width: 420px) {
	.ca-hero-split .ca-hc-count { font-size: 44px; }
	.ca-hero-split .ca-hc-sites li { padding: 0 8px; }
	.ca-hero-split .ca-hc-sites span { font-size: 9px; letter-spacing: .5px; white-space: normal; }
	.ca-hero-split .ca-hc-sites small { font-size: 11px; }
}

/* "Ready to schedule" band: centered when it stacks (tablets and phones); on phones both buttons are
   full width, like the other buttons on the page. */
@media (max-width: 980px) {
	.ca-cta-band .ca-cta-inner { justify-content: center; text-align: center; }
	.ca-cta-band .ca-cta-inner > div:first-child { width: 100%; }
	.ca-cta-band .ca-cta-sub { margin-left: auto; margin-right: auto; }
	.ca-cta-band .ca-cta-actions { justify-content: center; }
}
@media (max-width: 600px) {
	.ca-cta-band .ca-cta-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
	.ca-cta-band .ca-cta-actions .wp-block-button { width: 100%; margin: 0; }
	.ca-cta-band .ca-cta-actions .wp-block-button__link { display: flex; width: 100%; justify-content: center; box-sizing: border-box; }
}

/* Maintenance / emergency sections (approved content, only on cities the SEO plan targets). */
.ca-city-extra-grid { display: grid; gap: 28px; }
.ca-city-extra-grid.is-two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ca-city-extra-item .sec-title { text-wrap: balance; }

/* Service Areas hub (/service-areas/) */
.ca-hub-page .hero-card-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ca-hub-page .ca-hub-county .sec-sub a { font-weight: 600; white-space: nowrap; }
.ca-hub-page .ca-hub-county { scroll-margin-top: 90px; }

/* About Us (/about-us/) */
.ca-about-timeline { list-style: none; margin: 8px auto 0; padding: 0; max-width: 900px; position: relative; }
.ca-about-timeline::before { content: ''; position: absolute; left: 59px; top: 8px; bottom: 60px; width: 2px; background: linear-gradient(#38bdf8, #22c55e); opacity: .45; }
.ca-about-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 0 0 34px; position: relative; }
.ca-about-step:last-child { padding-bottom: 0; }
.ca-about-when { justify-self: center; position: relative; z-index: 1; min-width: 96px; text-align: center; padding: 8px 12px; border-radius: 999px; background: var(--navy, #0b1d3a); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 6px var(--ca-bg, #fff); align-self: start; }
.ca-about-body { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px 26px; box-shadow: 0 6px 24px rgba(11, 29, 58, .06); }
/* Scroll reveal for the timeline (assets/js/main.js adds .visible as each step scrolls into view).
   Only opacity and transform animate, so nothing is laid out again; the hidden state applies only
   when scripting is on (no JavaScript = everything visible) and not for reduced-motion users. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.ca-about-step.ca-reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease var(--ca-delay, 0ms), transform .55s cubic-bezier(.2, .7, .2, 1) var(--ca-delay, 0ms); will-change: opacity, transform; }
	.ca-about-step.ca-reveal .ca-about-when { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--ca-delay, 0ms) + 180ms); }
	.ca-about-step.ca-reveal .ca-about-photo img { transform: scale(1.06); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--ca-delay, 0ms); }
	.ca-about-step.ca-reveal.visible { opacity: 1; transform: none; will-change: auto; }
	.ca-about-step.ca-reveal.visible .ca-about-when { opacity: 1; transform: none; }
	.ca-about-step.ca-reveal.visible .ca-about-photo img { transform: none; }
}
.ca-about-body h3 { margin: 0 0 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 24px; text-transform: uppercase; color: var(--navy, #0b1d3a); line-height: 1.15; }
.ca-about-body p { margin: 0; color: var(--text-2, #475569); line-height: 1.7; }
.ca-about-parts .ca-about-quote { max-width: 900px; margin: 0 auto; padding: 40px 44px; border-radius: 20px; background: linear-gradient(135deg, #0b1d3a, #152d5c); color: #e2e8f0; position: relative; overflow: hidden; }
.ca-about-parts .ca-about-quote::after { content: '\201C'; position: absolute; right: 26px; top: -18px; font: 800 180px/1 Georgia, serif; color: rgba(56, 189, 248, .14); }
.ca-about-parts .sec-title { color: #fff; }
.ca-about-parts .ca-about-quote p:not(.sec-label) { font-size: 18px; line-height: 1.75; margin: 0; position: relative; z-index: 1; }
.ca-about-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px auto 0; max-width: 1040px; }
.ca-about-partners > .ca-about-partner { flex: 0 1 calc((100% - 28px) / 3); min-height: 132px; }
.ca-about-partner.is-text b { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .5px; text-align: center; line-height: 1.05; }
.ca-about-partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 14px; background: linear-gradient(150deg, var(--navy, #0b1d3a) 0%, #13294d 100%); border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(11, 29, 58, .55); } /* navy like the promo slider: two of the logos are white */
.ca-about-partner img { height: 44px; width: auto; max-width: min(160px, 86%); object-fit: contain; }
@media (max-width: 640px) { .ca-about-partner img { height: 34px; } }
.ca-about-partner.no-label img { height: 68px; max-width: min(230px, 86%); }
@media (max-width: 640px) { .ca-about-partner.no-label img { height: 50px; } }
.ca-about-partner[data-logo="fhp"] img { height: 96px; } /* the swooshes make the FHP mark small at the shared height */
@media (max-width: 640px) { .ca-about-partner[data-logo="fhp"] img { height: 70px; } }
.ca-about-partner span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: #7dd3fc; text-align: center; }
.ca-about-brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ca-about-brand-list li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #dbe3ee; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .3px; color: var(--navy, #0b1d3a); }
.ca-about-office-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: center; max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px 40px; box-shadow: 0 6px 24px rgba(11, 29, 58, .06); }
.ca-about-office-card .sec-label, .ca-about-office-card .sec-title { text-align: left; justify-content: flex-start; }
.ca-about-office-card p { color: var(--text-2, #475569); line-height: 1.7; }
.ca-about-note { font-size: 14px; border-left: 3px solid #38bdf8; padding-left: 12px; margin-top: 14px; }
.ca-about-facts { margin: 0; display: grid; gap: 14px; }
.ca-about-facts div { padding: 12px 16px; border-radius: 12px; background: #f3f6fb; }
.ca-about-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2, #475569); }
.ca-about-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy, #0b1d3a); }
/* About: county cards */
.ca-about-county-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.ca-about-county { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; text-decoration: none; box-shadow: 0 6px 24px rgba(11, 29, 58, .06); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ca-about-county:hover { transform: translateY(-2px); border-color: #38bdf8; box-shadow: 0 14px 34px -14px rgba(11, 29, 58, .3); }
.ca-about-county strong { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; text-transform: uppercase; color: var(--navy, #0b1d3a); line-height: 1.1; }
.ca-about-county span { color: var(--text-2, #475569); font-size: 15px; line-height: 1.5; }
.ca-about-county em { font-style: normal; font-weight: 700; color: #0284c7; margin-top: auto; padding-top: 6px; }
.ca-about-areas-all { text-align: center; margin: 22px 0 0; font-weight: 700; }
@media (max-width: 900px) { .ca-about-county-grid { grid-template-columns: 1fr; } }

/* About photos */
.ca-about-photo { margin: -22px -26px 18px; border-radius: 16px 16px 0 0; overflow: hidden; }
.ca-about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ca-about-awards { max-width: 760px; margin: 30px auto 0; }
.ca-about-awards img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(11, 29, 58, .45); }
.ca-about-awards figcaption { text-align: center; font-size: 14px; color: var(--text-2, #475569); margin-top: 10px; }
@media (max-width: 900px) {
	.ca-about-partners > .ca-about-partner { flex-basis: calc((100% - 14px) / 2); min-height: 112px; }
	.ca-about-partner.is-text b { font-size: 24px; }
	.ca-about-office-card { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 640px) {
	.ca-about-timeline::before { display: none; }
	.ca-about-step { grid-template-columns: 1fr; gap: 10px; padding-bottom: 26px; }
	.ca-about-when { justify-self: start; min-width: 0; }
	.ca-about-body { padding: 18px; }
	.ca-about-photo { margin: -18px -18px 14px; }
	.ca-about-parts .ca-about-quote { padding: 28px 22px; }
	.ca-about-parts .ca-about-quote p:not(.sec-label) { font-size: 16px; }
	.ca-about-brand-list li { font-size: 15px; padding: 8px 13px; }
}
