/*
Theme Name: RV Plumbing & Heating
Description: Custom theme for RV Plumbing & Heating, Northamptonshire.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rvph
*/

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--flame: #f2661c;
	--flame-dark: #c94e0f;
	--water: #1a7fd4;
	--water-dark: #0f5c9e;
	--ink: #24282d;
	--steel: #59636d;
	--mist: #eef3f8;
	--line: #d9e1e9;
	--white: #ffffff;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-dark); text-underline-offset: 3px; }
a:hover { color: var(--flame-dark); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--font);
	font-stretch: 112%;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 10px 16px;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px;
	font: 700 1rem/1.1 var(--font);
	font-stretch: 105%;
	text-decoration: none;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--flame { background: var(--flame); color: var(--white); }
.btn--flame:hover { background: var(--flame-dark); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar */
.topbar { background: var(--water-dark); color: var(--white); font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar svg { width: 15px; height: 15px; }
.topbar__note { opacity: .9; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img, .brand svg { height: 54px; width: auto; }
.custom-logo-link img { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav a {
	display: block; padding: 10px 12px;
	color: var(--ink); text-decoration: none;
	font-weight: 600; font-size: .98rem;
	border-radius: var(--radius);
	white-space: nowrap;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--flame-dark); }
.nav li { position: relative; }
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--flame);
	padding: 8px; display: none; box-shadow: 0 12px 30px rgba(20, 40, 60, .12);
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.header-cta { flex: none; }
.nav-toggle {
	display: none; margin-left: auto; background: none; border: 2px solid var(--ink);
	border-radius: var(--radius); padding: 10px 12px; font: 700 .95rem var(--font); color: var(--ink); cursor: pointer;
}

@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20, 40, 60, .12); max-height: calc(100vh - 120px); overflow-y: auto; }
	.nav.is-open { display: block; }
	.nav > ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 0; }
	.nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.nav .menu-item-has-children > a::after { display: none; }
	.header-cta { display: none; }
}

