/* ==========================================================================
   Wallasey WebWorks - Front Page (V4 premium revamp)
   Clean, credibility-led, Wirral/Liverpool-concentrated.
   Enqueued front-page only (functions.php). Reads brand vars from style.css.
   ========================================================================== */

:root {
	--home-ink: #0f172a;
	--home-body: #475569;
	--home-muted: #64748b;
	--home-line: #e6ebf2;
	--home-tint: #f4f7fb;
	--home-brand: var(--brand, #0e73e8);
	--home-brand-dark: var(--brand-dark, #0b5bb8);
	--home-navy: #082859;
}

/* ---------- Shared shells & heads ---------- */
.section-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.section-shell--narrow {
	max-width: 820px;
}

.home-services,
.home-why,
.home-local,
.home-process,
.home-guarantees,
.home-faq {
	padding: 96px 0;
}
.home-why { background: var(--home-tint); }
.home-process { background: var(--home-tint); }

.section-head {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}
.section-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--home-brand);
	margin: 0 0 14px;
}
.section-h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--home-ink);
	margin: 0;
}
.section-lead {
	margin: 16px 0 0;
	font-size: 1.12rem;
	line-height: 1.6;
	color: var(--home-muted);
}
.section-head--light .section-h2 { color: #fff; }
.section-head--light .section-eyebrow { color: #bcd6ff; }

/* ---------- Buttons ---------- */
.btn-solid,
.btn-outline-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 12px;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

.btn-solid {
	background: var(--home-brand);
	color: #fff;
	box-shadow: 0 8px 22px rgba(14, 115, 232, 0.28);
}
.btn-solid:hover {
	background: var(--home-brand-dark);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(14, 115, 232, 0.36);
	color: #fff;
}
.btn-outline-light {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	transform: translateY(-2px);
	color: #fff;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.home-hero {
	position: relative;
	background:
		radial-gradient(120% 120% at 15% 10%, #0f3d82 0%, transparent 55%),
		linear-gradient(135deg, var(--home-navy) 0%, var(--home-brand-dark) 100%);
	color: #fff;
	padding: 120px 24px 108px;
	overflow: hidden;
}
.home-hero.has-image {
	background-size: cover;
	background-position: center;
}
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
	mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
	pointer-events: none;
}
.home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 26px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.home-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}
.home-hero__title {
	font-size: clamp(2.3rem, 5.4vw, 3.9rem);
	line-height: 1.06;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 22px;
}
.home-hero__subtitle {
	max-width: 660px;
	margin: 0 auto 36px;
	font-size: clamp(1.05rem, 2vw, 1.24rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}
.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.home-hero__trust {
	list-style: none;
	margin: 44px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 34px;
}
.home-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 0.98rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}
.home-hero__trust svg {
	width: 20px;
	height: 20px;
	color: #7dd3fc;
	flex-shrink: 0;
}

/* ==========================================================================
   2. LOCAL STRIP
   ========================================================================== */
.local-strip {
	background: #fff;
	border-bottom: 1px solid var(--home-line);
	padding: 26px 24px;
}
.local-strip__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 22px;
}
.local-strip__lead {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--home-muted);
}
.local-strip__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}
.local-strip__list li {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--home-ink);
	padding: 5px 14px;
	background: var(--home-tint);
	border-radius: 50px;
}

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
.service-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	align-items: start;
}
.svc-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 18px;
	padding: 38px 32px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
	border-color: transparent;
}
.svc-card--featured {
	border-color: var(--home-brand);
	box-shadow: 0 18px 44px rgba(14, 115, 232, 0.14);
}
.svc-card__flag {
	position: absolute;
	top: -13px;
	left: 32px;
	background: var(--home-brand);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 50px;
}
.svc-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: rgba(14, 115, 232, 0.1);
	color: var(--home-brand);
	margin-bottom: 22px;
}
.svc-card__icon svg { width: 27px; height: 27px; }
.svc-card__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--home-ink);
	margin: 0 0 6px;
}
.svc-card__price {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--home-brand);
	margin: 0 0 16px;
}
.svc-card__text {
	font-size: 1rem;
	line-height: 1.62;
	color: var(--home-body);
	margin: 0 0 22px;
}
.svc-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	color: var(--home-brand);
	text-decoration: none;
}
.svc-card__link span { transition: transform 0.18s ease; }
.svc-card__link:hover span { transform: translateX(4px); }

/* ==========================================================================
   4. WHY US
   ========================================================================== */
