/* =========================================================
   Zambezi Utilities — design tokens
   ---------------------------------------------------------
   Custom properties only. Nothing here paints anything on its
   own, so the plugin never forces global typography or colour
   onto the theme. Override any token in Appearance → Editor →
   Styles → Additional CSS, or in your theme's stylesheet.
   ========================================================= */

:root {
	/* Brand accents, sampled from the Zambezi Creative reference site. */
	--zcu-accent: #f6a91a;
	--zcu-accent-contrast: #263018;
	--zcu-accent-alt: #c44b1c;

	/* Surfaces and text. */
	--zcu-background: #ffffff;
	--zcu-background-alt: #f6f4ed;
	--zcu-foreground: #1b2113;
	--zcu-muted: #6a715c;
	--zcu-border: rgba(27, 33, 19, 0.12);

	/* Shape and rhythm. */
	--zcu-radius: 18px;
	--zcu-radius-sm: 10px;
	--zcu-radius-pill: 100px;
	--zcu-content-width: 1280px;
	--zcu-wide-width: 1600px;
	--zcu-gutter: clamp(20px, 5vw, 80px);
	--zcu-space: clamp(16px, 2.5vw, 32px);

	/* Motion. */
	--zcu-transition-duration: 0.6s;
	--zcu-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--zcu-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

	/* Elevation. */
	--zcu-shadow-sm: 0 2px 8px rgba(27, 33, 19, 0.06), 0 1px 2px rgba(27, 33, 19, 0.04);
	--zcu-shadow-md: 0 18px 40px -18px rgba(27, 33, 19, 0.28), 0 4px 12px rgba(27, 33, 19, 0.06);
}

/* Shared primitives used by every Zambezi block. */
.zcu-block {
	box-sizing: border-box;
	max-width: 100%;

	/*
	 * Every block is a query container. Blocks then size themselves against
	 * their OWN width (cqi / @container) rather than the viewport, so a block
	 * dropped into a narrow constrained column looks right at that width
	 * instead of being scaled for the full screen and overflowing.
	 */
	container-type: inline-size;
}

/*
 * Long unbroken words (URLs, compound names) must never push a block wider
 * than its container.
 */
.zcu-block :where(h1, h2, h3, h4, h5, h6, p, li, blockquote) {
	overflow-wrap: break-word;
}

.zcu-block *,
.zcu-block *::before,
.zcu-block *::after {
	box-sizing: border-box;
}

/* Constrain inner content without fighting the theme's own layout. */
.zcu-container {
	width: 100%;
	max-width: var(--zcu-content-width);
	margin-inline: auto;
	padding-inline: var(--zcu-gutter);
}

/* Full-width blocks must never introduce a horizontal scrollbar. */
.zcu-block.alignfull {
	max-width: 100vw;
	overflow-x: clip;
}

/* Visually hidden, still announced by screen readers. */
.zcu-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Consistent, always-visible focus ring across every interactive control. */
.zcu-block :where(a, button, [tabindex]):focus-visible {
	outline: 3px solid var(--zcu-accent);
	outline-offset: 3px;
	border-radius: var(--zcu-radius-sm);
}

/* Generic control button (arrows, toggles). */
.zcu-ctrl {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	color: var(--zcu-accent-contrast);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--zcu-border);
	border-radius: 50%;
	box-shadow: var(--zcu-shadow-sm);
	cursor: pointer;
	transition: background 0.3s var(--zcu-ease), color 0.3s var(--zcu-ease), transform 0.3s var(--zcu-ease);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.zcu-ctrl:hover {
	color: #fff;
	background: var(--zcu-accent-contrast);
}

.zcu-ctrl[disabled] {
	opacity: 0.4;
	cursor: default;
}

.zcu-ctrl svg {
	display: block;
	width: 22px;
	height: 22px;
}

/* Pagination dots, shared by the hero and testimonial sliders. */
.zcu-dots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.zcu-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	background: rgba(38, 48, 24, 0.22);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: width 0.3s var(--zcu-ease), background 0.3s var(--zcu-ease), border-radius 0.3s var(--zcu-ease);
}

.zcu-dots button[aria-selected="true"],
.zcu-dots button.is-active {
	width: 26px;
	background: var(--zcu-accent);
	border-radius: 6px;
}

.zcu-dots--light button {
	background: rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.zcu-ctrl,
	.zcu-dots button {
		transition: none;
	}
}