/* Hero */
.hero {
	position: relative; color: var(--white); background: var(--ink);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(22, 27, 33, .92) 0%, rgba(22, 27, 33, .78) 45%, rgba(22, 27, 33, .35) 100%);
}
.hero__media--placeholder {
	background:
		radial-gradient(circle at 85% 30%, rgba(26, 127, 212, .45), transparent 45%),
		radial-gradient(circle at 70% 90%, rgba(242, 102, 28, .35), transparent 40%),
		var(--ink);
}
.hero__media--placeholder::after { display: none; }
.hero .wrap {
	position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center;
	padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__lead { font-size: 1.2rem; max-width: 46ch; color: #e6ebf0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__phone {
	display: inline-block; margin-top: 30px;
	color: var(--white); text-decoration: none;
	font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 118%;
	letter-spacing: -0.01em; line-height: 1;
}
.hero__phone small { display: block; font-size: .95rem; font-weight: 500; font-stretch: 100%; color: #c9d3dc; margin-bottom: 8px; letter-spacing: 0; }
.hero__phone:hover { color: #ffd2b8; }

.finance-card {
	justify-self: end; width: 100%; max-width: 360px;
	background: var(--white); color: var(--ink);
	border-radius: 10px; padding: 28px 28px 22px;
	border-top: 8px solid var(--flame);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.finance-card h2 { font-size: 1.7rem; margin-bottom: .35em; }
.finance-card p { color: var(--steel); }
.finance-card .btn { width: 100%; margin: 6px 0 14px; }
.finance-card__terms { font-size: .78rem; line-height: 1.45; color: var(--steel); margin: 0; }

@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.finance-card { justify-self: start; }
}

/* Hot / cold bar */
.hotcold { display: grid; grid-template-columns: 1fr 1fr; height: 6px; }
.hotcold::before { content: ""; background: var(--flame); }
.hotcold::after { content: ""; background: var(--water); }

/* Brands */
.brands { border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding-top: 26px; padding-bottom: 26px; }
.brands__label { color: var(--steel); font-size: .95rem; margin: 0; }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.brands a { font-weight: 800; font-stretch: 115%; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brands a:hover { color: var(--water); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #e6ebf0; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head p { color: var(--steel); font-size: 1.1rem; }
.section--ink .section__head p { color: #c9d3dc; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
	display: flex; flex-direction: column; text-decoration: none; color: var(--white);
	border-radius: var(--radius); overflow: hidden; background: var(--white);
	box-shadow: 0 12px 26px rgba(20, 40, 60, .12);
	transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(20, 40, 60, .18); color: var(--white); }
.tile__title {
	flex: none;
	padding: 16px 14px; min-height: 78px; display: flex; align-items: center; justify-content: center; text-align: center;
	font-weight: 800; font-stretch: 108%; font-size: 1.05rem; line-height: 1.2;
}
.tile--hot .tile__title { background: var(--flame); }
.tile--cold .tile__title { background: var(--water); }
.tile__media { display: block; aspect-ratio: 4 / 3; background: var(--mist); position: relative; overflow: hidden; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(160deg, #f4f7fa, #e3eaf1);
	color: #9fb0c0;
}
.media-ph svg { width: 34%; height: auto; }
.tiles-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: -18px 0 30px; color: var(--steel); font-size: .95rem; }
.tiles-key span { display: inline-flex; align-items: center; gap: 8px; }
.tiles-key i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; } .tile__title { font-size: .95rem; min-height: 64px; } }

/* Split image / text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media .frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split__media::before {
	content: ""; position: absolute; left: -16px; top: 22px; bottom: -16px; width: 60%;
	background: var(--flame); border-radius: var(--radius); z-index: -1;
}
.split--flip .split__media::before { left: auto; right: -16px; background: var(--water); }
.split__media { z-index: 0; }
.split ul { padding-left: 1.2em; }
.split li { margin-bottom: .35em; }
@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split--flip .split__media { order: 0; }
}

/* Creds */
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.creds svg { width: 22px; height: 22px; color: var(--water); flex: none; margin-top: 1px; }

/* Finance band */
.finance-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.finance-band__options { display: grid; gap: 14px; }
.finance-band__opt { border: 1px solid rgba(255, 255, 255, .18); border-left: 6px solid var(--flame); border-radius: var(--radius); padding: 18px 20px; }
.finance-band__opt strong { display: block; color: var(--white); font-size: 1.2rem; font-stretch: 110%; }
.finance-band__small { font-size: .85rem; color: #aab6c2; margin-top: 18px; }
@media (max-width: 860px) { .finance-band .wrap { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.review__stars { color: var(--flame); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.5; flex: 1; }
.review figcaption { font-weight: 700; color: var(--steel); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Areas */
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.areas a {
	display: inline-block; padding: 12px 20px; border-radius: 999px;
	background: var(--white); border: 2px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.areas a:hover { border-color: var(--water); color: var(--water-dark); }

/* CTA band */
.cta-band { background: var(--flame); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { margin: 6px 0 0; font-size: 1.1rem; }
.cta-band .btn--ghost:hover { color: var(--flame-dark); }

/* Page hero */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); }
.page-hero h1 { max-width: 20ch; }
.page-hero__lead { font-size: 1.2rem; color: var(--steel); max-width: 60ch; margin: 0; }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 18px; }
.crumbs a { color: var(--steel); }
.crumbs span[aria-hidden] { margin: 0 8px; }

/* Page body */
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.entry { max-width: 72ch; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry > *:first-child { margin-top: 0; }
.entry ul { padding-left: 1.2em; }
.entry li { margin-bottom: .4em; }
.entry .wp-block-image { margin: 1.8em 0; }
.entry .wp-block-image img { border-radius: var(--radius); }
.page-featured { margin-bottom: 2em; border-radius: var(--radius); overflow: hidden; }
.aside-card {
	position: sticky; top: 110px;
	background: var(--ink); color: #e6ebf0; border-radius: 10px; padding: 28px;
	border-top: 8px solid var(--flame);
}
.aside-card h2 { color: var(--white); font-size: 1.5rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card__phone { display: block; color: var(--white); text-decoration: none; font-size: 1.7rem; font-weight: 800; font-stretch: 115%; margin: 8px 0 4px; }
.aside-card__phone:hover { color: #ffd2b8; }
.aside-card__mobile { color: #c9d3dc; text-decoration: none; }
.aside-card ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; font-size: .95rem; }
.aside-card li { padding: 4px 0; }
.child-links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.child-links a { display: block; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700; text-decoration: none; color: var(--ink); }
.child-links a:hover { border-color: var(--flame); color: var(--flame-dark); }
@media (max-width: 960px) {
	.page-body .wrap { grid-template-columns: 1fr; }
	.aside-card { position: static; }
}

/* Forms */
.rv-form { display: grid; gap: 18px; margin: 1.5em 0; }
.rv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rv-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.rv-form label span { font-weight: 400; color: var(--steel); }
.rv-form input[type="text"], .rv-form input[type="email"], .rv-form input[type="tel"], .rv-form select, .rv-form textarea {
	width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
	border: 2px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.rv-form input:focus, .rv-form select:focus, .rv-form textarea:focus { border-color: var(--water); outline: none; box-shadow: 0 0 0 3px rgba(26, 127, 212, .2); }
.rv-form textarea { min-height: 150px; resize: vertical; }
.rv-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.rv-form__consent input { margin-top: 5px; width: 18px; height: 18px; }
.rv-form__consent label { font-weight: 400; margin: 0; }
.rv-form__hp { position: absolute; left: -9999px; }
.rv-form .btn { justify-self: start; }
.rv-notice { padding: 16px 18px; border-radius: var(--radius); margin: 1em 0; font-weight: 600; }
.rv-notice--ok { background: #e7f6ec; border-left: 6px solid #1f8a4c; }
.rv-notice--err { background: #fdeceb; border-left: 6px solid #c0392b; }
@media (max-width: 640px) { .rv-form__row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #1b1f23; color: #b9c4cf; font-size: .97rem; }
.site-footer a { color: #dfe6ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: var(--white); font-size: 1.1rem; font-stretch: 105%; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand svg { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand .custom-logo-link img { height: 50px; width: auto; margin-bottom: 18px; background: var(--white); padding: 6px; border-radius: 4px; }
.footer-phone { font-size: 1.4rem; font-weight: 800; font-stretch: 112%; color: var(--white) !important; display: inline-block; margin: 4px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
	.callbar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
	}
	.callbar a { padding: 15px 10px; text-align: center; font-weight: 800; color: var(--white); text-decoration: none; }
	.callbar a:first-child { background: var(--water-dark); }
	.callbar a:last-child { background: var(--flame); }
	body { padding-bottom: 54px; }
	.topbar__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Keep the sticky header below the WordPress admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- v1.1 additions ---------- */

/* Real logo sizing */
.custom-logo-link img, .brand img { height: 56px; width: auto; }
.footer-brand .brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand .custom-logo-link img { background: none; padding: 0; }

/* Finance card flag */
.finance-card { position: relative; }
.finance-card__flag {
	position: absolute; top: -18px; right: 20px; margin: 0;
	background: var(--water); color: var(--white) !important;
	font-weight: 800; font-stretch: 110%; font-size: .9rem;
	padding: 7px 14px; border-radius: 999px;
}

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 22px; padding-bottom: 22px; }
.trust__label { margin: 0; font-weight: 700; color: var(--steel); max-width: 14ch; line-height: 1.3; }
.trust__logos, .trust__text { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; flex: 1; justify-content: space-between; }
.trust__logos img { height: 52px; width: auto; object-fit: contain; }
.trust__text li { font-weight: 800; font-stretch: 110%; }
@media (max-width: 640px) { .trust__logos { justify-content: flex-start; gap: 16px 28px; } .trust__logos img { height: 40px; } .trust__label { max-width: none; } }

/* Process: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 22px 0 0; }
.steps li::before {
	content: counter(step);
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--white); border: 3px solid var(--flame); color: var(--flame-dark);
	font-weight: 800; font-stretch: 115%; font-size: 1.35rem;
	position: relative; z-index: 1; margin-bottom: 18px;
}
.steps li::after {
	content: ""; position: absolute; top: 25px; left: 52px; right: 0; height: 3px;
	background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { color: var(--steel); font-size: .98rem; margin: 0; }
.process__cta { margin: 40px 0 0; }
@media (max-width: 980px) {
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 0; }
	.steps li::before { grid-row: span 2; margin: 0; }
	.steps li::after { top: 52px; left: 25px; right: auto; width: 3px; height: calc(100% - 26px); background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
}

/* Reviews */
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption strong { color: var(--ink); }
.review figcaption span { font-weight: 500; font-size: .9rem; }
.reviews--page { grid-template-columns: 1fr 1fr; margin: 1.5em 0; }
@media (max-width: 760px) { .reviews--page { grid-template-columns: 1fr; } }

/* Brand logos */
.brands-logos { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.brands-logos h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 28px; }
.brands-logos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brands-logos a {
	display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
	text-decoration: none;
}
.brands-logos a:hover { border-color: var(--water); }
.brands-logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.brands-logos__text { font-weight: 800; font-stretch: 115%; font-size: 1.25rem; color: var(--ink); }
@media (max-width: 900px) { .brands-logos ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brands-logos ul { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-wrap .section__head { position: sticky; top: 120px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
	cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; position: relative;
	font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2.5px solid var(--flame); border-bottom: 2.5px solid var(--flame); transform: rotate(45deg);
	transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--steel); }
.entry .faq { margin: 1.4em 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section__head { position: static; } }

/* Finance calculator link */
.finance-band__calc { color: var(--white); margin-left: 14px; font-weight: 600; }
.finance-band__calc:hover { color: #ffd2b8; }

/* Brand logo on brand pages */
.page-hero .wrap { position: relative; }
.page-hero__brand { position: absolute; right: var(--gutter); bottom: clamp(36px, 5vw, 60px); background: var(--white); border-radius: var(--radius); padding: 14px 20px; border: 1px solid var(--line); }
.page-hero__brand img { height: 56px; width: auto; display: block; }
@media (max-width: 760px) { .page-hero__brand { position: static; display: inline-block; margin-bottom: 18px; } }

/* Quote wizard */
.quote-wizard { margin: 1.5em 0; }
.qprogress { display: none; }
.qcount { display: none; }
.qnav { display: none; }
.quote-wizard.is-stepped .qprogress { display: block; height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.quote-wizard.is-stepped .qprogress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--flame), var(--water)); transition: width .25s ease; }
.quote-wizard.is-stepped .qcount { display: block; color: var(--steel); font-size: .92rem; margin: 0 0 6px; }
.quote-wizard.is-stepped .qnav { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.qstep { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.qstep legend { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; font-stretch: 110%; margin-bottom: 18px; padding: 0; line-height: 1.2; }
.qchoices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rv-form .qchoice {
	margin: 0;
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
	min-height: 140px; padding: 18px 12px; cursor: pointer;
	background: var(--white); border: 2px solid var(--line); border-radius: 10px;
	font-weight: 700; line-height: 1.25;
	transition: border-color .12s ease, background-color .12s ease;
}
.qchoice svg { width: 54px; height: 54px; color: var(--water-dark); }
.qchoice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qchoice:hover { border-color: var(--water); }
.qchoice:has(input:checked) { border-color: var(--flame); background: #fff4ee; }
.qchoice:has(input:focus-visible) { outline: 3px solid var(--flame); outline-offset: 2px; }
.qchoices--plain .qchoice { min-height: 96px; }
.qchoice__big { font-size: 2rem; font-weight: 800; font-stretch: 115%; color: var(--water-dark); line-height: 1; }
.qskip { background: none; border: 0; color: var(--steel); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.qback[hidden], .qskip[hidden] { display: none; }
@media (max-width: 640px) {
	.tile__title { min-height: 84px; padding: 12px 10px; }
	.split__media::before { left: -8px; bottom: -8px; }
	.split--flip .split__media::before { right: -8px; }
}

/* ---------- v1.2: home page redesign ---------- */
:root { --copper: #b8743a; --copper-soft: #f3e4d6; }

.h-underline { position: relative; display: inline-block; }
.h-underline::after {
	content: ""; position: absolute; left: 0; right: 10%; bottom: -8px; height: 6px;
	background: var(--flame); border-radius: 3px;
	transform: skewX(-12deg);
}

/* Hero */
.hero--v2 { background: var(--white); color: var(--ink); overflow: visible; }
.hero--v2 .wrap { grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); align-items: center; }
.hero--v2 h1 { color: var(--ink); max-width: 15ch; font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
.hero--v2 .hero__lead { color: var(--steel); font-size: 1.18rem; max-width: 44ch; }
.hero__kicker { display: flex; align-items: center; gap: 10px; color: var(--steel); font-weight: 600; margin: 0 0 14px; }
.hero__stars { color: var(--flame); letter-spacing: 2px; }
.hero__bigphone {
	display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; margin: 10px 0 26px;
	padding: 16px 22px 16px 20px; border-left: 6px solid var(--flame); background: var(--copper-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.hero__bigphone-label { font-size: .9rem; color: var(--copper); font-weight: 700; }
.hero__bigphone-number { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; font-stretch: 118%; color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.hero__bigphone:hover .hero__bigphone-number { color: var(--flame-dark); }
.hero--v2 .hero__actions { margin-top: 0; }
.hero--v2 .btn--ghost { color: var(--ink); border-color: var(--ink); }
.hero--v2 .btn--ghost:hover { background: var(--ink); color: var(--white); }
.hero__ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--steel); font-weight: 600; font-size: .95rem; }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--water); }
.hero__ticks li:nth-child(odd)::before { background: var(--flame); }

.hero__photo { position: relative; }
.hero__photo img, .hero__photo-ph {
	width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 14px; display: block;
	box-shadow: 0 30px 60px rgba(20, 40, 60, .22);
}
.hero__photo-ph { background: linear-gradient(160deg, #f4f7fa, #e3eaf1); display: flex; align-items: center; justify-content: center; color: #9fb0c0; }
.hero__photo-ph svg { width: 30%; height: auto; }
.hero__photo::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 14px; z-index: -1;
	background: repeating-linear-gradient(135deg, var(--copper-soft) 0 6px, transparent 6px 14px);
}
.hero__photo-tag {
	position: absolute; left: -16px; bottom: 28px; background: var(--ink); color: var(--white);
	padding: 14px 18px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px;
	border-left: 6px solid var(--flame); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); max-width: 85%;
}
.hero__photo-tag strong { font-size: 1.05rem; font-stretch: 110%; }
.hero__photo-tag span { font-size: .85rem; color: #c9d3dc; }
@media (max-width: 900px) {
	.hero--v2 .wrap { grid-template-columns: 1fr; }
	.hero__photo { margin-top: 10px; }
	.hero__photo img, .hero__photo-ph { aspect-ratio: 4 / 3; }
	.hero__photo-tag { left: 12px; }
}

.trust--v2 { border-top: 1px solid var(--line); }
.trust--v2 .wrap { justify-content: center; }
.trust--v2 .trust__logos { justify-content: center; gap: 18px 56px; }
.trust--v2 .trust__logos img { height: 46px; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.trust--v2 .trust__logos li:hover img { filter: none; opacity: 1; }

/* Services: feature tile plus a broken grid */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.svc {
	grid-column: span 3; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
	background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(20, 40, 60, .14); color: var(--ink); }
.svc--hot:hover { border-color: var(--flame); }
.svc--cold:hover { border-color: var(--water); }
.svc--feature { grid-column: span 8; flex-direction: row; min-height: 300px; }
.svc--feature .svc__media { flex: 1.1; aspect-ratio: auto; min-height: 260px; }
.svc--feature .svc__body { flex: 1; justify-content: center; padding: 34px; }
.svc--feature .svc__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.svc__media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; }
.svc--hot .svc__media::after { background: var(--flame); }
.svc--cold .svc__media::after { background: var(--water); }
.svc__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.svc__title { font-weight: 800; font-stretch: 108%; font-size: 1.15rem; line-height: 1.2; }
.svc__desc { color: var(--steel); font-size: .95rem; line-height: 1.45; }
.svc__go { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; }
.svc--hot .svc__go { color: var(--flame-dark); }
.svc--cold .svc__go { color: var(--water-dark); }
@media (max-width: 1000px) {
	.svc { grid-column: span 6; }
	.svc--feature { grid-column: span 12; }
}
@media (max-width: 620px) {
	.svc { grid-column: span 12; }
	.svc--feature { flex-direction: column; }
	.svc--feature .svc__media { aspect-ratio: 16 / 9; }
	.svc--feature .svc__body { padding: 20px; }
}

/* How I work */
.straight .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.straight__intro { position: sticky; top: 120px; }
.straight__intro p { color: #c9d3dc; font-size: 1.1rem; }
.straight__list { display: grid; gap: 0; }
.straight__item { padding: 26px 0 26px 30px; border-left: 3px solid rgba(255, 255, 255, .15); position: relative; }
.straight__item::before { content: ""; position: absolute; left: -9px; top: 32px; width: 15px; height: 15px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 5px var(--ink); }
.straight__item:nth-child(even)::before { background: var(--water); }
.straight__item h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .3em; }
.straight__item p { margin: 0; color: #c9d3dc; max-width: 58ch; }
@media (max-width: 860px) { .straight .wrap { grid-template-columns: 1fr; } .straight__intro { position: static; } }

/* Review rail */
.reviews-v2 { padding-bottom: clamp(40px, 6vw, 72px); }
.review-rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 10px 0 24px; }
.review-rail__track { display: flex; gap: 20px; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; }
.rcard {
	flex: 0 0 min(380px, 82vw); scroll-snap-align: start; margin: 0;
	background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px;
	display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(20, 40, 60, .07);
}
.rcard__stars { color: var(--flame); letter-spacing: 3px; margin-bottom: 12px; }
.rcard blockquote { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.5; flex: 1; }
.rcard figcaption { display: flex; flex-direction: column; gap: 2px; }
.rcard figcaption strong { font-size: 1.05rem; }
.rcard figcaption span { color: var(--steel); font-size: .88rem; }

/* Finance v2 */
.finance-v2__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.finance-v2__flag { display: inline-block; background: var(--water); color: var(--white); font-weight: 800; font-stretch: 110%; padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 14px; }
.finance-v2 h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.finance-v2__small { font-size: .85rem; color: var(--steel); }
.steps--compact { grid-template-columns: 1fr; gap: 22px; }
.steps--compact li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 0; }
.steps--compact li::before { grid-row: span 2; margin: 0; }
.steps--compact li::after { top: 52px; left: 25px; right: auto; width: 3px; height: calc(100% - 26px); background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
.steps--compact li:last-child::after { display: none; }
@media (max-width: 860px) { .finance-v2__grid { grid-template-columns: 1fr; } }

/* Areas v2 */
.areas-v2__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.towns a {
	display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
	text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem;
}
.towns a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--flame); background: var(--white); flex: none; }
.towns a:hover { color: var(--flame-dark); }
@media (max-width: 860px) { .areas-v2__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .towns { grid-template-columns: 1fr; } }
.svc--feature + .svc { grid-column: span 4; }
@media (max-width: 1000px) { .svc--feature + .svc { grid-column: span 6; } }
@media (max-width: 620px) { .svc--feature + .svc { grid-column: span 12; } }

/* ===== v1.4 Project photos ===== */
.hero__photo img { object-position: center 30%; }
.svc__media img { object-position: center 35%; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.work-grid li { margin: 0; }
.work-grid__item { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--mist); }
.work-grid__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-grid__item::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.work-grid li:nth-child(even) .work-grid__item::after { background: var(--water); }
.work-grid__item:hover img, .work-grid__item:focus-visible img { transform: scale(1.05); }
.work-grid__item:hover::after, .work-grid__item:focus-visible::after { transform: scaleX(1); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 18, 22, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #e8edf2; text-align: center; margin: 12px 0 0; font-size: .95rem; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox__btn:hover { background: var(--flame); }
.lightbox__prev { left: -60px; } .lightbox__next { right: -60px; }
.lightbox__close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
@media (max-width: 760px) { .lightbox__prev { left: 6px; } .lightbox__next { right: 6px; } }
.hero--v2 h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.hero__h1-sub { display: block; margin-top: .25em; font-size: .5em; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--steel); }
