/*
Theme Name: Huddle
Theme URI: https://huddleforproperty.com.au
Author: Essor Business Hub
Description: Lightweight block theme for Huddle for Property, a Melbourne buyer's advocate. No page builder, no jQuery.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: huddle
*/

/* ---------- Tokens ---------- */
:root {
	/* Type scale: eight steps, nothing else goes in. */
	--hf-fs-label: 12px;
	--hf-fs-small: 16px;
	--hf-fs-body: 18px;
	--hf-fs-h3: 20px;
	--hf-fs-lead: 26px;
	--hf-fs-h2: 40px;
	--hf-fs-stat: 56px;
	--hf-fs-display: 60px;

	--hf-navy: #102548;
	--hf-navy-deep: #0b1a33;
	--hf-navy-card: #1a3460;
	--hf-navy-lift: #20407a;
	--hf-cyan: #2cb5d3;
	--hf-cyan-light: #5ccae2;
	--hf-cyan-deep: #0a758d; /* cyan text on light surfaces: 4.8:1 on off-white, 5.3:1 on white */
	--hf-cyan-tint: rgba(44, 181, 211, 0.18);
	--hf-off-white: #f3f4f5;
	--hf-grey: #ebecec;
	--hf-white: #fff;
	--hf-star: #f5821f;
	--hf-green: #3dd68c;

	--hf-pad-x: 32px;
	--hf-pad-y: 96px;
}

@media (max-width: 760px) {
	:root {
		--hf-fs-h2: 30px;
		--hf-fs-stat: 30px;
		--hf-fs-display: 40px;
		--hf-pad-x: 20px;
		--hf-pad-y: 64px;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--hf-cyan); outline-offset: 3px; border-radius: 4px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
:where(.wp-block-group) > * { margin-block: 0; }

.hf-wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--hf-pad-x); width: 100%; }
.hf-sec { padding-block: var(--hf-pad-y); }
.hf-sec--navy { background: var(--hf-navy); color: var(--hf-white); }
.hf-sec--navy h2, .hf-sec--navy h3 { color: inherit; }

.hf-h1, .hf-h2 { margin: 0; letter-spacing: -0.01em; }
.hf-h1 { font-size: var(--hf-fs-display); line-height: 1.25; font-weight: 700; }
.hf-h2 { font-size: var(--hf-fs-h2); line-height: 1.2; font-weight: 700; }
.hf-block { display: block; }
.hf-cyan { color: var(--hf-cyan); }
.hf-white { color: var(--hf-white); }
.hf-muted { color: rgba(255, 255, 255, 0.7); font-size: var(--hf-fs-small); }

/* Label pill: the only text allowed below 16px, uppercase only. */
.hf-pill:not(.wp-block-post-terms), .wp-block-post-terms.hf-pill a {
	display: inline-flex;
	align-items: center;
	font-size: var(--hf-fs-label);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--hf-navy);
	background: var(--hf-cyan-tint);
	border-radius: 999px;
	padding: 4px 12px;
	margin: 0;
	width: fit-content;
}
.wp-block-post-terms.hf-pill { margin: 0; }
.hf-sec--navy .hf-pill { color: var(--hf-white); }

/* Status line with green dot */
.hf-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--hf-fs-small); color: rgba(255, 255, 255, 0.78); }
.hf-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hf-cyan); flex: none; }

/* ---------- Buttons ---------- */
.wp-block-buttons.hf-buttons { margin: 0; gap: 12px; }
.wp-block-button.hf-btn-p .wp-block-button__link,
.wp-block-button.hf-btn-o .wp-block-button__link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	font-size: var(--hf-fs-small);
	line-height: 1.5;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.wp-block-button.hf-btn-p .wp-block-button__link {
	background: var(--hf-cyan);
	color: var(--hf-navy);
	padding: 14px 26px;
	box-shadow: 0 6px 18px -8px rgba(44, 181, 211, 0.55);
}
.wp-block-button.hf-btn-p .wp-block-button__link:hover { background: var(--hf-cyan-light); color: var(--hf-navy); }
.wp-block-button.hf-btn-o .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--hf-cyan);
	color: var(--hf-navy);
	padding: 12px 24px;
}
.wp-block-button.hf-btn-o .wp-block-button__link:hover { background: rgba(44, 181, 211, 0.12); color: var(--hf-navy); }
.hf-sec--navy .wp-block-button.hf-btn-o .wp-block-button__link,
.hf-header .wp-block-button.hf-btn-o .wp-block-button__link,
.hf-menu .wp-block-button.hf-btn-o .wp-block-button__link { color: var(--hf-white); }
.hf-header .wp-block-button.hf-btn-o .wp-block-button__link { padding: 8px 18px; white-space: nowrap; }

@media (max-width: 760px) {
	.wp-block-buttons.hf-buttons:not(.hf-buttons--header) { width: 100%; }
	.wp-block-buttons.hf-buttons:not(.hf-buttons--header) .wp-block-button,
	.wp-block-buttons.hf-buttons:not(.hf-buttons--header) .wp-block-button__link { width: 100%; }
}

/* ---------- Header and menu ---------- */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 30; }
.admin-bar .wp-site-blocks > header { top: 32px; }
.hf-header { background: var(--hf-navy); height: 64px; }
.hf-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hf-header__right { display: flex; align-items: center; gap: 14px; }
.hf-brand { display: flex; align-items: center; }
.hf-brand img { height: 30px; width: auto; display: block; }

.hf-menu-toggle {
	width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; padding: 10px;
}
.hf-menu-toggle span { height: 2px; border-radius: 2px; display: block; }
.hf-menu-toggle span:first-child { width: 24px; background: var(--hf-white); }
.hf-menu-toggle span:last-child { width: 16px; background: var(--hf-cyan); }

