/**
 * CS Clay Tile — section styles.
 *
 * theme.json owns colors, type scale, spacing scale and element defaults.
 * This file only carries what theme.json cannot express: the section grid,
 * the brand keyline, and responsive collapse behavior.
 */

/* -------------------------------------------------------------------------
 * Semantic token layer.
 *
 * The Figma file resolves the SAME variable names to different values
 * depending on whether a section sits on a light or dark surface — e.g.
 * --color-text-primary is #111111 on the home page and #f6f3ee in the footer.
 * So the tokens are scoped, not hardcoded per section: put `csct-dark` on any
 * section and every child picks up the dark values automatically.
 * ---------------------------------------------------------------------- */

:root,
.csct-light {
	--csct-bg-surface: #ffffff;
	--csct-bg-canvas: #f6f3ee;
	--csct-bg-subtle: #e7e2da;
	--csct-text-primary: #111111;
	--csct-text-secondary: #4a4540;
	--csct-text-muted: #6e665e;
	--csct-text-brand: #914a11;
	--csct-brand: #f18a2e;
	--csct-text-on-brand: #241505;
	--csct-border-default: #e7e2da;
	--csct-radius-md: 8px;
	--csct-space-sm: 12px;
	--csct-space-lg: 24px;
}

.csct-dark {
	--csct-bg-surface: #111111;
	--csct-bg-canvas: #2a2724;
	--csct-bg-subtle: #2a2724;
	--csct-text-primary: #f6f3ee;
	--csct-text-secondary: #b8b0a6;
	--csct-text-muted: #b8b0a6;
	--csct-text-brand: #f4a85e;
	--csct-brand: #f2962f;
	--csct-text-on-brand: #241505;
	--csct-border-default: #4a4540;
}

/* Dark sections repaint their own type without per-block overrides. */
.csct-dark {
	background-color: var(--csct-bg-canvas);
	color: var(--csct-text-secondary);
}

.csct-dark :where(h1, h2, h3, h4, h5, h6),
.csct-dark :where(.csct-reason__title) {
	color: var(--csct-text-primary);
}

.csct-dark :where(p, li) {
	color: var(--csct-text-secondary);
}

.csct-dark :where(a):not(.wp-block-button__link, .csct-cta__primary, .csct-cta__secondary) {
	color: var(--csct-text-primary);
}

.csct-dark :where(a):not(.wp-block-button__link, .csct-cta__primary, .csct-cta__secondary):hover {
	color: var(--csct-text-brand);
}

.csct-dark .csct-overline {
	color: var(--csct-text-brand);
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

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

/* Long technical copy ("hydrocasing", "engobe") should never overflow. */
.csct-section p,
.csct-section h1,
.csct-section h2,
.csct-section h3 {
	overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------
 * Section shell — 96px canvas padding from Figma, fluid down to 56px.
 * ---------------------------------------------------------------------- */

.csct-section {
	/*
	 * Consecutive sections each contribute this padding, so the visible gap
	 * between two of them is DOUBLE this value. At the old spacing--90
	 * (96px at 1440px) that produced ~213px bands of empty page between every
	 * section. 64px keeps the generous feel and lands the gap at ~128px.
	 */
	padding-block: clamp(40px, 4.4vw, 64px);
}

.csct-section__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 1248px;
}

/* -------------------------------------------------------------------------
 * Overline — Archivo Medium 12px, 8% tracking, uppercase.
 * ---------------------------------------------------------------------- */

.csct-overline {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--overline);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-brand);
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Column grid — equal-width tracks, 32px gutter (Figma "reasons" row).
 * Collapses to 2-up on tablet, 1-up on mobile.
 * ---------------------------------------------------------------------- */

.csct-cols {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

/*
 * WordPress flow layout injects margin-block-start on every child after the
 * first. Inside a grid that shows up as staggered columns, so zero it out and
 * let `gap` own the spacing.
 */
.csct-cols > * {
	margin-block: 0;
}

.csct-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.csct-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.csct-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.csct-cols--3,
	.csct-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.csct-cols--2,
	.csct-cols--3,
	.csct-cols--4 { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------------
 * Reason card — 40x3px brand keyline, H5 title, secondary body.
 * ---------------------------------------------------------------------- */

.csct-reason {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.csct-reason::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--wp--preset--color--brand);
	flex: none;
}

.csct-reason__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--heading-xs);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--wp--preset--color--text-primary);
	margin: 0;
}

.csct-reason__body {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
}

.csct-reason__icon {
	width: 40px;
	height: 40px;
	display: block;
	object-fit: contain;
}

/* Icon variant: the icon replaces the keyline. */
.csct-reason--icon::before { display: none; }

/*
 * Round 10: a single credential sitting under the five-column grid rather than
 * in it (see section-why-clay.php for why). It keeps the orange keyline of the
 * plain .csct-reason so it reads as one of the credentials, and caps its own
 * measure — the parent is 1248px wide and two lines across that is unreadable.
 */

/* -------------------------------------------------------------------------
 * Accessibility
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--wp--preset--color--text-primary);
	color: var(--wp--preset--color--base);
}

/* -------------------------------------------------------------------------
 * Button styles
 * ---------------------------------------------------------------------- */

/* "Find a Contractor" — type only, no chrome. */
.is-style-csct-text .wp-block-button__link {
	background: transparent;
	color: var(--csct-text-primary);
	padding-inline: 0;
}

.is-style-csct-text .wp-block-button__link:hover {
	background: transparent;
	color: var(--csct-text-brand);
}

/* "Explore the Tiles" / "View the gallery" — brand hairline outline. */
.is-style-csct-outline .wp-block-button__link {
	background: transparent;
	color: var(--csct-text-brand);
	border: 1px solid var(--csct-brand);
}

