/*
Theme Name: Spruce
Theme URI: https://tenfoldthemes.example/spruce
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A fresh-air block theme for residential and office cleaning companies and home-service crews — a bubble-and-sparkle sparkle-sweep hero, aqua checklist cards, citrus highlight pills, before/after bands, transparent per-visit pricing, 17 patterns, four full-page layouts, an Evening Tidy dark style and locally hosted Schibsted Grotesk & Onest fonts.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spruce
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, e-commerce, portfolio, blog
*/

/* ---------------------------------------------------------------------------
 * Focus visibility & motion
 * ------------------------------------------------------------------------- */

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

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

a,
.wp-block-button__link,
.wp-element-button {
	transition: var(--wp--custom--transition);
}

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

/* ---------------------------------------------------------------------------
 * Block style: Group — Service tile / Service tile (hover lift)
 * Rounded-square tile on cloud, soft frost border; hover floats it up.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-hover {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	box-shadow: var(--wp--preset--shadow--card);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-card-hover {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wp-block-group.is-style-card-hover:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-5px);
}

/* ---------------------------------------------------------------------------
 * Block style: List — Aqua checklist
 * Each item gets a round aqua tick, like a completed cleaning checklist.
 * ------------------------------------------------------------------------- */

ul.is-style-checkmarks {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checkmarks > li {
	padding-left: 2.1em;
	position: relative;
	margin-bottom: 0.6em;
}

ul.is-style-checkmarks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.4em;
	height: 1.4em;
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M6 12.5l3.6 3.6L18 7.6"/></svg>') center / 74% no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M6 12.5l3.6 3.6L18 7.6"/></svg>') center / 74% no-repeat;
}

/* The mask carves the tick shape out; layer a filled disc behind it. */
ul.is-style-checkmarks > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.4em;
	height: 1.4em;
	border-radius: var(--wp--custom--radius--full);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	z-index: -1;
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — Squeegee swipe
 * A clean rounded arc sweeping across the band, like a squeegee reveal.
 * ------------------------------------------------------------------------- */

hr.is-style-squeegee {
	border: none;
	height: 16px;
	width: min(220px, 60%);
	max-width: 220px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 16" preserveAspectRatio="none"><path fill="black" d="M0 12 C60 2 160 2 220 12 L220 16 L0 16 Z"/></svg>') center / 100% 100% no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 220 16" preserveAspectRatio="none"><path fill="black" d="M0 12 C60 2 160 2 220 12 L220 16 L0 16 Z"/></svg>') center / 100% 100% no-repeat;
}

hr.is-style-squeegee.has-text-align-center {
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------------------
 * Block style: Paragraph — Eyebrow label
 * Uppercase, wide-tracked aqua label with a four-point sparkle prefix.
 * ------------------------------------------------------------------------- */

p.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

p.is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-right: 0.65em;
	vertical-align: -0.05em;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 0c.7 5.6 5.7 10.6 12 11.3v1.4C17.7 13.4 12.7 18.4 12 24c-.7-5.6-5.7-10.6-12-11.3v-1.4C6.3 10.6 11.3 5.6 12 0Z"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 0c.7 5.6 5.7 10.6 12 11.3v1.4C17.7 13.4 12.7 18.4 12 24c-.7-5.6-5.7-10.6-12-11.3v-1.4C6.3 10.6 11.3 5.6 12 0Z"/></svg>') center / contain no-repeat;
}

/* Citrus highlight pill for a single word inside a headline. */
mark.spruce-pill {
	background: var(--wp--preset--color--accent);
	color: #1F2A2E;
	padding: 0.04em 0.42em;
	border-radius: var(--wp--custom--radius--m);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* ---------------------------------------------------------------------------
 * Details / FAQ affordance
 * ------------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.35em;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	font-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Tables — what's-included and pricing charts
 * ------------------------------------------------------------------------- */

.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

.wp-block-table td {
	border-color: var(--wp--preset--color--border);
}

/* ---------------------------------------------------------------------------
 * Small refinements
 * ------------------------------------------------------------------------- */

.wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

.wp-block-image img {
	height: auto;
	max-width: 100%;
}
