/* =========================================================================
   Capture Crowds — runtime polish
   Everything that theme.json can't express: hover motion, the CTA marquee,
   the hero motif, block-style variations, and contact-form skinning.
   Design tokens (colour, type, spacing) all come from theme.json.
   ========================================================================= */

:root {
	--cc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--ember);
	color: #fff;
}

/* Emphasis word inside display headings -> Caslon italic (see theme.json fontFace) */
:where(h1, h2, h3, .wp-block-heading) em {
	font-style: italic;
	font-weight: 400;
}

/* Links inside body copy: remove underline until hover for a cleaner editorial feel,
   but keep it for keyboard focus. */
.entry-content a:where(:not(.wp-element-button)):not(:hover):not(:focus) {
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 0.15em;
}

/* -------- Buttons -------- */
.wp-block-button__link {
	transition: background-color 0.18s var(--cc-ease), color 0.18s var(--cc-ease),
		transform 0.18s var(--cc-ease);
	will-change: transform;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Outline (ghost) button variation on dark backgrounds */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	border-color: currentColor;
}

/* =========================================================================
   HERO
   ========================================================================= */
.cc-hero {
	position: relative;
	overflow: clip;
	isolation: isolate;
}
.cc-hero--home {
	min-height: min(82vh, 760px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Orbit-trail motif: concentric arcs bleeding off the right edge. Pure CSS,
   no image request. Sits behind the content — tuned for the warm sand hero. */
.cc-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: clamp(-42rem, -34vw, -26rem);
	right: clamp(-40rem, -30vw, -24rem);
	width: min(78vw, 60rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at center,
			transparent 0 30%,
			color-mix(in srgb, var(--wp--preset--color--ember) 55%, transparent) 30% 30.7%,
			transparent 30.7% 44%,
			color-mix(in srgb, var(--wp--preset--color--sky) 42%, transparent) 44% 44.6%,
			transparent 44.6% 60%,
			color-mix(in srgb, var(--wp--preset--color--clay) 38%, transparent) 60% 60.5%,
			transparent 60.5%);
	opacity: 0.6;
	pointer-events: none;
}
@media (max-width: 900px) {
	.cc-hero::after {
		bottom: -16rem;
		right: -16rem;
		width: 34rem;
		opacity: 0.5;
	}
}

.cc-hero__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ember);
}

/* Mission / Vision toggle — built from a core Details block or radio group.
   Style the summary markers as pill tabs. */
.cc-toggle .wp-block-details {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent);
}
.cc-toggle .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding-block: 0.9rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--small);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.cc-toggle .wp-block-details summary::-webkit-details-marker { display: none; }
.cc-toggle .wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4em;
	line-height: 1;
	color: var(--wp--preset--color--ember);
}
.cc-toggle .wp-block-details[open] summary::after { content: "\2013"; }

/* =========================================================================
   THE CARD  —  is-style-cc-card / .cc-card
   One reusable soft card: white surface, hairline border, rounded corners,
   sand-edge shadow. Shared by the service cards, the founder bios, the
   testimonials and the Estimate Builder so the site has one card language.
   ========================================================================= */
.is-style-cc-card,
.cc-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--edge-sand);
	padding: var(--wp--preset--spacing--40);
}

/* Cards sitting in a columns row: fill the column so a row of them lines up. */
.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
	display: flex;
	flex-direction: column;
}
.wp-block-column > .is-style-cc-card,
.wp-block-column > .wp-block-quote.is-style-cc-card {
	flex: 1;
}

/* =========================================================================
   SERVICE CARDS  —  "Our Expertises"
   All three tiles identical in size; accent is a thin line, not a border.
   ========================================================================= */
.cc-accent-ember { --cc-accent: var(--wp--preset--color--ember); }
.cc-accent-clay  { --cc-accent: var(--wp--preset--color--clay); }
.cc-accent-sky   { --cc-accent: var(--wp--preset--color--sky); }

