/*
Theme Name: Groundwork
Theme URI: https://tenfoldthemes.example/groundwork
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A job-site-pragmatic block theme for general contractors and construction firms — permit-board hero, I-beam dividers with bolt dots, bordered clipboard cards, safety-record stat plates, 18 patterns, four full-page layouts, a Night Shift dark style and locally hosted Fjalla One & Work Sans 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: groundwork
Tags: block-theme, full-site-editing, block-patterns, block-styles, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, business, 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: 2px;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

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 — Permit card / Permit card (hover)
 * Bordered clipboard sheet with a charcoal head rule, like a site permit.
 * ------------------------------------------------------------------------- */

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

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

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

/* ---------------------------------------------------------------------------
 * Block style: Paragraph — Tick eyebrow
 * Caps-tracking label with an excavator-orange square tick prefix.
 * ------------------------------------------------------------------------- */

p.is-style-tick-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	display: flex;
	align-items: center;
}

p.is-style-tick-eyebrow::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.32em;
	margin-right: 0.7em;
	background-color: var(--wp--preset--color--primary);
	flex: 0 0 auto;
}

p.is-style-tick-eyebrow.has-text-align-center {
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * Block style: List — Punch list
 * Checklist rows with a square steel marker, like a punch-list sheet.
 * ------------------------------------------------------------------------- */

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

ul.is-style-punch-list > li {
	padding-left: 1.9em;
	position: relative;
	margin-bottom: 0.6em;
}

ul.is-style-punch-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.05em;
	height: 1.05em;
	border-radius: 2px;
	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="M5 12.5 10 17.5 19 7"/></svg>') center / 76% 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="M5 12.5 10 17.5 19 7"/></svg>') center / 76% no-repeat;
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — I-beam rule
 * A double hairline with two bolt dots — a girder seen end-on.
 * ------------------------------------------------------------------------- */

hr.wp-block-separator.is-style-ibeam {
	border: none;
	height: 12px;
	width: 100%;
	max-width: 120px;
	opacity: 1;
	background:
		linear-gradient(var(--wp--preset--color--contrast) 0 0) top / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--contrast) 0 0) bottom / 100% 3px no-repeat,
		linear-gradient(var(--wp--preset--color--primary) 0 0) center / 3px 12px no-repeat;
}

hr.wp-block-separator.is-style-ibeam.alignwide,
hr.wp-block-separator.is-style-ibeam.alignfull {
	max-width: none;
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Spec plate
 * Heavy bordered plate for oversized sq-ft / year numerals.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-spec-plate {
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--m);
	padding: var(--wp--preset--spacing--30);
	background: transparent;
}

/* ---------------------------------------------------------------------------
 * 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.3em;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

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

.wp-block-details > :not(summary) {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Tables — schedule & spec grids
 * ------------------------------------------------------------------------- */

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

.wp-block-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	letter-spacing: 0.08em;
	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: 2px;
}

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