/*
Theme Name: RM Pest Control
Theme URI: https://rmpestcontrol.example
Author: RM Pest Control
Description: One-page pest control website with service grid, trust bar, process steps, and a quote form. Brand colours: red and black with white.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: rmpc
*/

:root {
	--red: #d71920;
	--red-dark: #a80f14;
	--red-light: #ff4b4f;
	--black: #0d0d0d;
	--ink: #1a1a1a;
	--muted: #5d5d5d;
	--grey: #f4f4f4;
	--white: #ffffff;
	--radius: 10px;
	--max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: 'Barlow', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
	font-family: 'Anton', Impact, sans-serif;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.4rem; letter-spacing: 0.3px; }
p { margin: 0 0 1em; }

.btn {
	display: inline-block;
	background: var(--red);
	color: var(--white);
	padding: 14px 28px;
	border: 0;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
.btn:hover, .btn:focus { background: var(--red-dark); color: var(--white); }
.btn--ghost { background: transparent; border: 2px solid var(--white); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--white); color: var(--black); }

.section { padding: 70px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey); }
.eyebrow {
	color: var(--red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 0.9rem;
	margin: 0 0 8px;
}
.section--dark .eyebrow { color: var(--red-light); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: #cfcfcf; }

/* Top bar */
.topbar { background: var(--black); color: var(--white); font-size: 0.95rem; }
.topbar .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar strong { color: var(--red-light); }

/* Header */
.site-header {
	background: var(--white);
	border-bottom: 4px solid var(--red);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--black); }
.brand img { max-height: 56px; width: auto; }
.brand__name {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1.6rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.brand__name span { color: var(--red); }
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: var(--black);
	cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav a {
	color: var(--black);
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a:focus { color: var(--red); }
.header-cta { padding: 10px 18px; white-space: nowrap; }

@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li a { display: block; padding: 12px 0; border-top: 1px solid #eee; }
	.header-cta { display: none; }
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(circle at 80% 20%, #3a0a0c 0, var(--black) 55%);
	color: var(--white);
	padding: 90px 0 100px;
	border-bottom: 6px solid var(--red);
}
.hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border: 6px solid rgba(215, 25, 32, 0.35);
	border-radius: 50%;
}
.hero__inner { position: relative; z-index: 1; }
.hero__tag {
	font-family: 'Anton', Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	margin: 0 0 14px;
	color: var(--red-light);
}
.hero h1 span { color: var(--red); }
.hero__lead { font-size: 1.15rem; max-width: 620px; color: #e6e6e6; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust bar */
.trust { background: var(--red); color: var(--white); }
.trust ul {
	list-style: none;
	margin: 0;
	padding: 18px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.95rem;
}
.trust li::before { content: "\2713\00a0"; }

/* Cards */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}
.card {
	background: var(--white);
	border-radius: var(--radius);
	border-top: 4px solid var(--red);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	padding: 26px;
	display: flex;
	flex-direction: column;
}
.card__num {
	font-family: 'Anton', Impact, sans-serif;
	font-size: 2.2rem;
	line-height: 1;
	color: var(--red);
	margin-bottom: 8px;
}
.card p { color: var(--muted); flex-grow: 1; }
.card a {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	text-decoration: none;
}
.card a:hover { text-decoration: underline; }

/* Two column split */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
	padding: 14px 0 14px 46px;
	position: relative;
	border-bottom: 1px solid #2a2a2a;
	font-size: 1.1rem;
	font-weight: 600;
}
.checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 12px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

/* Process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 26px 62px;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	font-family: 'Anton', Impact, sans-serif;
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* Quote form */
.quote-box {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	border-top: 6px solid var(--red);
	padding: 32px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.quote-box h3 { color: var(--black); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 620px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c8c8c8;
	border-radius: 8px;
	font: inherit;
	font-size: 1rem;
	background: var(--white);
	color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: 2px solid var(--red);
	border-color: var(--red);
}
.field textarea { min-height: 110px; resize: vertical; }
.quote-box .btn { width: 100%; text-align: center; }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.notice--ok { background: #e7f6ea; color: #14532d; }
.notice--err { background: #fde8e8; color: #8a1111; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-lines { list-style: none; padding: 0; margin: 24px 0 0; font-size: 1.2rem; }
.contact-lines li { margin-bottom: 10px; }
.contact-lines a { color: var(--white); font-weight: 700; text-decoration: none; }
.contact-lines a:hover { color: var(--red-light); }

/* Footer */
.site-footer {
	background: var(--black);
	color: #bbb;
	padding: 50px 0 20px;
	font-size: 0.95rem;
}
.site-footer h3 { color: var(--white); font-size: 1.2rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--red-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.copy {
	border-top: 1px solid #222;
	margin-top: 30px;
	padding-top: 18px;
	font-size: 0.85rem;
	text-align: center;
}

/* Generic pages */
.entry { padding: 60px 0; }
.entry h1 { color: var(--black); margin-bottom: 24px; }
.entry-content img { border-radius: var(--radius); }

/* Sticky call bar on phones */
.call-bar { display: none; }
@media (max-width: 640px) {
	body { padding-bottom: 56px; }
	.call-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: var(--red);
		color: var(--white);
		justify-content: center;
		align-items: center;
		padding: 15px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 1px;
		text-decoration: none;
	}
}
/* Social links */
.topbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.social a { font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; }
.social--top a { color: var(--white); }
.social--top a:hover { color: var(--red-light); }
.social--footer { margin-top: 16px; }
.social--contact { margin-top: 10px; }
.social--contact a { color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.social--contact a:hover { color: var(--red-light); }
.brand__name-accent { color: var(--red); }

/* Linked service cards with photos */
.card--link { padding: 0; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card--link:hover, .card--link:focus { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14); color: var(--ink); }
.card--link:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.card__image { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--black); }
.card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--red), var(--black));
	color: var(--white);
	font-family: 'Anton', Impact, sans-serif;
	font-size: 3rem;
}
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 26px; flex-grow: 1; }
.card__body h3 { margin: 0; color: var(--black); }
.card__text { color: var(--muted); flex-grow: 1; }
.card__more { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; }

/* Social icons */
.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid currentColor;
	color: var(--white);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.social__link svg { width: 18px; height: 18px; }
.social__link:hover, .social__link:focus { background: var(--red); border-color: var(--red); color: var(--white); }
.social--contact .social__link { color: var(--white); }
.social--footer .social__link { color: var(--white); }
.social--top .social__link { width: 30px; height: 30px; }
.social--top .social__link svg { width: 15px; height: 15px; }

/* Pest pages */
.pest-hero { background: radial-gradient(circle at 80% 20%, #3a0a0c 0, var(--black) 55%); color: var(--white); padding: 70px 0 80px; border-bottom: 6px solid var(--red); }
.pest-hero h1 { color: var(--white); }
.pest-hero__lead { font-size: 1.15rem; color: #e6e6e6; max-width: 640px; margin-bottom: 26px; }
.pest-body { padding: 60px 20px; max-width: 820px; }
.pest-body__image { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin: 0 0 30px; }
.pest-body .entry-content p { font-size: 1.1rem; }
.pest-cta { background: var(--grey); border-left: 6px solid var(--red); padding: 26px 28px; border-radius: var(--radius); margin: 40px 0; }
.pest-cta h2 { font-size: 1.8rem; color: var(--black); }
.pest-related__title { font-size: 1.6rem; color: var(--black); margin-top: 40px; }
.pest-related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pest-related a { display: inline-block; padding: 8px 14px; border: 2px solid var(--red); border-radius: 999px; color: var(--red); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; }
.pest-related a:hover { background: var(--red); color: var(--white); }