.is-style-csct-outline .wp-block-button__link:hover {
	background: var(--csct-brand);
	color: var(--csct-text-on-brand);
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

/*
 * Round 4 (client): nav modeled on bravarooftile.com — full-width bar with
 * extra vertical padding, a larger logo, menu left-aligned beside the brand,
 * and search + Request a Sample on the right. Phone number removed (it lives
 * in the footer).
 */
.csct-header {
	border-bottom: 1px solid var(--csct-border-default);
	padding-block: 14px;
	padding-inline: clamp(20px, 3vw, 48px);
}

.csct-header__inner {
	min-height: 88px;
	gap: 24px;
}

.csct-header__lead { gap: clamp(24px, 3.2vw, 56px); }

.csct-header__logo { margin: 0; }
.csct-header__logo img { display: block; width: 140px; height: auto; }

.csct-endorsement {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.07em;
	color: var(--csct-text-muted);
	margin: 0;
	line-height: 1;
}

.csct-header__brand { gap: 4px; }

.csct-nav {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.csct-nav a { color: var(--csct-text-primary); text-decoration: none; }
.csct-nav a:hover { color: var(--csct-text-brand); }

/*
 * Round 10: the open mobile overlay had no left gutter — every menu item sat
 * flush at x=0, which read as the menu being cut off on the left.
 *
 * Root cause is core's own overlay rule:
 *   .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
 *     padding: clamp(1rem, var(--wp--style--root--padding-left), 20rem) ... }
 * This theme deliberately sets no root padding in theme.json (it manages its
 * own gutters via .csct-section), so --wp--style--root--padding-* is never
 * emitted. An undefined custom property makes the whole clamp() invalid at
 * computed-value time, the padding declaration is thrown away, and the
 * overlay computes to padding: 0.
 *
 * Fixed here rather than by defining root padding, which would change the
 * gutter on every alignfull block on the site. No media query: .is-menu-open
 * only exists while the overlay is actually open.
 */
.csct-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}

.csct-header__utility .wp-block-buttons { flex-wrap: nowrap; }

/* Header search — compact field with an icon submit inside the pill. */
.csct-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--csct-border-default);
	border-radius: 999px;
	background: var(--csct-bg-subtle, #f6f3ee);
	padding: 0 6px 0 16px;
	height: 44px;
}

.csct-search__field {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	color: var(--csct-text-primary);
	width: clamp(120px, 12vw, 200px);
	outline: none;
	padding: 0;
}

.csct-search__field::placeholder { color: var(--csct-text-muted); }

.csct-search__field::-webkit-search-decoration,
.csct-search__field::-webkit-search-cancel-button { -webkit-appearance: none; }

.csct-search__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--csct-text-primary);
	cursor: pointer;
}

.csct-search__submit:hover,
.csct-search__submit:focus-visible { color: var(--csct-text-brand); }

.csct-search:focus-within { border-color: var(--csct-brand); }

@media (max-width: 1280px) {
	.csct-search__field { width: 110px; }
}

/*
 * Mobile search: the pill is replaced below 1100px by a magnifier button that
 * opens a full-width row under the bar. Before this, search simply did not
 * exist on phones or tablets.
 */
.csct-search__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	/* The header row is a nowrap flex line; without this the button is
	   squeezed to 32px and drops under the 44px minimum tap target. */
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--csct-border-default);
	border-radius: 999px;
	background: var(--csct-bg-subtle, #f6f3ee);
	color: var(--csct-text-primary);
	cursor: pointer;
}

.csct-search__toggle:hover,
.csct-search__toggle.is-open {
	border-color: var(--csct-brand);
	color: var(--csct-text-brand);
}

.csct-searchrow {
	display: none;
	padding: 0 0 14px;
}

.csct-searchrow__form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.csct-searchrow__field {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	font: inherit;
	font-size: 16px; /* iOS zooms the page on focus for anything under 16px. */
	color: var(--csct-text-primary);
	background: var(--csct-bg-subtle, #f6f3ee);
	border: 1px solid var(--csct-border-default);
	border-radius: 999px;
	outline: none;
}

.csct-searchrow__field::placeholder { color: var(--csct-text-muted); }

.csct-searchrow__field:focus { border-color: var(--csct-brand); }

.csct-searchrow__field::-webkit-search-decoration,
.csct-searchrow__field::-webkit-search-cancel-button { -webkit-appearance: none; }

.csct-searchrow__submit {
	flex: none;
	height: 48px;
	padding: 0 20px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--csct-text-on-brand);
	background: var(--csct-brand);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.csct-searchrow__submit:hover { filter: brightness(0.95); }

@media (max-width: 1100px) {
	.csct-search { display: none; }
	.csct-search__toggle { display: flex; }
	.csct-searchrow { display: block; }
	/* Explicit, or display:block beats the UA [hidden] rule (round-3 lesson). */
	.csct-searchrow[hidden] { display: none; }
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.csct-footer {
	padding-block: 64px 40px;
}

.csct-footer__top {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 96px;
	align-items: start;
}

.csct-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.csct-footer__coltitle {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csct-text-brand);
	margin: 0 0 10px;
}

.csct-footer__cols ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.csct-footer__cols a {
	font-size: 15px;
	color: var(--csct-text-primary);
	text-decoration: none;
}

.csct-footer__cols a:hover { color: var(--csct-text-brand); }

.csct-footer__rule {
	border: 0;
	border-top: 1px solid var(--csct-border-default);
	margin: 40px 0 0;
}

.csct-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--csct-text-muted);
	padding-top: 20px;
}

.csct-footer__bottom p { margin: 0; color: var(--csct-text-muted); }

.csct-signup {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	max-width: 340px;
}

.csct-signup input[type="email"] {
	flex: 1 1 auto;
	background: rgba(0, 0, 0, 0.25);
	min-width: 0;
	padding: 10px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--csct-text-primary);
	background: transparent;
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
}

.csct-signup input[type="email"]::placeholder { color: var(--csct-text-muted); }

.csct-signup button {
	flex: 0 0 auto;
	padding: 12px 24px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--csct-text-on-brand);
	background: var(--csct-brand);
	border: 0;
	border-radius: var(--csct-radius-md);
	cursor: pointer;
}

.csct-signup button:hover { background: var(--csct-text-brand); }

@media (max-width: 900px) {
	.csct-footer {
	padding-block: 64px 40px;
}

.csct-footer__top { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.csct-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 600px) {
	.csct-footer__cols { grid-template-columns: minmax(0, 1fr); }
}

.csct-footer__logo { display: inline-block; }
.csct-footer__logo img { display: block; width: 95px; height: auto; }

.csct-footer__blurb {
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 16px 0 0;
	max-width: 340px;
}

/*
 * Round 10: manufacturer link, sits between the blurb and the newsletter
 * signup. Colour is deliberately left to the .csct-dark link rule above so it
 * matches every other footer link rather than sitting brand-orange on its own.
 */
.csct-footer__manufacturer { margin: 14px 0 0; }

.csct-footer__signup { margin-top: 16px; }

.csct-footer__signup-label {
	font-size: 15px;
	font-weight: 500;
	color: var(--csct-text-primary);
	margin: 0 0 10px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Match the Figma 31px link rhythm (21px line + 10px gap). */
.csct-footer__cols a { line-height: 1.4; display: inline-block; }
.csct-footer__blurb { line-height: 1.5; }

/* -------------------------------------------------------------------------
 * Hero — full-bleed 1440x680 photo rotator with left scrim.
 * ---------------------------------------------------------------------- */

.csct-hero {
	position: relative;
	isolation: isolate;
	min-height: 680px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.csct-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.csct-hero__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 700ms ease;
}

.csct-hero__slide.is-active { opacity: 1; }

.csct-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Flat darken pass, then a left-weighted scrim so the type always clears AA. */
.csct-hero__darken {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.18);
}

.csct-hero__scrim {
	position: absolute;
	inset: 0;
	/*
	 * Round 14: the stops used to decay from 36% onward, but the hero copy runs
	 * to x=692 of 1440 (48%), so the right end of the lede sat over an almost
	 * clear photo and failed WCAG on all four slides. Coverage now holds to 50%
	 * and then falls away faster than before, so the bright half of the picture
	 * is no darker than it was. Measured, not guessed: see the round 14 note in
	 * EDITS-2026-08-18-round4.md. Remember .csct-hero__darken adds a flat 0.18
	 * underneath all of this.
	 */
	background: linear-gradient(
		90deg,
		rgba(17, 17, 17, 0.72) 0%,
		rgba(17, 17, 17, 0.64) 50%,
		rgba(17, 17, 17, 0.12) 72%,
		rgba(17, 17, 17, 0) 92%
	);
}

.csct-hero__inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--90);
}

