/*
Theme Name: Hire Pross
Theme URI: https://hirepross.ca
Author: Hire Pross
Author URI: https://hirepross.ca
Description: The premium marketplace theme for Hire Pross — Canada's AI-powered local-services marketplace. A distinctive Canadian-trades visual identity (spruce green + hi-vis amber on warm paper), fully CMS-driven: every image, category, service, menu, page, and block of text is editable from WordPress Admin. Pairs with the Hire Pross Core plugin.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hire-pross
Tags: marketplace, services, business, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

/*
 * -----------------------------------------------------------------------------
 * DESIGN SYSTEM — Hire Pross
 * -----------------------------------------------------------------------------
 * Visual thesis: Canadian trades & local services. We reject the generic
 * marketplace look (stock hero + SaaS teal). The palette comes from the trades'
 * own world — deep spruce/pine green (Canadian forest; trust and craft) with a
 * warm hi-vis amber accent (the safety-wear vernacular of the worksite), set on
 * warm paper with charcoal ink. The recurring signature is the TRUST motif —
 * verification badges and the escrow/trust-score treatment — because the trust
 * system is what actually differentiates this marketplace.
 * -----------------------------------------------------------------------------
 */

:root {
	/* Core palette */
	--hp-ink:      #14201c; /* near-black spruce ink — primary text */
	--hp-spruce:   #1b4332; /* deep spruce — primary brand */
	--hp-pine:     #2d6a4f; /* pine — secondary brand / hovers */
	--hp-sage:     #74a892; /* muted sage — subtle accents, borders */
	--hp-amber:    #f4a11f; /* hi-vis amber — the one bold accent */
	--hp-amber-dk: #d9860a; /* amber pressed */
	--hp-paper:    #f7f5ef; /* warm paper — page background */
	--hp-mist:     #e8e6dd; /* mist — cards, dividers on paper */
	--hp-cloud:    #ffffff; /* pure white — elevated cards */
	--hp-slate:    #55645d; /* muted slate — secondary text */
	--hp-line:     #d8d5c8; /* hairline rules */

	/* Semantic */
	--hp-success:  #2d6a4f;
	--hp-warning:  #d9860a;
	--hp-danger:   #b23b2e;
	--hp-info:     #2f5e8a;
	--hp-verified: #1b7a4b; /* verification-badge green */

	/* Typography */
	--hp-font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--hp-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--hp-font-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	/* Type scale (fluid) */
	--hp-fs-xs:   0.78rem;
	--hp-fs-sm:   0.88rem;
	--hp-fs-base: 1rem;
	--hp-fs-md:   1.15rem;
	--hp-fs-lg:   1.4rem;
	--hp-fs-xl:   clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
	--hp-fs-2xl:  clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem);
	--hp-fs-3xl:  clamp(2.8rem, 1.6rem + 5vw, 5rem);

	/* Spacing scale */
	--hp-sp-1: 0.25rem;
	--hp-sp-2: 0.5rem;
	--hp-sp-3: 0.75rem;
	--hp-sp-4: 1rem;
	--hp-sp-5: 1.5rem;
	--hp-sp-6: 2rem;
	--hp-sp-7: 3rem;
	--hp-sp-8: 4rem;
	--hp-sp-9: 6rem;

	/* Radius — trades signage is squared but not sharp; a small, confident radius */
	--hp-radius-sm: 6px;
	--hp-radius:    10px;
	--hp-radius-lg: 16px;
	--hp-radius-pill: 999px;

	/* Elevation */
	--hp-shadow-sm: 0 1px 2px rgba(20, 32, 28, 0.06), 0 1px 3px rgba(20, 32, 28, 0.08);
	--hp-shadow:    0 4px 12px rgba(20, 32, 28, 0.08), 0 2px 4px rgba(20, 32, 28, 0.06);
	--hp-shadow-lg: 0 18px 40px rgba(20, 32, 28, 0.14), 0 6px 12px rgba(20, 32, 28, 0.08);

	/* Layout */
	--hp-container: 1200px;
	--hp-container-wide: 1400px;
	--hp-container-narrow: 760px;
	--hp-header-h: 76px;

	/* Motion */
	--hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hp-dur: 0.28s;
}