.cc-service-card {
	transition: transform 0.2s var(--cc-ease);
}
@media (min-width: 782px) {
	.cc-service-card:hover { transform: translateY(-4px); }
}

/* Outline numeral — identical size and a single neutral stroke on every card,
   so colour never makes one look larger than the others. */
.is-style-cc-outline-numeral {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.6rem, 5vw, 3.4rem);
	line-height: 0.85;
	color: transparent;
	-webkit-text-stroke: 1.4px color-mix(in srgb, var(--wp--preset--color--ink) 30%, transparent);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* Accent = a thin line under the card title (the "small design detail"). */
.cc-card-title {
	padding-bottom: 0.7rem;
	border-bottom: 2px solid var(--cc-accent, var(--wp--preset--color--sand));
	margin-bottom: 0.4rem;
}

/* =========================================================================
   TESTIMONIALS  —  .cc-quote-card  (uses the shared card, body-font text)
   ========================================================================= */
.cc-quote-card {
	margin: 0;
}
/* Quote mark — a small accent detail, not a standalone element */
.cc-quote-card::before {
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.7rem;
	line-height: 0.6;
	color: var(--wp--preset--color--ember);
	margin-bottom: 0.3rem;
}
.cc-quote-card p {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.92rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	margin: 0;
}
.cc-quote-card cite {
	display: block;
	margin-top: 0.7rem;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}
.cc-quote-card cite::before {
	content: "";
	display: inline-block;
	width: 1.4rem;
	height: 2px;
	margin-right: 0.55rem;
	vertical-align: middle;
	background: var(--wp--preset--color--ember);
}

/* All four testimonials share one plain, uncarded look — same size, no box. */
.cc-quote-supporting {
	background: none;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	padding: 0.2rem 0;
}
.cc-quote-supporting::before {
	font-size: 1.15rem;
	margin-bottom: 0.2rem;
}
.cc-quote-supporting p {
	font-size: 0.82rem;
	line-height: 1.48;
	color: var(--wp--preset--color--ink-soft);
}
.cc-quote-supporting cite {
	margin-top: 0.55rem;
	font-size: 0.68rem;
}
.cc-quote-supporting cite::before {
	width: 1rem;
}

/* =========================================================================
   CTA BAND  —  softened warm wash (was a hard ember slab)
   ========================================================================= */
.cc-cta {
	background: color-mix(in srgb, var(--wp--preset--color--ember) 13%, var(--wp--preset--color--bone));
}
.cc-cta .wp-block-button__link {
	background-color: var(--wp--preset--color--ember);
	color: #fff;
}
.cc-cta .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--ember-deep);
	color: #fff;
}

/* =========================================================================
   PANEL + MARQUEE
   ========================================================================= */
.is-style-cc-panel {
	border: var(--wp--custom--rule--hairline);
	background: var(--wp--preset--color--surface);
}

.is-style-cc-marquee {
	overflow: clip;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.is-style-cc-marquee > .wp-block-group__inner-container,
.is-style-cc-marquee p {
	display: inline-block;
	padding-left: 100%;
	animation: cc-marquee 22s linear infinite;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.02em;
	margin: 0;
}
@keyframes cc-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.is-style-cc-marquee p { animation: none; padding-left: 0; }
}

/* =========================================================================
   HEADER / FOOTER
   ========================================================================= */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	/* Above the burger menu's own overlay (z-index:100000) so the logo +
	   hamburger/X icon stay sharp and visible on top of the blur when the
	   menu opens. */
	z-index: 100003;
	background: color-mix(in srgb, var(--wp--preset--color--bone) 92%, transparent);
	border-bottom: var(--wp--custom--rule--hairline);
	/* Deliberately NO backdrop-filter/filter/transform/will-change here:
	   any of those on this element would create a new containing block
	   for position:fixed descendants — and the burger menu's full-screen
	   overlay lives inside this header (it wraps the toggle icon). With a
	   filter here, the overlay sizes itself to the HEADER's own box
	   instead of the viewport (confirmed live: removing backdrop-filter
	   took the overlay from ~155px tall back to the full 900px viewport
	   height) — so the header's own translucency stays a flat colour tint
	   with no blur, to keep the overlay's own full-viewport takeover
	   working correctly. */
}