.csct-hero__text {
	max-width: 638px;
	margin-inline: 0 auto;
}

.csct-hero__eyebrow {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--csct-text-brand);
	margin: 0 0 20px;
}

.csct-hero__title {
	font-size: clamp(38px, 4.6vw, 64px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.023em;
	color: var(--csct-text-primary);
	margin: 0 0 20px;
}

/* Client round 4: the headline's periods render smaller than the words. */
.csct-hero__period { font-size: 0.55em; }

.csct-hero__lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--csct-text-primary);
	margin: 0 0 20px;
	max-width: 626px;
}

.csct-hero__cta { margin-bottom: 20px; }

.csct-hero__call {
	font-size: 15px;
	margin: 0;
}

.csct-hero__call a { color: inherit; text-decoration: none; }
.csct-hero__call a:hover { color: var(--csct-text-brand); }

/* Dots — active state is a 22x8 pill, the rest 8px circles. */
.csct-hero__dots {
	position: absolute;
	left: var(--wp--preset--spacing--90);
	bottom: 32px;
	display: flex;
	/* 16px so adjacent 24px touch targets meet but never overlap. */
	gap: 16px;
	align-items: center;
}

.csct-hero__dot {
	position: relative;
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(246, 243, 238, 0.45);
	cursor: pointer;
	transition: width 250ms ease, background-color 250ms ease;
}

/*
 * The visible dot stays 8px; this invisible overlay is the real pointer and
 * touch target at 24x24 (WCAG 2.2 Target Size minimum).
 */
.csct-hero__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	min-width: 100%;
	border-radius: 999px;
}

.csct-hero__dot.is-active {
	width: 22px;
	background: var(--csct-brand);
}

.csct-hero__arrows {
	position: absolute;
	right: var(--wp--preset--spacing--90);
	bottom: 32px;
	display: flex;
	gap: 12px;
}

.csct-hero__arrow {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--csct-text-primary);
	background: rgba(246, 243, 238, 0.16);
	border: 1px solid rgba(246, 243, 238, 0.35);
	border-radius: 999px;
	cursor: pointer;
	backdrop-filter: blur(4px);
}

/* Dark glyph on brand orange: white here measured 2.29:1 and failed AA. */
.csct-hero__arrow:hover {
	background: var(--csct-brand);
	border-color: var(--csct-brand);
	color: var(--csct-text-on-brand);
}

@media (max-width: 900px) {
	.csct-hero { min-height: 560px; }
	.csct-hero__eyebrow { font-size: 20px; }
	.csct-hero__arrows { display: none; }
	.csct-hero__scrim {
		background: linear-gradient(
			180deg,
			rgba(17, 17, 17, 0.45) 0%,
			rgba(17, 17, 17, 0.78) 100%
		);
	}
}

/* -------------------------------------------------------------------------
 * Heritage strip — brand-orange stat bar under the hero.
 * ---------------------------------------------------------------------- */

.csct-heritage {
	background: var(--wp--preset--color--brand);
	padding-block: 8px;
}

.csct-heritage__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.csct-heritage__stat { text-align: center; }

.csct-heritage__value {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #111111;
	margin: 0;
}

.csct-heritage__label {
	font-size: 18px;
	line-height: 1.72;
	/* Client edit 2026-08-13 (matches Figma): white labels under black numbers.
	   2.07:1 on the brand strip — an accepted, client-mandated AA exception. */
	color: #ffffff;
	margin: 0;
}

.csct-heritage__badge { flex: none; }
.csct-heritage__badge img { display: block; width: 237px; height: auto; }

@media (max-width: 900px) {
	.csct-heritage__inner { justify-content: center; gap: 24px 40px; }
	.csct-heritage__value { font-size: 24px; }
	.csct-heritage__label { font-size: 15px; }
}

/*
 * WordPress's constrained layout auto-centres every child
 * (.wp-block-group-is-layout-constrained > :where(...) { margin-inline: auto }).
 * The hero text has to hang off the left gutter instead, and the dark-context
 * link rule outranks a plain .csct-hero__call a — so both need the extra
 * specificity rather than !important.
 */
.csct-hero .csct-hero__text {
	max-width: 638px;
	margin-inline: 0;
}

/*
 * Round 14: was --csct-text-secondary. That token is tuned for dark text on the
 * light page background; at 15px over a photograph it measured 3.17:1 against a
 * required 4.5 and was the worst failure on the hero. Primary instead.
 */
.csct-hero .csct-hero__call,
.csct-hero .csct-hero__call a {
	color: var(--csct-text-primary);
}

/* -------------------------------------------------------------------------
 * Section rhythm.
 *
 * theme.json's root blockGap puts 40px between every top-level block, which
 * shows up as white bands between full-bleed sections (header / hero /
 * heritage strip / footer). Sections own their own vertical padding, so the
 * gap between them must be zero.
 * ---------------------------------------------------------------------- */

.wp-site-blocks > * + *,
main > * + *,
.wp-block-post-content > * + * {
	margin-block-start: 0;
}

/*
 * Belt and braces: a full-bleed section should never inherit a stacking
 * margin from whatever container it lands in.
 */
.csct-hero,
.csct-heritage,
.csct-footer,
.csct-section {
	margin-block: 0;
}

/* -------------------------------------------------------------------------
 * Cards — shared shell for Product, Project and Archetype cards.
 * ---------------------------------------------------------------------- */

.csct-cols--cards { gap: 24px; }

.csct-card {
	display: flex;
	flex-direction: column;
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
	overflow: hidden;
	min-width: 0;
	height: 100%;
}