.hf-menu {
	position: fixed; inset: 0; z-index: 50; background: var(--hf-navy); color: var(--hf-white);
	display: flex; flex-direction: column; overflow-y: auto;
	opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.hf-menu[hidden] { display: none; }
.hf-menu.is-open { opacity: 1; visibility: visible; }
.hf-menu__bar { height: 64px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.hf-menu__close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--hf-white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hf-menu__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding-block: 24px 56px; }
.hf-menu__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hf-menu__nav a { display: inline-block; color: var(--hf-white); font-size: var(--hf-fs-lead); font-weight: 600; padding: 6px 0; }
.hf-menu__nav a:hover { color: var(--hf-cyan); }
.hf-menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hf-menu__foot a.hf-menu__phone { color: var(--hf-white); font-weight: 600; font-size: var(--hf-fs-body); }
body.hf-menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hf-hero { position: relative; background: var(--hf-navy); color: var(--hf-white); overflow: hidden; }
.hf-hero > .hf-hero__bg { position: absolute; inset: 0; margin: 0; }
.hf-hero > .hf-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.hf-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(16, 37, 72, 0.9) 0%, rgba(16, 37, 72, 0.72) 50%, rgba(16, 37, 72, 0.48) 100%);
}
.hf-hero__inner { position: relative; z-index: 2; padding: 112px var(--hf-pad-x) 200px; }
.hf-hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.hf-hero__copy p.hf-lede { margin: 0; line-height: 1.55; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hf-hero__actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 8px; }
.hf-hero__cta { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .hf-hero__inner { padding: 72px var(--hf-pad-x) 140px; } }

.hf-rating { display: flex; flex-direction: column; gap: 2px; align-self: flex-start; }
.hf-rating__row { display: flex; align-items: center; gap: 10px; }
.hf-rating .hf-rating__n { font-size: 30px; font-weight: 700; line-height: 1; }
.hf-rating--big .hf-rating__n { font-size: 44px; }
.hf-stars { color: var(--hf-star); letter-spacing: 2px; font-size: var(--hf-fs-small); line-height: 1; }
.hf-rating--big .hf-stars { font-size: var(--hf-fs-h3); }
.hf-rating__count { color: rgba(255, 255, 255, 0.7); font-size: var(--hf-fs-small); }

/* ---------- Service tabs ---------- */
.hf-acc-sec { position: relative; margin-top: -120px; z-index: 2; }
.hf-tabs { position: relative; }
.hf-tablist { display: flex; gap: 4px; }
.hf-tab {
	display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-size: var(--hf-fs-h3); font-weight: 600;
	padding: 18px 28px; border-radius: 12px 12px 0 0; background: var(--hf-navy-deep); color: rgba(255, 255, 255, 0.72);
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--hf-ease);
}
.hf-tab:hover { color: var(--hf-white); background: var(--hf-navy-card); }
.hf-tab[aria-selected="true"] { background: var(--hf-navy); color: var(--hf-white); }
.hf-tab .hf-chev { transition: transform 0.3s var(--hf-ease); flex: none; }
.hf-tab[aria-selected="true"] .hf-chev { transform: rotate(90deg); }
.hf-tabs__card { background: var(--hf-navy); border-radius: 0 12px 12px 12px; box-shadow: 0 30px 60px -30px rgba(11, 26, 51, 0.55); overflow: hidden; }
.hf-js .hf-tabpanel:not(.is-active) { display: none; }
.hf-acc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 40px; color: var(--hf-white); align-items: center; }
.hf-acc-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hf-acc-copy h3 { margin: 0; font-size: var(--hf-fs-lead); line-height: 1.3; font-weight: 600; color: var(--hf-white); }
.hf-acc-copy > p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 30em; }
.hf-tab-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--hf-cyan); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(44, 181, 211, 0.7); }
.hf-acc-media { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hf-acc-media figure.wp-block-image { margin: 0; }
.hf-acc-media figure.wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; }
.hf-acc-media .hf-caption { margin: -6px 0 0; font-size: var(--hf-fs-small); color: rgba(255, 255, 255, 0.65); text-align: right; }

.hf-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hf-ticks li { position: relative; padding-left: 30px; }
.hf-ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.4em; width: 18px; height: 18px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232CB5D3' stroke-width='2'%3E%3Cpath d='M4 10.5l4 4L16 6'/%3E%3C/svg%3E");
}

