/*
Theme Name: Homebuild Homes Child
Theme URI: https://homebuildhomes.co.nz/
Description: Child theme of Hello Elementor for Homebuild Homes. Page design lives in Elementor (Atomic classes and variables); this file styles the header/menu, plan finder and property pages.
Author: Caddie Digital
Author URI: https://caddiedigital.co.nz/
Template: hello-elementor
Version: 1.2.0
Text Domain: hello-elementor-child
*/

:root {
	--hb-c-green: #A1B85F;
	--hb-c-green-dark: #566F1F;
	--hb-c-green-soft: #EEF2E0;
	--hb-c-charcoal: #1D2124;
	--hb-c-ink: #2F3439;
	--hb-c-muted: #626A70;
	--hb-c-cream: #F6F4EE;
	--hb-c-sand: #E7E2D6;
	--hb-c-line: #DCD8CD;
	--hb-f-head: "Outfit", system-ui, sans-serif;
	--hb-f-body: "Inter", system-ui, sans-serif;
	--hb-ease: cubic-bezier(.2, .7, .2, 1);
	--hb-header-h: 84px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	font-family: var(--hb-f-body);
	color: var(--hb-c-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--hb-f-head); color: var(--hb-c-charcoal); }
a { color: var(--hb-c-green-dark); }
img { max-width: 100%; height: auto; }
::selection { background: var(--hb-c-green); color: var(--hb-c-charcoal); }
:focus-visible { outline: 2px solid var(--hb-c-green-dark); outline-offset: 3px; }
.hb-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: var(--hb-c-charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hb-skip:focus { left: 8px; }
.site-main.post-404, .page-content { max-width: 1440px; }

/* ---------- Sticky header ---------- */
.hb-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	top: var(--wp-admin--admin-bar--height, 0px);
}
.hb-site-header #hb-header { transition: padding .35s var(--hb-ease), box-shadow .35s var(--hb-ease), border-color .35s; }
.hb-site-header #hb-logo, .hb-site-header #hb-logo img { transition: width .35s var(--hb-ease), max-width .35s var(--hb-ease); }
body.hb-scrolled .hb-site-header #hb-header {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	box-shadow: 0 10px 30px rgba(29, 33, 36, .08);
	border-bottom-color: var(--hb-c-line) !important;
}
body.hb-scrolled .hb-site-header #hb-logo,
body.hb-scrolled .hb-site-header #hb-logo img { width: 150px !important; }
@media (max-width: 767px) {
	body.hb-scrolled .hb-site-header #hb-logo,
	body.hb-scrolled .hb-site-header #hb-logo img { width: 124px !important; }
}

/* ---------- Main menu ---------- */
.hb-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hb-nav__list > li { position: relative; }
.hb-nav__list a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px;
	font-family: var(--hb-f-head); font-size: 16px; font-weight: 500;
	color: var(--hb-c-charcoal); text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.hb-nav__list a:hover,