.why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.why-grid--three {
	grid-template-columns: repeat(3, 1fr);
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}
.why-item {
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 16px;
	padding: 32px 26px;
}
.why-item__num {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--home-brand);
	margin-bottom: 16px;
	font-variant-numeric: tabular-nums;
}
.why-item__title {
	font-size: 1.18rem;
	font-weight: 800;
	color: var(--home-ink);
	margin: 0 0 10px;
	line-height: 1.25;
}
.why-item__text {
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--home-body);
	margin: 0;
}

/* ==========================================================================
   5. LOCAL PROOF BAND
   ========================================================================== */
.home-local__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.home-local__text .section-head { text-align: left; margin: 0; }
.home-local .section-head { text-align: left; max-width: none; }
.home-local__text .section-lead { margin-bottom: 28px; }
.home-local__areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.home-local__areas li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 16px;
	background: var(--home-tint);
	border-radius: 10px;
	font-weight: 700;
	color: var(--home-ink);
	font-size: 0.96rem;
}
.home-local__areas li::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--home-brand);
	flex-shrink: 0;
}

/* ==========================================================================
   6. PROCESS
   ========================================================================== */
.process-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	counter-reset: step;
}
.process-step {
	position: relative;
	padding-top: 8px;
}
.process-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--home-brand);
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	margin-bottom: 18px;
}
.process-step__title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--home-ink);
	margin: 0 0 8px;
}
.process-step__text {
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--home-body);
	margin: 0;
}

/* ==========================================================================
   7. GUARANTEES
   ========================================================================== */
.home-guarantees {
	background:
		radial-gradient(120% 120% at 85% 0%, #0f3d82 0%, transparent 55%),
		linear-gradient(135deg, var(--home-navy) 0%, var(--home-brand-dark) 100%);
	color: #fff;
}
.guarantee-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.guarantee {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	padding: 34px 30px;
}
.guarantee svg {
	width: 34px;
	height: 34px;
	color: #7dd3fc;
	margin-bottom: 18px;
}
.guarantee h3 {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0 0 10px;
}
.guarantee p {
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.faq-row {
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 14px;
	padding: 4px 24px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-row[open] {
	border-color: var(--home-brand);
	box-shadow: 0 8px 26px rgba(14, 115, 232, 0.1);
}
.faq-row__q {
	list-style: none;
	cursor: pointer;
	padding: 22px 30px 22px 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--home-ink);
	position: relative;
}
.faq-row__q::-webkit-details-marker { display: none; }
.faq-row__q::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--home-brand);
	line-height: 1;
	transition: transform 0.2s ease;
}
.faq-row[open] .faq-row__q::after {
	content: "\2212";
}
.faq-row__a {
	padding: 0 0 22px;
}
.faq-row__a p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.66;
	color: var(--home-body);
}

/* ==========================================================================
   9. FINAL CTA
   ========================================================================== */
.home-cta {
	padding: 92px 0;
	background: var(--home-tint);
}
.home-cta__inner {
	max-width: 760px;
	text-align: center;
}
.home-cta__title {
	font-size: clamp(1.9rem, 3.8vw, 2.7rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--home-ink);
	margin: 0 0 16px;
}
.home-cta__text {
	font-size: 1.14rem;
	line-height: 1.6;
	color: var(--home-muted);
	margin: 0 0 32px;
}
.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.home-cta .btn-outline-light {
	color: var(--home-ink);
	border-color: var(--home-line);
	background: #fff;
}
.home-cta .btn-outline-light:hover {
	background: var(--home-tint);
	border-color: var(--home-brand);
	color: var(--home-ink);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.service-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.process-steps { grid-template-columns: repeat(2, 1fr); }
	.guarantee-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.home-local__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
	.home-services, .home-why, .home-local,
	.home-process, .home-guarantees, .home-faq { padding: 68px 0; }
	.home-hero { padding: 92px 20px 80px; }
	.why-grid { grid-template-columns: 1fr; }
	.home-local__areas { grid-template-columns: repeat(2, 1fr); }
	.section-head { margin-bottom: 40px; }
	.home-hero__trust { gap: 12px 22px; }
}
@media (max-width: 480px) {
	.process-steps { grid-template-columns: 1fr; }
	.home-local__areas { grid-template-columns: 1fr; }
	.svc-card, .faq-row__q { }
}

