/* ==========================================================================
   HomeFix Experts — component styles (tokens live in theme.json)
   ========================================================================== */

:root {
	--hf-navy-dark: var(--wp--preset--color--navy-dark);
	--hf-navy: var(--wp--preset--color--navy);
	--hf-orange: var(--wp--preset--color--orange);
	--hf-off-white: var(--wp--preset--color--off-white);
	--hf-muted: var(--wp--preset--color--muted);
	--hf-border: var(--wp--preset--color--border);
	--hf-tint: #eef2f8;
	--hf-tint-orange: #fff0ea;
	--hf-radius-sm: 12px;
	--hf-radius: 18px;
	--hf-radius-lg: 26px;
	--hf-shadow-soft: 0 4px 14px rgba(4, 5, 56, 0.05);
	--hf-shadow: 0 14px 34px rgba(4, 5, 56, 0.09);
	--hf-heading: var(--wp--preset--font-family--montserrat);
	--hf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Framed page (front end only) ---------- */

body.hf-site {
	background: var(--hf-navy-dark);
}

.hf-site .wp-site-blocks {
	width: calc(100% - 2 * clamp(0px, 2.6vw, 44px));
	margin: clamp(0px, 2.6vw, 44px) auto 0;
}

.hf-site .wp-site-blocks > *,
.hf-main > *,
.hf-page-content > * {
	margin-block: 0;
}

/* White card: header on top, page content below, rounded on all corners. The footer sits outside it. */
.hf-site .wp-site-blocks > :first-child {
	background: #fff;
	border-radius: 30px 30px 0 0;
}

.hf-site .wp-site-blocks > .hf-main {
	margin-bottom: clamp(0px, 2.6vw, 44px);
	overflow: clip;
	background: #fff;
	border-radius: 0 0 30px 30px;
}

/* Wide sections follow the frame width on large screens (pages store 1320px in their layout). */
.hf-site :is(.hf-header, .hf-hero, .hf-section, .hf-page-hero, .hf-footer):not(.hf-prose, .hf-page-hero--center).is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1680px;
}

@media (min-width: 1600px) {
	.hf-hero__img img {
		aspect-ratio: 1.3;
	}
}

@media (max-width: 900px) {
	.hf-site .wp-site-blocks {
		width: 100%;
		margin: 0;
	}

	.hf-site .wp-site-blocks > :first-child,
	.hf-site .wp-site-blocks > .hf-main {
		margin-bottom: 0;
		border-radius: 0;
	}
}

/* ---------- Shared bits ---------- */

.hf-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hf-navy);
}

.hf-eyebrow--slashed::before,
.hf-eyebrow--slashed::after {
	color: var(--hf-orange);
}

.hf-eyebrow--slashed::before {
	content: "/ ";
}

.hf-eyebrow--slashed::after {
	content: " /";
}

.hf-section {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.hf-section .hf-section-head {
	gap: 1.5rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hf-section-head h2 {
	margin: 0;
}

.hf-section .hf-section-head--center {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.hf-section-head__lead {
	margin: 1rem 0 0;
	font-size: 1.0625rem;
}

.wp-block-image.hf-icon-circle {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	border-radius: 50%;
	background: var(--hf-tint);
}

.wp-block-image.hf-icon-circle img {
	width: 20px;
	height: 20px;
}

.wp-block-image.hf-icon-circle--orange {
	background: var(--hf-tint-orange);
}

.wp-block-image.hf-icon-circle--navy {
	background: var(--hf-navy);
}

.wp-block-image.hf-icon-circle--lg {
	width: 60px;
	height: 60px;
}

.wp-block-image.hf-icon-circle--lg img {
	width: 26px;
	height: 26px;
}

/* ---------- Buttons ---------- */

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	box-shadow: 0 8px 20px rgba(251, 78, 9, 0.22);
}

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--hf-ease);
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--hf-orange);
	background: #fff;
	color: var(--hf-orange);
}

.hf-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url(../images/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../images/icons/arrow-right.svg) center / contain no-repeat;
	transition: transform 0.2s var(--hf-ease);
}

.hf-btn-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.hf-btn-whatsapp .wp-block-button__link::before,
.hf-btn-phone .wp-block-button__link::before {
	content: "";
	width: 1.45em;
	height: 1.45em;
	background: url(../images/icons/whatsapp-green.svg) center / contain no-repeat;
}

.hf-btn-phone .wp-block-button__link::before {
	width: 1.1em;
	height: 1.1em;
	background-image: url(../images/icons/phone-orange.svg);
}

.hf-btn-small .wp-block-button__link {
	padding: 0.6rem 1.15rem;
	font-size: 0.875rem;
}