.hb-nav__list .current-menu-item > a,
.hb-nav__list .current-menu-ancestor > a,
.hb-nav__list .current_page_parent > a { background: var(--hb-c-cream); color: var(--hb-c-green-dark); }
.hb-nav__list .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); opacity: .6;
}
.hb-nav__list .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
	list-style: none; margin: 0; padding: 10px;
	background: #fff; border: 1px solid var(--hb-c-line); border-radius: 16px;
	box-shadow: 0 24px 50px rgba(29, 33, 36, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.hb-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hb-nav__list li:hover > .sub-menu,
.hb-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hb-nav__list .sub-menu a { display: flex; width: 100%; border-radius: 10px; font-size: 15px; padding: 10px 14px; }
.hb-burger { display: none; }
@media (max-width: 1100px) {
	.hb-nav { display: none; }
	.hb-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 46px; height: 46px; padding: 0 12px; border-radius: 999px;
		border: 1px solid var(--hb-c-line); background: #fff; cursor: pointer;
	}
	.hb-burger span { display: block; height: 2px; width: 100%; background: var(--hb-c-charcoal); border-radius: 2px; }
	.hb-burger:hover { background: var(--hb-c-cream); }
}
.hb-mobile { position: fixed; inset: 0; z-index: 10001; visibility: hidden; pointer-events: none; }
.hb-mobile.is-open { visibility: visible; pointer-events: auto; }
.hb-mobile__backdrop { position: absolute; inset: 0; background: rgba(29, 33, 36, .45); opacity: 0; transition: opacity .3s; }
.hb-mobile.is-open .hb-mobile__backdrop { opacity: 1; }
.hb-mobile__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
	background: #fff; padding: 84px 28px 32px; overflow-y: auto;
	display: flex; flex-direction: column; gap: 24px;
	transform: translateX(100%); transition: transform .4s var(--hb-ease);
}
.hb-mobile.is-open .hb-mobile__panel { transform: none; }
.hb-mobile__close {
	position: absolute; top: 18px; right: 20px; width: 46px; height: 46px;
	border-radius: 999px; border: 1px solid var(--hb-c-line); background: #fff;
	font-size: 28px; line-height: 1; color: var(--hb-c-charcoal); cursor: pointer;
}
.hb-mobile__list, .hb-mobile__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.hb-mobile__list > li { border-bottom: 1px solid var(--hb-c-line); }
.hb-mobile__list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 4px; font-family: var(--hb-f-head); font-size: 20px; font-weight: 500;
	color: var(--hb-c-charcoal); text-decoration: none !important;
}
.hb-mobile__list .menu-item-has-children > a::after { content: "+"; font-size: 24px; color: var(--hb-c-green-dark); }
.hb-mobile__list .menu-item-has-children.is-expanded > a::after { content: "\2212"; }
.hb-mobile__list .sub-menu { display: none; padding: 0 0 12px 12px; }
.hb-mobile__list .is-expanded > .sub-menu { display: block; }
.hb-mobile__list .sub-menu a { font-size: 17px; padding: 10px 4px; color: var(--hb-c-muted); }
.hb-mobile__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.hb-mobile__cta, .hb-mobile__phone {
	display: flex; justify-content: center; padding: 16px 24px; border-radius: 999px;
	font-family: var(--hb-f-head); font-weight: 600; text-decoration: none !important;
}
.hb-mobile__cta { background: var(--hb-c-green-dark); color: #fff !important; }
.hb-mobile__phone { border: 1.5px solid var(--hb-c-charcoal); color: var(--hb-c-charcoal) !important; }
body.hb-menu-open { overflow: hidden; }

/* ---------- Footer helpers ---------- */
.hb-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-footer-menu a { color: #D5D8D2; text-decoration: none; font-size: 16px; transition: color .2s; }
.hb-footer-menu a:hover { color: #fff; }

/* ---------- Shared buttons for coded templates ---------- */
.hb-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 30px; border-radius: 999px; border: 1.5px solid var(--hb-c-green-dark);
	background: var(--hb-c-green-dark); color: #fff !important;
	font-family: var(--hb-f-head); font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none !important; transition: all .25s;
}
.hb-button:hover { background: var(--hb-c-charcoal); border-color: var(--hb-c-charcoal); }
.hb-button--ghost { background: transparent; color: var(--hb-c-charcoal) !important; border-color: var(--hb-c-charcoal); }
.hb-button--ghost:hover { background: var(--hb-c-charcoal); color: #fff !important; }
.hb-button--light { background: #fff; color: var(--hb-c-charcoal) !important; border-color: #fff; }
.hb-button--light:hover { background: var(--hb-c-green); border-color: var(--hb-c-green); }
.hb-textlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hb-f-head); font-weight: 600; color: var(--hb-c-green-dark); text-decoration: none; }
.hb-textlink .hb-ico { width: 18px; height: 18px; transition: transform .25s; }
.hb-textlink:hover .hb-ico { transform: translateX(4px); }
.hb-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Plan finder ---------- */
.hb-finder { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hb-finder__bar {
	display: grid; grid-template-columns: 1.4fr repeat(5, 1fr) auto; gap: 12px; align-items: end;
	padding: 20px; background: #fff; border: 1px solid var(--hb-c-line); border-radius: 20px;
	box-shadow: 0 16px 40px rgba(29, 33, 36, .06);
}
.hb-finder[data-type="house-land"] .hb-finder__bar { grid-template-columns: 1.4fr repeat(4, 1fr) auto; }
.hb-filter { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.hb-filter__label { font-family: var(--hb-f-head); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hb-c-muted); }
.hb-filter select, .hb-filter input, .hb-finder__sort select {
	width: 100%; height: 48px; padding: 0 40px 0 14px; border-radius: 12px;
	border: 1px solid var(--hb-c-line); background-color: var(--hb-c-cream);
	font-family: var(--hb-f-body); font-size: 15px; color: var(--hb-c-charcoal);
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231D2124' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
	transition: border-color .2s, background-color .2s;
}
.hb-filter input { background-image: none; padding-right: 14px; }
.hb-filter select:hover, .hb-filter input:hover { border-color: var(--hb-c-green); }
.hb-filter select:focus, .hb-filter input:focus { outline: none; border-color: var(--hb-c-green-dark); background-color: #fff; box-shadow: 0 0 0 3px var(--hb-c-green-soft); }
.hb-finder__reset {
	height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--hb-c-charcoal);
	background: transparent; color: var(--hb-c-charcoal); font-family: var(--hb-f-head); font-weight: 600; font-size: 15px; cursor: pointer;
	transition: all .2s;
}
.hb-finder__reset:hover { background: var(--hb-c-charcoal); color: #fff; }
.hb-finder__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hb-finder__count { margin: 0; font-size: 16px; color: var(--hb-c-muted); }
.hb-finder__count strong { color: var(--hb-c-charcoal); font-family: var(--hb-f-head); font-size: 20px; }
.hb-finder__sort { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--hb-c-muted); }
.hb-finder__sort select { width: 220px; height: 44px; background-color: #fff; }
.hb-finder__none { padding: 64px 24px; text-align: center; border: 1px dashed var(--hb-c-line); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hb-finder__none[hidden], .hb-plan-grid[hidden], .hb-plan[hidden] { display: none !important; }
@media (max-width: 1200px) {
	.hb-finder__bar, .hb-finder[data-type="house-land"] .hb-finder__bar { grid-template-columns: repeat(3, 1fr); }
	.hb-filter--search { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.hb-finder__bar, .hb-finder[data-type="house-land"] .hb-finder__bar { grid-template-columns: 1fr 1fr; padding: 16px; }
	.hb-finder__reset { grid-column: 1 / -1; }
	.hb-finder__sort select { width: 180px; }
}

/* ---------- Plan cards ---------- */
.hb-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: 100%; }
@media (max-width: 1100px) { .hb-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .hb-plan-grid { grid-template-columns: 1fr; gap: 20px; } }
.hb-plan {
	display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
	border: 1px solid var(--hb-c-line); transition: transform .35s var(--hb-ease), box-shadow .35s var(--hb-ease);
}
.hb-plan:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(29, 33, 36, .1); }
.hb-plan__media { position: relative; display: grid; grid-template-columns: 1fr; aspect-ratio: 16 / 10; background: var(--hb-c-cream); text-decoration: none; overflow: hidden; }
.hb-plan.has-floor .hb-plan__media { grid-template-columns: 1.35fr 1fr; }
.hb-plan__photo { display: block; overflow: hidden; height: 100%; }
.hb-plan__img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--hb-ease); }
.hb-plan:hover .hb-plan__img { transform: scale(1.05); }
.hb-plan__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--hb-c-cream), var(--hb-c-sand)); }
.hb-plan__floor { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; border-left: 1px solid var(--hb-c-line); }
.hb-plan__floorimg { width: 100%; height: 100% !important; object-fit: contain; }
.hb-plan__floor em {
	position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px;
	background: var(--hb-c-cream); font-style: normal; font-family: var(--hb-f-head); font-size: 11px; font-weight: 600;
	letter-spacing: .6px; text-transform: uppercase; color: var(--hb-c-green-dark);
}
.hb-plan__status {
	position: absolute; top: 14px; left: 14px; padding: 7px 13px; border-radius: 999px;
	background: var(--hb-c-charcoal); color: #fff; font-family: var(--hb-f-head); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
}
.hb-plan__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; flex: 1; }
.hb-plan__cat { margin: 0; font-family: var(--hb-f-head); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hb-c-green-dark); }
.hb-plan__title { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px; }
.hb-plan__title a { color: var(--hb-c-charcoal); text-decoration: none; }
.hb-plan__title a::after { content: ""; position: absolute; inset: 0; }
.hb-plan { position: relative; }
.hb-plan__title a:focus-visible { outline: none; }
.hb-plan:focus-within { box-shadow: 0 0 0 3px var(--hb-c-green); }
.hb-plan__sub { margin: 0; font-size: 15px; color: var(--hb-c-muted); line-height: 1.5; }
.hb-plan__specs, .hb-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 4px 0 0; padding: 0; }
.hb-plan__specs li, .hb-specs li { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--hb-c-ink); }
.hb-plan__specs .hb-ico, .hb-specs .hb-ico { color: var(--hb-c-green-dark); }
.hb-plan__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hb-c-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hb-plan__price { font-family: var(--hb-f-head); font-size: 19px; font-weight: 600; color: var(--hb-c-charcoal); }
.hb-plan__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--hb-f-head); font-size: 15px; font-weight: 600; color: var(--hb-c-green-dark); }
.hb-plan__more .hb-ico { transition: transform .25s; }
.hb-plan:hover .hb-plan__more .hb-ico { transform: translateX(4px); }