/* Motion & marker safety */
@media (prefers-reduced-motion: reduce) {
	.btn-solid, .btn-outline-light, .svc-card,
	.svc-card__link span, .faq-row, .faq-row__q::after {
		transition: none;
	}
	.btn-solid:hover, .btn-outline-light:hover, .svc-card:hover { transform: none; }
}

/* ==========================================================================
   SERVICES OVERVIEW PAGE (page-services.php)
   Extends the homepage system with detailed service cards.
   ========================================================================== */

.home-hero--compact {
	padding: 92px 24px 84px;
}

.svc-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	align-items: start;
}
.svc-detail {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 18px;
	padding: 34px 30px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc-detail:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
	border-color: transparent;
}
.svc-detail--featured {
	border-color: var(--home-brand);
	box-shadow: 0 18px 44px rgba(14, 115, 232, 0.14);
}
.svc-detail__flag {
	position: absolute;
	top: -13px;
	left: 30px;
	background: var(--home-brand);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 50px;
}
.svc-detail__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}
.svc-detail__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 14px;
	background: rgba(14, 115, 232, 0.1);
	color: var(--home-brand);
}
.svc-detail__icon svg { width: 26px; height: 26px; }
.svc-detail__title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--home-ink);
	margin: 0;
	line-height: 1.1;
}
.svc-detail__price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--home-brand);
	margin: 4px 0 0;
}
.svc-detail__text {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--home-body);
	margin: 0 0 18px;
}
.svc-detail__list {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.svc-detail__list li {
	position: relative;
	padding-left: 26px;
	font-size: 0.97rem;
	color: var(--home-ink);
}
.svc-detail__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: rgba(14, 115, 232, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e73e8' stroke-width='3.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 11px 11px;
	background-repeat: no-repeat;
	background-position: center;
}
.svc-detail__cta {
	margin-top: auto;
	width: 100%;
}

@media (max-width: 1024px) {
	.svc-detail-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
	.home-hero--compact { padding: 72px 20px 64px; }
}

/* ==========================================================================
   PORTFOLIO PAGE (portfolio-template.php)
   Uses the homepage hero + section system; these add the case-study grid.
   ========================================================================== */

.portfolio-stats {
	padding: 56px 0;
	background: var(--home-tint);
	border-bottom: 1px solid var(--home-line);
}
.portfolio-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
}
.portfolio-stat {
	text-align: center;
}
.portfolio-stat__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--home-muted);
	margin-bottom: 8px;
}
.portfolio-stat__num {
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	font-weight: 800;
	color: var(--home-brand);
	margin: 0;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.portfolio-main {
	padding: 80px 0;
}

.portfolio-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 44px;
}
.portfolio-filter {
	appearance: none;
	border: 1px solid var(--home-line);
	background: #fff;
	color: var(--home-body);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 11px 22px;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.portfolio-filter:hover {
	border-color: var(--home-brand);
	color: var(--home-brand);
}
.portfolio-filter.is-active {
	background: var(--home-brand);
	border-color: var(--home-brand);
	color: #fff;
}
.portfolio-filter:focus-visible {
	outline: 3px solid var(--home-brand-dark);
	outline-offset: 2px;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.case-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
	border-color: transparent;
}
.case-card.is-hidden {
	display: none;
}
.case-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--home-navy), var(--home-brand-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.case-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.case-card__placeholder svg {
	width: 46px;
	height: 46px;
	color: rgba(255, 255, 255, 0.6);
}
.case-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--home-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 50px;
}
.case-card__body {
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.case-card__title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--home-ink);
	margin: 0 0 10px;
	line-height: 1.2;
}
.case-card__excerpt {
	font-size: 0.97rem;
	line-height: 1.6;
	color: var(--home-body);
	margin: 0 0 16px;
}
.case-card__stat {
	display: inline-block;
	align-self: flex-start;
	background: rgba(14, 115, 232, 0.1);
	color: var(--home-brand);
	font-weight: 800;
	font-size: 0.9rem;
	padding: 7px 14px;
	border-radius: 8px;
	margin-bottom: 18px;
}
.case-card__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	color: var(--home-brand);
}
.case-card__link span {
	transition: transform 0.18s ease;
}
.case-card:hover .case-card__link span {
	transform: translateX(4px);
}

.portfolio-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--home-muted);
}
.portfolio-empty svg {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	color: var(--home-line);
}
.portfolio-empty h2 {
	font-size: 1.4rem;
	color: var(--home-ink);
	margin: 0 0 8px;
}
.portfolio-empty p {
	margin: 0;
}