/* -----------------------------------------------------------------------------
 * RESET & BASE
 * ---------------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--hp-font-body);
	font-size: var(--hp-fs-base);
	line-height: 1.6;
	color: var(--hp-ink);
	background: var(--hp-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hp-font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--hp-ink);
	margin: 0 0 var(--hp-sp-4);
}

h1 { font-size: var(--hp-fs-3xl); }
h2 { font-size: var(--hp-fs-2xl); }
h3 { font-size: var(--hp-fs-xl); }
h4 { font-size: var(--hp-fs-lg); }

p { margin: 0 0 var(--hp-sp-4); }

a {
	color: var(--hp-pine);
	text-decoration: none;
	transition: color var(--hp-dur) var(--hp-ease);
}
a:hover { color: var(--hp-amber-dk); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--hp-sp-4); padding-left: 1.2em; }

/* Accessibility: visible focus, respected everywhere */
:focus-visible {
	outline: 3px solid var(--hp-amber);
	outline-offset: 2px;
	border-radius: var(--hp-radius-sm);
}

.hp-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--hp-ink);
	color: #fff;
	padding: var(--hp-sp-3) var(--hp-sp-4);
	z-index: 1000;
	border-radius: 0 0 var(--hp-radius) 0;
}
.hp-skip-link:focus { left: 0; color: #fff; }

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

/* -----------------------------------------------------------------------------
 * LAYOUT PRIMITIVES
 * ---------------------------------------------------------------------------*/
.hp-container {
	width: 100%;
	max-width: var(--hp-container);
	margin-inline: auto;
	padding-inline: var(--hp-sp-5);
}
.hp-container--wide { max-width: var(--hp-container-wide); }
.hp-container--narrow { max-width: var(--hp-container-narrow); }

.hp-section { padding-block: var(--hp-sp-9); }
.hp-section--tight { padding-block: var(--hp-sp-7); }

.hp-grid { display: grid; gap: var(--hp-sp-5); }
.hp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
	.hp-grid--3, .hp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.hp-grid--2, .hp-grid--3, .hp-grid--4 { grid-template-columns: 1fr; }
}

.hp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--hp-sp-2);
	font-family: var(--hp-font-mono);
	font-size: var(--hp-fs-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hp-pine);
	margin-bottom: var(--hp-sp-3);
}
.hp-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--hp-amber);
}

.hp-lead { font-size: var(--hp-fs-md); color: var(--hp-slate); max-width: 60ch; }

/* -----------------------------------------------------------------------------
 * BUTTONS
 * ---------------------------------------------------------------------------*/
.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--hp-sp-2);
	font-family: var(--hp-font-display);
	font-weight: 600;
	font-size: var(--hp-fs-sm);
	letter-spacing: 0.01em;
	padding: 0.85em 1.5em;
	border-radius: var(--hp-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--hp-dur) var(--hp-ease), background var(--hp-dur) var(--hp-ease), box-shadow var(--hp-dur) var(--hp-ease), color var(--hp-dur) var(--hp-ease);
	text-align: center;
	line-height: 1.2;
}
.hp-btn:active { transform: translateY(1px); }

.hp-btn--primary {
	background: var(--hp-amber);
	color: var(--hp-ink);
	box-shadow: var(--hp-shadow-sm);
}
.hp-btn--primary:hover {
	background: var(--hp-amber-dk);
	color: var(--hp-ink);
	box-shadow: var(--hp-shadow);
	transform: translateY(-1px);
}

.hp-btn--spruce {
	background: var(--hp-spruce);
	color: #fff;
}
.hp-btn--spruce:hover { background: var(--hp-pine); color: #fff; transform: translateY(-1px); }

.hp-btn--ghost {
	background: transparent;
	color: var(--hp-ink);
	border-color: var(--hp-line);
}
.hp-btn--ghost:hover { border-color: var(--hp-spruce); color: var(--hp-spruce); }

.hp-btn--light {
	background: var(--hp-cloud);
	color: var(--hp-spruce);
	border-color: var(--hp-mist);
}
.hp-btn--light:hover { border-color: var(--hp-spruce); }

.hp-btn--lg { font-size: var(--hp-fs-base); padding: 1em 1.8em; }
.hp-btn--sm { font-size: var(--hp-fs-xs); padding: 0.6em 1em; }
.hp-btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
 * CARDS
 * ---------------------------------------------------------------------------*/
.hp-card {
	background: var(--hp-cloud);
	border: 1px solid var(--hp-mist);
	border-radius: var(--hp-radius-lg);
	overflow: hidden;
	transition: transform var(--hp-dur) var(--hp-ease), box-shadow var(--hp-dur) var(--hp-ease), border-color var(--hp-dur) var(--hp-ease);
}
.hp-card--hover:hover {
	transform: translateY(-4px);
	box-shadow: var(--hp-shadow-lg);
	border-color: var(--hp-sage);
}
.hp-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hp-mist); }
.hp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--hp-ease); }
.hp-card--hover:hover .hp-card__media img { transform: scale(1.05); }
.hp-card__body { padding: var(--hp-sp-5); }
.hp-card__title { font-size: var(--hp-fs-lg); margin-bottom: var(--hp-sp-2); }