.hf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hf-stat { border-left: 2px solid rgba(44, 181, 211, 0.35); padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.hf-stat__n { font-size: var(--hf-fs-h2); line-height: 1; font-weight: 700; color: var(--hf-cyan); letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.hf-stat__l { margin: 0; font-size: var(--hf-fs-small); line-height: 1.35; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 760px) {
	.hf-acc-sec { margin-top: -80px; }
	.hf-tab { flex: 1; justify-content: center; padding: 16px 12px; font-size: var(--hf-fs-small); }
	.hf-tab .hf-chev { display: none; }
	.hf-acc-body { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px 32px; }
	.hf-stats { gap: 10px; }
	.hf-stat { padding-left: 10px; }
	.hf-stat__l { font-size: var(--hf-fs-small); }
}

/* ---------- Why Huddle ---------- */
.hf-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.hf-why__left { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hf-why__left p { margin: 0; max-width: 30em; }
.hf-why__cards { display: flex; flex-direction: column; gap: 16px; }
.hf-card { background: var(--hf-white); border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.hf-card__head { display: flex; align-items: baseline; gap: 16px; }
.hf-card__head .hf-num { font-size: 32px; font-weight: 500; color: var(--hf-cyan-deep); line-height: 1; margin: 0; }
.hf-card__head h3 { margin: 0; }
.hf-card > p { margin: 0; max-width: 34em; }
@media (max-width: 760px) {
	.hf-why { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hf-why__left { position: static; }
	.hf-card { padding: 24px; }
}

/* ---------- Carousels ---------- */
.hf-scroller {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 40px) / 3)); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hf-scroller::-webkit-scrollbar { display: none; }
.hf-scroller > * { scroll-snap-align: start; }
.hf-scroller--wide { grid-auto-columns: minmax(520px, 72%); }
@media (max-width: 760px) {
	.hf-scroller { grid-auto-columns: 85%; }
	.hf-scroller--wide { grid-auto-columns: 88%; }
}
.hf-carousel { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hf-dots { display: flex; justify-content: center; gap: 8px; }
.hf-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: width 0.2s ease, background 0.2s ease; position: relative; }
.hf-dot::after { content: ""; position: absolute; inset: -12px -4px; }
.hf-dot[aria-current="true"] { width: 22px; background: var(--hf-cyan); }
.hf-sec:not(.hf-sec--navy) .hf-dot { background: rgba(16, 37, 72, 0.25); }
.hf-sec:not(.hf-sec--navy) .hf-dot[aria-current="true"] { background: var(--hf-cyan); }

.hf-reviews { display: flex; flex-direction: column; gap: 40px; }
.hf-reviews__top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; text-align: center; }
.hf-reviews__top strong { font-size: var(--hf-fs-body); font-weight: 600; }
.hf-reviews__top .hf-rating__n { font-size: 30px; font-weight: 700; line-height: 1; }
.hf-review { background: var(--hf-navy-card); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.hf-review__who { display: flex; align-items: center; gap: 12px; }
.hf-review__initial { width: 40px; height: 40px; border-radius: 50%; background: var(--hf-cyan-tint); color: var(--hf-cyan); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.hf-review__name { display: block; font-weight: 600; }
.hf-review__who .hf-stars { font-size: var(--hf-fs-small); letter-spacing: 1px; }
.hf-review__text { margin: 0; color: rgba(255, 255, 255, 0.85); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hf-review__more { font-size: var(--hf-fs-small); font-weight: 600; margin-top: auto; }

/* ---------- Success stories ---------- */
.hf-split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hf-split-head__l { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hf-split-head__r { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 380px; }
.hf-split-head__r p { margin: 0; }
.hf-stack { display: flex; flex-direction: column; gap: 40px; }
.hf-story { background: var(--hf-grey); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; }
.hf-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.hf-story__body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding-right: 12px; }
.hf-story__body h3 { margin: 0; font-size: var(--hf-fs-h3); line-height: 1.4; font-weight: 600; }
.hf-story__body p { margin: 0; }
@media (max-width: 760px) { .hf-story { grid-template-columns: minmax(0, 1fr); gap: 20px; } .hf-story__body { padding-right: 0; } }

/* ---------- How we work ---------- */
.hf-how { display: flex; flex-direction: column; gap: 8px; }
.hf-howrow {
	display: grid; grid-template-columns: 72px minmax(0, 240px) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
	background: var(--hf-navy-card); border-radius: 12px; padding: 24px 28px; transition: background 0.2s ease;
}
.hf-howrow:hover { background: var(--hf-navy-deep); }
.hf-howrow .hf-num { font-size: 32px; font-weight: 500; color: var(--hf-cyan); line-height: 1; margin: 0; }
.hf-howrow h3 { margin: 0; color: var(--hf-white); }
.hf-howrow p.hf-how-desc { margin: 0; color: rgba(255, 255, 255, 0.88); }
.hf-howrow .hf-how-ico { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
	.hf-howrow { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 14px; padding: 22px 20px; }
	.hf-howrow p.hf-how-desc { grid-column: 2; }
	.hf-howrow .hf-how-ico { display: none; }
}

/* ---------- Insights ---------- */
.hf-insights .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hf-insights .wp-block-post-template > li { margin: 0; display: flex; }
.hf-post-card { position: relative; background: var(--hf-grey); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.hf-post-card h3, .hf-post-card .wp-block-post-title { margin: 0; font-size: var(--hf-fs-h3); line-height: 1.4; font-weight: 600; }
.hf-post-card .wp-block-post-title a { color: var(--hf-navy); }
.hf-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; z-index: 1; }
.hf-post-card__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: var(--hf-fs-small); color: rgba(16, 37, 72, 0.75); }
.hf-post-card__foot .wp-block-read-more { color: var(--hf-navy); font-weight: 600; }
.hf-post-card__foot .wp-block-post-date { margin: 0; }

/* ---------- Final CTA ---------- */
.hf-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.hf-cta__l { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hf-cta__l p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 30em; }
.hf-cta__r { display: flex; flex-direction: column; gap: 24px; }
.hf-cta__r figure.wp-block-image { margin: 0; }
.hf-cta__r figure.wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 760px) { .hf-cta { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Footer ---------- */
.hf-footer { background: var(--hf-navy-deep); color: rgba(255, 255, 255, 0.78); font-size: var(--hf-fs-small); }
.hf-footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 36px; }
.hf-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.hf-footer__about { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.hf-footer__about p { margin: 0; }
.hf-footer__nav { display: flex; gap: 56px; flex-wrap: wrap; }
.hf-footer__nav ul, .hf-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hf-footer__nav a { color: var(--hf-white); }
.hf-footer__nav a:hover { color: var(--hf-cyan); }
.hf-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.hf-footer__legal p { margin: 0; max-width: 60em; }
.hf-social { display: flex; gap: 10px; }
.hf-social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--hf-cyan); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.hf-social a:hover { background: rgba(44, 181, 211, 0.15); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* =====================================================================
   Motion and polish. Same palette, same type scale. Everything below is
   switched off by prefers-reduced-motion at the end of this block.
   ===================================================================== */
:root { --hf-ease: cubic-bezier(0.2, 0.7, 0.2, 1); --hf-shadow-soft: 0 1px 2px rgba(16, 37, 72, 0.05), 0 14px 32px -18px rgba(16, 37, 72, 0.22); }

@keyframes hf-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hf-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes hf-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes hf-slide { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* Scroll reveal. Classes are added by huddle.js, and only when JS is running. */
.hf-js .hf-rv { opacity: 0; }
.hf-js .hf-rv.is-in { opacity: 1; animation: hf-rise 0.85s var(--hf-ease) var(--d, 0s) backwards; }

/* Accent bar over every section heading. */
.hf-sec .hf-h2::before {
	content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--hf-cyan); margin-bottom: 18px;
	transform-origin: left; transition: transform 0.8s var(--hf-ease) 0.2s;
}
.hf-js .hf-sec .hf-h2.hf-rv:not(.is-in)::before { transform: scaleX(0); }

/* Header: progress line, glass on scroll. */
.hf-header { transition: background 0.3s ease, box-shadow 0.3s ease; position: relative; }
.hf-header.is-scrolled { background: rgba(16, 37, 72, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 28px -14px rgba(11, 26, 51, 0.7); }
.hf-header::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--hf-cyan); }

/* Buttons: lift, glow, arrow. */
.wp-block-button.hf-btn-p .wp-block-button__link,
.wp-block-button.hf-btn-o .wp-block-button__link { transition: background 0.2s ease, transform 0.25s var(--hf-ease), box-shadow 0.25s ease, color 0.2s ease; }
.wp-block-button.hf-btn-p .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(44, 181, 211, 0.7); }
.wp-block-button.hf-btn-o .wp-block-button__link:hover { transform: translateY(-3px); }
.wp-block-button .wp-block-button__link:active { transform: translateY(0) scale(0.98); }
.hf-sec .wp-block-button__link::after, .hf-tabs .wp-block-button__link::after, .hf-hero .wp-block-button__link::after, .hf-menu .wp-block-button__link::after {
	content: "\2192"; display: inline-block; transition: transform 0.25s var(--hf-ease);
}
.hf-sec .wp-block-button__link:hover::after, .hf-tabs .wp-block-button__link:hover::after, .hf-hero .wp-block-button__link:hover::after, .hf-menu .wp-block-button__link:hover::after { transform: translateX(5px); }

/* Hero: entrance, drifting photo, breathing glow. */
.hf-hero > .hf-hero__bg { top: -70px; bottom: -70px; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.hf-hero > .hf-hero__bg img { animation: hf-drift 26s ease-in-out infinite alternate; }
.hf-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(640px circle at 12% 88%, rgba(44, 181, 211, 0.22), transparent 62%);
	animation: hf-glow 9s ease-in-out infinite;
}
.hf-hero__copy > *, .hf-hero__copy .hf-block { animation: hf-rise 0.95s var(--hf-ease) backwards; }
.hf-hero__copy > h1 .hf-block:nth-child(1) { animation-delay: 0.15s; }
.hf-hero__copy > h1 .hf-block:nth-child(2) { animation-delay: 0.32s; }
.hf-hero__copy > .hf-lede { animation-delay: 0.5s; }
.hf-hero__copy > .hf-hero__actions { animation-delay: 0.68s; }
.hf-hero__copy > h1 { animation: none; }

/* Navy sections: faint grid and a cyan glow so they are not flat blocks of colour. */
.hf-sec--navy {
	position: relative; isolation: isolate; overflow: hidden;
	background-image: radial-gradient(760px circle at 88% -10%, rgba(44, 181, 211, 0.14), transparent 60%), radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
	background-size: auto, 30px 30px;
}

/* Cards: soft depth and lift. */
.hf-card { box-shadow: var(--hf-shadow-soft); transition: transform 0.35s var(--hf-ease), box-shadow 0.35s ease; position: relative; }
.hf-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--hf-cyan); transform: scaleY(0); transition: transform 0.35s var(--hf-ease); }
.hf-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 37, 72, 0.05), 0 24px 40px -20px rgba(16, 37, 72, 0.3); }
.hf-card:hover::before { transform: scaleY(1); }
.hf-card__head .hf-num { transition: transform 0.35s var(--hf-ease); }
.hf-card:hover .hf-num { transform: translateX(4px); }