/* ---------- Header ---------- */

.hf-header {
	padding-block: 1.1rem;
	position: relative;
	z-index: 20;
}

.hf-header__inner {
	gap: 1.5rem;
}

.hf-header__logo img {
	width: clamp(118px, 12vw, 150px);
	height: auto;
}

.hf-nav .wp-block-navigation__container {
	gap: clamp(1.4rem, 2.6vw, 2.6rem);
}

.hf-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.4rem;
	color: var(--hf-navy-dark);
	font-weight: 500;
	text-decoration: none;
}

.hf-nav:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 2px;
	border-radius: 2px;
	background: var(--hf-orange);
	transform: scaleX(0);
	transition: transform 0.25s var(--hf-ease);
}

.hf-nav .wp-block-navigation-item.is-current > .wp-block-navigation-item__content,
.hf-nav .wp-block-navigation-item__content:hover {
	color: var(--hf-navy-dark);
}

.hf-nav .wp-block-navigation-item.is-current > .wp-block-navigation-item__content {
	font-weight: 700;
}

.hf-nav .wp-block-navigation-item.is-current > .wp-block-navigation-item__content::after,
.hf-nav .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

.hf-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--hf-border);
	border-radius: 50%;
	color: var(--hf-navy-dark);
}

.hf-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
	background: var(--hf-navy-dark) !important;
	color: #fff !important;
}

.hf-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
}

.hf-nav .is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
}

.hf-nav .is-menu-open .wp-block-navigation-item__content {
	color: #fff;
	font-family: var(--hf-heading);
	font-size: 1.6rem;
	font-weight: 700;
}

.hf-nav .is-menu-open .is-current > .wp-block-navigation-item__content {
	color: var(--hf-orange);
}

.hf-nav .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.hf-header__actions {
	gap: 1.5rem;
}

.hf-header__phone {
	gap: 0.7rem;
}

.hf-header__phone-text {
	gap: 0;
}

.hf-header__phone-text p {
	margin: 0;
	line-height: 1.3;
}

.hf-header__phone-number a {
	color: var(--hf-navy-dark);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
}

.hf-header__phone-label {
	font-size: 0.75rem;
	color: var(--hf-muted);
}

/* Below 1180px the phone block collapses to a round call button. */
@media (max-width: 1180px) {
	.hf-header__phone {
		position: relative;
	}

	.hf-header__phone-text {
		position: static;
	}

	.hf-header__phone-label {
		display: none;
	}

	.hf-header__phone-number a {
		position: absolute;
		inset: 0;
		border-radius: 50%;
		font-size: 0;
		color: transparent;
	}
}

/* Below 1024px the menu collapses behind the menu button. */
@media (max-width: 1024px) {
	.hf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.hf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hf-nav .wp-block-navigation__responsive-container-close:not(.always-shown) {
		display: flex;
	}

	.hf-nav .is-menu-open .wp-block-navigation__container {
		flex-direction: column;
		align-items: center;
	}

	.hf-header .hf-header__inner {
		gap: 0.6rem;
	}

	.hf-header .hf-header__inner > .hf-header__logo {
		margin-right: auto !important;
	}

	.hf-header__actions {
		order: 1;
	}

	.hf-header .hf-nav {
		order: 2;
	}

	.hf-header .wp-block-image.hf-icon-circle {
		width: 44px;
		height: 44px;
		background: var(--hf-tint-orange);
	}

	.hf-header__actions {
		gap: 0.6rem;
	}
}

@media (max-width: 640px) {
	.hf-header__cta {
		display: none !important;
	}
}

.hf-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* ---------- Hero ---------- */

.hf-hero {
	padding-block: clamp(0.75rem, 2vw, 1.5rem) clamp(3rem, 5vw, 4rem);
}

.hf-hero__cols {
	gap: clamp(2rem, 4vw, 3.5rem);
}

.hf-hero__title {
	margin-block: 0 1.25rem;
	font-size: clamp(2.5rem, 5.1vw, 4.4rem);
}

.hf-hero__lead {
	max-width: 34rem;
	margin: 0;
	font-size: clamp(1.03rem, 1.3vw, 1.15rem);
}

.hf-hero .hf-hero__buttons {
	gap: 1rem;
	margin-top: 2rem;
}

.hf-hero .hf-trust {
	gap: 0;
	margin-top: 2.5rem;
}

.hf-trust__item {
	gap: 0.7rem;
	margin-right: 1.4rem;
	padding: 0.2rem 1.4rem 0.2rem 0;
	border-right: 1px solid var(--hf-border);
}

.hf-trust__item:last-child {
	margin-right: 0;
	padding-right: 0;
	border-right: 0;
}