.csct-card__photo {
	display: block;
	width: 100%;
	/*
	 * height:auto is load-bearing. The img carries width/height attributes for
	 * CLS, and the height attribute is a presentational hint that would
	 * otherwise pin the box to 400px and defeat aspect-ratio.
	 */
	height: auto;
	aspect-ratio: 400 / 200;
	object-fit: cover;
	background: var(--csct-bg-subtle);
}

.csct-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
	gap: 10px;
}

.csct-card__eyebrow {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csct-text-brand);
	margin: 0;
}

.csct-card__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--csct-text-primary);
	margin: 0;
}

.csct-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 0;
}

.csct-card__spec {
	font-size: 13px;
	line-height: 1.3;
	color: var(--csct-text-muted);
	margin: 0;
}

/* Push the card CTA to the bottom so a row of cards lines its buttons up. */
.csct-card__cta {
	margin-top: auto;
	padding-top: 4px;
}

.csct-card__button {
	display: inline-block;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--csct-text-brand);
	background: transparent;
	border: 1px solid var(--csct-brand);
	border-radius: var(--csct-radius-md);
	text-decoration: none;
}

.csct-card__button:hover {
	background: var(--csct-brand);
	color: var(--csct-text-on-brand);
}

/* Spec-aside actions (client edits round 2): stacked download + contractor
   buttons under the "Specify with confidence" copy. */
.csct-aside__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 18px;
}

.csct-card__button--outline {
	color: var(--csct-text-primary);
	border-color: var(--csct-border, currentColor);
}

.csct-card__button--outline:hover {
	background: var(--csct-text-primary);
	color: var(--csct-bg-canvas, #fff);
}

/* -------------------------------------------------------------------------
 * Project card — taller photo, title + tile-model caption only.
 * ---------------------------------------------------------------------- */

.csct-card--project .csct-card__photo { aspect-ratio: 400 / 230; }

.csct-card--project .csct-card__body {
	gap: 4px;
	padding: 20px 24px;
	flex: 0 0 auto;
}

.csct-card--project .csct-card__title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

/* -------------------------------------------------------------------------
 * Archetype card — brand keyline, eyebrow, title, body, arrow link.
 * ---------------------------------------------------------------------- */

.csct-card--archetype .csct-card__body { padding: 24px; gap: 10px; }

.csct-card--archetype .csct-card__body::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--csct-brand);
	flex: none;
	margin-bottom: 4px;
}

.csct-arrowlink {
	margin-top: auto;
	padding-top: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--csct-text-brand);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.csct-arrowlink::after {
	content: "\2192";
	transition: transform 180ms ease;
}

.csct-arrowlink:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------------
 * Section head with a trailing action (Florida Proof).
 * ---------------------------------------------------------------------- */

.csct-section__headrow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--60);
}

.csct-section__headrow .csct-section__head { margin-bottom: 0; }

/* Section lede paragraph under the H2. */
.csct-section__lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 10px 0 0;
	max-width: 760px;
}

/* -------------------------------------------------------------------------
 * Why Clay — five icon columns.
 * ---------------------------------------------------------------------- */

.csct-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/*
 * Six credentials go 3 + 3 rather than 5 + 1. Every step of this ladder
 * divides 6 exactly (3 -> 2 -> 1), so the last row is never short.
 */
.csct-cols--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.csct-cols--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.csct-cols--5,
	.csct-cols--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
	.csct-cols--6 { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------------
 * CTA band — dark rounded panel, centred.
 * ---------------------------------------------------------------------- */

.csct-ctawrap { padding-block: 24px 96px; }

.csct-cta {
	background: var(--csct-bg-canvas);
	border-radius: 12px;
	padding: 64px 96px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.csct-cta .csct-overline { color: var(--csct-text-brand); }

.csct-cta__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.005em;
	color: var(--csct-text-primary);
	margin: 0;
}

.csct-cta__text {
	font-size: 18px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 0;
	max-width: 640px;
}

.csct-cta__buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 8px;
}

@media (max-width: 700px) {
	.csct-cta { padding: 48px 24px; }
}

/* Section H2 used inside wp:html blocks (which bypass block-level styling). */
.csct-h2 {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--heading-lg);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.005em;
	color: var(--csct-text-primary);
	margin: 0;
}

/* CTA band buttons — filled brand + brand outline, both 16px semibold. */
.csct-cta__primary,
.csct-cta__secondary {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: var(--csct-radius-md);
	text-decoration: none;
	border: 1px solid transparent;
}

.csct-cta__primary {
	background: var(--csct-brand);
	color: var(--csct-text-on-brand);
}

.csct-cta__primary:hover { background: #d97a1f; color: var(--csct-text-on-brand); }

/*
 * Client edit 2026-08-13: the label must stay white at rest AND on hover.
 * A solid brand fill on hover buried the white text (the dark-scope link
 * rules out-specified the old hover color), so hover is now a translucent
 * lift instead of a fill. Excluded from the .csct-dark link rules above.
 */
.csct-cta__secondary {
	background: transparent;
	color: var(--csct-text-primary);
	border-color: var(--csct-brand);
}

.csct-cta__secondary:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--csct-text-primary);
}

/* The dark card sits on a light section, so it must not inherit the page bg. */
.csct-cta.csct-dark { background: var(--csct-bg-canvas); }

/* -------------------------------------------------------------------------
 * Breadcrumbs
 * ---------------------------------------------------------------------- */

.csct-breadcrumb {
	padding-block: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--csct-text-muted);
}

.csct-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.csct-breadcrumb li::after {
	content: "/";
	margin-left: 8px;
	color: var(--csct-border-default);
}

.csct-breadcrumb li:last-child::after { content: ""; margin: 0; }
.csct-breadcrumb a { color: var(--csct-text-muted); text-decoration: none; }
.csct-breadcrumb a:hover { color: var(--csct-text-brand); }
.csct-breadcrumb [aria-current="page"] { color: var(--csct-text-primary); font-weight: 500; }

/* -------------------------------------------------------------------------
 * Page intro — overline, large H1, lede.
 * ---------------------------------------------------------------------- */

.csct-intro { padding-block: 32px 0; }

.csct-intro__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(32px, 3.6vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--csct-text-primary);
	margin: 10px 0 0;
}

.csct-intro__lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 16px 0 0;
	max-width: 900px;
}

/*
 * Round 9: the Fittings intro runs to the full content width at the client's
 * request. A 68ch cap was tried first and measured 772px — NARROWER than the
 * 900px base, i.e. the exact opposite of "extend further to the right". The
 * long measure is acceptable here only because this is two sentences; do not
 * reach for this class on body copy.
 */