@media (max-width: 1024px) {
	.portfolio-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
	.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.portfolio-stats { padding: 40px 0; }
	.portfolio-main { padding: 56px 0; }
	.portfolio-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.case-card, .case-card__link span, .portfolio-filter { transition: none; }
	.case-card:hover { transform: none; }
}

/* ==========================================================================
   BLOG (home.php + single.php) - premium design system
   ========================================================================== */

.blog-featured { padding: 64px 0 0; }
.blog-feat {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 20px;
	overflow: hidden;
	margin-top: 20px;
}
.blog-feat__media { display: block; height: 100%; min-height: 320px; overflow: hidden; }
.blog-feat__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-feat__body { padding: 40px; }
.blog-feat__cat,
.blog-card__date {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--home-brand);
	margin-bottom: 12px;
}
.blog-feat__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
.blog-feat__title a { color: var(--home-ink); text-decoration: none; }
.blog-feat__title a:hover { color: var(--home-brand); }
.blog-feat__meta { font-size: 0.9rem; color: var(--home-muted); margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-feat__excerpt { font-size: 1.02rem; line-height: 1.65; color: var(--home-body); margin: 0 0 24px; }

.blog-list { padding: 72px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,0.1); border-color: transparent; }
.blog-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--home-tint); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.blog-card__placeholder svg { width: 46px; height: 46px; color: var(--home-line); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__date { margin-bottom: 8px; }
.blog-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.blog-card__title a { color: var(--home-ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--home-brand); }
.blog-card__excerpt { font-size: 0.97rem; line-height: 1.6; color: var(--home-body); margin: 0 0 18px; }
.blog-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--home-brand); }
.blog-card__link span { transition: transform 0.18s ease; }
.blog-card:hover .blog-card__link span { transform: translateX(4px); }

.blog-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--home-line); border-radius: 10px;
	color: var(--home-ink); text-decoration: none; font-weight: 700;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.blog-pagination .page-numbers:hover { border-color: var(--home-brand); color: var(--home-brand); }
.blog-pagination .page-numbers.current { background: var(--home-brand); border-color: var(--home-brand); color: #fff; }

/* Single post */
.single-article { padding: 56px 0 80px; }
.single-article__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.single-article__cat { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--home-brand); margin-bottom: 14px; }
.single-article__title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--home-ink); margin: 0 0 18px; }
.single-article__meta { font-size: 0.95rem; color: var(--home-muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.single-article__media { max-width: 960px; margin: 0 auto 40px; border-radius: 18px; overflow: hidden; }
.single-article__media img { width: 100%; height: auto; display: block; }
.single-article__body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; color: var(--home-body); }
.single-article__body h2 { font-size: 1.7rem; font-weight: 800; color: var(--home-ink); margin: 40px 0 16px; }
.single-article__body h3 { font-size: 1.35rem; font-weight: 700; color: var(--home-ink); margin: 32px 0 12px; }
.single-article__body p { margin: 0 0 20px; }
.single-article__body a { color: var(--home-brand); text-decoration: underline; }
.single-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.single-article__body ul, .single-article__body ol { margin: 0 0 20px; padding-left: 24px; }
.single-article__body li { margin-bottom: 8px; }
.single-article__body blockquote { border-left: 4px solid var(--home-brand); margin: 24px 0; padding: 8px 0 8px 22px; color: var(--home-ink); font-style: italic; }

@media (max-width: 1024px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-feat { grid-template-columns: 1fr; }
	.blog-feat__media { min-height: 240px; }
}
@media (max-width: 768px) {
	.blog-list { padding: 52px 0; }
	.blog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
	.blog-feat__body { padding: 28px; }
}

/* Single post - prev/next nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 48px auto 0; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--home-line); border-radius: 14px; text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease; }
.post-nav__link:hover { border-color: var(--home-brand); transform: translateY(-2px); }
.post-nav__link--next { text-align: right; }
.post-nav__dir { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--home-brand); }
.post-nav__title { font-size: 1rem; font-weight: 700; color: var(--home-ink); line-height: 1.3; }
.single-comments { padding: 0 0 72px; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } }

/* ==========================================================================
   ENQUIRY / FORM PAGES (enquiry-*.php, free-website-audit.php, contact-form.php)
   ========================================================================== */

.enquiry-form-section { padding: 64px 0 80px; }
.enquiry-form-shell { max-width: 720px; }
.enquiry-form-card {
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 20px;
	padding: 44px 40px;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

/* Style Contact Form 7 fields to match the theme */
.enquiry-form-card .wpcf7-form-control-wrap { display: block; }
.enquiry-form-card label {
	display: block;
	font-weight: 700;
	color: var(--home-ink);
	margin-bottom: 6px;
	font-size: 0.95rem;
}
.enquiry-form-card input[type="text"],
.enquiry-form-card input[type="email"],
.enquiry-form-card input[type="tel"],
.enquiry-form-card input[type="url"],
.enquiry-form-card input[type="number"],
.enquiry-form-card select,
.enquiry-form-card textarea {
	width: 100%;
	padding: 13px 15px;
	margin-bottom: 18px;
	border: 1px solid var(--home-line);
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--home-ink);
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.enquiry-form-card input:focus,
.enquiry-form-card select:focus,
.enquiry-form-card textarea:focus {
	outline: none;
	border-color: var(--home-brand);
	box-shadow: 0 0 0 3px rgba(14, 115, 232, 0.14);
}
.enquiry-form-card textarea { min-height: 140px; resize: vertical; }
.enquiry-form-card .wpcf7-submit {
	appearance: none;
	background: var(--home-brand);
	color: #fff;
	border: none;
	font-weight: 700;
	font-size: 1.02rem;
	padding: 15px 32px;
	border-radius: 12px;
	cursor: pointer;
	width: 100%;
	transition: background 0.18s ease, transform 0.18s ease;
}
.enquiry-form-card .wpcf7-submit:hover { background: var(--home-brand-dark); transform: translateY(-2px); }
.enquiry-form-card .wpcf7-spinner { margin: 12px auto 0; display: block; }
.enquiry-form-card .wpcf7-response-output {
	margin: 18px 0 0 !important;
	border-radius: 10px;
	padding: 14px 16px !important;
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.enquiry-form-card { padding: 32px 24px; }
}

/* ==========================================================================
   CONTACT PAGE (contact-form.php)
   ========================================================================== */

.contact-main { padding: 64px 0 80px; }
.contact-main__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 44px;
	align-items: start;
}
.contact-info__title,
.contact-form__title { font-size: 1.4rem; font-weight: 800; color: var(--home-ink); margin: 0 0 24px; }
.contact-info__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--home-line);
	text-decoration: none;
	color: inherit;
}
.contact-info__row:last-of-type { border-bottom: none; }
.contact-info__icon {
	flex-shrink: 0;
	width: 46px; height: 46px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: rgba(14, 115, 232, 0.1);
	color: var(--home-brand);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--home-muted); margin-bottom: 2px; }
