/*
Theme Name: Pitstop
Theme URI: https://tenfoldthemes.example/pitstop
Author: Tenfold Themes
Author URI: https://tenfoldthemes.example
Description: A vintage service-station block theme for auto repair shops and service centers — enamel-badge heroes, odometer stat digits, tire-tread dividers and price-tag service chips, with 17 patterns, four full-page layouts, a Midnight Garage dark style and locally hosted Alfa Slab One and Rubik 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: pitstop
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: 5px;
}

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

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 — Enamel panel / Enamel panel (hover lift)
 * A bolted service-counter card on retro cream with a heavy tan rule.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-panel,
.wp-block-group.is-style-panel-hover {
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--border);
	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-panel-hover {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

/* ---------------------------------------------------------------------------
 * Block style: Paragraph — Marquee label
 * Service-station signage eyebrow: oxblood caps with a gold bolt prefix.
 * ------------------------------------------------------------------------- */

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

p.is-style-marquee::before {
	content: "";
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	margin-right: 0.7em;
	vertical-align: 0.02em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent);
}

/* On oil-black bands the label glows gold. */
.has-contrast-background-color p.is-style-marquee,
.wp-block-cover p.is-style-marquee {
	color: var(--wp--preset--color--accent);
}

/* ---------------------------------------------------------------------------
 * Block style: Group — Price tag
 * Notched service-menu chip: gold enamel with a punched hole at the left.
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-price-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #c99414;
	color: #26221c;
	font-weight: 800;
	letter-spacing: 0.01em;
	padding: 0.3rem 0.95rem 0.3rem 1.6rem;
	border-radius: var(--wp--custom--radius--s);
	position: relative;
	clip-path: polygon(0.85rem 0, 100% 0, 100% 100%, 0.85rem 100%, 0 50%);
}

.wp-block-group.is-style-price-tag::before {
	content: "";
	position: absolute;
	left: 0.72rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 999px;
	background: #f7f1e1;
}

.wp-block-group.is-style-price-tag p {
	margin: 0;
	font-weight: 800;
}

/* ---------------------------------------------------------------------------
 * Block style: Separator — Tire tread
 * Chunky offset dashes reading like a tread strip across the page.
 * ------------------------------------------------------------------------- */

hr.wp-block-separator.is-style-tread {
	border: none;
	height: 14px;
	max-width: none;
	width: 100%;
	opacity: 1;
	background-image:
		repeating-linear-gradient(90deg, var(--wp--preset--color--contrast) 0 14px, transparent 14px 30px),
		repeating-linear-gradient(90deg, var(--wp--preset--color--contrast) 0 14px, transparent 14px 30px);
	background-position: 0 0, 15px 7px;
	background-size: 30px 7px, 30px 7px;
	background-repeat: repeat-x, repeat-x;
}

/* ---------------------------------------------------------------------------
 * Block style: List — Wrench check
 * Service-completed list; each item ticked with an oxblood check.
 * ------------------------------------------------------------------------- */

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

ul.is-style-wrench-check > li {
	padding-left: 1.9em;
	position: relative;
	margin-bottom: 0.55em;
}

ul.is-style-wrench-check > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.25em;
	height: 1.25em;
	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="2.6" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5 9.5 18 20 6"/></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="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5 9.5 18 20 6"/></svg>') center / contain no-repeat;
}

.has-contrast-background-color ul.is-style-wrench-check > li::before,
.wp-block-cover ul.is-style-wrench-check > li::before {
	background-color: var(--wp--preset--color--accent);
}

/* ---------------------------------------------------------------------------
 * Odometer digit boxes — bare stat numerals in bolted plates
 * ------------------------------------------------------------------------- */

.wp-block-group.is-style-odometer {
	display: inline-flex;
	gap: 3px;
	padding: 4px;
	background: #26221c;
	border-radius: var(--wp--custom--radius--s);
}

.wp-block-group.is-style-odometer > * {
	margin: 0;
	min-width: 1.15em;
	text-align: center;
	background: #332d24;
	color: #f7f1e1;
	font-family: var(--wp--preset--font-family--heading);
	line-height: 1.35;
	padding: 0.1em 0.18em;
	border-radius: 3px;
}

/* ---------------------------------------------------------------------------
 * 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.2em;
	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-weight: 400;
	color: var(--wp--preset--color--contrast-2);
}

/* ---------------------------------------------------------------------------
 * Spec tables — service schedules & pricing
 * ------------------------------------------------------------------------- */

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

.wp-block-table th {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	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%;
}