.hf-trust__item figure {
	margin: 0;
}

.hf-trust__item img {
	width: 32px;
	height: 32px;
}

.hf-trust__item p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.35;
}

.hf-hero__media {
	position: relative;
}

.hf-hero__img {
	margin: 0;
}

.hf-hero__img img {
	display: block;
	width: 100%;
	aspect-ratio: 1.12;
	object-fit: cover;
	object-position: 62% 20%;
	border-radius: 24px;
}

.hf-hero__media .hf-hero__caption {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1.25rem;
	gap: 1rem;
	margin: 0;
}

.hf-hero__caption-text,
.hf-watch a {
	background: rgba(1, 37, 73, 0.8);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	border-radius: 16px;
}

.hf-hero__caption-text {
	padding: 1.1rem 1.4rem;
}

.hf-hero__caption-text p {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.hf-hero__caption-text .hf-hero__caption-title {
	margin-bottom: 0.4rem;
	color: #fff;
	font-family: var(--hf-heading);
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
	font-weight: 700;
	line-height: 1.2;
}

.hf-watch {
	margin: 0;
}

.hf-watch a {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.7rem 1.3rem 0.7rem 0.7rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.hf-watch a::before {
	content: "";
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff url(../images/icons/play.svg) 56% center / 16px no-repeat;
	transition: transform 0.2s var(--hf-ease);
}

.hf-watch a:hover {
	color: #fff;
}

.hf-watch a:hover::before {
	transform: scale(1.08);
}

@media (max-width: 781px) {
	.hf-hero__img img {
		aspect-ratio: 1.3;
	}
}

@media (max-width: 600px) {
	.hf-hero .hf-hero__buttons .wp-block-button,
	.hf-cta__buttons .wp-block-button {
		flex: 1 1 100%;
	}

	.hf-hero .hf-hero__buttons .wp-block-button__link,
	.hf-cta__buttons .wp-block-button__link {
		width: 100%;
	}

	.hf-hero .hf-trust {
		flex-wrap: nowrap;
		justify-content: space-between;
		margin-top: 2rem;
	}

	.hf-trust__item {
		gap: 0.5rem;
		margin-right: 0;
		padding-right: 0.7rem;
	}

	.hf-trust__item img {
		width: 26px;
		height: 26px;
	}

	.hf-trust__item p {
		font-size: 0.78rem;
	}

	.hf-hero__img img {
		aspect-ratio: 1.05;
		border-radius: 20px;
	}

	.hf-hero__media .hf-hero__caption {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		flex-wrap: nowrap;
		align-items: flex-end;
		gap: 0.5rem;
	}

	.hf-hero__caption-text {
		flex: 1 1 auto;
		padding: 0.7rem 0.9rem;
		border-radius: 12px;
	}

	.hf-hero__caption-text .hf-hero__caption-title {
		margin-bottom: 0.15rem;
		font-size: 0.95rem;
	}

	.hf-hero__caption-text p {
		font-size: 0.72rem;
	}

	.hf-watch a {
		padding: 0.5rem;
		border-radius: 12px;
		font-size: 0;
	}

	.hf-watch a::before {
		width: 40px;
		height: 40px;
		background-size: 14px;
	}
}

/* ---------- Services grid ---------- */

.hf-services {
	background: var(--hf-off-white);
}

.hf-services-query .hf-service-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 1080px) {
	.hf-services-query .hf-service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.hf-services-query .hf-service-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hf-service-card {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hf-border);
	border-radius: 16px;
	box-shadow: var(--hf-shadow-soft);
	transition: transform 0.3s var(--hf-ease), box-shadow 0.3s var(--hf-ease);
}

.hf-service-card > * {
	margin-block: 0;
}

.hf-service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hf-shadow);
}

.hf-service-card__img {
	margin: 0;
	overflow: hidden;
}

.hf-service-card__img img {
	display: block;
	width: 100%;
	transition: transform 0.6s var(--hf-ease);
}

.hf-service-card:hover .hf-service-card__img img {
	transform: scale(1.05);
}

.hf-service-card .hf-service-card__body {
	gap: 0.85rem;
	padding: 1.05rem 3.4rem 1.2rem 1rem;
}

.hf-service-card__body::after {
	content: "";
	position: absolute;
	right: 1rem;
	bottom: 1.2rem;
	width: 34px;
	height: 34px;
	border: 1px solid var(--hf-border);
	border-radius: 50%;
	background: #fff url(../images/icons/arrow-right.svg) center / 15px no-repeat;
	transition: background-color 0.25s, border-color 0.25s;
}