.csct-intro__lede--wide { max-width: none; }

/*
 * Round 12b: the blog index header sat too loose above the card grid. Measured
 * before: 32px breadcrumb-to-overline and 64px lede-to-cards.
 *
 * Scoped to --blog on purpose. .csct-intro, .csct-intro__title and
 * .csct-intro__lede are shared by every page on the site, so tightening them
 * directly would reflow Products, Resources, Contact and the rest.
 */
.csct-intro--blog { padding-block: 20px 0; }

.csct-intro--blog + .csct-section--tight { padding-top: 4px; }

/*
 * Round 15: wrapper around the pasted Zoho form on /contact/.
 *
 * Its only structural job is to sit between the constrained-layout group and
 * the form, because WordPress forces
 *   .is-layout-constrained > :where(:not(.alignleft)...) { margin: auto !important }
 * on direct children. Zoho's own CSS already says .cs-form-wrap { margin: 0 },
 * but the !important auto margin was overriding it and centring the form 297px
 * away from the left gutter the rest of the page uses. With this wrapper taking
 * the auto margins instead, the form's own margin:0 works and it lines up.
 *
 * The padding is here because the embed carries no vertical rhythm of its own
 * and sat flush against the intro above and the section below. Values match
 * .csct-section--tight so the page reads the same as every other one.
 */
.csct-zohowrap {
	padding-block: 32px clamp(40px, 4.4vw, 64px);
}

/* -------------------------------------------------------------------------
 * Filter chips
 * ---------------------------------------------------------------------- */

.csct-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 8px 24px;
}

.csct-chip {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--csct-text-secondary);
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: 999px;
	cursor: pointer;
}

.csct-chip:hover { border-color: var(--csct-brand); color: var(--csct-text-brand); }

.csct-chip[aria-pressed="true"] {
	background: var(--csct-text-primary);
	border-color: var(--csct-text-primary);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Colour swatch grid
 * ---------------------------------------------------------------------- */

.csct-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/*
 * Color accordion + compare system (client round 5) — matches the
 * manufacturer's accordion UI: every color is a vertical strip in one
 * horizontal band; the active strip expands wide to show its full roof render
 * (the color name is baked into the image), collapsed strips carry a vertical
 * name label over a scrim. COMPARE sits on the expanded panel. Stacks into a
 * vertical accordion under 760px.
 */
.csct-coloracc__track {
	display: flex;
	gap: 3px;
	height: clamp(340px, 36vw, 520px);
	border-radius: var(--csct-radius-md);
	overflow: hidden;
}

.csct-coloracc__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	/* The accordion IS a width animation — flex-grow is the mechanism here. */
	transition: flex-grow 350ms ease;
}

.csct-coloracc__item.is-active { flex-grow: 9; }

/*
 * The color name is baked into the render's bottom-left corner. Cover-crop
 * from the center cuts it off, so the expanded panel anchors bottom-left;
 * collapsed slivers stay centered (a corner sliver would show half a label).
 */
.csct-coloracc__item.is-active { background-position: left bottom; }

/* Explicit, or the UA [hidden] rule loses to the flex item (round-3 lightbox lesson). */
.csct-coloracc__item[hidden],
.csct-colorsys__bar[hidden],
.csct-colorsys__compare[hidden] { display: none; }

/*
 * Round 9: the client asked for the black gradient to come off these images —
 * it was dulling the very thing a visitor is here to judge, the fired colour.
 * The scrim existed to keep the white strip labels readable, so that job moves
 * to a compact backdrop behind the label text itself (below): true colour
 * across the whole tile, legible name, no wash over the photograph.
 */

.csct-coloracc__expand {
	position: absolute;
	inset: 0;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

/*
 * A white ring alone was fine while the scrim darkened every tile; without it
 * the ring disappears against a pale render like Natural White. Pairing it
 * with a dark band just inside means one half of the ring always contrasts,
 * whatever colour the photograph happens to be.
 */
.csct-coloracc__expand:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -3px;
	box-shadow: inset 0 0 0 6px rgba(20, 14, 8, 0.85);
}

.csct-coloracc__name {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	writing-mode: vertical-rl;
	rotate: 180deg;
	font-family: var(--wp--preset--font-family--archivo, inherit);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #fff;
	white-space: nowrap;
	/*
	 * Sized to the text rather than washed across the image. Solid enough to
	 * hold white type over the palest tile in the range (Natural White).
	 */
	padding: 10px 5px;
	border-radius: 999px;
	background: rgba(20, 14, 8, 0.72);
}

/* The expanded render carries its own baked-in name — hide the strip label. */
.csct-coloracc__item.is-active .csct-coloracc__name { display: none; }

.csct-coloracc__cmp {
	position: absolute;
	right: 16px;
	bottom: 14px;
	display: none;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--archivo, inherit);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	z-index: 1;
	/*
	 * Same reason as the strip labels: with the gradient gone this sat on bare
	 * photography and measured 1.35:1 over the palest tile. The pill puts it
	 * back over 8:1 without tinting the image.
	 */
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(20, 14, 8, 0.72);
}

.csct-coloracc__item.is-active .csct-coloracc__cmp { display: flex; }

.csct-coloracc__cmp input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--csct-brand);
	cursor: pointer;
}

@media (max-width: 760px) {
	.csct-coloracc__track {
		flex-direction: column;
		height: auto;
	}

	.csct-coloracc__item {
		flex: none;
		height: 56px;
		transition: height 350ms ease;
	}

	.csct-coloracc__item.is-active { height: 58vw; }

	.csct-coloracc__name {
		writing-mode: horizontal-tb;
		rotate: none;
		left: 16px;
		bottom: 50%;
		transform: translateY(50%);
	}
}

.csct-colorsys__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 16px;
	padding: 12px 16px;
	background: var(--csct-bg-subtle);
	border-radius: var(--csct-radius-md);
}

.csct-colorsys__count { font-size: 15px; color: var(--csct-text-primary); }

.csct-colorsys__baractions { display: flex; gap: 10px; }

.csct-colorsys__bar button[disabled] { opacity: 0.55; cursor: not-allowed; }

.csct-colorsys__compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.csct-colorsys__cmpcard { margin: 0; }

.csct-colorsys__cmpcard img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--csct-radius-md);
	background: var(--csct-bg-subtle);
}

.csct-colorsys__cmpcard figcaption {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--csct-text-primary);
}

@media (max-width: 900px) {
	.csct-colorsys__layout { grid-template-columns: minmax(0, 1fr); }
	.csct-colorsys__stage { order: -1; }
	.csct-colorsys__list { max-height: 320px; }
}