.hf-review { transition: transform 0.35s var(--hf-ease), background 0.3s ease, box-shadow 0.35s ease; }
.hf-review:hover { transform: translateY(-5px); background: var(--hf-navy-lift); box-shadow: 0 22px 36px -22px rgba(0, 0, 0, 0.6); }

.hf-story { transition: transform 0.35s var(--hf-ease), box-shadow 0.35s ease; box-shadow: var(--hf-shadow-soft); }
.hf-story:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(16, 37, 72, 0.35); }
.hf-story img { transition: transform 0.7s var(--hf-ease); }
.hf-story:hover img { transform: scale(1.04); }

.hf-howrow { position: relative; overflow: hidden; transition: background 0.25s ease, transform 0.3s var(--hf-ease); }
.hf-howrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hf-cyan); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--hf-ease); }
.hf-howrow:hover { transform: translateX(8px); }
.hf-howrow:hover::before { transform: scaleY(1); }
.hf-howrow .hf-how-ico svg { transition: transform 0.4s var(--hf-ease); }
.hf-howrow:hover .hf-how-ico svg { transform: scale(1.18) rotate(-6deg); }

.hf-post-card { box-shadow: var(--hf-shadow-soft); transition: transform 0.35s var(--hf-ease), box-shadow 0.35s ease, background 0.25s ease; }
.hf-post-card:hover { transform: translateY(-5px); background: var(--hf-white); box-shadow: 0 24px 40px -22px rgba(16, 37, 72, 0.35); }
.hf-post-card .wp-block-read-more { transition: color 0.2s ease, letter-spacing 0.25s ease; }
.hf-post-card:hover .wp-block-read-more { color: var(--hf-cyan); letter-spacing: 0.02em; }

.hf-social a { transition: transform 0.25s var(--hf-ease), background 0.2s ease; }
.hf-social a:hover { transform: translateY(-3px); }
.hf-footer__nav a { transition: color 0.2s ease, padding-left 0.25s var(--hf-ease); }
.hf-footer__nav a:hover { padding-left: 6px; }