.hf-service-card:hover .hf-service-card__body::after {
	border-color: var(--hf-orange);
	background-color: var(--hf-orange);
	background-image: url(../images/icons/arrow-right-white.svg);
}

.wp-block-image.hf-service-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	border-radius: 50%;
	background: var(--hf-tint);
}

.wp-block-image.hf-service-card__icon img {
	width: 22px;
	height: 22px;
}

.hf-service-card__text > * {
	margin-block: 0;
}

.hf-service-card .hf-service-card__title {
	margin-bottom: 0.3rem;
	font-size: 1rem;
	line-height: 1.3;
}

.hf-service-card__title a {
	text-decoration: none;
}

.hf-service-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hf-service-card__excerpt,
.hf-service-card__excerpt p {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.5;
}

/* ---------- About split ---------- */

.hf-about__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.95fr 0.8fr;
	align-items: stretch;
}

.hf-about__grid > * {
	margin: 0;
}

.hf-about__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 4vw, 3.25rem);
	padding-right: clamp(4.5rem, 8vw, 7rem);
	border-radius: var(--hf-radius-lg);
	background: var(--hf-navy-dark) radial-gradient(circle at 0% 100%, rgba(251, 78, 9, 0.16), transparent 45%);
	color: rgba(255, 255, 255, 0.82);
}

.hf-about__panel > * {
	margin-block: 0;
}

.hf-about__panel .hf-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

.hf-about__panel h2 {
	margin-bottom: 1.25rem;
	color: #fff;
	font-size: clamp(2.2rem, 3.6vw, 3.1rem);
	line-height: 1.08;
}

.hf-about__panel p:not(.hf-eyebrow) {
	margin-bottom: 1.9rem;
}

.hf-about__grid .hf-about__media {
	position: relative;
	z-index: 1;
	margin: 1.25rem 0 1.25rem -4rem;
}

.hf-about__img {
	height: 100%;
	margin: 0;
}

.hf-about__img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	object-position: center top;
	border-radius: 24px;
	box-shadow: var(--hf-shadow);
}

.hf-about__media .hf-badge {
	position: absolute;
	left: 1.25rem;
	bottom: 1.25rem;
	gap: 0.8rem;
	margin: 0;
	padding: 0.75rem 1.3rem 0.75rem 0.75rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--hf-shadow);
}

.hf-badge p {
	margin: 0;
}

.hf-badge .hf-badge__number {
	color: var(--hf-navy-dark);
	font-family: var(--hf-heading);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.1;
}

.hf-badge__label {
	font-size: 0.8rem;
}

.hf-about__grid .hf-about__stats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.4rem;
	padding: 1rem 0 1rem clamp(1.5rem, 3vw, 2.75rem);
}

.hf-about__stats > * {
	margin: 0;
}

.hf-stat {
	gap: 1rem;
}

.hf-stat p {
	margin: 0;
}

