/*
 * TASK-100: front page ("Home") visual layer. Reuses the same brand tokens
 * already validated (WCAG, TASK-069C/069E) in provider-form.css — redefined
 * here under `.rrc-home` instead of imported, since this file is enqueued
 * independently and only ever on the front page (HomeExperience.php).
 * Every selector below is scoped under `.rrc-home`, so nothing here can
 * ever leak onto /services/, listing detail, checkout, dashboard or
 * wp-admin.
 */
.rrc-home {
	--rr-cream: #faf6ec;
	--rr-bg-page: #f6f6f4;
	--rr-card-bg: #ffffff;
	--rr-border: #e8dfcc;
	--rr-ink: #2b2420;
	--rr-ink-soft: #6b6153;
	--rr-teal-deep: #1b4b4a;
	--rr-teal: #2e9c8f;
	--rr-orange: #e8592e;
	--rr-orange-dark: #c94a24;
	--rr-gold: #f0a93c;

	color: var(--rr-ink);
}

.rrc-home h1,
.rrc-home h2,
.rrc-home h3 {
	font-weight: 700;
	margin: 0;
}

.rrc-home-section-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 24px;
}

/* ---------- Hero ---------- */

.rrc-home-hero {
	background: linear-gradient(135deg, var(--rr-teal-deep) 0%, var(--rr-teal) 100%);
	padding: 72px 24px 96px;
	text-align: center;
}

.rrc-home-hero-inner {
	max-width: 840px;
	margin: 0 auto;
}

.rrc-home-hero-title {
	color: #ffffff;
	font-size: 40px;
	line-height: 1.15;
}

.rrc-home-hero-subtitle {
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	margin: 16px 0 36px;
}

.rrc-home-hero-search {
	background: var(--rr-card-bg);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 20px 40px rgba(27, 75, 74, 0.25);
	text-align: left;
}

/* Listeo's own home search form ships its own layout/skin; this only
 * removes the outer wrapper's default spacing so it sits flush inside our
 * white card instead of floating with its own margins. */
.rrc-home-hero-search .advanced-search-wrap,
.rrc-home-hero-search #advanced-search {
	margin: 0 !important;
	box-shadow: none !important;
}

/* ---------- Categories ---------- */

.rrc-home-categories {
	background: var(--rr-bg-page);
}

.rrc-home-categories h2,
.rrc-home-featured h2,
.rrc-home-how h2 {
	font-size: 28px;
	text-align: center;
	margin-bottom: 32px;
	color: var(--rr-ink);
}

.rrc-home-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.rrc-home-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--rr-card-bg);
	border: 1px solid var(--rr-border);
	border-radius: 14px;
	padding: 28px 12px;
	text-decoration: none !important;
	color: var(--rr-ink) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rrc-home-category-card:hover,
.rrc-home-category-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(43, 36, 32, 0.1);
	border-color: var(--rr-teal);
}

.rrc-home-category-icon {
	font-size: 30px;
	line-height: 1;
}

.rrc-home-category-label {
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}

/* ---------- Featured ---------- */

.rrc-home-featured {
	background: var(--rr-card-bg);
}

.rrc-home-section-cta {
	text-align: center;
	margin-top: 32px;
}

.rrc-home-section-cta a {
	font-weight: 700;
	color: var(--rr-orange-dark);
	text-decoration: none;
}

.rrc-home-section-cta a:hover {
	text-decoration: underline;
}

/* ---------- How it works ---------- */

.rrc-home-how {
	background: var(--rr-bg-page);
}

.rrc-home-how-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rrc-home-how-steps li {
	background: var(--rr-card-bg);
	border: 1px solid var(--rr-border);
	border-radius: 14px;
	padding: 28px 24px;
	text-align: left;
}

.rrc-home-how-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--rr-teal);
	color: #ffffff;
	font-weight: 700;
	margin-bottom: 14px;
}

.rrc-home-how-steps h3 {
	font-size: 17px;
	margin-bottom: 8px;
}

.rrc-home-how-steps p {
	color: var(--rr-ink-soft);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* ---------- Provider CTA ---------- */

.rrc-home-provider-cta {
	background: var(--rr-orange);
}

.rrc-home-provider-cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.rrc-home-provider-cta h2 {
	color: #ffffff;
	font-size: 26px;
}

.rrc-home-provider-cta p {
	color: rgba(255, 255, 255, 0.92);
	margin: 10px 0 0;
	max-width: 480px;
}

.rrc-home-btn {
	display: inline-block;
	background: #ffffff;
	color: var(--rr-orange-dark) !important;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease;
}

.rrc-home-btn:hover {
	transform: translateY(-2px);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
	.rrc-home-hero {
		padding: 48px 16px 72px;
	}

	.rrc-home-hero-title {
		font-size: 28px;
	}

	.rrc-home-hero-subtitle {
		font-size: 15px;
	}

	.rrc-home-section-inner {
		padding: 40px 16px;
	}

	.rrc-home-provider-cta-inner {
		flex-direction: column;
		text-align: center;
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.rrc-home-provider-cta p {
		max-width: none;
	}
}