/* Jump-to-section targets: clear the sticky header so the section title
   isn't hidden underneath it when the burger menu (or any anchor link)
   scrolls to it. */
#our-expertise,
#meet-the-founders,
#investment,
#testimonials {
	scroll-margin-top: 92px;
}

/* -------- Burger menu (core Navigation block, header-actions group) --------
   Rebuilt to match a reference frosted-glass overlay pattern (observed on
   another site), in Capture Crowds' own palette/type: content behind the
   menu blurs instead of hiding behind a solid panel, the hamburger icon
   morphs into an X in place, and the links are a centered plain-text list
   with generous spacing — same treatment at every breakpoint (an explicit
   call, not left to default: a second, differently-shaped desktop-only
   dropdown was tried in an earlier round and dropped in favour of one
   consistent overlay everywhere, matching the reference site). */
.cc-header-actions {
	gap: 0.85rem;
}

/* Logo + "Book a Consultation" stay sharp above the blur. Naively this
   looks like a job for the HEADER's own z-index — it isn't: the overlay
   is a DOM *descendant* of the header (nested inside cc-header-actions >
   nav), and an ancestor's z-index can never out-paint its own descendant
   — a child always paints in front of its ancestor's box regardless of
   what z-index the ancestor carries elsewhere (confirmed live: bumping
   only the header's z-index left the logo/button rendering faded behind
   the blur). What actually works is raising each *sibling* that should
   stay sharp — the logo, the CTA button, and the toggle icon below — to a
   z-index above the overlay's 100000, each compared against the overlay
   at the point where they're true siblings in the tree (logo vs.
   cc-header-actions; the button vs. the <nav>; this icon vs. the
   .responsive-container it sits beside). */
.wp-block-site-logo {
	position: relative;
	z-index: 100001;
}
.cc-header-actions .wp-block-buttons {
	position: relative;
	z-index: 100001;
}

/* The hamburger/X toggle button. Its click handler is re-pointed from
   core's default open-only action to the store's own `toggleMenuOnClick`
   (see functions.php) so the SAME icon opens and closes the menu; the
   :has() rules further down crossfade its SVG into a CSS-drawn X while
   that happens, so the change reads as a morph rather than an instant
   swap. z-index above the overlay (see comment above) keeps it visible
   and sharp above the blur, in place, throughout. */
.wp-block-navigation .wp-block-navigation__responsive-container-open {
	position: relative;
	z-index: 100001;
	background: none;
	border: 0;
	width: 2.1rem;
	height: 2.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--ink);
}
.wp-block-navigation .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--ember);
}
/* toggleMenuOnClick calls ref.focus() on this button itself (see
   functions.php) as part of re-pointing it to close-on-second-click, which
   left a bare default focus rectangle around the icon — the same kind of
   unstyled artifact fixed on the nav items a round ago. Same fix: a
   deliberate focus-visible ring instead of the browser default. */
.wp-block-navigation .wp-block-navigation__responsive-container-open:focus {
	outline: none;
}
.wp-block-navigation .wp-block-navigation__responsive-container-open:focus-visible {
	outline: 2px solid var(--wp--preset--color--ember);
	outline-offset: 4px;
	border-radius: 6px;
}
.wp-block-navigation .wp-block-navigation__responsive-container-open svg {
	transition: opacity 0.2s ease, transform 0.25s ease;
}
.wp-block-navigation .wp-block-navigation__responsive-container-open::before,
.wp-block-navigation .wp-block-navigation__responsive-container-open::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
	transition: opacity 0.22s ease, transform 0.28s ease;
}
.wp-block-navigation:has(.wp-block-navigation__responsive-container.is-menu-open)
	.wp-block-navigation__responsive-container-open svg {
	opacity: 0;
	transform: scale(0.6);
}
.wp-block-navigation:has(.wp-block-navigation__responsive-container.is-menu-open)
	.wp-block-navigation__responsive-container-open::before {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(45deg) scale(1);
}
.wp-block-navigation:has(.wp-block-navigation__responsive-container.is-menu-open)
	.wp-block-navigation__responsive-container-open::after {
	opacity: 1;
	transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}