/* Chips enlarged 72 → 110px, client edits round 2 (2026-08-13). */
.csct-swatch {
	width: 130px;
	margin: 0;
}

.csct-swatch__chip {
	display: block;
	width: 110px;
	height: 110px;
	margin-inline: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--csct-radius-md);
	background: var(--csct-bg-subtle);
	border: 1px solid var(--csct-border-default);
}

.csct-swatch__name {
	font-size: 14px;
	line-height: 1.35;
	color: var(--csct-text-primary);
	margin: 8px 0 0;
	text-align: center;
}

.csct-group { margin-bottom: 32px; }

.csct-group__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csct-text-brand);
	margin: 0 0 14px;
}

/* -------------------------------------------------------------------------
 * Spec table
 * ---------------------------------------------------------------------- */

.csct-specs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 56px;
	align-items: start;
}

.csct-spectable {
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
	padding: 8px 24px;
}

.csct-spectable dl { margin: 0; }

.csct-spectable__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--csct-border-default);
}

.csct-spectable__row:last-child { border-bottom: 0; }

.csct-spectable dt {
	font-size: 15px;
	color: var(--csct-text-secondary);
	margin: 0;
}

.csct-spectable dd {
	font-size: 15px;
	font-weight: 600;
	color: var(--csct-text-primary);
	margin: 0;
	text-align: right;
}

.csct-aside__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--csct-text-primary);
	margin: 0 0 10px;
}

@media (max-width: 900px) {
	.csct-specs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* -------------------------------------------------------------------------
 * Compare cards — attribute stacks with rules.
 * ---------------------------------------------------------------------- */

.csct-compare__card .csct-card__body { padding: 28px; gap: 0; }

.csct-compare__sub {
	font-size: 14px;
	color: var(--csct-text-muted);
	margin: 6px 0 0;
}

.csct-compare__rule {
	border: 0;
	border-top: 1px solid var(--csct-border-default);
	margin: 16px 0;
}

.csct-attr { margin-bottom: 16px; }

.csct-attr__label {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csct-text-muted);
	margin: 0 0 4px;
}

.csct-attr__value {
	font-size: 15px;
	line-height: 1.5;
	color: var(--csct-text-secondary);
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Simple prose band (coastal note, guide wrap, compare wrap).
 * ---------------------------------------------------------------------- */

.csct-band {
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
	padding: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.csct-band__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--csct-text-primary);
	margin: 0 0 6px;
}

.csct-band__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 0;
	max-width: 780px;
}

/* -------------------------------------------------------------------------
 * Gallery grid — masonry-ish fixed rows.
 * ---------------------------------------------------------------------- */

.csct-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 900px) { .csct-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .csct-gallery { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------------------
 * Product hero — photo left, detail right.
 * ---------------------------------------------------------------------- */

/* Round 4: bottom padding tightened so Colors & Finishes sits right under the hero. */
.csct-prodhero {
	display: grid;
	grid-template-columns: 620px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-block: 40px 8px;
}

.csct-prodhero__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 620 / 524;
	object-fit: cover;
	border-radius: var(--csct-radius-md);
	background: var(--csct-bg-subtle);
}

/* Photo + colour caption share the first grid column (client edits round 2). */
.csct-prodhero__media {
	margin: 0;
	min-width: 0;
}

.csct-prodhero__caption {
	font-size: 14px;
	color: var(--csct-text-muted);
	text-align: left;
	margin: 10px 0 0;
}

.csct-prodhero__title {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: clamp(38px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--csct-text-primary);
	margin: 10px 0 0;
}

.csct-prodhero__lede {
	font-size: 18px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 16px 0 0;
}

.csct-badges {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.csct-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: var(--csct-text-primary);
	border-radius: 999px;
}

.csct-badge--link {
	background: transparent;
	color: var(--csct-text-brand);
	padding: 0;
	text-decoration: none;
}

.csct-prodhero__spec {
	font-size: 15px;
	color: var(--csct-text-muted);
	margin: 14px 0 0;
}

.csct-prodhero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.csct-prodhero__tertiary {
	display: inline-block;
	margin-top: 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--csct-text-primary);
	text-decoration: none;
}

.csct-prodhero__tertiary:hover { color: var(--csct-text-brand); }

@media (max-width: 1100px) {
	.csct-prodhero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* A section that follows a page intro doesn't need its own top padding. */
/* Tight top, but the bottom must track .csct-section or the run-up to the
   CTA band keeps the old ~96px and the gap reappears on every page. */
.csct-section--tight { padding-block: 24px clamp(40px, 4.4vw, 64px); }

/* Fittings cards use a tighter title and the keyline from the archetype card. */
.csct-fit .csct-card__body { padding: 20px; gap: 8px; }
.csct-fit__title { font-size: 18px; font-weight: 500; }

/*
 * Round 4: "The system" boxes are links into Fittings & Accessories and carry
 * a product photo. The cutout shots sit on white, so the frame is white with
 * object-fit: contain — no crop, whatever the source aspect ratio.
 */
.csct-fit--link { text-decoration: none; color: inherit; display: block; }
.csct-fit--link:hover .csct-fit__title { color: var(--csct-text-brand); }

.csct-fit__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
	padding: 14px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--csct-border-default);
}

/* Coastal / guide callouts that stack rather than sit side by side. */
.csct-band--stack { display: block; }
.csct-band--stack .csct-arrowlink { margin-top: 14px; }

/* -------------------------------------------------------------------------
 * Banner image — a single wide photo used to break up a text page.
 * ---------------------------------------------------------------------- */

.csct-banner {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	border-radius: var(--csct-radius-md);
	background: var(--csct-bg-subtle);
}

@media (max-width: 600px) {
	.csct-banner { aspect-ratio: 3 / 2; }
}

/* -------------------------------------------------------------------------
 * Forms — contact, sample request and contractor enquiry all share this.
 * ---------------------------------------------------------------------- */

.csct-form { max-width: 620px; }

.csct-field { margin-bottom: 20px; }

.csct-field__label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--csct-text-muted);
}

.csct-field input,
.csct-field select,
.csct-field textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--csct-text-primary);
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
}

.csct-field textarea { resize: vertical; min-height: 120px; }

.csct-field input:focus-visible,
.csct-field select:focus-visible,
.csct-field textarea:focus-visible {
	outline: 2px solid var(--csct-brand);
	outline-offset: 1px;
	border-color: var(--csct-brand);
}

.csct-field--error input,
.csct-field--error select,
.csct-field--error textarea { border-color: #b3261e; }

.csct-field__error,
.csct-form__error {
	margin: 6px 0 0;
	font-size: 14px;
	color: #b3261e;
}

.csct-form__error { margin-bottom: 16px; }

/* The honeypot must be unreachable for people but present for bots. */
.csct-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.csct-form__submit {
	padding: 14px 28px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--csct-text-on-brand);
	background: var(--csct-brand);
	border: 0;
	border-radius: var(--csct-radius-md);
	cursor: pointer;
}

