/* OCS Cabo landing lead path v1.1.0
 * Tokens taken from the live site 2026-11-07: Astra global colors (#1a74bd, #165ba0, #f4c700, #1a1a1a, #F0F5FA),
 * Beaver Builder button blue #1975BC, the WhatsApp float's #165BA0 / #0e4176, Poppins body, Playfair Display headings,
 * 50px pill buttons (Astra + BB). White text uses #165ba0 (about 6.5:1), not #1a74bd (about 4.8:1). */
:root {
	--ocs-lp-blue: #165ba0;
	--ocs-lp-blue-dark: #0e4176;
	--ocs-lp-blue-bright: #1975bc;
	--ocs-lp-gold: #f4c700;
	--ocs-lp-ink: #1a1a1a;
	--ocs-lp-muted: #4a5560;
	--ocs-lp-tint: #f0f5fa;
	--ocs-lp-line: #d6e2ee;
	--ocs-lp-white: #ffffff;
	--ocs-lp-font: 'Poppins', sans-serif;
	--ocs-lp-font-head: 'Playfair Display', serif;
	--ocs-lp-radius-pill: 50px;
	--ocs-lp-radius-card: 8px;
	--ocs-lp-bar-h: 62px;
	--ocs-lp-bar-lift: 0px; /* set by lp.js while the cookie notice is showing */
}

/* ---------- shared ---------- */
.ocs-lp { font-family: var(--ocs-lp-font); color: var(--ocs-lp-ink); box-sizing: border-box; }
.ocs-lp *, .ocs-lp *::before, .ocs-lp *::after { box-sizing: inherit; }
.ocs-lp-icon { flex: none; display: block; }

.ocs-lp-top {
	max-width: 1120px;
	margin: 20px auto 28px;
	padding: 0 16px;
	display: grid;
	gap: 16px;
	text-align: left;
}

/* ---------- lead block ---------- */
.ocs-lp-lead {
	background: var(--ocs-lp-tint);
	border-left: 4px solid var(--ocs-lp-gold);
	border-radius: var(--ocs-lp-radius-card);
	padding: 18px 18px 20px;
}
.ocs-lp-lead__line { margin: 0 0 14px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.ocs-lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ocs-lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--ocs-lp-radius-pill);
	border: 2px solid var(--ocs-lp-blue);
	font-family: var(--ocs-lp-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ocs-lp-btn--primary,
.ocs-lp-btn--primary:visited { background: var(--ocs-lp-blue); color: var(--ocs-lp-white) !important; }
.ocs-lp-btn--primary:hover { background: var(--ocs-lp-blue-dark); border-color: var(--ocs-lp-blue-dark); }
.ocs-lp-btn--secondary,
.ocs-lp-btn--secondary:visited { background: var(--ocs-lp-white); color: var(--ocs-lp-blue) !important; }
.ocs-lp-btn--secondary:hover { background: var(--ocs-lp-blue); color: var(--ocs-lp-white) !important; }

.ocs-lp a:focus-visible,
.ocs-lp-bar a:focus-visible {
	outline: 3px solid var(--ocs-lp-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--ocs-lp-gold);
}

/* ---------- trust block ---------- */
.ocs-lp-trust {
	background: var(--ocs-lp-white);
	border: 1px solid var(--ocs-lp-line);
	border-radius: var(--ocs-lp-radius-card);
	padding: 18px;
}
.ocs-lp-eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ocs-lp-blue);
}
.ocs-lp-trust__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
/* Attachment 16319 (333x316, 2019): a neighbour's shoulder at the left edge and a wall fixture at top left. The photo is
 * nearly square, so object-fit alone barely crops; a round frame + 1.45x zoom centred on her face (about 48% / 40%). */
