/* Clipping Lab — site styles. Tokens live in theme.json; this file holds components. */

:root {
	--cl-section: clamp(4.5rem, 9vw, 7.5rem);
	--cl-rule: var(--wp--preset--color--line);
	--cl-stone: var(--wp--preset--color--stone);
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; }
::selection { background: #E7DCC8; color: #121212; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ---------- Page rhythm ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.home .wp-block-post-content > *, .page-template-page-designed .wp-block-post-content > * { margin-block-start: 0; }
.cl-section .cl-lead { margin-left: 0 !important; margin-right: auto !important; }

/* ---------- Sections ---------- */
.cl-section { padding-top: var(--cl-section); padding-bottom: var(--cl-section); }
.cl-section--tight { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.cl-section + .cl-section:not(.is-style-cl-dark):not(.is-style-cl-panel) { border-top: 1px solid #E2DCD2; }

.is-style-cl-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone); }
.is-style-cl-dark p, .is-style-cl-dark li, .is-style-cl-dark td { color: var(--wp--preset--color--on-dark); }
.is-style-cl-dark h2, .is-style-cl-dark h3, .is-style-cl-dark h4, .is-style-cl-dark strong { color: var(--wp--preset--color--bone); }
.is-style-cl-dark a:not(.wp-element-button) { color: var(--wp--preset--color--bone); }
.is-style-cl-panel { background: var(--wp--preset--color--panel); }

.is-style-cl-rule { border-top: 1px solid var(--cl-rule); padding-top: 1.25rem; }

.is-style-cl-eyebrow {
	font-size: 0.75rem !important; letter-spacing: 0.24em; text-transform: uppercase;
	font-weight: 600; color: var(--wp--preset--color--accent);
}
.is-style-cl-dark .is-style-cl-eyebrow { color: var(--wp--preset--color--on-dark); }

.cl-lead { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--body); max-width: 40em; }
.cl-muted { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.cl-serif { font-family: var(--wp--preset--font-family--serif) !important; font-weight: 500 !important; letter-spacing: 0 !important; }
.cl-h-card { font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: var(--wp--preset--font-size--large); line-height: 1.15; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color 0.15s ease, color 0.15s ease; }
.wp-block-button.is-style-cl-outline .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}
.wp-block-button.is-style-cl-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone); }
.wp-block-button.is-style-cl-light .wp-block-button__link { background: var(--wp--preset--color--bone); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-cl-light .wp-block-button__link:hover { background: #fff; }

.cl-chip {
	font: inherit; font-size: 0.8125rem; min-height: 40px; padding: 0 1rem; border-radius: 20px;
	border: 1px solid var(--wp--preset--color--ink); background: transparent; color: var(--wp--preset--color--ink); cursor: pointer;
}
.cl-chip[aria-pressed="true"] { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone); }
.cl-chip:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.cl-topbar { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone); font-size: 0.8125rem; text-align: center; padding: 0.6rem 24px; }
.cl-topbar a { color: var(--wp--preset--color--bone); }
.cl-header { border-bottom: 1px solid #E2DCD2; background: var(--wp--preset--color--bone); }
.cl-header__inner { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.cl-wordmark { text-decoration: none; display: inline-flex; flex-direction: column; gap: 2px; }
.cl-wordmark__name { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.625rem; letter-spacing: 0.18em; color: var(--wp--preset--color--ink); line-height: 1; }
.cl-wordmark__tag { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.cl-header .wp-block-navigation { font-size: 0.9375rem; gap: 1.6rem; }
.cl-header .wp-block-navigation a { text-decoration: none; }
.cl-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cl-header .wp-block-navigation .current-menu-item > a { font-weight: 600; }

/* ---------- Hero ---------- */
.cl-hero h1 { margin-top: 0; }
.cl-hero .cl-lead { margin-top: 1.5rem; }
.cl-hero .wp-block-buttons { margin-top: 2rem; }
.cl-hero__note { margin-top: 1rem !important; }

/* ---------- Facts bar ---------- */
.cl-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none; color: var(--wp--preset--color--body); font-size: 0.9375rem; }
.cl-facts strong { font-family: var(--wp--preset--font-family--serif); font-weight: 600; font-size: 1.875rem; color: var(--wp--preset--color--ink); margin-right: 0.35rem; }

/* ---------- Cards and grids ---------- */
.cl-grid-rule > .wp-block-column, .cl-rule-items > * { border-top: 1px solid var(--cl-rule); padding-top: 1.25rem; }
.cl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #3A3631; border: 1px solid #3A3631; }
.cl-tiles > * { margin: 0 !important; }
.cl-tile { background: var(--wp--preset--color--ink); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 170px; text-decoration: none; color: var(--wp--preset--color--bone) !important; }
.cl-tile:hover .cl-tile__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cl-tile__title { font-family: var(--wp--preset--font-family--serif); font-size: 1.625rem; line-height: 1.15; }
.cl-tile__text { font-size: 0.9375rem; line-height: 1.55; color: var(--wp--preset--color--on-dark); }
.cl-tile__price { font-size: 0.8125rem; color: var(--wp--preset--color--line); margin-top: auto; }
.cl-tiles--light { background: var(--cl-stone); border-color: var(--cl-stone); grid-template-columns: repeat(3, 1fr); }
.cl-tiles--light .cl-tile { background: var(--wp--preset--color--panel); color: var(--wp--preset--color--ink) !important; }
.cl-tiles--light .cl-tile__text { color: var(--wp--preset--color--body); }

.cl-card { border: 1px solid var(--cl-stone); padding: 2.25rem 2rem; height: 100%; }
.cl-card--featured { border: 2px solid var(--wp--preset--color--ink); background: var(--wp--preset--color--paper); }
.cl-card__label { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin: 0; }
.cl-card__price { font-family: var(--wp--preset--font-family--serif); font-size: 2.75rem; line-height: 1; margin: 1rem 0; }
.cl-card__price small { font-family: var(--wp--preset--font-family--sans); font-size: 0.9375rem; color: var(--wp--preset--color--muted); }


.cl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.cl-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.9375rem; color: var(--wp--preset--color--body); }
.cl-service-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.cl-service-index ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.7rem; }
.cl-service-index a { text-decoration: none; font-size: 0.9375rem; }
.cl-service-index a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Steps ---------- */
.is-style-cl-steps { counter-reset: clstep; list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--cl-stone); border: 1px solid var(--cl-stone); }
.is-style-cl-steps > li { counter-increment: clstep; background: var(--wp--preset--color--panel); padding: 1.75rem 1.5rem; margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--wp--preset--color--body); }
.is-style-cl-steps > li::before { content: counter(clstep) " ·"; display: block; color: var(--wp--preset--color--accent); font-weight: 600; font-size: 0.8125rem; margin-bottom: 0.6rem; }
.is-style-cl-steps > li strong { display: block; color: var(--wp--preset--color--ink); font-size: 1.0625rem; margin-bottom: 0.35rem; }
.is-style-cl-dark .is-style-cl-steps { background: #3A3631; border-color: #3A3631; }
.is-style-cl-dark .is-style-cl-steps > li { background: var(--wp--preset--color--ink); }

/* ---------- Tables ---------- */
.wp-block-table.is-style-cl-table { overflow-x: auto; }
.wp-block-table.is-style-cl-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9375rem; }
.wp-block-table.is-style-cl-table th, .wp-block-table.is-style-cl-table td { border: 0; border-bottom: 1px solid var(--cl-stone); padding: 1rem; text-align: left; vertical-align: top; }
.wp-block-table.is-style-cl-table thead th { font-weight: 600; border-bottom: 1px solid var(--wp--preset--color--ink); }
.wp-block-table.is-style-cl-table tbody th, .wp-block-table.is-style-cl-table tbody td:first-child { color: var(--wp--preset--color--muted); font-weight: 500; }
.wp-block-table.is-style-cl-table td:last-child, .wp-block-table.is-style-cl-table th:last-child { background: rgba(168, 139, 90, 0.08); }
.is-style-cl-dark .wp-block-table.is-style-cl-table th, .is-style-cl-dark .wp-block-table.is-style-cl-table td { border-bottom-color: #3A3631; }
.is-style-cl-dark .wp-block-table.is-style-cl-table thead th { border-bottom-color: var(--wp--preset--color--line); color: var(--wp--preset--color--bone); }
.is-style-cl-dark .wp-block-table.is-style-cl-table td:last-child, .is-style-cl-dark .wp-block-table.is-style-cl-table th:last-child { background: var(--wp--preset--color--ink-soft); color: var(--wp--preset--color--bone); }

/* ---------- FAQ (core/details) ---------- */
.wp-block-details { border-bottom: 1px solid var(--cl-stone); padding: 1.35rem 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-block-details:first-of-type { border-top: 1px solid var(--cl-stone); }
.wp-block-details summary { cursor: pointer; font-size: 1.125rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--accent); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { margin-top: 0.85rem; color: var(--wp--preset--color--body); }

/* ---------- Chips list (formats, garments) ---------- */
.cl-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.cl-pills li { border: 1px solid var(--cl-stone); padding: 0.75rem 1.1rem; font-size: 0.9375rem; }
.is-style-cl-dark .cl-pills li { border-color: #3A3631; color: var(--wp--preset--color--bone); }

/* ---------- Compare (before/after) ---------- */
.cl-compare { margin: 0; }
.cl-compare__stage { position: relative; overflow: hidden; background: var(--wp--preset--color--stone); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cl-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-compare__placeholder { background: var(--wp--preset--color--sand); }
.cl-compare__after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); background: var(--wp--preset--color--paper); }
.cl-compare__handle {
	position: absolute; top: 50%; left: var(--pos, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px;
	border-radius: 50%; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone);
	display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.cl-compare__stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--wp--preset--color--ink); pointer-events: none; }
.cl-compare__tag { position: absolute; bottom: 14px; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(246, 243, 238, 0.88); padding: 0.3rem 0.55rem; color: var(--wp--preset--color--body); pointer-events: none; }
.cl-compare__tag--before { left: 14px; }
.cl-compare__tag--after { right: 14px; }
.cl-compare__markup { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cl-compare__markup svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--wp--preset--color--markup); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-compare__markup svg path { vector-effect: non-scaling-stroke; }
.cl-note { position: absolute; font-family: var(--wp--preset--font-family--hand); font-size: clamp(1rem, 1.6vw, 1.375rem); line-height: 1.05; color: var(--wp--preset--color--markup); transform: rotate(var(--r, -2deg)); max-width: 9em; text-shadow: 0 0 6px rgba(251, 250, 247, 0.9); }
.cl-compare[data-markup="off"] .cl-compare__markup { opacity: 0; }
.cl-compare__loupe {
	position: absolute; left: 0; top: 0; width: 160px; height: 160px; border-radius: 50%;
	border: 2px solid var(--wp--preset--color--ink); box-shadow: 0 8px 28px rgba(18, 18, 18, 0.2);
	background-repeat: no-repeat; background-color: var(--wp--preset--color--paper); pointer-events: none; opacity: 0;
}
.cl-compare[data-loupe="on"] .cl-compare__stage { cursor: zoom-in; }
.cl-compare[data-loupe="on"] .cl-compare__loupe.is-visible { opacity: 1; }
.cl-compare__bar { margin-top: 0.75rem; display: grid; gap: 0.75rem; }
.cl-compare__range { width: 100%; accent-color: var(--wp--preset--color--ink); }
.cl-compare__controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cl-compare__caption { font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin-left: 0.25rem; }
@media (hover: none) { .cl-compare [data-cl-toggle="loupe"] { display: none; } }

/* ---------- Work grid ---------- */
.cl-work__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.cl-work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.cl-work__item[hidden] { display: none; }
.cl-work__fig { margin: 0; }
.cl-work__fig:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; }
.cl-work__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wp--preset--color--sand); }
.cl-work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.cl-work__before { opacity: 0; }
.cl-work__fig:hover .cl-work__before, .cl-work__fig:focus .cl-work__before { opacity: 1; }
.cl-work__hint--touch { display: none; }
@media (hover: none) { .cl-work__hint--hover { display: none; } .cl-work__hint--touch { display: inline; } }
.cl-work__hint { position: absolute; left: 12px; bottom: 12px; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(246, 243, 238, 0.9); padding: 0.3rem 0.5rem; }
.cl-work__caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; font-size: 0.875rem; }
.cl-work__title { font-weight: 600; }
.cl-work__level { color: var(--wp--preset--color--muted); white-space: nowrap; }