.csct-form__submit:hover { filter: brightness(0.95); }

.csct-form__note {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--csct-text-muted);
}

/*
 * Filtered fittings grid (round 4, modeled on marley.co.uk/fittings):
 * filter sidebar left, results bar + 3-column card grid right.
 */
.csct-fitgrid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.csct-fitgrid__filters {
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: sticky;
	top: 24px;
}

.csct-fitgrid__group {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.csct-fitgrid__legend {
	font-family: var(--wp--preset--font-family--archivo, inherit);
	font-size: 17px;
	font-weight: 600;
	color: var(--csct-text-primary);
	padding: 0;
	margin-bottom: 10px;
}

.csct-fitgrid__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--csct-text-primary);
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
}

.csct-fitgrid__opt:hover { background: var(--csct-bg-subtle); }

.csct-fitgrid__opt input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--csct-brand);
	cursor: pointer;
}

.csct-fitgrid__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--csct-border-default);
}

.csct-fitgrid__count {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--csct-text-primary);
}

.csct-fitgrid__clear {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--csct-text-secondary);
	text-decoration: underline;
	cursor: pointer;
}

.csct-fitgrid__clear:hover { color: var(--csct-text-brand); }

.csct-fitgrid__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	transition: opacity 180ms ease;
}

.csct-fitgrid__grid.is-fading { opacity: 0.25; }

.csct-fitgrid__card {
	background: #fff;
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
	overflow: hidden;
}

.csct-fitgrid__card[hidden] { display: none; }

.csct-fitgrid__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
	padding: 16px;
	box-sizing: border-box;
}

.csct-fitgrid__name {
	margin: 0;
	padding: 14px 16px 18px;
	font-size: 16px;
	font-weight: 500;
	color: var(--csct-text-primary);
	border-top: 1px solid var(--csct-border-default);
}

.csct-fitgrid__empty {
	margin: 24px 0 0;
	font-size: 16px;
	color: var(--csct-text-secondary);
}

@media (max-width: 1000px) {
	.csct-fitgrid { grid-template-columns: minmax(0, 1fr); }
	.csct-fitgrid__filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 24px; }
	.csct-fitgrid__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.csct-fitgrid__grid { grid-template-columns: minmax(0, 1fr); }
}

/*
 * Resources page document cards (round 6). A card per document: title,
 * one-line description, then its download button(s) pinned to the bottom so a
 * row of cards lines up. The file-size line sits inside the button and
 * inherits its color — hierarchy comes from size, never from a lower opacity,
 * which is what quietly breaks contrast on tinted backgrounds.
 */
.csct-doc__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	/*
	 * Cards elsewhere push their CTA to the bottom so a row lines up, but
	 * these hold different numbers of buttons (Tecno has three, Plasma two).
	 * Bottom-aligning them opened a gap in the middle of the shorter card;
	 * starting both stacks right under the description lines up the first
	 * button instead and leaves the slack at the foot of the card.
	 */
	margin-top: 0;
}

.csct-doc__meta {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* The terms card carries no button, so its last line should not add space. */
.csct-doc--terms .csct-card__text:last-child { margin-bottom: 0; }

/*
 * "The Clay Tile Advantage" columns (round 9). A lead sentence, then named
 * points as a definition list — the label is what a specifier scans for, so
 * it gets its own line and weight rather than being buried in a sentence.
 */
.csct-advantage__title {
	font-family: var(--wp--preset--font-family--archivo, inherit);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--csct-text-primary);
	margin: 0 0 10px;
}

.csct-advantage__lede {
	font-size: 16px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 0 0 20px;
}

.csct-advantage__points { margin: 0; }

/*
 * Spacing alone separates the points. A rule was tried here and removed: on
 * this section's bg-subtle panel, --csct-border-default resolves to the exact
 * same colour as the background, so it drew nothing at all.
 */
.csct-advantage__point + .csct-advantage__point { margin-top: 18px; }

.csct-advantage__point dt {
	font-size: 15px;
	font-weight: 600;
	color: var(--csct-text-primary);
	margin-bottom: 4px;
}

.csct-advantage__point dd {
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 0;
}

/* Product hero warranty line, directly above the calls to action (round 9). */
.csct-prodhero__warranty {
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
	margin: 14px 0 0;
}

/* Round 4: sample-request vetting policy shown above the form. */
.csct-form__vetting {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--csct-text-secondary);
}

.csct-form__success {
	padding: 28px 32px;
	background: var(--csct-bg-surface);
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
}

.csct-form__success p {
	margin: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 20px;
	line-height: 1.4;
	color: var(--csct-text-primary);
}

/* Contact layout — form beside the details column. */
.csct-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 900px) {
	.csct-contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* -------------------------------------------------------------------------
 * Blog — index cards, pagination and the article body.
 * ---------------------------------------------------------------------- */

.csct-card--blog { overflow: hidden; }

.csct-card--blog .csct-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.csct-card--blog .csct-card__photo { aspect-ratio: 400 / 230; }

.csct-card--blog .csct-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.csct-card--blog .csct-card__title { font-size: 20px; line-height: 1.3; }

.csct-card--blog .csct-arrowlink { margin-top: auto; padding-top: 12px; }

.csct-card--blog .csct-card__link:hover .csct-card__title { color: var(--csct-text-brand); }

.csct-card--blog .csct-card__link:focus-visible {
	outline: 2px solid var(--csct-brand);
	outline-offset: 2px;
}

.csct-pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 48px;
}

.csct-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--csct-border-default);
	border-radius: var(--csct-radius-md);
	text-decoration: none;
	color: var(--csct-text-secondary);
	font-size: 15px;
}

.csct-pagination .page-numbers.current {
	background: var(--csct-brand);
	border-color: var(--csct-brand);
	color: var(--csct-text-on-brand);
}

/* --- Article body -------------------------------------------------------- */

.csct-post__hero { padding-block: 40px 0; }

.csct-post {
	max-width: 720px;
	padding-block: 48px 0;
	font-size: 18px;
	line-height: 1.7;
	color: var(--csct-text-secondary);
}

.csct-post > * + * { margin-top: 24px; }

.csct-post h2 {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--csct-text-primary);
	margin-top: 48px;
}

.csct-post h3 {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--csct-text-primary);
	margin-top: 36px;
}

.csct-post ul,
.csct-post ol { padding-left: 22px; }

.csct-post li + li { margin-top: 8px; }