/* ---------- Single property ---------- */
.hb-wrap { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 1024px) { .hb-wrap { padding: 0 32px; } }
@media (max-width: 767px) { .hb-wrap { padding: 0 20px; } }
.hb-single__top { padding: 32px 0 72px; background: var(--hb-c-cream); }
.hb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--hb-c-muted); margin-bottom: 28px; }
.hb-crumbs a { color: var(--hb-c-muted); text-decoration: none; }
.hb-crumbs a:hover { color: var(--hb-c-green-dark); }
.hb-crumbs [aria-current] { color: var(--hb-c-charcoal); }
.hb-single__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; flex-wrap: wrap; }
.hb-single__titles { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.hb-single__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--hb-f-head); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--hb-c-green-dark); }
.hb-single__status { padding: 5px 11px; border-radius: 999px; background: var(--hb-c-charcoal); color: #fff; font-size: 12px; letter-spacing: .6px; }
.hb-single__title { margin: 0; font-size: clamp(38px, 5vw, 66px); font-weight: 600; line-height: 1.05; letter-spacing: -1.4px; }
.hb-single__sub { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; color: var(--hb-c-muted); }
.hb-specs--lg { gap: 10px; }
.hb-specs--lg li { padding: 10px 16px; background: #fff; border-radius: 999px; border: 1px solid var(--hb-c-line); font-size: 15px; font-weight: 500; }
.hb-single__cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 280px; }
.hb-single__price { display: flex; flex-direction: column; margin: 0 0 4px; font-family: var(--hb-f-head); font-size: 36px; font-weight: 600; color: var(--hb-c-charcoal); line-height: 1.1; }
.hb-single__price span { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hb-c-muted); margin-bottom: 4px; }
.hb-single__media { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hb-single__media.has-floor { grid-template-columns: 1.55fr 1fr; }
.hb-single__photo, .hb-single__floor { position: relative; display: block; border-radius: 24px; overflow: hidden; background: #fff; aspect-ratio: 16 / 11; }
.hb-single__media.has-floor .hb-single__photo, .hb-single__media.has-floor .hb-single__floor { aspect-ratio: auto; height: clamp(320px, 42vw, 620px); }
.hb-single__img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s var(--hb-ease); }
.hb-single__photo:hover .hb-single__img { transform: scale(1.03); }
.hb-single__floor { border: 1px solid var(--hb-c-line); padding: 24px; }
.hb-single__floorimg { width: 100%; height: 100% !important; object-fit: contain; }
.hb-single__floorlbl {
	position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px; background: var(--hb-c-charcoal); color: #fff;
	font-family: var(--hb-f-head); font-size: 13px; font-weight: 600;
}
@media (max-width: 900px) {
	.hb-single__media.has-floor { grid-template-columns: 1fr; }
	.hb-single__media.has-floor .hb-single__photo, .hb-single__media.has-floor .hb-single__floor { height: auto; aspect-ratio: 4 / 3; }
	.hb-single__cta { min-width: 0; width: 100%; }
}
.hb-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.hb-thumbs__item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.hb-thumbs__item img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s var(--hb-ease), opacity .3s; }
.hb-thumbs__item:hover img { transform: scale(1.06); opacity: .9; }
@media (max-width: 900px) { .hb-thumbs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .hb-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.hb-single__body { padding: 96px 0; }
.hb-single__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 1024px) { .hb-single__grid { grid-template-columns: 1fr; gap: 48px; } .hb-single__body { padding: 64px 0; } }
.hb-single__content { display: flex; flex-direction: column; gap: 18px; }
.hb-single__h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.8px; }
.hb-prose { font-size: 17px; line-height: 1.75; color: var(--hb-c-muted); }
.hb-prose p { margin: 0 0 1.1em; }
.hb-prose ul, .hb-prose ol { margin: 1.2em 0; padding-left: 1.3em; }
.hb-prose li { margin-bottom: .45em; }
.hb-prose h2, .hb-prose h3 { margin: 1.4em 0 .5em; color: var(--hb-c-charcoal); }
.hb-single__aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--hb-header-h) + 24px); }
.hb-facts { padding: 32px; border-radius: 24px; background: var(--hb-c-cream); }
.hb-facts h3, .hb-help h3 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.hb-facts dl { margin: 0; }
.hb-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hb-c-line); }
.hb-facts dl > div:last-child { border-bottom: 0; }
.hb-facts dt { color: var(--hb-c-muted); font-size: 15px; }
.hb-facts dd { margin: 0; font-weight: 600; color: var(--hb-c-charcoal); text-align: right; font-size: 15px; }
.hb-help { padding: 32px; border-radius: 24px; background: var(--hb-c-charcoal); color: #C9CDC6; }
.hb-help h3 { color: #fff; }
.hb-help p { margin: 0 0 20px; line-height: 1.65; }
.hb-single__related { padding: 96px 0; background: var(--hb-c-cream); }
.hb-related__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hb-related__head > div { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 767px) { .hb-single__related { padding: 64px 0; } .hb-single__top { padding-bottom: 48px; } }

/* ---------- Lightbox ---------- */
.hb-lb { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; background: rgba(15, 18, 20, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: 48px 72px; }
.hb-lb.is-open { opacity: 1; visibility: visible; }
.hb-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.hb-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 999px; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.hb-lb button:hover { background: rgba(255, 255, 255, .25); }
.hb-lb__close { top: 20px; right: 20px; }
.hb-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.hb-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.hb-lb.is-single .hb-lb__prev, .hb-lb.is-single .hb-lb__next { display: none; }
.hb-lb__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #C9CDC6; font-size: 14px; margin: 0; }
body.hb-lb-open { overflow: hidden; }
@media (max-width: 640px) { .hb-lb { padding: 72px 12px; } }

/* ---------- Gravity Forms ---------- */
.gform_wrapper.gravity-theme .gform_fields { grid-row-gap: 18px !important; }
.gform_wrapper.gravity-theme .gfield_label { font-family: var(--hb-f-head) !important; font-size: 14px !important; font-weight: 600 !important; color: var(--hb-c-charcoal) !important; margin-bottom: 8px !important; }
.gform_wrapper.gravity-theme input[type=text], .gform_wrapper.gravity-theme input[type=email], .gform_wrapper.gravity-theme input[type=tel], .gform_wrapper.gravity-theme select, .gform_wrapper.gravity-theme textarea {
	width: 100%; padding: 14px 16px !important; border-radius: 12px !important; border: 1px solid var(--hb-c-line) !important;
	background: var(--hb-c-cream) !important; font-family: var(--hb-f-body); font-size: 16px !important; color: var(--hb-c-charcoal);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.gform_wrapper.gravity-theme select { height: 52px; }
.gform_wrapper.gravity-theme textarea { min-height: 140px; height: 140px; }
.gform_wrapper.gravity-theme input:focus, .gform_wrapper.gravity-theme select:focus, .gform_wrapper.gravity-theme textarea:focus { outline: none; border-color: var(--hb-c-green-dark) !important; background: #fff !important; box-shadow: 0 0 0 3px var(--hb-c-green-soft); }
.gform_wrapper.gravity-theme .gform_footer { margin-top: 8px !important; padding: 0 !important; }
.gform_wrapper.gravity-theme .gform_button {
	padding: 16px 34px !important; border-radius: 999px !important; border: 0 !important;
	background: var(--hb-c-green-dark) !important; color: #fff !important;
	font-family: var(--hb-f-head) !important; font-size: 16px !important; font-weight: 600 !important; cursor: pointer; transition: background .25s;
}
.gform_wrapper.gravity-theme .gform_button:hover { background: var(--hb-c-charcoal) !important; }
.gform_confirmation_message { padding: 24px; border-radius: 16px; background: var(--hb-c-green-soft); color: var(--hb-c-charcoal); font-size: 17px; }
@media (min-width: 641px) {
	.gform_wrapper.gravity-theme .gfield.gf_left_half, .gform_wrapper.gravity-theme .gfield.gf_right_half { grid-column: span 6 !important; }
}

/* ---------- Atomic element helpers ---------- */
.elementor-widget-shortcode, .e-con .elementor-shortcode { width: 100%; }
#hb-header .elementor-widget-shortcode { width: auto; }
#hb-header .elementor-shortcode { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { #hb-header .elementor-widget-shortcode { order: 3; } }
.hb-empty { padding: 48px; text-align: center; color: var(--hb-c-muted); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Square brand style (no rounded corners) ---------- */
.hb-nav__list a, .hb-nav__list .sub-menu, .hb-nav__list .sub-menu a,
.hb-burger, .hb-mobile__close, .hb-mobile__cta, .hb-mobile__phone,
.hb-button, .hb-finder__bar, .hb-filter select, .hb-filter input, .hb-finder__sort select,
.hb-finder__reset, .hb-finder__none, .hb-plan, .hb-plan__floor em, .hb-plan__status,
.hb-single__photo, .hb-single__floor, .hb-single__floorlbl, .hb-single__status, .hb-thumbs__item,
.hb-specs--lg li, .hb-facts, .hb-help, .hb-lb__img, .hb-lb button, .hb-skip,
.gform_wrapper.gravity-theme input[type=text], .gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=tel], .gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea, .gform_wrapper.gravity-theme .gform_button,
.gform_confirmation_message { border-radius: 0 !important; }

/* Primary buttons use the lighter logo green */
.hb-button, .hb-mobile__cta, .gform_wrapper.gravity-theme .gform_button {
	background: var(--hb-c-green) !important; border-color: var(--hb-c-green) !important; color: var(--hb-c-charcoal) !important;
}
.hb-button:hover, .hb-mobile__cta:hover, .gform_wrapper.gravity-theme .gform_button:hover {
	background: var(--hb-c-charcoal) !important; border-color: var(--hb-c-charcoal) !important; color: #fff !important;
}
.hb-button--ghost { background: transparent !important; border-color: var(--hb-c-charcoal) !important; }
.hb-button--light { background: #fff !important; border-color: #fff !important; }
.hb-button--light:hover { background: var(--hb-c-green) !important; border-color: var(--hb-c-green) !important; color: var(--hb-c-charcoal) !important; }

/* Plan cards: floor plan stacked under the photo */
.hb-plan__media, .hb-plan.has-floor .hb-plan__media { grid-template-columns: 1fr; aspect-ratio: auto; }
.hb-plan__photo { aspect-ratio: 16 / 10; }
.hb-plan__floor { aspect-ratio: 16 / 9; padding: 14px 16px 34px; border-left: 0; border-top: 1px solid var(--hb-c-line); }

/* ---------------------------------------------------------------
 * Home hero slider (images fade; cursor becomes a prev/next arrow)
 * Add or remove images with the hb-hero-img class in Elementor.
 * ------------------------------------------------------------- */
.hb-hero--slider .hb-hero-img {
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.2s ease, transform 7s ease-out;
}
.hb-hero--slider .hb-hero-img.is-active { opacity: 1; transform: scale(1); }
.hb-hero--slider { -webkit-user-select: none; user-select: none; }
.hb-hero-cursor {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	background: rgba(29, 33, 36, 0.25);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	will-change: transform;
}
.hb-hero-cursor svg { transition: transform 0.25s ease; }
.hb-hero-cursor.is-prev svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
	.hb-hero--slider.is-cursor,
	.hb-hero--slider.is-cursor * { cursor: none; }
	.hb-hero--slider.is-cursor .hb-hero-cursor { opacity: 1; }
}
.hb-hero .hb-hero-dots {
	position: absolute;
	right: 48px;
	bottom: 36px;
	z-index: 3;
	display: flex;
	gap: 8px;
}
.hb-hero .hb-hero-dot,
.hb-hero .hb-hero-dot:hover,
.hb-hero .hb-hero-dot:focus {
	width: 28px;
	height: 23px;
	padding: 10px 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: rgba(255, 255, 255, 0.45);
	background-clip: content-box;
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}
.hb-hero .hb-hero-dot.is-active { width: 44px; background-color: var(--hb-c-green); }
.hb-hero .hb-hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
	.hb-hero .hb-hero-dots { right: 24px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-hero--slider .hb-hero-img { transform: none; transition: opacity 0.4s ease; }
}

/* Whole-card links: lift the button style when the card is hovered */
a.hb-card { text-decoration: none; color: inherit; }
a.hb-card:hover .hb-btn--ghost,
a.hb-card:focus-visible .hb-btn--ghost {
	color: #fff;
	background-color: var(--hb-c-charcoal);
}

/* ---------------------------------------------------------------
 * Subtle fade in and up on scroll (added by hb-site.js, removed once shown)
 * Add the hb-reveal-item class to any extra element that should animate.
 * ------------------------------------------------------------- */
body .hb-reveal.hb-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body .hb-reveal.hb-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------
 * Single plan: floor plan only layout (no photos)
 * Floor plan sits left at 50%, about / key details / CTA on the right.
 * ------------------------------------------------------------- */
.hb-single__grid.hb-single__grid--floor {
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}
.hb-single__plan {
	position: sticky;
	top: 110px;
}
.hb-single__planlink {
	position: relative;
	display: block;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	cursor: zoom-in;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hb-single__planlink:hover {
	border-color: var(--hb-c-green, #8cb63c);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.hb-single__planimg {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}
.hb-single__planzoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 12px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--hb-c-charcoal, #2b2b2b);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.hb-single__planlink:hover .hb-single__planzoom,
.hb-single__planlink:focus-visible .hb-single__planzoom {
	opacity: 1;
	transform: none;
}
.hb-single__info {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}
.hb-single__info .hb-single__aside {
	position: static;
	display: grid;
	gap: 24px;
}
@media (max-width: 900px) {
	.hb-single__grid.hb-single__grid--floor {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hb-single__plan {
		position: static;
	}
	.hb-single__planlink {
		padding: 12px;
	}
}