/* -----------------------------------------------------------------------------
 * TRUST SIGNATURE — the recurring differentiator motif
 * ---------------------------------------------------------------------------*/
.hp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-family: var(--hp-font-mono);
	font-size: var(--hp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.35em 0.7em;
	border-radius: var(--hp-radius-pill);
	line-height: 1;
}
.hp-badge--verified {
	background: rgba(27, 122, 75, 0.12);
	color: var(--hp-verified);
	border: 1px solid rgba(27, 122, 75, 0.25);
}
.hp-badge--escrow {
	background: rgba(244, 161, 31, 0.14);
	color: var(--hp-amber-dk);
	border: 1px solid rgba(244, 161, 31, 0.3);
}
.hp-badge--level {
	background: var(--hp-spruce);
	color: #fff;
}
.hp-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Trust score meter — the escrow/reputation signature */
.hp-trust {
	display: inline-flex;
	align-items: center;
	gap: var(--hp-sp-2);
	font-family: var(--hp-font-mono);
	font-size: var(--hp-fs-sm);
	font-weight: 600;
	color: var(--hp-ink);
}
.hp-trust__bar {
	width: 64px;
	height: 6px;
	border-radius: var(--hp-radius-pill);
	background: var(--hp-mist);
	overflow: hidden;
	position: relative;
}
.hp-trust__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: linear-gradient(90deg, var(--hp-pine), var(--hp-amber));
	border-radius: inherit;
}

/* Star rating */
.hp-stars { display: inline-flex; gap: 2px; color: var(--hp-amber); font-size: var(--hp-fs-sm); }
.hp-stars__muted { color: var(--hp-line); }

/* -----------------------------------------------------------------------------
 * FORMS
 * ---------------------------------------------------------------------------*/
.hp-field { margin-bottom: var(--hp-sp-4); }
.hp-label {
	display: block;
	font-family: var(--hp-font-display);
	font-weight: 600;
	font-size: var(--hp-fs-sm);
	margin-bottom: var(--hp-sp-2);
	color: var(--hp-ink);
}
.hp-input, .hp-select, .hp-textarea {
	width: 100%;
	font-family: var(--hp-font-body);
	font-size: var(--hp-fs-base);
	padding: 0.75em 1em;
	border: 1px solid var(--hp-line);
	border-radius: var(--hp-radius);
	background: var(--hp-cloud);
	color: var(--hp-ink);
	transition: border-color var(--hp-dur) var(--hp-ease), box-shadow var(--hp-dur) var(--hp-ease);
}
.hp-input:focus, .hp-select:focus, .hp-textarea:focus {
	outline: none;
	border-color: var(--hp-pine);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
.hp-textarea { resize: vertical; min-height: 120px; }

/* -----------------------------------------------------------------------------
 * UTILITIES
 * ---------------------------------------------------------------------------*/
.hp-text-center { text-align: center; }
.hp-mt-0 { margin-top: 0; }
.hp-mb-0 { margin-bottom: 0; }
.hp-muted { color: var(--hp-slate); }
.hp-amber { color: var(--hp-amber-dk); }
.hp-spruce { color: var(--hp-spruce); }
.hp-flex { display: flex; }
.hp-flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--hp-sp-4); }
.hp-flex-center { display: flex; align-items: center; gap: var(--hp-sp-3); }
.hp-wrap { flex-wrap: wrap; }
.hp-gap-2 { gap: var(--hp-sp-2); }
.hp-gap-3 { gap: var(--hp-sp-3); }
.hp-gap-4 { gap: var(--hp-sp-4); }
.hp-hidden { display: none !important; }

.hp-divider { height: 1px; background: var(--hp-line); border: 0; margin-block: var(--hp-sp-6); }

/* Screen-reader only */
.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;
}