.hf-stat .hf-stat__title {
	color: var(--hf-navy-dark);
	font-family: var(--hf-heading);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.hf-stat__text {
	font-size: 0.85rem;
}

.hf-about__stats .hf-script {
	position: relative;
	align-self: flex-start;
	margin-top: 0.5rem;
	padding-bottom: 0.6rem;
	color: var(--hf-navy-dark);
	font-family: var(--wp--preset--font-family--caveat);
	font-size: clamp(1.7rem, 2.3vw, 2.1rem);
	line-height: 1.1;
	transform: rotate(-6deg);
}

.hf-script::after {
	content: "";
	position: absolute;
	left: 18%;
	right: -4%;
	bottom: -0.2rem;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 11C60 3 130 1 198 4' fill='none' stroke='%23FB4E09' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

@media (max-width: 1080px) {
	.hf-about__grid {
		grid-template-columns: 1fr 1fr;
	}

	.hf-about__grid .hf-about__stats {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 2.5rem 0 0;
	}

	.hf-about__stats .hf-script {
		grid-column: 1 / -1;
		justify-self: center;
	}
}

@media (max-width: 700px) {
	.hf-about__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hf-about__panel {
		padding-right: clamp(2rem, 4vw, 3.25rem);
		padding-bottom: 5rem;
	}

	.hf-about__grid .hf-about__media {
		margin: -3.5rem 1rem 0;
	}

	.hf-about__img img {
		min-height: 0;
		aspect-ratio: 1;
	}

	.hf-about__grid .hf-about__stats {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Feature / process cards ---------- */

.hf-why,
.hf-areas {
	background: var(--hf-off-white);
}

.hf-feature-grid,
.hf-steps {
	gap: 1.25rem;
}

.hf-feature,
.hf-step {
	height: 100%;
	padding: 1.75rem;
	border: 1px solid var(--hf-border);
	border-radius: var(--hf-radius);
	background: #fff;
	transition: transform 0.3s var(--hf-ease), box-shadow 0.3s var(--hf-ease);
}

.hf-feature:hover,
.hf-step:hover {
	transform: translateY(-4px);
	box-shadow: var(--hf-shadow);
}

.hf-feature > *,
.hf-step > * {
	margin-block: 0;
}

.hf-feature h3,
.hf-step h3 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.15rem;
}

.hf-feature p,
.hf-step p {
	margin: 0;
	font-size: 0.95rem;
}

.hf-step .hf-step__num {
	color: var(--hf-border);
	font-family: var(--hf-heading);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
}

.hf-review__stars {
	color: #f5a623;
	letter-spacing: 0.15em;
}

.hf-review .hf-review__name {
	margin-top: 1.25rem;
	color: var(--hf-navy-dark);
	font-weight: 700;
}

/* ---------- CTA band ---------- */

.hf-cta-wrap {
	padding-top: 0;
}

.hf-why + .hf-cta-wrap,
.hf-areas + .hf-cta-wrap,
.hf-services + .hf-cta-wrap {
	padding-top: clamp(3rem, 6vw, 5rem);
}

.hf-cta {
	gap: 2rem;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--hf-radius-lg);
	background: var(--hf-navy-dark) radial-gradient(circle at 100% 0%, rgba(251, 78, 9, 0.28), transparent 42%);
	color: rgba(255, 255, 255, 0.82);
}

.hf-cta__text {
	flex: 1 1 26rem;
}

.hf-cta__text > * {
	margin-block: 0;
}

.hf-cta h2 {
	margin-bottom: 0.6rem;
	color: #fff;
}

.hf-cta p {
	max-width: 38rem;
}

.hf-cta__buttons {
	gap: 1rem;
}

/* ---------- Inner page hero ---------- */

.hf-page-hero {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	background: var(--hf-navy-dark) radial-gradient(circle at 90% 10%, rgba(251, 78, 9, 0.22), transparent 38%);
	color: rgba(255, 255, 255, 0.82);
}

.hf-page-hero :where(h1, .wp-block-post-title) {
	margin-block: 0;
	color: #fff;
	font-size: clamp(2.25rem, 4.6vw, 3.6rem);
}

.hf-page-hero .hf-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

.hf-page-hero__inner > * {
	margin-block: 0;
}

.hf-page-hero .hf-page-hero__lead,
.hf-page-hero__lead p {
	max-width: 44rem;
	margin-top: 1.1rem;
	font-size: 1.1rem;
}

.hf-page-hero .wp-block-post-date,
.hf-breadcrumb {
	margin-bottom: 0.9rem;
	font-size: 0.875rem;
}

.hf-breadcrumb a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.hf-breadcrumb a::before {
	content: "← ";
	color: var(--hf-orange);
}

.hf-breadcrumb a:hover {
	color: #fff;
}

.hf-page-hero--center {
	text-align: center;
}

.hf-page-hero--center .hf-page-hero__lead {
	margin-inline: auto;
}

.hf-page-hero--center .wp-block-buttons {
	margin-top: 2rem;
}

/* ---------- Story / split content (About page) ---------- */

.hf-split {
	gap: clamp(2rem, 5vw, 4.5rem);
}

.hf-split .wp-block-image img {
	width: 100%;
	border-radius: 24px;
	object-fit: cover;
	aspect-ratio: 1.05;
}

.hf-split h2 {
	margin-top: 0;
}

/* ---------- Prose ---------- */

.hf-prose h2 {
	margin-block: 2.25rem 0.75rem;
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.hf-prose h3 {
	margin-block: 1.75rem 0.5rem;
	font-size: 1.25rem;
}

.hf-prose ul,
.hf-checklist {
	padding-left: 0;
	list-style: none;
}

.hf-prose ul li,
.hf-checklist li {
	position: relative;
	margin-bottom: 0.65rem;
	padding-left: 1.9rem;
}

.hf-prose ul li::before,
.hf-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	background: url(../images/icons/check-circle-orange.svg) center / contain no-repeat;
}

/* ---------- Single service ---------- */

.hf-service-detail__cols {
	gap: clamp(2rem, 4vw, 3.5rem);
}

.hf-service-detail__img {
	margin-bottom: 2rem;
}

.hf-service-detail__img img {
	border-radius: 24px;
}

.hf-service-detail__main .hf-prose > :first-child {
	margin-top: 0;
}

@media (min-width: 782px) {
	.hf-service-detail__aside {
		position: sticky;
		top: 2rem;
		align-self: flex-start;
	}
}

.hf-side-card {
	margin-bottom: 1.5rem;
	padding: 1.75rem;
	border: 1px solid var(--hf-border);
	border-radius: 22px;
	background: #fff;
}

.hf-side-card > * {
	margin-block: 0;
}

.hf-side-card h3 {
	margin-bottom: 0.6rem;
	font-size: 1.3rem;
}

.hf-side-card--navy {
	border: 0;
	background: var(--hf-navy-dark) radial-gradient(circle at 100% 0%, rgba(251, 78, 9, 0.25), transparent 50%);
	color: rgba(255, 255, 255, 0.8);
}

.hf-side-card--navy h3 {
	color: #fff;
}

.hf-side-card .hf-stack-buttons {
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.hf-stack-buttons .wp-block-button,
.hf-stack-buttons .wp-block-button__link {
	width: 100%;
}

.hf-service-links .wp-block-post-template {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.hf-service-links li {
	margin: 0;
	border-bottom: 1px solid var(--hf-border);
}

.hf-service-links li:last-child {
	border-bottom: 0;
}

.hf-service-links .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 0.975rem;
	font-weight: 600;
	letter-spacing: 0;
}

.hf-service-links .wp-block-post-title a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.8rem;
	text-decoration: none;
}

.hf-service-links .wp-block-post-title a::after {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: var(--hf-orange);
	-webkit-mask: url(../images/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../images/icons/arrow-right.svg) center / contain no-repeat;
}

/* ---------- Projects ---------- */

.hf-project-grid {
	gap: 1.25rem;
}

.hf-project {
	position: relative;
	overflow: hidden;
	border-radius: var(--hf-radius);
}

.hf-project > * {
	margin: 0;
}

.hf-project img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s var(--hf-ease);
}

.hf-project:hover img {
	transform: scale(1.05);
}

.hf-project .hf-project__caption {
	position: absolute;
	inset: auto 0 0;
	padding: 3rem 1.25rem 1.2rem;
	background: linear-gradient(rgba(4, 5, 56, 0), rgba(4, 5, 56, 0.88));
}

.hf-project__caption > * {
	margin: 0;
}

.hf-project .hf-project__tag {
	display: inline-block;
	margin-bottom: 0.45rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--hf-orange);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hf-project__title {
	color: #fff;
	font-family: var(--hf-heading);
	font-size: 1.05rem;
	font-weight: 700;
}

/* ---------- Areas ---------- */

.hf-areas .hf-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.hf-chips li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--hf-border);
	border-radius: 999px;
	background: #fff;
	color: var(--hf-navy-dark);
	font-size: 0.9rem;
	font-weight: 600;
}