.contact-info__value { display: block; font-size: 1.05rem; font-weight: 600; color: var(--home-ink); }
a.contact-info__row:hover .contact-info__value { color: var(--home-brand); }
.contact-info__book { margin-top: 24px; width: 100%; }

@media (max-width: 860px) {
	.contact-main__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   404 PAGE (404.php)
   ========================================================================== */

.error-404 { padding: 100px 0; text-align: center; }
.error-404__code {
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(135deg, var(--home-brand), var(--home-navy));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0 0 16px;
}
.error-404__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--home-ink); margin: 0 0 14px; }
.error-404__text { font-size: 1.08rem; color: var(--home-body); max-width: 48ch; margin: 0 auto 32px; line-height: 1.6; }
.error-404__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.error-404__links { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.error-404__links a { color: var(--home-brand); font-weight: 700; text-decoration: none; }
.error-404__links a:hover { text-decoration: underline; }

/* ==========================================================================
   LOCATION LANDING PAGES (template-*-location-*.php)
   Editor content rendered in a readable prose column.
   ========================================================================== */

.location-content { padding: 64px 0; }
.location-content__body {
	max-width: 760px;
	font-size: 1.06rem;
	line-height: 1.75;
	color: var(--home-body);
}
.location-content__body h2 { font-size: 1.7rem; font-weight: 800; color: var(--home-ink); margin: 36px 0 14px; }
.location-content__body h3 { font-size: 1.3rem; font-weight: 700; color: var(--home-ink); margin: 28px 0 12px; }
.location-content__body p { margin: 0 0 20px; }
.location-content__body ul, .location-content__body ol { margin: 0 0 20px; padding-left: 24px; }
.location-content__body li { margin-bottom: 8px; }
.location-content__body a { color: var(--home-brand); text-decoration: underline; }
.location-content__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }

/* ==========================================================================
   GENERIC PAGE (page.php) - prose column for About/Privacy/Terms etc.
   ========================================================================== */

