/* Custom Banners Chicago — main stylesheet (v2, design overhaul)
   Full-bleed bands, real hierarchy, card presence, tight rhythm. No framework. */

:root {
	--cbc-primary: #1d6fe0;
	--cbc-primary-dark: #1659b8;
	--cbc-navy: #0e2a55;
	--cbc-navy-2: #15356a;
	--cbc-slate: #334155;
	--cbc-muted: #64748b;
	--cbc-white: #fff;
	--cbc-offwhite: #f4f7fc;
	--cbc-border: #e2e8f0;
	--cbc-radius-sm: 8px;
	--cbc-radius: 12px;
	--cbc-radius-lg: 18px;
	--cbc-shadow-sm: 0 1px 2px rgba(14, 42, 85, .06);
	--cbc-shadow: 0 10px 30px rgba(14, 42, 85, .08);
	--cbc-shadow-lg: 0 24px 60px rgba(14, 42, 85, .16);
	--cbc-header-h: 76px;
	--cbc-wide: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--cbc-slate);
	background: var(--cbc-white);
	font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--cbc-navy); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
a { color: var(--cbc-primary); }
p { margin: 0 0 1rem; }

/* Accessibility */
.cbc-skip { position: absolute; left: -9999px; top: 0; background: var(--cbc-navy); color: #fff; padding: 12px 18px; z-index: 1000; border-radius: 0 0 var(--cbc-radius) 0; }
.cbc-skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cbc-primary); outline-offset: 2px; }
.cbc-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout: full-bleed bands + inner container ---------- */
.cbc-container { width: 100%; max-width: var(--cbc-wide); margin-inline: auto; padding-inline: 24px; }
.cbc-band { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.cbc-band--alt { background: var(--cbc-offwhite); }
.cbc-band--navy { background: var(--cbc-navy); }
.cbc-band--navy, .cbc-band--navy :where(h1,h2,h3,p) { color: #fff; }
.cbc-band--tight { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
/* Legacy class still used by some inline content */
.cbc-section { padding-block: clamp(2.5rem, 5vw, 4rem); }

.cbc-head { text-align: center; max-width: 720px; margin: 0 auto clamp(1.75rem, 3vw, 2.5rem); }
.cbc-eyebrow { color: var(--cbc-primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem; }
.cbc-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.cbc-head p { color: var(--cbc-muted); font-size: 1.1rem; margin: .5rem 0 0; }

/* ---------- Buttons ---------- */
.cbc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 50px; padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: var(--cbc-radius);
	font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.cbc-btn--primary { background: var(--cbc-primary); color: #fff; box-shadow: 0 6px 18px rgba(29, 111, 224, .25); }
.cbc-btn--primary:hover, .cbc-btn--primary:focus-visible { background: var(--cbc-primary-dark); color: #fff; transform: translateY(-1px); }
.cbc-btn--ghost { background: #fff; color: var(--cbc-primary); border-color: var(--cbc-border); }
.cbc-btn--ghost:hover, .cbc-btn--ghost:focus-visible { border-color: var(--cbc-primary); color: var(--cbc-primary-dark); }
.cbc-btn--lg { min-height: 56px; padding: .95rem 1.9rem; font-size: 1.05rem; }

/* WordPress button blocks carrying our classes (style the inner <a>) */
.wp-block-button.cbc-btn { padding: 0; border: 0; min-height: 0; background: none; box-shadow: none; }
.wp-block-button.cbc-btn > .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 50px; padding: .8rem 1.5rem; border-radius: var(--cbc-radius);
	font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; border: 2px solid transparent;
}
.wp-block-button.cbc-btn--primary > .wp-block-button__link { background: var(--cbc-primary); color: #fff; box-shadow: 0 6px 18px rgba(29, 111, 224, .25); }
.wp-block-button.cbc-btn--primary > .wp-block-button__link:hover { background: var(--cbc-primary-dark); color: #fff; }
.wp-block-button.cbc-btn--ghost > .wp-block-button__link { background: #fff; color: var(--cbc-primary); border-color: var(--cbc-border); }
.wp-block-button.cbc-btn--ghost > .wp-block-button__link:hover { border-color: var(--cbc-primary); color: var(--cbc-primary-dark); }
.wp-block-button.cbc-btn--lg > .wp-block-button__link { min-height: 56px; padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header (sticky) ---------- */
.cbc-header { position: sticky; top: 0; z-index: 100; min-height: var(--cbc-header-h); background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--cbc-border); }
.cbc-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--cbc-header-h); }
.cbc-header .wp-block-site-logo img, .cbc-logo { height: 48px; width: auto; }
.cbc-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.cbc-header__phone { font-weight: 800; color: var(--cbc-navy); text-decoration: none; white-space: nowrap; }
.cbc-header__phone:hover { color: var(--cbc-primary); }
.cbc-header__phone-wrap { margin: 0; }
.cbc-header .wp-block-navigation { gap: .4rem 1.2rem; font-weight: 600; }
.cbc-header .wp-block-navigation a { color: var(--cbc-navy); }
.cbc-header .wp-block-navigation a:hover { color: var(--cbc-primary); }

/* ---------- Trust bar ---------- */
.cbc-trust { background: var(--cbc-navy); color: #fff; }
.cbc-trust__list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; align-items: center; list-style: none; margin: 0; padding: .7rem 24px; font-size: .92rem; font-weight: 600; }
.cbc-trust__list li { display: inline-flex; align-items: center; gap: .45rem; }
.cbc-trust__list svg { width: 17px; height: 17px; color: #7db0ff; flex: none; }

/* ---------- Hero ---------- */
.cbc-hero { background: radial-gradient(1200px 500px at 80% -10%, #e9f1fd 0%, transparent 60%), linear-gradient(180deg, var(--cbc-offwhite), #fff); }
.cbc-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.cbc-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin: .3rem 0 1rem; }
.cbc-hero p.lead { font-size: 1.2rem; color: var(--cbc-slate); margin: 0 0 1.6rem; max-width: 36ch; }
.cbc-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.cbc-hero__mini { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; color: var(--cbc-muted); font-size: .92rem; font-weight: 600; }
.cbc-hero__mini li { display: inline-flex; align-items: center; gap: .4rem; }
.cbc-hero__mini svg { width: 16px; height: 16px; color: var(--cbc-primary); }
.cbc-hero__media { position: relative; }
.cbc-hero__media svg { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(14,42,85,.18)); border-radius: var(--cbc-radius-lg); }
.cbc-hero__badge { position: absolute; background: #fff; border: 1px solid var(--cbc-border); box-shadow: var(--cbc-shadow); border-radius: var(--cbc-radius); padding: .6rem .85rem; font-weight: 700; font-size: .85rem; color: var(--cbc-navy); display: flex; align-items: center; gap: .5rem; }
.cbc-hero__badge svg { width: 20px; height: 20px; color: var(--cbc-primary); }
.cbc-hero__badge--tl { top: 6%; left: -4%; }
.cbc-hero__badge--br { bottom: 8%; right: -3%; }
@media (max-width: 880px) { .cbc-hero__grid { grid-template-columns: 1fr; } .cbc-hero__media { max-width: 460px; } .cbc-hero__badge--tl, .cbc-hero__badge--br { display: none; } }

/* ---------- Grids / cards ---------- */
.cbc-grid { display: grid; gap: 1.25rem; }
.cbc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cbc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cbc-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cbc-grid--3, .cbc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cbc-grid--2, .cbc-grid--3, .cbc-grid--4 { grid-template-columns: 1fr; } }

.cbc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius-lg); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--cbc-shadow-sm); text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.cbc-card:hover { box-shadow: var(--cbc-shadow); transform: translateY(-3px); border-color: #cfe0f7; }
.cbc-card__icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #e8f1fe, #d6e6fb); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.cbc-card__icon svg { width: 26px; height: 26px; color: var(--cbc-primary); }
.cbc-card h3 { font-size: 1.22rem; margin: 0 0 .4rem; color: var(--cbc-navy); }
.cbc-card p { margin: 0 0 1rem; color: var(--cbc-slate); font-size: .97rem; }
.cbc-card__link { margin-top: auto; font-weight: 700; color: var(--cbc-primary); }
a.cbc-card:hover .cbc-card__link { text-decoration: underline; }

/* ---------- Steps (how it works) ---------- */
.cbc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 760px) { .cbc-steps { grid-template-columns: 1fr; } }
.cbc-step { background: #fff; border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius-lg); padding: 1.6rem 1.5rem; box-shadow: var(--cbc-shadow-sm); }
.cbc-step__n { width: 42px; height: 42px; border-radius: 50%; background: var(--cbc-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.cbc-step h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.cbc-step p { margin: 0; color: var(--cbc-slate); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cbc-cta { background: linear-gradient(135deg, var(--cbc-primary), #2f80ed); color: #fff; border-radius: var(--cbc-radius-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--cbc-shadow); }
.cbc-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cbc-cta p { color: #eaf1ff; margin: 0 auto 1.4rem; max-width: 52ch; }
.cbc-cta .cbc-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.cbc-cta .cbc-btn--primary, .cbc-cta .wp-block-button.cbc-btn--primary > .wp-block-button__link { background: #fff; color: var(--cbc-primary); box-shadow: none; }
.cbc-cta .cbc-btn--primary:hover, .cbc-cta .wp-block-button.cbc-btn--primary > .wp-block-button__link:hover { background: var(--cbc-navy); color: #fff; }
.cbc-cta .cbc-btn--ghost, .cbc-cta .wp-block-button.cbc-btn--ghost > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cbc-cta .cbc-btn--ghost:hover, .cbc-cta .wp-block-button.cbc-btn--ghost > .wp-block-button__link:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- FAQ ---------- */
.cbc-faq { max-width: 820px; margin-inline: auto; }
.cbc-faq__item { border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius); margin-bottom: .75rem; background: #fff; box-shadow: var(--cbc-shadow-sm); }
.cbc-faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; font-size: 1.06rem; font-weight: 700; color: var(--cbc-navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cbc-faq__q::after { content: "+"; font-size: 1.5rem; color: var(--cbc-primary); line-height: 1; }
.cbc-faq__q[aria-expanded="true"]::after { content: "\2013"; }
.cbc-faq__a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .2s, padding .2s; color: var(--cbc-slate); }
.cbc-faq__a[data-open="true"] { padding: 0 1.3rem 1.15rem; max-height: 600px; }

/* ---------- Area tabs ---------- */
.cbc-tabs__nav { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--cbc-border); margin-bottom: 1.75rem; }
.cbc-tabs__btn { border: 0; background: none; padding: .75rem 1.05rem; font-weight: 700; color: var(--cbc-slate); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.cbc-tabs__btn:hover { background: var(--cbc-offwhite); }
.cbc-tabs__btn[aria-selected="true"] { color: var(--cbc-primary); border-bottom-color: var(--cbc-primary); }
.cbc-tabs__panel[hidden] { display: none; }
.cbc-citylist { columns: 3 220px; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.cbc-citylist li { break-inside: avoid; margin-bottom: .55rem; }
.cbc-citylist a { color: var(--cbc-navy); text-decoration: none; }
.cbc-citylist a:hover { color: var(--cbc-primary); text-decoration: underline; }

/* ---------- Specs / content lists ---------- */
.cbc-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cbc-specs li { position: relative; padding-left: 1.6rem; }
.cbc-specs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--cbc-primary); }

/* ---------- Forms / calculator ---------- */
.cbc-formcard { background: #fff; border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius-lg); box-shadow: var(--cbc-shadow); padding: clamp(1.25rem, 3vw, 2rem); max-width: 720px; margin-inline: auto; }
.cbc-form { display: grid; gap: 1.1rem; }
.cbc-field { display: grid; gap: .4rem; }
.cbc-field label { font-weight: 700; font-size: .92rem; color: var(--cbc-navy); }
.cbc-field input, .cbc-field select, .cbc-field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius-sm); font: inherit; color: var(--cbc-navy); background: #fff; }
.cbc-field input:focus, .cbc-field select:focus, .cbc-field textarea:focus { border-color: var(--cbc-primary); outline: none; box-shadow: 0 0 0 3px rgba(29,111,224,.16); }
.cbc-field--row { grid-template-columns: 1fr 1fr; gap: 1rem; }
.cbc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cbc-estimate { background: var(--cbc-offwhite); border: 1px solid var(--cbc-border); border-radius: var(--cbc-radius); padding: 1.25rem 1.35rem; }
.cbc-estimate__row { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--cbc-slate); }
.cbc-estimate__total { display: flex; justify-content: space-between; border-top: 2px solid var(--cbc-border); margin-top: .5rem; padding-top: .85rem; font-size: 1.4rem; font-weight: 800; color: var(--cbc-navy); }
.cbc-estimate__note { margin: .6rem 0 0; font-size: .85rem; color: var(--cbc-primary); font-weight: 700; }
.cbc-calc hr { border: 0; border-top: 1px solid var(--cbc-border); margin: 1.4rem 0; }
.cbc-form__msg { margin: .5rem 0 0; font-weight: 700; min-height: 1.2em; }
.cbc-form__msg--error { color: #b42318; }
[data-cbc-submit][disabled] { opacity: .65; cursor: progress; }

/* ---------- Breadcrumbs ---------- */
.cbc-breadcrumbs { font-size: .85rem; color: var(--cbc-muted); padding-block: 1rem 0; }
.cbc-breadcrumbs a { color: var(--cbc-muted); text-decoration: none; }
.cbc-breadcrumbs a:hover { color: var(--cbc-primary); }
.cbc-breadcrumbs [aria-current="page"] { color: var(--cbc-navy); font-weight: 600; }

/* ---------- Footer ---------- */
.cbc-footer { background: var(--cbc-navy); color: #c3d2ea; }
.cbc-footer a { color: #c3d2ea; text-decoration: none; }
.cbc-footer a:hover { color: #fff; }
.cbc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.25rem 2.5rem; }
.cbc-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.cbc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cbc-footer .wp-block-site-logo img { height: 56px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.cbc-footer__nap { font-style: normal; color: #9fb3d1; font-size: .92rem; line-height: 1.7; margin-top: 1rem; }
.cbc-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #9fb3d1; }
@media (max-width: 860px) { .cbc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .cbc-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile nav (core navigation handles overlay; just spacing) ---------- */
@media (max-width: 600px) { .cbc-header .wp-block-site-logo img { height: 40px; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Prose spacing inside bands */
.cbc-band .cbc-container > h1:first-child, .cbc-band .cbc-container > h2:first-child { margin-top: 0; }
.cbc-prose { max-width: 760px; }
.cbc-prose h2 { margin-top: 2rem; font-size: 1.5rem; }