.hf-chips li::before {
	content: "";
	width: 15px;
	height: 15px;
	background: url(../images/icons/map-pin-orange.svg) center / contain no-repeat;
}

/* ---------- Contact ---------- */

.hf-contact__cols {
	gap: clamp(2rem, 5vw, 4rem);
}

.hf-contact__info h2 {
	margin-top: 0;
}

.hf-contact .hf-contact__cards {
	gap: 1rem;
	margin-top: 1.75rem;
}

.hf-contact-card {
	gap: 0.85rem;
	padding: 1rem;
	border-radius: 14px;
	background: var(--hf-off-white);
}

.hf-contact-card p {
	margin: 0;
}

.hf-contact-card__label {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hf-contact-card .hf-contact-card__value {
	color: var(--hf-navy-dark);
	font-size: 0.95rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.hf-contact-card__value a {
	color: inherit;
	text-decoration: none;
}

.hf-map {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-top: 1.5rem;
	border-radius: var(--hf-radius);
	background: var(--hf-off-white);
}

.hf-contact-card--wide,
.hf-contact__cards > .hf-contact-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.hf-map-link {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.hf-map-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--hf-navy-dark);
	text-decoration: none;
}

.hf-map-link a::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: url(../images/icons/map-pin-orange.svg) center / contain no-repeat;
}

.hf-map-link a:hover {
	color: var(--hf-orange);
}

.hf-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.hf-form-card {
	scroll-margin-top: 2rem;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 1px solid var(--hf-border);
	border-radius: var(--hf-radius-lg);
	background: #fff;
	box-shadow: var(--hf-shadow);
}

.hf-form-card > h2 {
	margin-block: 0 0.5rem;
}

.hf-form-card > p {
	margin-top: 0;
}

/* Contact Form 7 */
.wpcf7 .hf-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.1rem;
}

.wpcf7 .hf-form-full {
	grid-column: 1 / -1;
}