.page-body { padding: 56px 0 80px; }
.page-body__prose {
	max-width: 760px;
	font-size: 1.06rem;
	line-height: 1.75;
	color: var(--home-body);
}
.page-body__prose h2 { font-size: 1.7rem; font-weight: 800; color: var(--home-ink); margin: 36px 0 14px; }
.page-body__prose h3 { font-size: 1.3rem; font-weight: 700; color: var(--home-ink); margin: 28px 0 12px; }
.page-body__prose p { margin: 0 0 20px; }
.page-body__prose ul, .page-body__prose ol { margin: 0 0 20px; padding-left: 24px; }
.page-body__prose li { margin-bottom: 8px; }
.page-body__prose a { color: var(--home-brand); text-decoration: underline; }
.page-body__prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.page-body__prose blockquote { border-left: 4px solid var(--home-brand); margin: 24px 0; padding: 8px 0 8px 22px; font-style: italic; color: var(--home-ink); }
.page-body__prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.page-body__prose th, .page-body__prose td { border: 1px solid var(--home-line); padding: 10px 14px; text-align: left; }
.page-body__prose th { background: var(--home-tint); font-weight: 700; }

/* ==========================================================================
   COMMENTS (comments.php)
   ========================================================================== */

.wweb-comments { margin-top: 8px; }
.wweb-comments__title { font-size: 1.5rem; font-weight: 800; color: var(--home-ink); margin: 0 0 24px; }
.wweb-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.wweb-comments__list .comment { margin-bottom: 24px; }
.wweb-comments__list .comment-body {
	background: #fff;
	border: 1px solid var(--home-line);
	border-radius: 14px;
	padding: 20px 22px;
}
.wweb-comments__list .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wweb-comments__list .comment-author .avatar { border-radius: 50%; }
.wweb-comments__list .comment-author .fn { font-weight: 700; color: var(--home-ink); font-style: normal; }
.wweb-comments__list .comment-metadata { font-size: 0.85rem; color: var(--home-muted); margin-bottom: 10px; }
.wweb-comments__list .comment-metadata a { color: var(--home-muted); text-decoration: none; }
.wweb-comments__list .comment-content { color: var(--home-body); line-height: 1.65; }
.wweb-comments__list .children { list-style: none; margin: 20px 0 0 28px; padding: 0; }
.wweb-comments__closed { color: var(--home-muted); font-style: italic; margin-bottom: 24px; }

.comment-respond { margin-top: 32px; }
.comment-reply-title { font-size: 1.3rem; font-weight: 800; color: var(--home-ink); margin: 0 0 16px; }
.comment-form label { display: block; font-weight: 700; color: var(--home-ink); margin-bottom: 6px; font-size: 0.95rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 13px 15px;
	margin-bottom: 18px;
	border: 1px solid var(--home-line);
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--home-ink);
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: none;
	border-color: var(--home-brand);
	box-shadow: 0 0 0 3px rgba(14, 115, 232, 0.14);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .form-submit { margin: 0; }

/* ==========================================================================
   ABOUT PAGE (page-about.php)
   ========================================================================== */

.about-story { padding: 72px 0; }
.about-story__grid {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 48px;
	align-items: center;
}
.about-story__text .section-eyebrow { margin-bottom: 10px; }
.about-story__text h2 { margin-bottom: 20px; }
.about-story__text p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--home-body);
	margin: 0 0 18px;
}
.about-story__text p:last-child { margin-bottom: 0; }
.about-story__card {
	background: linear-gradient(135deg, var(--home-navy), var(--home-brand-dark));
	border-radius: 20px;
	padding: 40px 34px;
	color: #fff;
}
.about-quote {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 18px;
}
.about-quote__by {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.about-mission {
	padding: 88px 0;
	background: var(--home-tint);
	border-top: 1px solid var(--home-line);
	border-bottom: 1px solid var(--home-line);
}
.about-mission__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about-mission__inner .section-eyebrow { margin-bottom: 12px; }
.about-mission__title {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--home-ink);
	margin: 0 0 16px;
	line-height: 1.15;
}
.about-mission__text {
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--home-body);
	margin: 0;
}

@media (max-width: 860px) {
	.about-story__grid { grid-template-columns: 1fr; gap: 32px; }
	.about-story { padding: 56px 0; }
	.about-mission { padding: 64px 0; }
}

/* Single pricing card - centred, proper width (SEO/PPC pages) */
.svc-detail-grid--single {
	grid-template-columns: 1fr;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}