/* Accordion: content eases in when a panel opens. */
.hf-tabpanel.is-active .hf-acc-copy > *, .hf-tabpanel.is-active .hf-acc-media > * { animation: hf-rise 0.7s var(--hf-ease) backwards; }
.hf-tabpanel.is-active .hf-acc-copy > :nth-child(2) { animation-delay: 0.07s; }
.hf-tabpanel.is-active .hf-acc-copy > :nth-child(3) { animation-delay: 0.14s; }
.hf-tabpanel.is-active .hf-acc-copy > :nth-child(4) { animation-delay: 0.21s; }
.hf-tabpanel.is-active .hf-acc-media > :nth-child(2) { animation-delay: 0.1s; }
.hf-tabpanel.is-active .hf-acc-media > :nth-child(3) { animation-delay: 0.2s; }
.hf-tabpanel.is-active .hf-ticks li { animation: hf-slide 0.6s var(--hf-ease) backwards; }
.hf-tabpanel.is-active .hf-ticks li:nth-child(1) { animation-delay: 0.2s; }
.hf-tabpanel.is-active .hf-ticks li:nth-child(2) { animation-delay: 0.28s; }
.hf-tabpanel.is-active .hf-ticks li:nth-child(3) { animation-delay: 0.36s; }
.hf-tabpanel.is-active .hf-ticks li:nth-child(4) { animation-delay: 0.44s; }
.hf-stat { transition: border-color 0.3s ease; }
.hf-stat:hover { border-left-color: var(--hf-cyan); }