@media (max-width: 560px) {
	.wpcf7 .hf-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.wpcf7 p {
	margin: 0;
}

.wpcf7 label {
	display: block;
	color: var(--hf-navy-dark);
	font-size: 0.875rem;
	font-weight: 600;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.4rem;
}

.wpcf7 input:is([type="text"], [type="email"], [type="tel"]),
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--hf-border);
	border-radius: var(--hf-radius-sm);
	background: #fff;
	color: var(--hf-navy-dark);
	font: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 textarea {
	height: 8.5rem;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--hf-orange);
	outline: none;
	box-shadow: 0 0 0 4px rgba(251, 78, 9, 0.12);
}

.wpcf7 .wpcf7-submit {
	margin-top: 0.5rem;
	padding: 0.95rem 1.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--hf-orange);
	box-shadow: 0 8px 20px rgba(251, 78, 9, 0.22);
	color: #fff;
	font: 600 1rem/1.2 var(--wp--preset--font-family--open-sans);
	cursor: pointer;
	transition: background-color 0.2s;
}

.wpcf7 .wpcf7-submit:hover {
	background: var(--wp--preset--color--orange-dark);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: var(--hf-radius-sm);
}

/* ---------- Footer ---------- */

.hf-footer {
	padding-block: clamp(3rem, 6vw, 4.5rem) 0;
	background: var(--hf-navy-dark);
	color: rgba(255, 255, 255, 0.7);
}

.hf-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: 3rem;
}

.hf-footer__grid > *,
.hf-footer__grid > * > * {
	margin-block: 0;
}

@media (max-width: 960px) {
	.hf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.hf-footer__logo {
	margin-bottom: 1.25rem !important;
}

.hf-footer__logo img {
	width: 160px;
}

.hf-footer__brand p {
	max-width: 22rem;
	font-size: 0.95rem;
}

.hf-footer__social {
	margin-top: 1.25rem !important;
}

.hf-footer .hf-footer__heading {
	margin-bottom: 1.25rem;
	color: #fff;
	font-size: 1.05rem;
}

.hf-footer :is(.hf-footer__links, .hf-footer__contact) {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	list-style: none;
}

.hf-footer a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.hf-footer a:hover {
	color: var(--hf-orange);
}

.hf-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.hf-footer__contact li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 0.2em;
	background: center / contain no-repeat;
}

.hf-footer__contact .is-phone::before {
	background-image: url(../images/icons/phone-orange.svg);
}

.hf-footer__contact .is-whatsapp::before {
	background-image: url(../images/icons/whatsapp-orange.svg);
}

.hf-footer__contact .is-email::before {
	background-image: url(../images/icons/mail-orange.svg);
}

.hf-footer__contact .is-address::before {
	background-image: url(../images/icons/map-pin-orange.svg);
}

.hf-footer__contact .is-hours::before {
	background-image: url(../images/icons/clock-orange.svg);
}

.hf-footer .hf-footer__bottom {
	gap: 0.75rem 2rem;
	padding-block: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.875rem;
}

.hf-footer__bottom p {
	margin: 0;
}

.hf-footer__tagline {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* ---------- Floating WhatsApp ---------- */

.hf-wa-float {
	position: fixed;
	right: clamp(1rem, 2.5vw, 1.75rem);
	bottom: clamp(1rem, 2.5vw, 1.75rem);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
	transition: transform 0.25s var(--hf-ease);
}

.hf-wa-float:hover {
	transform: scale(1.08);
}

.hf-wa-float:focus-visible,
.hf-site a:focus-visible {
	outline: 3px solid var(--hf-orange);
	outline-offset: 3px;
}

/* ---------- Posts ---------- */

.hf-post-card {
	overflow: hidden;
	height: 100%;
	border: 1px solid var(--hf-border);
	border-radius: var(--hf-radius);
}

.hf-post-card > * {
	margin: 0;
}

.hf-post-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
}

.hf-post-card__body > * {
	margin-block: 0 0.5rem;
}

/* ---------- Phone layouts ---------- */

