/* ==========================================================================
   LAYER 5 — PAGES
   Templates that are not the storefront loop: static content pages
   (how-it-works, compliance, about), the category and brand landings, the 404
   and the search results header.

   Two naming groups, deliberately kept apart:
     .vp-page / .vp-prose / .vp-empty     — page furniture and copy
     .vp-phero / .vp-check / .vp-ptable   — landing sections
   rendered by template-parts/sections/*
   ========================================================================== */

.vp-page { padding: 34px 0 64px; }

.vp-page__head { max-width: 780px; margin-bottom: 34px; }
.vp-page__head h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.vp-page__head p { margin-top: 14px; font-size: 16px; color: var(--vp-muted); }

/* Long-form copy. Kept deliberately narrow for readability, and scoped so it
   never leaks into WooCommerce markup. */
.vp-prose { max-width: 760px; font-size: var(--vp-f-md); line-height: 1.75; color: #3C4553; }
.vp-prose > * + * { margin-top: 18px; }
.vp-prose h2 { margin-top: 40px; font-size: 22px; font-weight: 700; color: var(--vp-text); letter-spacing: -.02em; }
.vp-prose h3 { margin-top: 28px; font-size: 16px; font-weight: 600; color: var(--vp-text); }
.vp-prose ul { display: flex; flex-direction: column; gap: 9px; padding-left: 0; }
.vp-prose li { display: flex; gap: 10px; align-items: flex-start; }

.vp-prose li::before {
	content: "";
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--vp-accent);
}

.vp-prose a { color: var(--vp-accent-dk); text-decoration: underline; }
.vp-prose strong { color: var(--vp-text); font-weight: 600; }

.vp-prose blockquote {
	padding: 18px 22px;
	border-left: 3px solid var(--vp-accent);
	border-radius: 0 var(--vp-r) var(--vp-r) 0;
	background: var(--vp-bg-2);
	font-size: 15px;
}

.vp-prose table { font-size: var(--vp-f-base); }
.vp-prose th, .vp-prose td { padding: 11px 14px; border-bottom: 1px solid var(--vp-line); text-align: left; }
.vp-prose th { font-weight: 700; color: var(--vp-text); background: var(--vp-bg-2); }

/* Two-column content page with a sticky aside (used for compliance pages). */
.vp-split { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

.vp-aside {
	position: sticky;
	top: 90px;
	padding: 22px;
	border: 1px solid var(--vp-line);
	border-radius: var(--vp-r);
	background: var(--vp-bg-2);
}

.vp-aside h2 { margin-bottom: 12px; font-size: var(--vp-f-xs); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--vp-muted); }
.vp-aside ul { display: flex; flex-direction: column; gap: 9px; }
.vp-aside a { font-size: var(--vp-f-base); }
.vp-aside a:hover { color: var(--vp-accent-dk); }

/* ---- 404 / empty state ---------------------------------------------- */
.vp-empty { padding: 72px 0; text-align: center; }
.vp-empty h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.vp-empty p { max-width: 520px; margin: 14px auto 0; font-size: 15px; color: var(--vp-muted); }
.vp-empty__acts { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.vp-empty__form { display: flex; justify-content: center; margin-top: 30px; }
.vp-empty__code { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vp-accent-dk); }

/* ---- search form ---------------------------------------------------- */
.vp-searchform { display: flex; gap: 10px; max-width: 520px; }
.vp-searchform .vp-input { flex: 1; }

/* ==========================================================================
   LANDING SECTIONS
   Rendered by template-parts/sections/* on the category and brand landings and
   on every long-form page. Kept in this layer rather than sections.css because
   none of them appear on the homepage — the homeowner's dark hero stays unique
   to the homepage, and these blocks are the light, catalogue-reading treatment.
   ========================================================================== */

/* ---- page intro band ------------------------------------------------- */
.vp-phero {
	position: relative;
	padding: 40px 0 34px;
	border-bottom: 1px solid var(--vp-line);
	background: var(--vp-bg);
	overflow: hidden;

	/* This band is light, so ghost buttons on it use the light-surface values
	   declared in components.css. Without these a hero-style ghost button is
	   white-on-white — which is exactly what happened before this was added. */
	--vp-btn-ghost-line: var(--vp-line);
	--vp-btn-ghost-ink: var(--vp-text);
	--vp-btn-ghost-line-hover: #C9CFD6;
	--vp-btn-ghost-bg-hover: var(--vp-bg-2);
}

.vp-phero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(560px 260px at 88% 18%, rgba(0,214,143,.09), transparent 68%);
}

.vp-phero .vp-wrap { position: relative; }
.vp-phero__inner { max-width: 760px; }

.vp-phero__kicker {
	display: block;
	margin-bottom: 10px;
	color: var(--vp-accent-dk);
	font-size: var(--vp-f-xs);
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.vp-phero__title { font-size: clamp(26px, 3.4vw, 41px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.vp-phero__lead { max-width: 700px; margin-top: 13px; font-size: 15px; line-height: 1.65; color: var(--vp-muted); }

/* The per-brand intro on a brand landing: a second paragraph under the lead.
   Same measure as the lead so the two read as one block, one step down in
   weight so the lead still opens the page. */
.vp-phero__text { max-width: 700px; margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--vp-muted); }
.vp-phero__cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.vp-phero__meta {
	display: flex;
	gap: 34px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--vp-line);
	flex-wrap: wrap;
}

.vp-phero__meta dt { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.vp-phero__meta dd { margin: 2px 0 0; font-size: var(--vp-f-sm); color: var(--vp-muted); }

/* ---- ticked list ----------------------------------------------------- */
.vp-check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }

.vp-check li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--vp-f-base); line-height: 1.55; }