/* Menu overlay: links slide in one by one. */
.hf-menu.is-open .hf-menu__nav li { animation: hf-slide 0.55s var(--hf-ease) backwards; }
.hf-menu.is-open .hf-menu__nav li:nth-child(1) { animation-delay: 0.08s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(2) { animation-delay: 0.13s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(3) { animation-delay: 0.18s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(4) { animation-delay: 0.23s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(5) { animation-delay: 0.28s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(6) { animation-delay: 0.33s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(7) { animation-delay: 0.38s; }
.hf-menu.is-open .hf-menu__nav li:nth-child(8) { animation-delay: 0.43s; }
.hf-menu.is-open .hf-menu__foot { animation: hf-rise 0.6s var(--hf-ease) 0.5s backwards; }
.hf-menu__nav a { transition: color 0.2s ease, transform 0.25s var(--hf-ease); }
.hf-menu__nav a:hover { transform: translateX(8px); }
.hf-menu-toggle span { transition: width 0.25s var(--hf-ease); }
.hf-menu-toggle:hover span:last-child { width: 24px; }

@media (prefers-reduced-motion: reduce) {
	.hf-js .hf-rv { opacity: 1; }
	.hf-hero > .hf-hero__bg img, .hf-hero::after { animation: none; }
	.hf-hero > .hf-hero__bg { transform: none; }
}

/* =====================================================================
   Pro pass: header chips, headline badge, hero video, stacked cards,
   scroll-lit steps, richer review cards.
   ===================================================================== */
.hf-header__left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hf-chips { display: none; align-items: center; gap: 8px; }
.hf-chips a {
	display: inline-flex; align-items: center; gap: 8px; color: var(--hf-white); font-size: var(--hf-fs-small); line-height: 1;
	padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
	white-space: nowrap; transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--hf-ease);
}
.hf-chips a:hover { background: rgba(44, 181, 211, 0.18); border-color: var(--hf-cyan); color: var(--hf-white); transform: translateY(-2px); }
.hf-chip-tag { background: var(--hf-cyan); color: var(--hf-navy); font-size: var(--hf-fs-label); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
@media (min-width: 1100px) { .hf-chips { display: inline-flex; } }

/* Round icon badge that sits inside the headline. */
.hf-badge {
	display: inline-block; position: relative; width: 0.92em; height: 0.92em; border-radius: 50%; background: var(--hf-cyan);
	vertical-align: -0.1em; margin-inline: 0.06em; animation: hf-pop 4.5s var(--hf-ease) 1.2s infinite;
}
.hf-badge::after {
	content: ""; position: absolute; inset: 22%;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102548' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}
@keyframes hf-pop { 0%, 86%, 100% { transform: scale(1) rotate(0); } 92% { transform: scale(1.14) rotate(-8deg); } }

/* Hero video sits over the still photo and fades in once it is really playing. */
.hf-hero > .hf-hero__video {
	position: absolute; left: 0; top: -70px; width: 100%; height: calc(100% + 140px); object-fit: cover;
	opacity: 0; transition: opacity 1.4s ease; transform: translate3d(0, var(--py, 0), 0);
}
.hf-hero > .hf-hero__video.is-playing { opacity: 1; }

/* Why Huddle: cards stack as you scroll (desktop only). */
@media (min-width: 761px) {
	.hf-why__cards .hf-card { position: sticky; top: calc(104px + var(--si, 0) * 30px); border: 1px solid rgba(16, 37, 72, 0.08); border-color: rgba(16, 37, 72, 0.14); box-shadow: 0 -6px 14px -12px rgba(16, 37, 72, 0.22), 0 1px 2px rgba(16, 37, 72, 0.06); }
	.hf-why__cards .hf-card:nth-child(1) { --si: 0; }
	.hf-why__cards .hf-card:nth-child(2) { --si: 1; }
	.hf-why__cards .hf-card:nth-child(3) { --si: 2; }
	.hf-why__cards .hf-card:nth-child(4) { --si: 3; }
	.hf-why__cards .hf-card:nth-child(5) { --si: 4; }
	.hf-why__cards { gap: 24px; padding-bottom: 20px; }
}

/* How we work: each step lights up as it enters the screen, where the browser supports scroll-driven animation. */
@keyframes hf-lit { from { opacity: 0.32; scale: 0.965; } to { opacity: 1; scale: 1; } }
@supports (animation-timeline: view()) {
	.hf-howrow { animation: hf-lit linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
}

/* Review cards. */
.hf-review__who .hf-review__name { display: flex; align-items: center; gap: 6px; }
.hf-verified { flex: none; }
.hf-review__g { margin-left: auto; align-self: flex-start; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; font-weight: 700; font-size: var(--hf-fs-small); color: rgba(255, 255, 255, 0.7); flex: none; }
.hf-review.is-open .hf-review__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hf-review__more { background: none; border: 0; padding: 0; margin-top: auto; text-align: left; color: var(--hf-cyan); font: inherit; font-size: var(--hf-fs-small); font-weight: 600; cursor: pointer; width: fit-content; }
.hf-review__more:hover { color: var(--hf-cyan-light); }
.hf-review__src { display: none; font-size: var(--hf-fs-small); font-weight: 600; width: fit-content; }
.hf-review.is-open .hf-review__src, .hf-review--summary .hf-review__src { display: inline; }
.hf-review--summary { align-items: center; justify-content: center; text-align: center; gap: 10px; background: linear-gradient(160deg, var(--hf-navy-lift), var(--hf-navy-card)); border: 1px solid rgba(44, 181, 211, 0.45); }
.hf-review__badge { font-size: var(--hf-fs-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-cyan); }
.hf-review__big { font-size: var(--hf-fs-stat); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.hf-review--summary .hf-stars { font-size: var(--hf-fs-h3); }
.hf-review__basis { color: rgba(255, 255, 255, 0.8); }

/* Buttons lean toward the cursor a little (set by huddle.js, fine pointers only). */
.wp-block-button.hf-btn-p .wp-block-button__link { translate: var(--mx, 0) var(--my, 0); }

@keyframes hf-clip { from { clip-path: inset(0 0 0 100% round 8px); } to { clip-path: inset(0 round 8px); } }
.hf-tabpanel.is-active .hf-acc-media figure img { animation: hf-clip 0.9s var(--hf-ease) backwards; }

@media (prefers-reduced-motion: reduce) {
	.hf-badge { animation: none; }
	.hf-howrow { animation: none; }
}

/* Success story cards: result line, key facts and the client's own words. */
.hf-story__result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; font-size: var(--hf-fs-lead); font-weight: 700; color: var(--hf-navy); letter-spacing: -0.01em; }
.hf-story__result span:not(.hf-story__arrow) { font-size: var(--hf-fs-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hf-cyan-deep); }
.hf-story__arrow { color: var(--hf-cyan); }
.hf-story__facts { gap: 6px; font-size: var(--hf-fs-small); }
.hf-story__quote { font-weight: 600; color: var(--hf-navy); }
.hf-story .hf-ticks li { font-size: var(--hf-fs-small); }

/* Stories stack the photo above the text so the result line and facts have room. */
.hf-story { grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.hf-story img { aspect-ratio: 16 / 9; }
.hf-story__body { padding-right: 0; }
.hf-story__result { flex-wrap: nowrap; white-space: nowrap; font-size: var(--hf-fs-h3); gap: 8px; align-items: baseline; }
.hf-story__result span:not(.hf-story__arrow) { margin-left: 4px; }
.hf-story__result span:first-child { margin-left: 0; }

/* The HUDDLE Method: the big letter replaces the step number. */
.hf-how-head { display: flex; flex-direction: column; gap: 16px; }
.hf-how-intro { margin: 0; max-width: 34em; color: rgba(255, 255, 255, 0.85); }
.hf-howrow .hf-num { font-size: var(--hf-fs-h2); font-weight: 700; letter-spacing: -0.02em; }

/* Story cards: shorter photo, quote pinned to the bottom so uneven text leaves no empty strip. */
.hf-story { display: flex; flex-direction: column; align-items: stretch; align-content: normal; gap: 20px; }
.hf-story img { aspect-ratio: 2 / 1; flex: none; }
.hf-story__body { flex: 1; }
.hf-story__quote { margin-top: auto; padding-top: 4px; }

/* ---------- Inner pages ---------- */
.hf-pagehero { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 72px; }
.hf-pagehero__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hf-pagehero__inner > * { margin: 0; }
.hf-pagehero__lede { max-width: 34em; color: rgba(255, 255, 255, 0.85); font-size: var(--hf-fs-h3); }
.hf-h1--story { font-size: var(--hf-fs-h2); max-width: 22em; }
.hf-pagehero .wp-block-post-title { color: var(--hf-white); font-size: var(--hf-fs-h2); max-width: 22em; }
.hf-backlink { color: var(--hf-cyan); font-size: var(--hf-fs-small); font-weight: 600; }
.hf-backlink:hover { color: var(--hf-cyan-light); }
.hf-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.hf-storydetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hf-storydetail__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.hf-storydetail__body { display: flex; flex-direction: column; gap: 24px; }
.hf-storydetail__body .hf-story__result { font-size: var(--hf-fs-lead); flex-wrap: wrap; white-space: normal; }
.hf-storydetail__body .hf-story__facts { font-size: var(--hf-fs-body); gap: 12px; }
.hf-storydetail__quote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hf-cyan); font-size: var(--hf-fs-lead); font-weight: 600; line-height: 1.4; color: var(--hf-navy); }
.hf-prose { max-width: 42em; }
.hf-prose > * + * { margin-top: 1.2em; }
.hf-prose h2, .hf-prose h3 { color: var(--hf-navy); }
.hf-pager { margin-top: 40px; display: flex; gap: 16px; justify-content: center; align-items: center; font-weight: 600; }
.hf-pager a { color: var(--hf-navy); }
.hf-pager .page-numbers.current { color: var(--hf-cyan); }
@media (max-width: 760px) {
	.hf-pagehero { padding-block: 48px; }
	.hf-storydetail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Service pages: Buy Your Home, Build Your Portfolio */
.hf-pagehero .hf-stats { width: 100%; max-width: 760px; margin-top: 24px; }
.hf-feats-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hf-feats-head > * { margin: 0; }
.hf-feats-intro { max-width: 34em; font-size: var(--hf-fs-lead); line-height: 1.4; }
.hf-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hf-feat { background: var(--hf-white); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hf-feat > * { margin: 0; }
.hf-feat__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--hf-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.hf-feats-foot { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 760px) {
	.hf-feats { grid-template-columns: minmax(0, 1fr); }
	.hf-feat { padding: 24px; }
	.hf-feats-intro { font-size: var(--hf-fs-h3); }
}

/* Contact and About */
.hf-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.hf-contact__info { display: flex; flex-direction: column; gap: 16px; }
.hf-contact-row { display: flex; align-items: center; gap: 20px; background: var(--hf-white); border-radius: 12px; padding: 20px 24px; }
.hf-contact-row .hf-feat__ico { margin: 0; flex: none; }
.hf-contact-row__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hf-contact-row__t > * { margin: 0; }
.hf-contact-row__l { font-size: var(--hf-fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hf-cyan-deep); }
.hf-contact-row__v { overflow-wrap: anywhere; font-weight: 600; }
.hf-contact-row__v a { color: var(--hf-cyan-deep); }
.hf-formslot { background: var(--hf-white); border-radius: 12px; padding: 40px; border: 2px dashed rgba(16, 37, 72, 0.25); display: flex; flex-direction: column; gap: 12px; }
.hf-formslot > * { margin: 0; }
.hf-formslot .hf-h3 { font-size: var(--hf-fs-h3); }
.hf-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hf-about__photo { aspect-ratio: 4 / 5; border-radius: 12px; background: var(--hf-navy); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.hf-about__photo p { margin: 0; color: rgba(255, 255, 255, 0.7); }
.hf-about__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hf-about__copy > * { margin: 0; }
@media (max-width: 760px) {
	.hf-contact, .hf-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.hf-formslot { padding: 24px; }
	.hf-about__photo { aspect-ratio: 4 / 3; }
}

/* Service page hero: copy left, photo right */
.hf-pagehero--img .hf-pagehero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; row-gap: 20px; align-items: start; }
.hf-pagehero--img .hf-pagehero__inner > * { grid-column: 1; justify-self: start; }
.hf-pagehero--img .hf-pagehero__inner > .hf-pagehero__img { grid-column: 2; grid-row: 1 / span 6; justify-self: stretch; align-self: center; margin: 0; }
.hf-pagehero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.hf-pagehero--img .hf-stats { max-width: none; width: 100%; }
@media (max-width: 760px) {
	.hf-pagehero--img .hf-pagehero__inner { grid-template-columns: minmax(0, 1fr); }
	.hf-pagehero--img .hf-pagehero__inner > .hf-pagehero__img { grid-column: 1; grid-row: auto; order: 9; }
	.hf-pagehero__img img { aspect-ratio: 3 / 2; }
}

/* ---------- Copy update 2026-11-04: new sections (type scale and palette unchanged) ---------- */
.hf-sec--alt { background: var(--hf-white); }
.hf-center { display: flex; justify-content: center; }
.hf-btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.hf-emph { margin: 0; max-width: 30em; font-size: var(--hf-fs-h3); font-weight: 600; line-height: 1.4; color: var(--hf-white); padding-left: 18px; border-left: 3px solid var(--hf-cyan); }

/* Why Huddle: the four negotiation points inside card 04 */
.hf-subpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-top: 12px; padding-top: 20px; border-top: 1px solid rgba(16, 37, 72, 0.14); }
.hf-subpoint { display: flex; flex-direction: column; gap: 6px; }
.hf-subpoint h4 { margin: 0; font-size: var(--hf-fs-body); font-weight: 600; color: var(--hf-navy); line-height: 1.35; }
.hf-subpoint p { margin: 0; }
.hf-card > p { max-width: none; }
@media (max-width: 760px) { .hf-subpoints { grid-template-columns: minmax(0, 1fr); } }

/* Reviews heading */
.hf-reviews__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.hf-reviews__head > * { margin: 0; }
.hf-reviews__head p:not(.hf-linkbtn) { max-width: 34em; color: rgba(255, 255, 255, 0.85); }
.hf-linkbtn a { display: inline-flex; align-items: center; border: 2px solid var(--hf-cyan); color: var(--hf-white); border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: var(--hf-fs-small); transition: background 0.2s ease; }
.hf-linkbtn a:hover { background: rgba(44, 181, 211, 0.15); }

/* Section heads and card grids */
.hf-sechead { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 760px; }
.hf-sechead > * { margin: 0; }
.hf-sechead--c { align-items: center; text-align: center; margin-inline: auto; }
.hf-sechead__intro { font-size: var(--hf-fs-h3); line-height: 1.5; max-width: 40em; }
.hf-sec--navy .hf-sechead__intro { color: rgba(255, 255, 255, 0.85); }
.hf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hf-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hf-chal { background: var(--hf-white); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hf-sec--alt .hf-chal { background: var(--hf-off-white); }
.hf-chal > * { margin: 0; }
.hf-chal h3 { font-size: var(--hf-fs-h3); line-height: 1.35; font-weight: 600; letter-spacing: 0.01em; }
.hf-chal a { color: var(--hf-cyan-deep); text-decoration: underline; text-underline-offset: 3px; }
.hf-closing { margin: 0; text-align: center; max-width: 34em; margin-inline: auto; font-size: var(--hf-fs-lead); font-weight: 600; line-height: 1.4; color: var(--hf-navy); }
@media (max-width: 1000px) { .hf-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hf-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hf-grid3, .hf-grid4 { grid-template-columns: minmax(0, 1fr); } .hf-chal { padding: 24px; } .hf-closing { font-size: var(--hf-fs-h3); } }

/* Numbered step cards (Buy Your Home, How It Works) */
.hf-stepcard { background: var(--hf-off-white); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.hf-stepcard > * { margin: 0; }
.hf-stepcard .hf-num { font-size: var(--hf-fs-h2); font-weight: 700; line-height: 1; color: var(--hf-cyan-deep); letter-spacing: -0.02em; }
.hf-stepcard h3 { font-size: var(--hf-fs-h3); font-weight: 600; }
@media (max-width: 760px) { .hf-stepcard { padding: 24px; } }

/* Service comparison: table on desktop, two stacked cards on phones */
.hf-compare { overflow-x: auto; }
.hf-compare__t { width: 100%; border-collapse: collapse; background: var(--hf-white); }
.hf-compare__t th, .hf-compare__t td { padding: 18px 24px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(16, 37, 72, 0.12); font-size: var(--hf-fs-body); line-height: 1.45; }
.hf-compare__t thead th { background: var(--hf-navy); color: var(--hf-white); font-weight: 600; border-bottom: 0; }
.hf-compare__t tbody th { font-weight: 500; width: 46%; color: var(--hf-navy); }
.hf-compare__t td { width: 27%; }
.hf-yes { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--hf-navy); }
.hf-no { color: rgba(16, 37, 72, 0.7); }
.hf-compare__t tbody tr:last-child th, .hf-compare__t tbody tr:last-child td { font-weight: 600; color: var(--hf-navy); background: var(--hf-off-white); border-bottom: 0; }
.hf-compare-cards { display: none; flex-direction: column; gap: 16px; }
.hf-compare-card { background: var(--hf-white); border-radius: 12px; padding: 24px; }
.hf-compare-card h3 { margin: 0 0 8px; font-size: var(--hf-fs-lead); font-weight: 600; color: var(--hf-navy); }
.hf-compare-card ul { list-style: none; margin: 0; padding: 0; }
.hf-compare-card li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(16, 37, 72, 0.12); }
.hf-compare-card li:last-child { border-bottom: 0; }
.hf-compare-card__r { color: var(--hf-navy); font-weight: 500; }
@media (max-width: 760px) { .hf-compare { display: none; } .hf-compare-cards { display: flex; } }

/* Investment framework */
.hf-frame { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.hf-framecard { background: var(--hf-navy-card); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--hf-cyan); }
.hf-framecard > * { margin: 0; }
.hf-framecard .hf-num { font-size: var(--hf-fs-h2); font-weight: 700; line-height: 1; color: var(--hf-cyan); letter-spacing: -0.02em; }
.hf-framecard h3 { font-size: var(--hf-fs-lead); font-weight: 600; color: var(--hf-white); line-height: 1.25; }
.hf-framecard > p:not(.hf-num) { color: rgba(255, 255, 255, 0.88); }
.hf-framecard .hf-ticks { margin-top: 4px; }
.hf-framecard .hf-ticks li { color: rgba(255, 255, 255, 0.92); }
@media (max-width: 1100px) { .hf-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hf-frame { grid-template-columns: minmax(0, 1fr); } }

/* Six steps timeline + suburb filter */
.hf-process { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.hf-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 32px; }
.hf-timeline::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: rgba(44, 181, 211, 0.4); }
.hf-timeline li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; }
.hf-timeline__n { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--hf-navy); color: var(--hf-cyan); display: grid; place-items: center; font-weight: 700; font-size: var(--hf-fs-body); }
.hf-timeline h3 { margin: 0 0 6px; font-size: var(--hf-fs-lead); font-weight: 600; color: var(--hf-navy); line-height: 1.25; }
.hf-timeline p { margin: 0; }
.hf-filter { background: var(--hf-navy); color: var(--hf-white); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 104px; }
.hf-filter > * { margin: 0; }
.hf-filter h3 { font-size: var(--hf-fs-lead); font-weight: 600; color: var(--hf-white); }
.hf-filter__sub { color: rgba(255, 255, 255, 0.85); }
.hf-filter__list { list-style: none; margin: 8px 0 0; padding: 0; }
.hf-filter__list li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--hf-fs-body); line-height: 1.35; }
.hf-filter__list li span { color: var(--hf-cyan); font-weight: 700; flex: none; min-width: 2ch; }
@media (max-width: 900px) { .hf-process { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hf-filter { position: static; padding: 24px; } }

/* Text and image sections */
.hf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hf-split__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hf-split__copy > * { margin: 0; }
.hf-split__img { margin: 0; }
.hf-split__img figure { margin: 0; }
.hf-split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.hf-split--rev .hf-split__copy { order: 2; }
@media (max-width: 760px) { .hf-split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hf-split--rev .hf-split__copy { order: 0; } }

/* FAQ accordion */
.hf-faq { display: flex; flex-direction: column; border-top: 1px solid rgba(16, 37, 72, 0.18); }
.hf-faq__item { border-bottom: 1px solid rgba(16, 37, 72, 0.18); }
.hf-faq__item summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-size: var(--hf-fs-h3); font-weight: 600; color: var(--hf-navy); line-height: 1.4; }
.hf-faq__item summary::-webkit-details-marker { display: none; }
.hf-faq__item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-size: var(--hf-fs-lead); font-weight: 400; color: var(--hf-cyan-deep); }
.hf-faq__item[open] summary::after { content: "\2212"; }
.hf-faq__item p { margin: 0 0 22px; max-width: 46em; }

/* About */
.hf-about--hero { align-items: start; }
.hf-about--hero .hf-about__copy { gap: 18px; }
.hf-about--hero .hf-h1 { font-size: var(--hf-fs-h2); line-height: 1.15; max-width: none; }
.hf-about__p { color: rgba(255, 255, 255, 0.9); max-width: 36em; }
.hf-about--hero .hf-about__photo { position: sticky; top: 104px; }
.hf-rep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.hf-rep > h2 { position: sticky; top: 104px; }
.hf-rep__body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hf-rep__body > * { margin: 0; }
.hf-rep__line { font-size: var(--hf-fs-lead); font-weight: 600; line-height: 1.35; color: var(--hf-navy); }
@media (max-width: 760px) { .hf-rep { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hf-rep > h2, .hf-about--hero .hf-about__photo { position: static; } }