.ocs-lp-trust__avatar { display: block; flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--ocs-lp-tint); }
.ocs-lp .ocs-lp-trust__photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 48% 40%; transform: scale(1.45); transform-origin: 48% 40%; }
.ocs-lp .ocs-lp-trust__name {
	margin: 0;
	font-family: var(--ocs-lp-font-head);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--ocs-lp-ink);
}
.ocs-lp-trust__years { margin: 2px 0 0; font-size: 14px; color: var(--ocs-lp-muted); }
.ocs-lp-trust__bio { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.ocs-lp-trust__phone { margin: 0 0 4px; }
.ocs-lp-trust__phone a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
	color: var(--ocs-lp-blue) !important;
	text-decoration: none !important;
}
.ocs-lp .ocs-lp-reviews { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.ocs-lp .ocs-lp-reviews li { margin-left: 0; border-top: 1px solid var(--ocs-lp-line); padding-top: 10px; margin: 0; }
.ocs-lp-reviews blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.ocs-lp-reviews blockquote p { margin: 0; font-size: 15px; line-height: 1.55; }
.ocs-lp-reviews blockquote p::before { content: '\201C'; }
.ocs-lp-reviews blockquote p::after { content: '\201D'; }
.ocs-lp-review__by { margin: 4px 0 0; font-size: 13px; color: var(--ocs-lp-muted); }
.ocs-lp-review__by::before { content: '\2014\00a0'; }
.ocs-lp-review__by a { color: var(--ocs-lp-muted) !important; }

/* Phones: one review, full-width buttons, so the block stays short above the listings. */
@media (max-width: 768px) {
	.ocs-lp-top { margin: 14px auto 20px; gap: 12px; }
	.ocs-lp-actions { flex-direction: column; }
	.ocs-lp-btn { width: 100%; }
	.ocs-lp-reviews li:nth-child(n+2) { display: none; }
}

/* Desktop: lead and trust side by side. */
@media (min-width: 900px) {
	.ocs-lp-top:has(> .ocs-lp-trust):has(> .ocs-lp-lead) { grid-template-columns: 1fr 1fr; align-items: start; }
	.ocs-lp-trust__avatar { width: 112px; height: 112px; }
}

/* ---------- sticky mobile bar ---------- */
.ocs-lp-bar { display: none; }

@media (max-width: 768px) {
	.ocs-lp-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: var(--ocs-lp-bar-lift);
		z-index: 999990; /* under the cookie notice (999999), over the page */
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		background: var(--ocs-lp-blue);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
		font-family: var(--ocs-lp-font);
		transition: transform .25s ease;
	}
	.ocs-lp-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.ocs-lp-bar__btn {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: var(--ocs-lp-bar-h);
		padding: 8px 4px;
		color: var(--ocs-lp-white) !important;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.15;
		text-align: center;
		text-decoration: none !important;
	}
	.ocs-lp-bar__btn + .ocs-lp-bar__btn { border-left: 1px solid rgba(255, 255, 255, .28); }
	.ocs-lp-bar__btn:active { background: var(--ocs-lp-blue-dark); }
	.ocs-lp-bar a:focus-visible { outline-offset: -4px; box-shadow: none; outline-color: var(--ocs-lp-gold); }

	/* Keep footer content clear of the bar. */
	body.ocs-lp-bar-on { padding-bottom: calc(var(--ocs-lp-bar-h) + env(safe-area-inset-bottom, 0px)); }
	/* The bar has its own WhatsApp button: hide the site's floating one (#cpc-whatsapp-fab) here. */
	body.ocs-lp-bar-on #cpc-whatsapp-fab { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ocs-lp-btn, .ocs-lp-bar { transition: none; }
}

/* Hide the seller CTA ("See What Your Home Will Bring...", global saved row 17267) on the ad landing pages only.
 * Beaver Builder renders a global row with a per-page node id (CSL: fl-node-jmfcrxa75ths), NOT the template uid
 * kxe73ydwo0cs (checked in the live HTML 2026-11-07), so match the row by its IDX home-valuation link instead.
 * This CSS only loads on the landing-page list, and body.ocs-lp-on only exists while the plugin is active.
 * lp.js does the same for browsers without :has(). The global template itself is untouched (About page keeps it). */
body.ocs-lp-on .fl-node-kxe73ydwo0cs,
body.ocs-lp-on .fl-builder-content-primary .fl-row:has(a[href*="/idx/homevaluation"]) { display: none !important; }