.cl-image-placeholder { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--muted); font-size: 0.875rem; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.wp-block-image img { display: block; width: 100%; }

/* ---------- Founder note ---------- */
.cl-signature { font-family: var(--wp--preset--font-family--hand); font-size: 2rem; line-height: 1; color: var(--wp--preset--color--ink); }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 label { display: grid; gap: 0.35rem; font-size: 0.8125rem; color: inherit; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	font: inherit; width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1px solid var(--cl-stone); background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border-radius: 0;
}
.is-style-cl-dark .wpcf7 input, .is-style-cl-dark .wpcf7 select, .is-style-cl-dark .wpcf7 textarea { background: #1C1A18; border-color: #3A3631; color: var(--wp--preset--color--bone); }
.wpcf7 input[type="submit"] { font: inherit; font-weight: 500; min-height: 52px; border: 0; border-radius: 2px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--bone); cursor: pointer; padding: 0 1.75rem; }
.is-style-cl-dark .wpcf7 input[type="submit"] { background: var(--wp--preset--color--bone); color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.cl-footer { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--on-dark); font-size: 0.875rem; }
.cl-footer a { color: var(--wp--preset--color--on-dark); text-decoration: none; }
.cl-footer a:hover { color: var(--wp--preset--color--bone); text-decoration: underline; }
.cl-footer h2 { font-family: var(--wp--preset--font-family--sans); font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--bone); letter-spacing: 0; margin-bottom: 0.75rem; }
.cl-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.cl-footer__bottom { border-top: 1px solid #3A3631; padding-top: 1.5rem; font-size: 0.8125rem; }

/* ---------- Small screens ---------- */
@media (max-width: 1024px) {
	.cl-tiles, .cl-tiles--light { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.cl-tiles, .cl-tiles--light { grid-template-columns: 1fr; }
	.cl-work__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.cl-work__caption { flex-direction: column; gap: 0.15rem; font-size: 0.8125rem; }
}
@media (max-width: 781px) {
	.cl-facts { justify-content: flex-start; }
	.cl-note { font-size: 0.95rem; }
	.cl-compare__tag { bottom: 8px; }
	.wp-block-columns.cl-stack-gap { gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