.csct-post blockquote {
	margin: 36px 0;
	padding: 4px 0 4px 24px;
	border-left: 1px solid var(--csct-border-default);
	font-size: 20px;
	line-height: 1.5;
	color: var(--csct-text-primary);
}

.csct-post img { max-width: 100%; height: auto; border-radius: var(--csct-radius-md); }

.csct-post a { color: var(--csct-text-brand); }

.csct-post__foot {
	max-width: 720px;
	padding-block: 40px 0;
}

/* Footer signup confirmation replaces the form in place after submission. */
.csct-footer__signup-done {
	margin: 0;
	font-size: 15px;
	color: var(--csct-text-primary);
}

/* -------------------------------------------------------------------------
 * Focus visibility.
 *
 * The theme previously had a single :focus rule with a #111 outline. On the
 * dark CTA band and the dark footer — both of which contain links, buttons and
 * the signup field — a near-black ring on a near-black surface is invisible.
 * These rules give every interactive element a visible ring in both scopes,
 * and use :focus-visible so a mouse click does not leave a ring behind.
 * ---------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--csct-text-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* On dark surfaces the ring flips to the light token so it stays visible. */
.csct-dark :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--csct-text-primary);
}

/* The brand-orange CTA sits on the dark band; a cream ring reads best on it. */
.csct-dark .csct-cta__primary:focus-visible,
.csct-hero :where(a, button):focus-visible {
	outline: 2px solid #f6f3ee;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Hero pause control (WCAG 2.2.2 Pause, Stop, Hide — Level A).
 *
 * The slider auto-advances on a timer. Pausing on hover and focus alone is not
 * a mechanism a keyboard or touch user can rely on, so hero.js injects this
 * button whenever autoplay is actually running.
 * ---------------------------------------------------------------------- */

.csct-hero__pause {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	margin-left: 8px;
	font-size: 13px;
	line-height: 1;
	color: var(--csct-text-primary);
	background: rgba(246, 243, 238, 0.16);
	border: 1px solid rgba(246, 243, 238, 0.35);
	border-radius: 999px;
	cursor: pointer;
}

.csct-hero__pause:hover { background: rgba(246, 243, 238, 0.28); }

/* ----------------------------------------------------------------------
 * Lightbox (client edits round 2, 2026-08-13)
 *
 * Overlay for any element carrying data-csct-full. Built and shown by
 * assets/js/lightbox.js; nothing here renders without it.
 * ---------------------------------------------------------------------- */

.csct-lightbox-trigger { cursor: zoom-in; }

.csct-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(17, 17, 17, 0.82);
}

/*
 * BUGFIX (client report 2026-08-13): the explicit display:grid above beats the
 * UA stylesheet's [hidden] { display:none }, so closing the lightbox flipped
 * the attribute but the overlay stayed painted — trapping the visitor until a
 * refresh. The attribute needs its own higher-priority rule.
 */
.csct-lightbox[hidden] { display: none; }

.csct-lightbox__frame {
	margin: 0;
	max-width: min(1100px, 94vw);
	max-height: 90vh;
	display: grid;
	justify-items: center;
	gap: 12px;
}

.csct-lightbox__img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	border-radius: var(--csct-radius-md);
	background: #fff;
}

.csct-lightbox__caption {
	color: #f6f3ee;
	font-size: 15px;
	text-align: center;
}

.csct-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #f6f3ee;
	background: rgba(246, 243, 238, 0.14);
	border: 1px solid rgba(246, 243, 238, 0.35);
	border-radius: 999px;
	cursor: pointer;
}

.csct-lightbox__close:hover { background: rgba(246, 243, 238, 0.28); }

/* Keep the page from scrolling behind the overlay. */
body.csct-lightbox-open { overflow: hidden; }

/* ----------------------------------------------------------------------
 * Fittings slider (client edits round 2, 2026-08-13) — Figma 313:2.
 * Scroll-snap track, 3 cards per view on desktop; arrows + dots below.
 * ---------------------------------------------------------------------- */

.csct-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 48px) / 3);
	column-gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.csct-slider__track::-webkit-scrollbar { display: none; }

.csct-slider__track > .csct-slide { scroll-snap-align: start; }

.csct-slide__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 800 / 460;
	object-fit: cover;
	border-radius: var(--csct-radius-md) var(--csct-radius-md) 0 0;
	background: #fff;
}

.csct-slide__photo--empty {
	display: grid;
	place-items: center;
	background: var(--csct-bg-subtle);
	color: var(--csct-text-muted);
	font-size: 15px;
}

.csct-slider__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-top: 24px;
}

.csct-slider__dots { display: flex; gap: 10px; }

.csct-slider__dot {
	position: relative;
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.25);
	cursor: pointer;
}

/* 24x24 invisible touch target, same treatment as the hero dots. */
.csct-slider__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
}

.csct-slider__dot.is-active { background: var(--csct-brand); }

.csct-slider__arrows { display: flex; gap: 12px; }

.csct-slider__arrow {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--csct-text-primary);
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.18);
	border-radius: 999px;
	cursor: pointer;
}

.csct-slider__arrow:hover:not(:disabled) { border-color: var(--csct-brand); color: var(--csct-text-brand); }

.csct-slider__arrow:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 900px) {
	.csct-slider__track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 600px) {
	.csct-slider__track { grid-auto-columns: 88%; }
}

/* Guide-band buttons sit side by side, wrapping on small screens. */
.csct-band__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Gallery cards lead with the tile-and-colour line since titles were removed
   (client edits round 2); slightly larger than the caption style it replaces. */
.csct-card__spec--lead {
	font-size: 15px;
	font-weight: 600;
	color: var(--csct-text-primary);
}

.csct-filter-empty {
	margin: 24px 0 0;
	color: var(--csct-text-muted);
}

/* --------------------------------------------------- Zoho form validation */

/*
 * Zoho's own embed reported errors with alert(). That is poor for everyone
 * using a screen reader, it loses the visitor's place on a long form, and it
 * blocks browser automation, which is why no submission on this site had ever
 * been tested end to end. assets/js/zoho-forms.js writes these inline
 * messages instead. Colour matches the theme's existing .csct-field__error.
 */
.csct-zoho-error {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: #b3261e;
}

.csct-zoho-formerror {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #b3261e;
	border-radius: 6px;
	background: #fdf3f2;
}

#crmWebToEntityForm [aria-invalid="true"] {
	border-color: #b3261e;
}

/*
 * The focus ring must stay visible against the red border, so it is not
 * allowed to inherit the field's error colour.
 */
#crmWebToEntityForm [aria-invalid="true"]:focus-visible {
	outline: 2px solid var(--csct-text-primary);
	outline-offset: 1px;
}