.vp-check__ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	margin-top: 1px;
	border-radius: 50%;
	background: rgba(0,214,143,.14);
	color: var(--vp-accent-dk);
}

/* ---- comparison table ------------------------------------------------ */
.vp-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--vp-line);
	border-radius: var(--vp-r);
	background: #fff;
}

.vp-ptable { min-width: 560px; font-size: var(--vp-f-base); }

.vp-ptable th,
.vp-ptable td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--vp-line-2); }

.vp-ptable thead th {
	position: sticky;
	top: 0;
	border-bottom: 1px solid var(--vp-line);
	background: var(--vp-bg-2);
	font-size: var(--vp-f-xs);
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--vp-muted);
}

.vp-ptable tbody th { width: 34%; font-weight: 600; color: var(--vp-text); }
.vp-ptable tbody tr:last-child th,
.vp-ptable tbody tr:last-child td { border-bottom: 0; }
.vp-ptable tbody tr:hover { background: var(--vp-bg-2); }

.vp-fineprint { max-width: 760px; margin-top: 14px; font-size: var(--vp-f-sm); line-height: 1.6; color: var(--vp-muted-2); }

/* ---- FAQ accordion --------------------------------------------------- */
.vp-faq { max-width: 820px; border-top: 1px solid var(--vp-line); }

.vp-faq__item { border-bottom: 1px solid var(--vp-line); }

.vp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 2px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	list-style: none;
}

/* Safari still renders a disclosure triangle without this. */
.vp-faq__item summary::-webkit-details-marker { display: none; }

.vp-faq__item summary:hover { color: var(--vp-accent-dk); }
.vp-faq__item summary svg { flex: 0 0 auto; color: var(--vp-muted-2); transition: transform .2s; }
.vp-faq__item[open] summary svg { transform: rotate(90deg); color: var(--vp-accent-dk); }

.vp-faq__a { padding: 0 40px 20px 2px; }
.vp-faq__a p { max-width: 700px; font-size: var(--vp-f-base); line-height: 1.7; color: var(--vp-muted); }

/* ---- callout --------------------------------------------------------- */
.vp-callout {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	max-width: 860px;
	padding: 20px 22px;
	border: 1px solid var(--vp-line);
	border-left-width: 3px;
	border-radius: var(--vp-r);
	background: var(--vp-bg-2);
}

.vp-callout--warn { border-left-color: var(--vp-warn); background: var(--vp-warn-bg); border-color: var(--vp-warn-line); }
.vp-callout--info { border-left-color: var(--vp-accent); }

.vp-callout__ico { flex: 0 0 auto; margin-top: 1px; color: var(--vp-accent-dk); }
.vp-callout--warn .vp-callout__ico { color: var(--vp-warn-ink); }

.vp-callout__title { margin-bottom: 5px; font-size: 15px; font-weight: 700; }
.vp-callout--warn .vp-callout__title { color: var(--vp-warn-ink); }
.vp-callout p { font-size: var(--vp-f-base); line-height: 1.65; color: var(--vp-muted); }
.vp-callout--warn p { color: var(--vp-warn-ink); opacity: .88; }

/* ---- route cards (apply) --------------------------------------------- */
.vp-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.vp-route {
	position: relative;
	padding: 26px 24px;
	border: 1px solid var(--vp-line);
	border-radius: var(--vp-r-lg);
	background: #fff;
	box-shadow: var(--vp-sh-1);
}

.vp-route--primary { border-color: var(--vp-accent); box-shadow: 0 10px 26px rgba(0,214,143,.14); }
.vp-route__n { display: block; margin-bottom: 10px; font-size: var(--vp-f-xs); font-weight: 700; letter-spacing: .14em; color: var(--vp-muted-2); }
.vp-route--primary .vp-route__n { color: var(--vp-accent-dk); }
.vp-route__title { margin-bottom: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.vp-route p { margin-bottom: 18px; font-size: var(--vp-f-base); line-height: 1.65; color: var(--vp-muted); }
.vp-route .vp-rep-phone { display: block; margin-bottom: 10px; }
.vp-route .vp-btn + .vp-btn { margin-top: 8px; }

/* ---- contact cards --------------------------------------------------- */
.vp-ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.vp-ccard {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px;
	border: 1px solid var(--vp-line);
	border-radius: var(--vp-r);
	background: #fff;
}

.vp-ccard__ico {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	border-radius: 10px;
	background: rgba(0,214,143,.12);
	color: var(--vp-accent-dk);
}

.vp-ccard__label { font-size: var(--vp-f-xs); font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--vp-muted); }
.vp-ccard__value { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.vp-ccard__value:hover { color: var(--vp-accent-dk); }
.vp-ccard__note { font-size: var(--vp-f-sm); color: var(--vp-muted-2); }

/* ---- chip rows ------------------------------------------------------- */
.vp-chips__title { margin-bottom: 14px; font-size: var(--vp-f-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vp-muted); }
/* One line under the brand chips pointing at the full directory — the chip row
   is a dozen related brands, not the whole list. */
.vp-chips__more { margin-top: 14px; font-size: var(--vp-f-base); }
.vp-chips__more a { color: var(--vp-accent-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.vp-chip { display: inline-block; }

@media (max-width: 1020px) {
	.vp-split { grid-template-columns: 1fr; gap: 32px; }
	.vp-aside { position: static; }
	.vp-ccards { grid-template-columns: 1fr 1fr; }
	.vp-check { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.vp-phero { padding: 30px 0 26px; }
	.vp-phero__cta .vp-btn { width: 100%; }
	.vp-phero__meta { gap: 22px; }
	.vp-routes, .vp-ccards { grid-template-columns: 1fr; }
	.vp-faq__a { padding-right: 8px; }
}