/* The overlay itself. WP keeps this element in the DOM at all times and
   just toggles the is-menu-open class via the Interactivity API
   (data-wp-class--is-menu-open) — it never mounts/unmounts — so a plain
   opacity/transform transition on that class swap gives a smooth open/
   close for free, no JS. `overlayBackgroundColor` was deliberately left
   unset on the block (patterns/header.php) — a named colour attribute
   renders an opaque `!important` fill, which would defeat the blur — so
   the tint below is a translucent color-mix instead, with the frosted
   effect from `backdrop-filter`. `overlayTextColor:"ink"` still supplies
   the text colour the native way. Without `overlayBackgroundColor` the
   `<nav>` loses its `has-background` class, which triggers a core
   fallback rule — `.wp-block-navigation:not(.has-background)
   .responsive-container.is-menu-open{background-color:#fff}` — at HIGHER
   specificity (5 classes) than a plain `.responsive-container.is-menu-
   open` override (2 classes); `!important` below is what actually wins
   that fight, not source order. */
.wp-block-navigation__responsive-container {
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}
.wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: flex !important;
	visibility: hidden;
	opacity: 0;
	transform: scale(1.02);
	pointer-events: none;
}
.wp-block-navigation__responsive-container.is-menu-open {
	visibility: visible;
	opacity: 1;
	transform: scale(1);
	padding: var(--wp--preset--spacing--30);
	background: color-mix(in srgb, var(--wp--preset--color--bone) 78%, transparent) !important;
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
	backdrop-filter: blur(22px) saturate(1.3);
	align-items: center;
	justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation .wp-block-navigation__responsive-container-open svg,
	.wp-block-navigation .wp-block-navigation__responsive-container-open::before,
	.wp-block-navigation .wp-block-navigation__responsive-container-open::after,
	.wp-block-navigation__responsive-container {
		transition: none;
	}
}

/* The native "Close menu" button stays in the DOM, functional and
   correctly labelled — the Interactivity API's own focus-trap sends
   Tab-key users to it (and to Escape) to exit, so it's a real
   accessibility fallback, not just decoration, even though the header's
   own icon (above) now also closes the menu on a second click. */
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close {
	background: none;
	border: 0;
	color: var(--wp--preset--color--ink);
}
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close:hover {
	color: var(--wp--preset--color--ember);
}

/* Menu items: a centered, plain-text vertical list — no per-item box,
   border or background — in the same display serif used for headings
   site-wide, with generous breathing room between items. */
.wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container .wp-block-navigation__container {
	padding-top: 0 !important;
	align-items: center !important;
}
.wp-block-navigation__responsive-container .wp-block-navigation__container {
	text-align: center;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item {
	background: transparent;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.35rem, 3.2vw, 1.9rem);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	padding: 0.85rem 0.5rem;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--ember);
}
/* WP auto-focuses the first link when the menu opens
   (data-wp-watch="callbacks.focusFirstElement"), which was surfacing the
   browser's bare default focus rectangle around it — read as an
   unstyled artifact. Replace it with one deliberate, still-visible focus
   treatment rather than removing the indicator outright. */
.wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus {
	outline: none;
}
.wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus-visible {
	outline: none;
	color: var(--wp--preset--color--ember);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.cc-footer a {
	color: var(--wp--preset--color--sand);
	text-decoration: none;
}
.cc-footer a:hover,
.cc-footer a:focus {
	color: var(--wp--preset--color--bone);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* =========================================================================
   CONTACT FORM  (WPForms Lite)  —  skinned to the brand.
   WPForms is set to "base CSS only"; brand colour + type come from here.
   Client note: do not hand-edit this; ask us for form design changes.
   ========================================================================= */
.wpforms-container {
	/* Modern-markup custom properties — WPForms reads these. */
	--wpforms-field-border-radius: 4px;
	--wpforms-field-border-size: 2px;
	--wpforms-field-border-color: var(--wp--preset--color--sand);
	--wpforms-field-background-color: var(--wp--preset--color--surface);
	--wpforms-field-text-color: var(--wp--preset--color--ink);
	--wpforms-label-color: var(--wp--preset--color--ink);
	--wpforms-label-sublabel-color: var(--wp--preset--color--ink-soft);
	--wpforms-label-error-color: var(--wp--preset--color--ember-deep);
	--wpforms-button-border-radius: 100px;
	--wpforms-button-background-color: var(--wp--preset--color--ember);
	--wpforms-button-text-color: #ffffff;
	max-width: 34rem;
}
.wpforms-container .wpforms-form { display: grid; gap: 1.2rem; }
.wpforms-container .wpforms-field { padding: 0; }
.wpforms-container .wpforms-field-label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.45rem;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	border: 2px solid var(--wp--preset--color--sand);
	border-radius: 4px;
	padding: 0.8rem 0.9rem;
	transition: border-color 0.15s var(--cc-ease), box-shadow 0.15s var(--cc-ease);
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--sky);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--sky) 25%, transparent);
}
.wpforms-container textarea { min-height: 9rem; resize: vertical; }
.wpforms-container .wpforms-required-label { color: var(--wp--preset--color--ember-deep); }

.wpforms-container button.wpforms-submit,
.wpforms-container button[type="submit"] {
	justify-self: start;
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--wp--preset--font-size--small) !important;
	color: #fff !important;
	background-color: var(--wp--preset--color--ember) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 100px !important;
	padding: 1rem 2.1rem !important;
	cursor: pointer;
	transition: background-color 0.18s var(--cc-ease), transform 0.18s var(--cc-ease);
}
.wpforms-container button.wpforms-submit:hover,
.wpforms-container button[type="submit"]:hover {
	background-color: var(--wp--preset--color--ink) !important;
	transform: translateY(-2px);
}
.wpforms-container .wpforms-error {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ember-deep);
}
.wpforms-confirmation-container-full {
	background: var(--wp--preset--color--sand);
	border-left: 3px solid var(--wp--preset--color--ember);
	padding: 1.2rem 1.4rem;
	font-family: var(--wp--preset--font-family--body);
}

/* =========================================================================
   MEET THE FOUNDERS  —  capture-crowds/section-founders
   Layout: bio | photo | bio, one row, vertically centred. Bios are plain
   text on the sand panel (no card). Section content sits high — minimal
   gap above the heading.
   ========================================================================= */
.cc-founders .wp-block-image {
	margin: 0;
	text-align: center;
}
.cc-founders .wp-block-image img {
	width: 100%;
	max-width: min(100%, 460px);
	height: auto;
	aspect-ratio: 719 / 532;
	object-fit: contain;
	/* grounds the cut-out figures against the flat sand panel */
	filter: drop-shadow(0 20px 28px rgba(42, 35, 32, 0.16));
}
.cc-founders .wp-block-columns {
	align-items: center;
}
.cc-founder-role {
	margin: 0 0 0.15rem;
}

@media (max-width: 781px) {
	.cc-founders .wp-block-image img {
		max-width: min(100%, 360px);
		filter: drop-shadow(0 14px 20px rgba(42, 35, 32, 0.16));
	}
	/* stacked: bio, photo, bio — keep them close */
	.cc-founders .wp-block-columns { align-items: stretch; }
}

/* =========================================================================
   ESTIMATE BUILDER  —  capture-crowds/estimate-builder (Interactivity API)
   ========================================================================= */
.cc-estimator,
.cc-estimator *,
.cc-estimator *::before,
.cc-estimator *::after {
	box-sizing: border-box;
}
.cc-estimator {
	/* the shared card treatment + estimator-only sizing.
	   Wide enough for three scope tiles + prices to sit side by side. */
	width: 100%;
	max-width: 880px;
	margin-inline: auto;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--edge-sand);
	padding: clamp(1.6rem, 4vw, 2.6rem);
}
.cc-estimator [hidden] { display: none !important; }