@media (max-width: 600px) {
	.hf-section .hf-section-head {
		margin-bottom: 1.5rem;
	}

	/* Service cards: image left, text right. */
	.hf-services-query .hf-service-grid {
		gap: 0.75rem;
	}

	.hf-service-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		border-radius: 14px;
	}

	.hf-service-card__img {
		position: relative;
		height: 100%;
		min-height: 96px;
	}

	.hf-service-card__img img {
		position: absolute;
		inset: 0;
		height: 100% !important;
		aspect-ratio: auto !important;
		object-fit: cover;
	}

	.hf-service-card .hf-service-card__body {
		align-items: center;
		padding: 0.8rem 3rem 0.8rem 0.9rem;
	}

	.hf-service-card__body::after {
		top: 50%;
		right: 0.75rem;
		bottom: auto;
		width: 30px;
		height: 30px;
		background-size: 13px;
		transform: translateY(-50%);
	}

	.wp-block-image.hf-service-card__icon {
		display: none;
	}

	.hf-service-card .hf-service-card__title {
		margin-bottom: 0.2rem;
		font-size: 0.95rem;
	}

	.hf-service-card__excerpt p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 0.8rem;
	}

	.hf-service-card:hover {
		transform: none;
	}

	/* Feature and step cards: icon left, text right. */
	.hf-feature-grid,
	.hf-steps {
		gap: 0.75rem;
	}

	.hf-feature:not(.hf-review),
	.hf-step {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-content: center;
		column-gap: 1rem;
		padding: 1.1rem 1.15rem;
	}

	.hf-feature:not(.hf-review) > .hf-icon-circle,
	.hf-step > .hf-step__top {
		grid-row: span 2;
		align-self: center;
	}

	.hf-feature .wp-block-image.hf-icon-circle--lg,
	.hf-step .wp-block-image.hf-icon-circle--lg {
		width: 50px;
		height: 50px;
	}

	.hf-feature .wp-block-image.hf-icon-circle--lg img,
	.hf-step .wp-block-image.hf-icon-circle--lg img {
		width: 22px;
		height: 22px;
	}

	.hf-feature:not(.hf-review) h3,
	.hf-step h3 {
		align-self: end;
		margin: 0 0 0.2rem;
		font-size: 1rem;
	}

	.hf-feature:not(.hf-review) p,
	.hf-step p {
		align-self: start;
		font-size: 0.875rem;
		line-height: 1.5;
	}

	.hf-step .hf-step__top {
		position: relative;
		display: block;
	}

	.hf-step .hf-step__num {
		position: absolute;
		top: -4px;
		right: -6px;
		display: grid;
		place-items: center;
		width: 22px;
		height: 22px;
		border: 2px solid #fff;
		border-radius: 50%;
		background: var(--hf-orange);
		color: #fff;
		font-size: 0.65rem;
	}

	.hf-feature:hover,
	.hf-step:hover {
		transform: none;
	}

	/* About split */
	.hf-about__panel h2 {
		font-size: 2.1rem;
	}

	.hf-about__grid .hf-about__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem 0.75rem;
		padding-top: 2rem;
	}

	.hf-stat {
		align-items: flex-start !important;
		gap: 0.6rem;
	}

	.hf-stat .wp-block-image.hf-icon-circle {
		width: 38px;
		height: 38px;
	}

	.hf-stat .wp-block-image.hf-icon-circle img {
		width: 18px;
		height: 18px;
	}

	.hf-stat .hf-stat__title {
		font-size: 0.9rem;
	}

	.hf-stat__text {
		font-size: 0.78rem;
	}

	.hf-about__stats .hf-script {
		margin-top: 1rem;
		font-size: 1.7rem;
	}

	/* Areas */
	.hf-areas .hf-chips {
		gap: 0.5rem;
	}

	.hf-chips li {
		padding: 0.45rem 0.8rem;
		font-size: 0.8rem;
	}

	/* CTA */
	.hf-cta {
		padding: 1.75rem 1.4rem;
		border-radius: 22px;
	}

	/* Page hero */
	.hf-page-hero {
		padding-block: 2.75rem 3rem;
	}

	.hf-page-hero :where(h1, .wp-block-post-title) {
		font-size: 2rem;
	}

	.hf-page-hero .hf-page-hero__lead,
	.hf-page-hero__lead p {
		font-size: 1rem;
	}

	/* Projects */
	.hf-project .hf-project__caption {
		padding: 2.5rem 1rem 1rem;
	}

	/* Side cards / forms */
	.hf-side-card {
		padding: 1.4rem;
	}

	.hf-form-card {
		border-radius: 20px;
	}

	/* Footer: brand and contact full width, link lists side by side. */
	.hf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 1rem;
		padding-bottom: 2rem;
	}

	.hf-footer__brand,
	.hf-footer__col:last-child {
		grid-column: 1 / -1;
	}

	.hf-footer :is(.hf-footer__links, .hf-footer__contact) {
		gap: 0.55rem;
		font-size: 0.875rem;
	}

	.hf-footer .hf-footer__heading {
		margin-bottom: 0.9rem;
		font-size: 1rem;
	}

	.hf-footer__logo img {
		width: 130px;
	}

	.hf-footer .hf-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
		padding-bottom: 5.5rem;
	}

	.hf-wa-float {
		width: 52px;
		height: 52px;
	}

	.hf-wa-float img {
		width: 26px;
		height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
