/*
 * RobotLawn NZ — theme layer.
 * P0: design tokens + helpers for the seed homepage sections.
 * P3 replaces the placeholder hero/sections with the modelled layout.
 */

:root {
	--rl-accent: #2e7d32;
	--rl-accent-dark: #1b5e20;
	--rl-ink: #1a1a1a;
	--rl-muted: #5f6b5f;
	--rl-bg-soft: #f5f7f5;
	--rl-radius: 12px;
}

/* --- Reseller badge (shortcode: [robotlawn_reseller_badge]) --- */
.rl-badge {
	display: inline-block;
	padding: 0.35em 0.9em;
	border: 1px solid var(--rl-accent);
	border-radius: 999px;
	color: var(--rl-accent-dark);
	background: #eef7ee;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Front page: hero carries the message, so hide the default "Home" page title. */
.home .entry-header.page-title {
	display: none;
}

/* --- Buttons --- */
.rl-btn {
	display: inline-block;
	padding: 0.75em 1.6em;
	border-radius: var(--rl-radius);
	background: var(--rl-accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}
.rl-btn:hover {
	background: var(--rl-accent-dark);
}
.rl-btn--ghost {
	background: transparent;
	color: var(--rl-ink) !important;
	border: 1px solid var(--rl-ink);
}
.rl-btn--ghost:hover {
	background: var(--rl-ink);
	color: #fff !important;
}

/* --- Homepage placeholder sections --- */
.rl-hero {
	background: linear-gradient(180deg, var(--rl-bg-soft), #fff);
	text-align: center;
	padding: 4rem 1.5rem;
	border-radius: var(--rl-radius);
	margin: 1.5rem 0;
}
.rl-hero h1 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.15;
	margin-bottom: 0.75rem;
}
.rl-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	color: var(--rl-muted);
	margin-bottom: 1rem;
}
.rl-lede {
	max-width: 46rem;
	margin: 0 auto 1.5rem;
	color: var(--rl-muted);
	font-size: 1.1rem;
}

.rl-section {
	margin: 3rem 0;
}
.rl-section h2 {
	text-align: center;
	margin-bottom: 0.35rem;
}
.rl-sub {
	text-align: center;
	color: var(--rl-muted);
	margin-bottom: 1.75rem;
}

.rl-grid {
	display: grid;
	gap: 1.25rem;
}
.rl-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rl-card {
	background: var(--rl-bg-soft);
	border-radius: var(--rl-radius);
	padding: 1.5rem;
}
.rl-card h3 {
	margin-top: 0;
}

.rl-cta {
	background: var(--rl-accent);
	color: #fff;
	text-align: center;
	padding: 3rem 1.5rem;
	border-radius: var(--rl-radius);
	margin: 3rem 0;
}
.rl-cta h2 {
	color: #fff;
}
.rl-cta .rl-btn {
	background: #fff;
	color: var(--rl-accent-dark) !important;
}

/* --- Specs table on product pages --- */
.rl-specs {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 2rem;
}
.rl-specs th,
.rl-specs td {
	border-bottom: 1px solid #e3e8e3;
	text-align: left;
	padding: 0.6rem 0.75rem;
	vertical-align: top;
}
.rl-specs th {
	width: 40%;
	color: var(--rl-muted);
	font-weight: 500;
}

/* --- P3: hero (two-column), lawn-size tiles, benefits row, product cards --- */

.rl-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2rem;
	align-items: center;
	text-align: left;
	padding: 3.5rem 2.5rem;
}
.rl-hero h1 {
	font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}
.rl-hero__text .rl-eyebrow {
	margin-bottom: 0.9rem;
}
.rl-hero__text .rl-lede {
	margin: 0 0 1.4rem;
	max-width: 34rem;
}
.rl-hero__cta {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-bottom: 1.2rem;
}
.rl-hero__points {
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--rl-muted);
}
.rl-hero__points li::before {
	content: "✔";
	color: var(--rl-accent);
	margin-right: 0.5em;
}
.rl-hero__media img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}
@media (max-width: 880px) {
	.rl-hero {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 2.5rem 1.25rem;
	}
	.rl-hero__text .rl-lede {
		margin-inline: auto;
	}
	.rl-hero__cta {
		justify-content: center;
	}
	.rl-hero__points {
		display: none;
	}
	.rl-hero__media img {
		max-width: 420px;
		margin-inline: auto;
	}
}

.rl-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
}
.rl-tile {
	background: var(--rl-bg-soft);
	border-radius: var(--rl-radius);
	padding: 1.25rem;
	text-align: center;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rl-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}
.rl-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}
.rl-tile img {
	height: 130px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin-bottom: 0.7rem;
}
.rl-tile h3 {
	margin: 0 0 0.25rem;
}
.rl-tile p {
	color: var(--rl-muted);
	margin: 0;
	font-size: 0.92em;
}

.rl-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rl-center {
	text-align: center;
	margin-top: 1.5rem;
}

.rl-product-badge {
	display: block;
	margin: 0.4em 0 1em;
}

/* Woo product cards: hover lift to match tiles */
ul.products li.product {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border-radius: var(--rl-radius);
}
ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

/* wpautop injects empty <p> tags between seed page blocks; inside grids they become cells. */
.rl-tiles > p,
.rl-grid > p {
	display: none;
}
