/* CondoConnectHQ block theme: design for core blocks + CondoConnectHQ patterns.
   Used on the front end AND in the editor (add_editor_style). WCAG 2.1 AA targets. */

:root {
	--cc-navy: var(--wp--preset--color--navy, #12124a);
	--cc-violet: var(--wp--preset--color--violet, #4c2bd0);
	--cc-violet-dark: var(--wp--preset--color--violet-dark, #3b1fae);
	--cc-violet-soft: var(--wp--preset--color--violet-soft, #ece8fd);
	--cc-lilac: var(--wp--preset--color--lilac, #f4f2ff);
	--cc-grey: var(--wp--preset--color--grey, #f5f6fa);
	--cc-line: var(--wp--preset--color--line, #dcdeea);
	--cc-muted: var(--wp--preset--color--muted, #5a5f7d);
	--cc-radius: 14px;
	--cc-gutter: clamp(16px, 4vw, 32px);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
section[id], .wp-block-group[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--cc-violet); outline-offset: 3px; border-radius: 4px; }
.cchq-footer :focus-visible, .cchq-cta.is-dark :focus-visible { outline-color: #fff; }

/* Page structure: no block-gap between full-width sections */
.wp-site-blocks > * { margin-block: 0; }
.cchq-main, .cchq-main > .wp-block-post-content { margin: 0; }
.wp-block-post-content > * { margin-block: 0; }
.wp-block-post-content > :not(.alignfull) { max-width: 1200px; margin-inline: auto; padding-inline: var(--cc-gutter); box-sizing: border-box; }
.cchq-section, .cchq-header, .cchq-footer { box-sizing: border-box; }
.cchq-section :is(p, h1, h2, h3, ul, ol, figure) { margin-block: 0 1rem; }
.cchq-section :is(h1, h2, h3) { margin-block-end: .5em; }
.cchq-section { padding: 56px var(--cc-gutter); }
.cchq-section.is-compact { padding-block: 32px; }
.cchq-section.is-flush-top { padding-top: 0; }
.cchq-section.is-tint { background: var(--cc-grey); }
.cchq-section.cchq-narrow > * { max-width: 860px; }
.cchq-lead { font-size: 1.125rem; max-width: 38em; }
.has-text-align-center.cchq-lead { margin-inline: auto; }
.cchq-eyebrow { font-size: .85rem !important; letter-spacing: .02em; margin-block: 40px 12px !important; }

/* Buttons */
.wp-block-buttons { gap: 12px; margin-block: 0 1rem; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; box-sizing: border-box; text-decoration: none; }
.cchq-btn-light .wp-block-button__link { background: #fff; color: var(--cc-navy); }
.cchq-btn-light .wp-block-button__link:hover { background: var(--cc-lilac); color: var(--cc-navy); }
@media (max-width: 480px) { .cchq-hero .wp-block-buttons, .cchq-cta .wp-block-buttons { flex-wrap: nowrap; gap: 8px; } .cchq-hero .wp-block-button__link, .cchq-cta .wp-block-button__link { padding-inline: 12px; font-size: .9rem; white-space: nowrap; } }

/* Icons (editable Image blocks) */
.wp-block-image.cchq-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cc-violet-soft); margin: 0 0 12px; flex: none; }
.wp-block-image.cchq-icon img { width: 24px; height: 24px; max-width: none; }
.wp-block-image.cchq-icon--plain { background: none; width: 28px; height: 28px; margin: 2px 0 0; }
.wp-block-image.cchq-icon--plain img { width: 28px; height: 28px; }
.wp-block-image.cchq-icon--sm { width: 40px; height: 40px; margin: 0; }
.wp-block-image.cchq-icon--big { width: 64px; height: 64px; background: #fff; margin: 0; }
.wp-block-image.cchq-icon--big img { width: 34px; height: 34px; }
.wp-block-image.cchq-shot img { width: 100%; height: auto; border-radius: 12px; }
.cchq-section figure.cchq-shot { margin: 0; }

/* Hero + trust */
.cchq-hero { background: radial-gradient(1200px 400px at 85% -10%, var(--cc-lilac), transparent 60%), #fff; padding-block: 40px 24px; }
@media (min-width: 1024px) { .cchq-hero { padding-block: 64px 32px; } }
.cchq-hero__cols { gap: 32px 40px; margin: 0; }
.cchq-page-hero { background: radial-gradient(900px 300px at 50% -20%, var(--cc-lilac), transparent 70%); padding-block: 40px 24px; }
.cchq-trust { gap: 16px; }
.cchq-trust__item { gap: 12px; color: var(--cc-violet); }
.cchq-trust__txt { gap: 0; }
.cchq-trust__txt p { margin: 0; }
.cchq-trust__t { color: var(--cc-navy); }
.cchq-trust__d { color: var(--cc-muted); font-size: .8rem; line-height: 1.4; margin-top: 2px !important; }

/* Cards */
.cchq-cards { gap: 16px; }
.cchq-card { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 22px; box-shadow: 0 1px 2px rgba(18, 18, 74, .04); }
.cchq-card > :last-child { margin-bottom: 0; }
.cchq-card__lead { font-weight: 500; color: var(--cc-navy); }
.cchq-checklist { list-style: none; padding: 0; margin: 0; }
.cchq-checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.cchq-checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f4b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Feature showcase */
.cchq-features { display: grid; gap: 20px; }
.cchq-feature.wp-block-columns { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 22px; gap: 20px 40px; margin: 0; align-items: center; }
.cchq-feature h3 { font-size: 1.3rem; }
.cchq-feature p { margin-bottom: 0; }
@media (min-width: 782px) {
	.cchq-feature.wp-block-columns { padding: 28px 36px; }
	.cchq-features > .cchq-feature:nth-child(even) { flex-direction: row-reverse; }
}

/* Bands, teaser, CTA */
.cchq-band { gap: 20px; align-items: center; background: var(--cc-lilac); border: 1px solid #ddd6fb; border-radius: var(--cc-radius); padding: 24px; }
.cchq-band__copy { flex: 1 1 280px; }
.cchq-band__copy h2, .cchq-teaser__copy h2 { font-size: 1.35rem; margin-bottom: .25em; }
.cchq-band__copy p, .cchq-teaser__copy p, .cchq-cta__copy p { margin: 0; }
.cchq-band .wp-block-buttons, .cchq-teaser .wp-block-buttons, .cchq-cta .wp-block-buttons { margin: 0; }
.cchq-teaser { gap: 16px; align-items: center; }
.cchq-cta-section { padding-block: 8px 56px; }
.cchq-cta { gap: 20px; align-items: center; background: linear-gradient(120deg, var(--cc-lilac), #e3e8ff 60%, #d5f0e4); border-radius: var(--cc-radius); padding: 32px; }
.cchq-cta__copy { flex: 1 1 320px; }
.cchq-cta.is-dark { background: linear-gradient(120deg, var(--cc-navy), #2b1d95); }
.cchq-cta.is-dark :is(h2, p) { color: #fff; }

/* Included, blocks, FAQ */
.cchq-included { gap: 4px 24px; }
.cchq-included__item { gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cc-line); align-items: center; }
.cchq-included__item p { margin: 0; font-weight: 500; color: var(--cc-navy); }
.cchq-included__item .wp-block-image { margin: 0; }
.cchq-blocks { gap: 8px; align-items: center; }
.cchq-blocks p { margin: 0; }
.cchq-blocks__box, .cchq-blocks__total { background: #fff; border: 1px solid var(--cc-line); border-radius: 10px; padding: 8px 14px; text-align: center; line-height: 1.2; font-size: .85rem; }
.cchq-blocks strong { display: block; font-size: 1.1rem; color: var(--cc-navy); }
.cchq-blocks__total { border-color: var(--cc-violet); color: var(--cc-violet); }
.cchq-blocks__op { font-weight: 700; color: var(--cc-muted); }
.cchq-faq { border: 1px solid var(--cc-line); border-radius: var(--cc-radius); background: #fff; overflow: hidden; }
.cchq-faq .wp-block-details { margin: 0; border-top: 1px solid var(--cc-line); }
.cchq-faq .wp-block-details:first-child { border-top: 0; }
.cchq-faq summary { padding: 14px 20px; min-height: 56px; box-sizing: border-box; display: flex; align-items: center; font-weight: 600; color: var(--cc-navy); cursor: pointer; }
.cchq-faq .wp-block-details > :not(summary) { padding: 0 20px 16px; margin: 0; }

/* Security */
.cchq-sec { gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--cc-line); }
.cchq-sec h2 { font-size: 1.3rem; }
.cchq-note { background: var(--cc-lilac); border-radius: var(--cc-radius); padding: 24px; margin-top: 32px; }
.cchq-note > :last-child { margin-bottom: 0; }

/* Notice + prose */
.cchq-notice { background: #fff7e6; border: 1px solid #f0cf8a; color: #5c3b00; border-radius: 10px; padding: 14px 16px; margin-bottom: 1rem; }
.cchq-notice p { margin: 0; color: inherit; }

/* Demo page layout */
.cchq-demo-cols { gap: 32px 48px; margin: 0; }
.cchq-expect { background: var(--cc-lilac); border-radius: var(--cc-radius); padding: 24px; margin: 24px 0 16px; }
.cchq-expect h2 { font-size: 1.2rem; }
.cchq-expect__step { gap: 14px; margin-bottom: 16px; }
.cchq-expect__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cc-violet); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 !important; }
.cchq-expect__step p { margin: 0; }
.cchq-expect__d { color: var(--cc-muted); font-size: .88rem; }
.cchq-assure { gap: 12px; }
.cchq-assure__item { border: 1px solid var(--cc-line); border-radius: 10px; padding: 12px; font-size: .85rem; }
.cchq-assure__item p { margin: 6px 0 0; }

/* Header + navigation */
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; } }
.cchq-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--cc-line); padding-inline: var(--cc-gutter); }
.cchq-header__inner { min-height: 72px; gap: 16px; width: 100%; max-width: 1200px; margin-inline: auto; align-items: center; }
.cchq-brand { position: relative; gap: 10px; align-items: center; }
.cchq-brand .wp-block-image { margin: 0; }
.cchq-brand img { width: 40px; height: 40px; display: block; }
.cchq-wordmark { margin: 0 !important; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.cchq-wordmark a { color: var(--cc-navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.cchq-wordmark a::after { content: ""; position: absolute; inset: 0; }
.cchq-nav .wp-block-navigation__container { gap: 4px 24px; }
.cchq-nav .wp-block-navigation-item__content { box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; color: var(--cc-navy); font-weight: 500; font-size: .95rem; text-decoration: none; }
.cchq-nav .wp-block-navigation-item__content:hover { color: var(--cc-violet); }
.cchq-nav .cchq-nav-cta .wp-block-navigation-item__content { background: var(--cc-violet); color: #fff; border-radius: 10px; padding: 8px 22px; min-height: 46px; font-weight: 600; margin-left: 4px; }
.cchq-nav .cchq-nav-cta .wp-block-navigation-item__content:hover { background: var(--cc-violet-dark); color: #fff; }
.cchq-nav .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--cc-navy); }
/* Hamburger below 1024px (core switches at 600px) */
@media (max-width: 1023px) {
	.cchq-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.cchq-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.cchq-nav .wp-block-navigation__responsive-container.is-menu-open { display: flex; background: #fff; color: var(--cc-navy); }
	.cchq-nav .is-menu-open .wp-block-navigation__container { align-items: stretch; width: 100%; gap: 0; }
	.cchq-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
	.cchq-nav .is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--cc-line); }
	.cchq-nav .is-menu-open .cchq-nav-cta .wp-block-navigation-item__content { justify-content: center; margin: 16px 0 0; border-bottom: 0; }
}

/* Footer */
.cchq-footer { background: var(--cc-navy); color: #d6d8ee; padding: 48px var(--cc-gutter) 24px; }
.cchq-footer > * { max-width: 1200px; }
.cchq-footer__cols { gap: 28px; margin: 0; }
.cchq-footer a { color: #d6d8ee; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.cchq-footer a:hover { color: #fff; text-decoration: underline; }
.cchq-footer__h { color: #fff; font-size: .95rem !important; margin: 0 0 .6em; }
.cchq-footer__list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.cchq-footer__about { font-size: .92rem; max-width: 28em; }
.cchq-wordmark--light, .cchq-wordmark--light a { color: #fff; }
.cchq-logo--light img { background: #fff; border-radius: 10px; padding: 3px; width: 40px; height: 40px; }
.cchq-footer .wp-block-image { margin: 0 0 8px; }
.cchq-footer__bar { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; font-size: .85rem; gap: 12px; }
.cchq-footer__bar p { margin: 0; }
.cchq-footer__bar a { text-decoration: underline; min-height: 0; }
@media (max-width: 781px) {
	.cchq-footer__cols > .wp-block-column { flex-basis: calc(50% - 14px) !important; flex-grow: 0; }
	.cchq-footer__cols > .wp-block-column:first-child { flex-basis: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Demo page H1 sits in a narrower column */
.cchq-demo-cols h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); overflow-wrap: break-word; }

/* Card "Learn more" links + header submenu */
.cchq-card__more { margin-top: 12px; font-weight: 600; }
.cchq-card__more a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.cchq-card__more a:hover { text-decoration: underline; }
.cchq-card { display: flex; flex-direction: column; }
.cchq-card > .cchq-card__more { margin-top: auto; padding-top: 8px; }
.cchq-nav .wp-block-navigation__submenu-container { background: #fff; border: 1px solid var(--cc-line); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(18, 18, 74, .1); min-width: 220px; }
.cchq-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { width: 100%; padding: 8px 12px; border-radius: 6px; }
.cchq-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--cc-lilac); }
.cchq-nav .wp-block-navigation__submenu-icon { color: var(--cc-navy); }
@media (max-width: 1023px) {
	.cchq-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0; box-shadow: none; padding: 0 0 0 12px; background: transparent; }
}

/* ===== Home page, matched to the approved home.png reference ===== */
.cchq-hero .wp-block-image.cchq-shot img { border-radius: 0; }
.cchq-hero__cols > .wp-block-column { min-width: 0; }
.cchq-hero .cchq-eyebrow { margin-block: 32px 12px !important; }
@media (min-width: 782px) {
	.cchq-hero .cchq-trust { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }
	.cchq-hero .cchq-trust__d { font-size: .72rem; }
}
@media (max-width: 781px) {
	.cchq-hero__cols h1, .cchq-hero__cols .cchq-lead, .cchq-hero .cchq-eyebrow { text-align: center; margin-inline: auto; }
	.cchq-hero__btns { justify-content: center !important; }
	.cchq-hero .cchq-trust { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
	.cchq-hero .cchq-trust__item { flex-direction: column !important; align-items: center !important; text-align: center; gap: 4px; }
	.cchq-hero .cchq-trust__d { display: none; }
	.cchq-hero .cchq-trust__t { font-size: .78rem; }
}

/* Outcome cards: icon tile on the left */
.wp-block-image.cchq-icon--tile { width: 56px; height: 56px; border-radius: 14px; background: var(--cc-violet-soft); margin: 0; }
.wp-block-image.cchq-icon--tile img { width: 28px; height: 28px; }
.cchq-card--row { gap: 16px; padding: 20px; }
.cchq-card--row h3 { font-size: 1rem; margin-bottom: .3em; }
.cchq-card--row p { font-size: .9rem; margin: 0; }

/* "Everything your community needs": wide cards with a preview on the right */
.cchq-card--wide { padding: 20px; }
.cchq-wide__cols { gap: 16px 20px; margin: 0; }
.cchq-card--wide h3 { font-size: 1.1rem; }
.cchq-card--wide .cchq-card__more { margin-top: 8px; }
.cchq-card--wide .wp-block-image.cchq-shot img { border-radius: 10px; border: 1px solid var(--cc-line); }
.cchq-cards--wide { margin-bottom: 24px; }

/* Privacy band: icon, copy, two-column checklist */
.cchq-band__list { flex: 1 1 280px; }
.cchq-band__list .wp-block-buttons { margin: 12px 0 0; }
.cchq-checklist--cols { columns: 2 11rem; column-gap: 24px; }
.cchq-checklist--cols li { break-inside: avoid; }

/* Pricing teaser: three small points */
.cchq-teaser__items { gap: 10px 24px; flex: 1 1 320px; justify-content: center; }
.cchq-teaser__item { gap: 10px; }
.cchq-teaser__item p { margin: 0; font-size: .85rem; color: var(--cc-muted); }
.cchq-teaser__item .wp-block-image { margin: 0; }

/* Final CTA with image on the right */
.cchq-cta--image { padding: 0 0 0 32px; overflow: hidden; background: linear-gradient(120deg, var(--cc-lilac), #e3e8ff 60%); }
.cchq-cta__cols { margin: 0; gap: 24px; align-items: center; }
.cchq-cta__cols .cchq-cta__copy { padding: 32px 0; }
.cchq-cta__cols .wp-block-image.cchq-cta__img { margin: 0; align-self: stretch; }
.cchq-cta__img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }
@media (max-width: 781px) {
	.cchq-cta--image { padding: 24px 0 0 24px; }
	.cchq-cta__cols .cchq-cta__copy { padding: 0 24px 0 0; }
	.cchq-cta__img img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%); mask-image: linear-gradient(to bottom, transparent, #000 28%); }
}
.cchq-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.cchq-hero .cchq-trust__t { font-size: .82rem; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: none; }
.cchq-hero .cchq-trust__item { gap: 8px; }
.cchq-hero .wp-block-image.cchq-icon--plain, .cchq-hero .wp-block-image.cchq-icon--plain img { width: 24px; height: 24px; }
.cchq-card.cchq-card--row { flex-direction: row; align-items: flex-start; }
.cchq-cta__copy .wp-block-buttons { margin-top: 20px; }
.cchq-teaser__copy { flex: 1 1 280px; }
@media (min-width: 1024px) {
	.cchq-teaser__items { flex: 2 1 480px; flex-wrap: nowrap !important; gap: 12px 20px; }
	.cchq-teaser__item { flex: 0 1 auto; }
}
@media (max-width: 781px) {
	.cchq-footer .wp-block-columns.cchq-footer__cols:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: calc(50% - 14px) !important; flex-grow: 0; }
	.cchq-footer .wp-block-columns.cchq-footer__cols:not(.is-not-stacked-on-mobile) > .wp-block-column:first-child { flex-basis: 100% !important; }
}
.cchq-hero .wp-block-image.cchq-hero__img img { mix-blend-mode: multiply; width: 100%; height: auto; }
@media (min-width: 1280px) { .cchq-hero .wp-block-image.cchq-hero__img { width: calc(100% + 70px); margin-inline-end: -70px; } }

/* Pricing FAQ: two columns on wide screens, as in the approved pricing design. */
@media (min-width: 900px) {
	.cchq-section.cchq-narrow > .cchq-faq { max-width: 1200px; }
	.cchq-faq { display: grid; grid-template-columns: 1fr 1fr; align-items: start; border: 0; background: transparent; gap: 0 24px; }
	.cchq-faq .wp-block-details { border: 1px solid var(--cc-line); border-radius: 8px; background: #fff; margin: 0 0 8px; }
	.cchq-faq .wp-block-details:first-child { border-top: 1px solid var(--cc-line); }
}

/* Pricing tier cards: building icon badge above each tier name (approved pricing design). */
.cchq-tier::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 50%; background-color: var(--cc-violet-soft); background-image: url("../icons/building.svg"); background-repeat: no-repeat; background-position: center; background-size: 28px; }
.cchq-card > h2 { font-size: 1.25rem; }