.cc-est-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ember-deep);
	background: color-mix(in srgb, var(--wp--preset--color--ember) 12%, transparent);
	padding: 5px 14px;
	border-radius: 100px;
}
.cc-est-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3.5vw, 1.9rem);
	line-height: 1.2;
	margin: 0.7rem 0 0;
	color: var(--wp--preset--color--ink);
}
.cc-est-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
	margin: 1.6rem 0 0.6rem;
}
/* Service tabs — pills */
.cc-est-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cc-est-pill {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 9px 17px;
	border-radius: 100px;
	border: 1.5px solid var(--wp--preset--color--sand);
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink-soft);
	cursor: pointer;
	transition: border-color 0.16s var(--cc-ease), background-color 0.16s var(--cc-ease),
		color 0.16s var(--cc-ease);
}
.cc-est-pill:hover {
	border-color: var(--wp--preset--color--ember);
	color: var(--wp--preset--color--ink);
}
.cc-est-pill:focus-visible {
	outline: 2px solid var(--wp--preset--color--sky);
	outline-offset: 2px;
}
.cc-est-pill.is-active {
	background: var(--wp--preset--color--ember);
	border-color: var(--wp--preset--color--ember);
	color: #fff;
}

/* Scope — every tier shown at once as a static display card with its own price */
.cc-est-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.cc-est-tiers[data-count="1"] { grid-template-columns: 1fr; max-width: 360px; }

.cc-est-tier-tile {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.05rem;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--sand);
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}
.cc-est-tier-label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 0.95rem;
}
.cc-est-tier-desc {
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--wp--preset--color--ink-soft);
}
.cc-est-tier-price {
	margin-top: auto;
	padding-top: 0.55rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--wp--preset--color--ember);
}
.cc-est-tier-tile.is-custom .cc-est-tier-price {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--ink-soft);
}
@media (max-width: 640px) {
	.cc-est-tiers { grid-template-columns: 1fr; }
	.cc-est-tier-price { margin-top: 0; }
}

/* Maintenance (Website only): toggle + one note beneath the tiles */
.cc-est-maint {
	margin-top: 1.1rem;
}
.cc-est-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 13px 16px;
	background: var(--wp--preset--color--bone);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 14px;
}
.cc-est-toggle-copy { display: flex; flex-direction: column; gap: 2px; }
.cc-est-toggle-title { font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.cc-est-toggle-sub { font-size: 0.78rem; color: var(--wp--preset--color--ink-soft); }
.cc-est-switch {
	position: relative;
	flex-shrink: 0;
	width: 46px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 100px;
	background: var(--wp--preset--color--sand);
	cursor: pointer;
	transition: background-color 0.18s var(--cc-ease);
}
.cc-est-switch:focus-visible { outline: 2px solid var(--wp--preset--color--sky); outline-offset: 2px; }
.cc-est-switch.is-on { background: var(--wp--preset--color--sky); }
.cc-est-switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	transition: transform 0.18s var(--cc-ease);
}
.cc-est-switch.is-on .cc-est-switch-knob { transform: translateX(20px); }

.cc-est-maint-note {
	margin: 0.7rem 0 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wp--preset--color--ember-deep);
}

.cc-est-cta {
	display: block;
	width: 100%;
	margin-top: 1.1rem;
	text-align: center;
	text-decoration: none;
}

/* Editor: give the SSR preview a little breathing room */
.cc-estimator-editor .cc-estimator { margin-block: 0; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 781px) {
	.wp-site-blocks > header.wp-block-template-part { position: static; }
	.cc-service-card:hover { transform: none; }

	/* Header: keep the CTA on one line */
	.cc-header .wp-block-button__link { white-space: nowrap; }
}

@media (max-width: 430px) {
	.cc-header .wp-block-button__link {
		font-size: 0.7rem;
		padding-inline: 1.1rem;
	}
}
