/* ==========================================================================
   HFX Rugs design system
   Colours are sampled from the supplied logo. Page sections built in
   Elementor use the hfx-* classes below (Advanced > CSS Classes).
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}

:root {
	/* Brand */
	--hfx-navy: #203a5b;
	--hfx-navy-deep: #172c45;
	--hfx-navy-ink: #10223a;
	--hfx-red: #ac1e2a;
	--hfx-red-dark: #8f1822;
	--hfx-cream: #f8f5ef;
	--hfx-cream-deep: #efe9de;
	--hfx-white: #fff;
	--hfx-gray: #f1f0ed;
	--hfx-line: #e2dcd0;
	--hfx-line-strong: #cfc6b5;
	--hfx-text: #343943;
	--hfx-muted: #636873;
	--hfx-on-dark: #e9edf3;
	--hfx-on-dark-muted: #b9c4d3;

	/* Type */
	--hfx-font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--hfx-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hfx-fs-body: 1.0625rem;
	--hfx-fs-small: 0.9375rem;
	--hfx-fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	--hfx-fs-h1: clamp(2.6rem, 1.9rem + 2.9vw, 4.25rem);
	--hfx-fs-h2: clamp(2.1rem, 1.65rem + 1.8vw, 3.1rem);
	--hfx-fs-h3: clamp(1.45rem, 1.3rem + 0.5vw, 1.7rem);

	/* Layout */
	--hfx-content: 1200px;
	--hfx-narrow: 760px;
	--hfx-gutter: clamp(20px, 4vw, 40px);
	--hfx-space-section: clamp(72px, 9vw, 128px);
	--hfx-space-section-sm: clamp(48px, 6vw, 80px);
	--hfx-radius: 3px;
	--hfx-radius-lg: 6px;
	--hfx-shadow: 0 1px 2px rgb(16 34 58 / 6%), 0 8px 24px rgb(16 34 58 / 6%);
	--hfx-header-h: 104px;
	--hfx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hfx-header-h) + 16px);
}

body {
	background: var(--hfx-white);
	color: var(--hfx-text);
	font-family: var(--hfx-font-sans);
	font-size: var(--hfx-fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
	color: var(--hfx-navy);
	font-family: var(--hfx-font-serif);
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.12;
	margin-block: 0 0.5em;
	text-wrap: balance;
}

h1, .elementor-widget-heading h1.elementor-heading-title { font-size: var(--hfx-fs-h1); line-height: 1.06; }
h2, .elementor-widget-heading h2.elementor-heading-title { font-size: var(--hfx-fs-h2); }
h3, .elementor-widget-heading h3.elementor-heading-title { font-size: var(--hfx-fs-h3); line-height: 1.2; }
h4, .elementor-widget-heading h4.elementor-heading-title {
	font-family: var(--hfx-font-sans);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

.elementor-widget-heading .elementor-heading-title { margin: 0; }

p { margin-block: 0 1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--hfx-navy);
	text-decoration-color: rgb(32 58 91 / 35%);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--hfx-red); text-decoration-color: currentColor; }

strong { color: var(--hfx-navy-ink); font-weight: 600; }

img { height: auto; max-width: 100%; }

:focus-visible {
	outline: 2px solid var(--hfx-red);
	outline-offset: 3px;
}

::selection { background: var(--hfx-navy); color: var(--hfx-white); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var(--hfx-navy);
	clip: auto;
	clip-path: none;
	color: var(--hfx-white);
	height: auto;
	left: 12px;
	padding: 12px 18px;
	top: 12px;
	width: auto;
	z-index: 100000;
}

/* --------------------------------------------------------------------------
   Buttons — one primary and one secondary style site-wide.
   .hfx-button is used in templates; .hfx-btn-* on Elementor button widgets.
   -------------------------------------------------------------------------- */

.hfx-button,
.elementor-widget-button .elementor-button,
.fluentform .ff-btn-submit {
	align-items: center;
	border: 1.5px solid var(--hfx-navy);
	border-radius: var(--hfx-radius);
	background: var(--hfx-navy);
	color: var(--hfx-white);
	cursor: pointer;
	display: inline-flex;
	fill: currentColor;
	font-family: var(--hfx-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.5em;
	justify-content: center;
	letter-spacing: 0.01em;
	line-height: 1.2;
	min-height: 48px;
	padding: 0.85em 1.6em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--hfx-ease);
}

.hfx-button:hover,
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible,
.fluentform .ff-btn-submit:hover {
	background: var(--hfx-navy-deep);
	border-color: var(--hfx-navy-deep);
	color: var(--hfx-white);
}

.hfx-button--outline,
.elementor-widget-button.hfx-btn-outline .elementor-button {
	background: transparent;
	color: var(--hfx-navy);
}
.hfx-button--outline:hover,
.elementor-widget-button.hfx-btn-outline .elementor-button:hover,
.elementor-widget-button.hfx-btn-outline .elementor-button:focus-visible {
	background: var(--hfx-navy);
	color: var(--hfx-white);
}

/* On navy backgrounds */
.hfx-button--light,
.elementor-widget-button.hfx-btn-light .elementor-button {
	background: var(--hfx-white);
	border-color: var(--hfx-white);
	color: var(--hfx-navy);
}
.hfx-button--light:hover,
.elementor-widget-button.hfx-btn-light .elementor-button:hover {
	background: var(--hfx-cream);
	border-color: var(--hfx-cream);
	color: var(--hfx-navy-deep);
}
.hfx-button--ghost-light,
.elementor-widget-button.hfx-btn-ghost-light .elementor-button {
	background: transparent;
	border-color: rgb(255 255 255 / 55%);
	color: var(--hfx-white);
}
.hfx-button--ghost-light:hover,
.elementor-widget-button.hfx-btn-ghost-light .elementor-button:hover {
	background: rgb(255 255 255 / 10%);
	border-color: var(--hfx-white);
	color: var(--hfx-white);
}

/* Understated text link with arrow */
.hfx-link-arrow,
.elementor-widget-button.hfx-btn-link .elementor-button {
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--hfx-navy);
	font-weight: 600;
	min-height: 0;
	padding: 0.25em 0;
	text-decoration: underline;
	text-decoration-color: rgb(172 30 42 / 45%);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.35em;
}
.hfx-link-arrow::after,
.elementor-widget-button.hfx-btn-link .elementor-button-text::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.45em;
	transition: transform 0.2s var(--hfx-ease);
}
.hfx-link-arrow:hover,
.elementor-widget-button.hfx-btn-link .elementor-button:hover {
	background: none;
	color: var(--hfx-red);
	text-decoration-color: currentColor;
}
.hfx-link-arrow:hover::after,
.elementor-widget-button.hfx-btn-link .elementor-button:hover .elementor-button-text::after {
	transform: translateX(3px);
}

.hfx-actions,
.e-con.hfx-actions {
	--flex-direction: row;
	--flex-wrap: wrap;
	--gap: 12px 14px;
	--row-gap: 12px;
	--column-gap: 14px;
	--align-items: center;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
}
.e-con.hfx-actions > .elementor-widget {
	flex: 0 0 auto;
	width: auto;
}

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

.hfx-header {
	background: rgb(255 255 255 / 97%);
	border-bottom: 1px solid transparent;
	position: sticky;
	top: 0;
	transition: border-color 0.25s, box-shadow 0.25s;
	z-index: 1000;
}
.admin-bar .hfx-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .hfx-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .hfx-header { top: 0; }
}

.hfx-header.is-scrolled {
	border-bottom-color: var(--hfx-line);
	box-shadow: 0 4px 18px rgb(16 34 58 / 5%);
}

.hfx-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	margin-inline: auto;
	max-width: calc(var(--hfx-content) + 2 * var(--hfx-gutter));
	min-height: var(--hfx-header-h);
	padding: 8px var(--hfx-gutter);
	transition: min-height 0.25s var(--hfx-ease);
}

.hfx-logo {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
}
.hfx-logo--header .hfx-logo__img {
	height: 84px;
	transition: height 0.25s var(--hfx-ease);
	width: auto;
}
.hfx-header.is-scrolled .hfx-logo--header .hfx-logo__img { height: 62px; }
.hfx-header.is-scrolled .hfx-header__inner { min-height: 78px; }
.hfx-logo__text {
	color: var(--hfx-navy);
	font-family: var(--hfx-font-serif);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1;
}

.hfx-nav {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 28px;
	justify-content: flex-end;
}

.hfx-nav__list {
	display: flex;
	gap: clamp(14px, 1.6vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hfx-nav__list a {
	color: var(--hfx-navy);
	display: inline-block;
	font-size: 0.9375rem;
	font-weight: 500;
	padding: 10px 0;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}
.hfx-nav__list a::after {
	background: var(--hfx-red);
	bottom: 4px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--hfx-ease);
	width: 100%;
}
.hfx-nav__list a:hover::after,
.hfx-nav__list a[aria-current="page"]::after,
.hfx-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.hfx-nav__list a:hover { color: var(--hfx-navy-deep); }

.hfx-nav__actions {
	display: flex;
	gap: 10px;
}
.hfx-nav__actions .hfx-button { min-height: 44px; padding: 0.7em 1.2em; }

.hfx-header__quick,
.hfx-menu-toggle { display: none; }

.hfx-menu-toggle {
	align-items: center;
	background: transparent;
	border: 1.5px solid var(--hfx-line-strong);
	border-radius: var(--hfx-radius);
	color: var(--hfx-navy);
	cursor: pointer;
	font: 600 0.875rem/1 var(--hfx-font-sans);
	gap: 10px;
	min-height: 44px;
	min-width: 44px;
	padding: 0 14px;
}
.hfx-menu-toggle:hover { border-color: var(--hfx-navy); background: transparent; color: var(--hfx-navy); }

.hfx-menu-toggle__bars,
.hfx-menu-toggle__bars::before,
.hfx-menu-toggle__bars::after {
	background: currentColor;
	border-radius: 1px;
	display: block;
	height: 2px;
	position: relative;
	transition: transform 0.25s var(--hfx-ease), opacity 0.2s;
	width: 18px;
}
.hfx-menu-toggle__bars::before,
.hfx-menu-toggle__bars::after { content: ""; position: absolute; }
.hfx-menu-toggle__bars::before { top: -6px; }
.hfx-menu-toggle__bars::after { top: 6px; }
.hfx-menu-toggle[aria-expanded="true"] .hfx-menu-toggle__bars { background: transparent; }
.hfx-menu-toggle[aria-expanded="true"] .hfx-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.hfx-menu-toggle[aria-expanded="true"] .hfx-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Wide tablets/laptops: drop the secondary header button first. */
@media (max-width: 1280px) {
	.hfx-nav__actions .hfx-button--outline { display: none; }
}

@media (max-width: 1100px) {
	:root { --hfx-header-h: 84px; }

	.hfx-logo--header .hfx-logo__img,
	.hfx-header.is-scrolled .hfx-logo--header .hfx-logo__img { height: 64px; }
	.hfx-header.is-scrolled .hfx-header__inner { min-height: 72px; }

	.hfx-header__inner { gap: 12px; }
	.hfx-header__quick { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0.7em 1.1em; }
	.hfx-menu-toggle { display: inline-flex; }

	.hfx-nav {
		background: var(--hfx-white);
		border-top: 1px solid var(--hfx-line);
		box-shadow: 0 18px 30px rgb(16 34 58 / 10%);
		display: none;
		flex-direction: column;
		gap: 20px;
		left: 0;
		max-height: calc(100vh - var(--hfx-header-h));
		max-height: calc(100dvh - var(--hfx-header-h));
		overflow-y: auto;
		padding: 12px var(--hfx-gutter) 28px;
		position: absolute;
		right: 0;
		top: 100%;
	}
	.hfx-nav.is-open { display: flex; }
	.hfx-nav__list { flex-direction: column; gap: 0; width: 100%; }
	.hfx-nav__list li { border-bottom: 1px solid var(--hfx-line); }
	.hfx-nav__list a { display: block; font-size: 1.0625rem; padding: 16px 0; }
	.hfx-nav__list a::after { display: none; }
	.hfx-nav__list a[aria-current="page"] { color: var(--hfx-red); }
	.hfx-nav__actions { flex-direction: column; width: 100%; }
	.hfx-nav__actions .hfx-button,
	.hfx-nav__actions .hfx-button--outline { display: inline-flex; width: 100%; }
}

@media (max-width: 480px) {
	.hfx-header__quick { display: none; }
	.hfx-menu-toggle { margin-left: auto; }
	.hfx-logo--header .hfx-logo__img,
	.hfx-header.is-scrolled .hfx-logo--header .hfx-logo__img { height: 58px; }
}

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

.hfx-footer {
	background: var(--hfx-navy-deep);
	color: var(--hfx-on-dark-muted);
	font-size: var(--hfx-fs-small);
}
.hfx-footer a { color: var(--hfx-on-dark); text-decoration-color: rgb(255 255 255 / 30%); }
.hfx-footer a:hover { color: var(--hfx-white); text-decoration-color: currentColor; }

.hfx-footer__inner {
	margin-inline: auto;
	max-width: calc(var(--hfx-content) + 2 * var(--hfx-gutter));
	padding-inline: var(--hfx-gutter);
}

.hfx-footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	padding-block: clamp(56px, 7vw, 88px) 48px;
}

/* The logo has a transparent background, so it sits on a light tile. */
.hfx-logo--footer {
	background: var(--hfx-cream);
	border-radius: var(--hfx-radius-lg);
	margin-bottom: 20px;
	padding: 14px 18px;
}
.hfx-logo--footer .hfx-logo__img { height: 96px; width: auto; }

.hfx-footer__brand p { max-width: 34ch; }

.hfx-footer__heading {
	color: var(--hfx-white);
	font-family: var(--hfx-font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 18px;
	text-transform: uppercase;
}

.hfx-footer__links,
.hfx-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hfx-footer__links li { margin-bottom: 10px; }
.hfx-footer__links a,
.hfx-footer__legal a { text-decoration: none; }
.hfx-footer__links a:hover,
.hfx-footer__legal a:hover { text-decoration: underline; }

.hfx-footer .hfx-contact-list { margin-bottom: 12px; }
.hfx-footer .hfx-contact-list__label { color: var(--hfx-on-dark-muted); }
.hfx-footer__hours { color: var(--hfx-on-dark); }

.hfx-footer__bottom {
	align-items: center;
	border-top: 1px solid rgb(255 255 255 / 12%);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	padding-block: 22px 28px;
}
.hfx-footer__bottom p { margin: 0; }
.hfx-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 1024px) {
	.hfx-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.hfx-footer__grid { gap: 32px; grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Elementor section patterns
   Elementor containers read padding and gap from CSS variables, so the
   classes below set variables rather than fighting generated styles.
   -------------------------------------------------------------------------- */

.e-con[class*="hfx-"] {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

.e-con.hfx-section {
	--content-width: min(100%, var(--hfx-content));
	--padding-top: var(--hfx-space-section);
	--padding-bottom: var(--hfx-space-section);
	--padding-left: var(--hfx-gutter);
	--padding-right: var(--hfx-gutter);
	--gap: clamp(36px, 5vw, 64px);
	--row-gap: clamp(36px, 5vw, 64px);
	--column-gap: clamp(36px, 5vw, 64px);
	position: relative;
}
.e-con.hfx-section--tight {
	--padding-top: var(--hfx-space-section-sm);
	--padding-bottom: var(--hfx-space-section-sm);
}
.e-con.hfx-section--flush-top { --padding-top: 0px; }

.hfx-bg-cream { background-color: var(--hfx-cream); }
.hfx-bg-white { background-color: var(--hfx-white); }
.hfx-bg-gray { background-color: var(--hfx-gray); }
.hfx-bg-navy { background-color: var(--hfx-navy-deep); color: var(--hfx-on-dark); }

.hfx-bg-navy .elementor-heading-title,
.hfx-bg-navy h2,
.hfx-bg-navy h3 { color: var(--hfx-white); }
.hfx-bg-navy .hfx-eyebrow .elementor-heading-title,
.hfx-bg-navy .hfx-eyebrow { color: #e8a5ab; }
.hfx-bg-navy a:not(.elementor-button) { color: var(--hfx-white); }
.hfx-bg-navy strong { color: var(--hfx-white); }

/* Section heading group */
.e-con.hfx-section-head {
	--gap: 14px;
	--row-gap: 14px;
	--align-items: center;
	margin-inline: auto;
	max-width: var(--hfx-narrow);
	text-align: center;
}
.e-con.hfx-section-head--left {
	--align-items: flex-start;
	margin-inline: 0;
	text-align: left;
}

.hfx-eyebrow .elementor-heading-title,
p.hfx-eyebrow,
.hfx-eyebrow {
	color: var(--hfx-red);
	font-family: var(--hfx-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hfx-lead,
.hfx-lead p {
	color: var(--hfx-text);
	font-size: var(--hfx-fs-lead);
	line-height: 1.65;
}
.hfx-bg-navy .hfx-lead,
.hfx-bg-navy .hfx-lead p { color: var(--hfx-on-dark); }

.hfx-note,
.hfx-note p {
	color: var(--hfx-muted);
	font-size: var(--hfx-fs-small);
	line-height: 1.6;
}
.hfx-bg-navy .hfx-note,
.hfx-bg-navy .hfx-note p { color: var(--hfx-on-dark-muted); }

.hfx-prose { max-width: 62ch; }
.hfx-prose ul,
.hfx-list-check ul {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}
.hfx-prose li,
.hfx-list-check li {
	margin-bottom: 0.6em;
	padding-left: 1.6em;
	position: relative;
}
.hfx-prose li::before,
.hfx-list-check li::before {
	background: var(--hfx-red);
	content: "";
	height: 7px;
	left: 0.2em;
	position: absolute;
	top: 0.68em;
	transform: rotate(45deg);
	width: 7px;
}

/* Two-column split: media + text */
.e-con.hfx-split {
	--flex-direction: row;
	--align-items: center;
	--gap: clamp(40px, 6vw, 88px);
	--column-gap: clamp(40px, 6vw, 88px);
	--row-gap: 40px;
}
.e-con.hfx-split > .e-con-inner { flex-direction: row; align-items: center; }
.e-con.hfx-split--reverse > .e-con-inner { flex-direction: row-reverse; }
.e-con.hfx-split--top > .e-con-inner { align-items: flex-start; }
.e-con.hfx-split__media,
.e-con.hfx-split__body { --width: 50%; flex: 1 1 0; min-width: 0; }
.e-con.hfx-split__media--narrow { flex: 0.85 1 0; }
.e-con.hfx-split__body {
	--gap: 18px;
	--row-gap: 18px;
	--justify-content: center;
}

@media (max-width: 1024px) {
	.e-con.hfx-split > .e-con-inner,
	.e-con.hfx-split--reverse > .e-con-inner { flex-direction: column; align-items: stretch; }
	.e-con.hfx-split__media,
	.e-con.hfx-split__body { --width: 100%; flex: 1 1 auto; width: 100%; }
	/* Heroes: headline first, wider image crop on small screens. */
	.hfx-hero .e-con.hfx-split__body,
	.hfx-page-hero .e-con.hfx-split__body { order: -1; }
	.hfx-hero .hfx-img-cover img,
	.hfx-page-hero .hfx-img-cover img { --hfx-ratio: 3 / 2; }
	.hfx-split .hfx-img-cover img { max-height: 70vh; }
}

/* Images */
.hfx-img-cover img,
.hfx-media img {
	aspect-ratio: var(--hfx-ratio, 4 / 5);
	border-radius: var(--hfx-radius);
	display: block;
	object-fit: cover;
	width: 100%;
}
.hfx-ratio-4x3 { --hfx-ratio: 4 / 3; }
.hfx-ratio-3x2 { --hfx-ratio: 3 / 2; }
.hfx-ratio-1x1 { --hfx-ratio: 1 / 1; }
.hfx-ratio-16x9 { --hfx-ratio: 16 / 9; }

/* Thin offset frame — a quiet nod to a woven border */
.hfx-media-frame { position: relative; }
.hfx-media-frame::after {
	border: 1px solid var(--hfx-line-strong);
	border-radius: var(--hfx-radius);
	content: "";
	inset: 18px -18px -18px 18px;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}
.hfx-media-frame.hfx-frame-left::after { inset: 18px 18px -18px -18px; }
@media (max-width: 767px) {
	.hfx-media-frame::after { inset: 12px -10px -12px 10px; }
	.hfx-media-frame.hfx-frame-left::after { inset: 12px 10px -12px -10px; }
}

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

.e-con.hfx-hero {
	--padding-top: clamp(40px, 6vw, 88px);
	--padding-bottom: clamp(64px, 8vw, 112px);
	background:
		linear-gradient(180deg, var(--hfx-white) 0, var(--hfx-cream) 100%);
	isolation: isolate;
}
.hfx-hero .hfx-split__body { --gap: 22px; --row-gap: 22px; }
.hfx-hero .hfx-lead p { max-width: 36em; }
.hfx-hero__meta {
	border-top: 1px solid var(--hfx-line);
	color: var(--hfx-muted);
	font-size: var(--hfx-fs-small);
	margin-top: 6px;
	padding-top: 18px;
}
.hfx-hero__meta p { margin-bottom: 0.35em; }
.hfx-hero__meta strong { color: var(--hfx-navy); }

.e-con.hfx-page-hero {
	--padding-top: clamp(40px, 5vw, 72px);
	--padding-bottom: clamp(56px, 6vw, 88px);
	background: linear-gradient(180deg, var(--hfx-white) 0, var(--hfx-cream) 100%);
	isolation: isolate;
}
.hfx-page-hero .hfx-img-cover img { --hfx-ratio: 5 / 4; }

.hfx-breadcrumbs,
.hfx-breadcrumbs p,
.rank-math-breadcrumb p {
	color: var(--hfx-muted);
	font-size: 0.875rem;
	margin: 0;
}
.rank-math-breadcrumb a { color: var(--hfx-muted); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--hfx-navy); text-decoration: underline; }
.rank-math-breadcrumb .separator { color: var(--hfx-line-strong); padding: 0 0.4em; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.e-con.hfx-trust {
	--padding-top: 0px;
	--padding-bottom: 0px;
	background: var(--hfx-cream);
}
.e-con.hfx-trust > .e-con-inner {
	border-bottom: 1px solid var(--hfx-line);
	border-top: 1px solid var(--hfx-line);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, 1fr);
}
.e-con.hfx-trust__item {
	--gap: 6px;
	--row-gap: 6px;
	padding: 30px 24px;
	position: relative;
}
.e-con.hfx-trust__item + .e-con.hfx-trust__item { border-left: 1px solid var(--hfx-line); }
.hfx-trust__item .elementor-heading-title {
	align-items: center;
	color: var(--hfx-navy);
	display: flex;
	font-family: var(--hfx-font-serif);
	font-size: 1.35rem;
	gap: 12px;
	line-height: 1.2;
}
.hfx-trust__item .elementor-heading-title::before {
	background: var(--hfx-red);
	content: "";
	flex: 0 0 8px;
	height: 8px;
	transform: rotate(45deg);
}
.hfx-trust__item .elementor-widget-text-editor {
	color: var(--hfx-muted);
	font-size: var(--hfx-fs-small);
	line-height: 1.55;
	padding-left: 20px;
}
@media (max-width: 1024px) {
	.e-con.hfx-trust > .e-con-inner { grid-template-columns: repeat(2, 1fr); }
	.e-con.hfx-trust__item:nth-child(3) { border-left: 0; }
	.e-con.hfx-trust__item:nth-child(n + 3) { border-top: 1px solid var(--hfx-line); }
}
@media (max-width: 600px) {
	.e-con.hfx-trust > .e-con-inner { grid-template-columns: 1fr; }
	.e-con.hfx-trust__item + .e-con.hfx-trust__item { border-left: 0; border-top: 1px solid var(--hfx-line); }
	.e-con.hfx-trust__item { padding: 20px 4px; }
}

/* --------------------------------------------------------------------------
   Generic grids and cards built in Elementor
   -------------------------------------------------------------------------- */

.e-con.hfx-grid > .e-con-inner,
.e-con.hfx-grid.e-con-full {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
	grid-template-columns: repeat(var(--hfx-cols, 3), minmax(0, 1fr));
}
.e-con.hfx-grid--2 { --hfx-cols: 2; }
.e-con.hfx-grid--3 { --hfx-cols: 3; }
.e-con.hfx-grid--4 { --hfx-cols: 4; }
@media (max-width: 1024px) {
	.e-con.hfx-grid--3,
	.e-con.hfx-grid--4 { --hfx-cols: 2; }
}
@media (max-width: 767px) {
	.e-con.hfx-grid { --hfx-cols: 1; }
}

.e-con.hfx-card {
	--gap: 12px;
	--row-gap: 12px;
	--justify-content: flex-start;
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	padding: clamp(24px, 2.6vw, 34px);
}
.hfx-bg-white .e-con.hfx-card { background: var(--hfx-cream); border-color: transparent; }
.hfx-card .elementor-widget-text-editor { color: var(--hfx-text); font-size: 1rem; }
.hfx-card h3.elementor-heading-title { font-size: 1.45rem; }
.hfx-card__kicker .elementor-heading-title {
	color: var(--hfx-red);
	font-family: var(--hfx-font-serif);
	font-size: 1.15rem;
	font-style: italic;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.e-con.hfx-steps > .e-con-inner,
.e-con.hfx-steps.e-con-full {
	counter-reset: hfx-step;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	position: relative;
}
.e-con.hfx-steps--4 > .e-con-inner,
.e-con.hfx-steps--4.e-con-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.e-con.hfx-step {
	--gap: 10px;
	--row-gap: 10px;
	padding: 0 22px 0 0;
	position: relative;
}
.e-con.hfx-step::after {
	background: rgb(255 255 255 / 22%);
	content: "";
	height: 1px;
	left: 64px;
	position: absolute;
	right: 14px;
	top: 26px;
}
.e-con.hfx-step:last-child::after { display: none; }
.hfx-step__num .elementor-heading-title {
	align-items: center;
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: 50%;
	color: var(--hfx-white);
	display: inline-flex;
	font-family: var(--hfx-font-serif);
	font-size: 1.4rem;
	height: 52px;
	justify-content: center;
	margin-bottom: 12px;
	width: 52px;
}
.hfx-step h3.elementor-heading-title { color: var(--hfx-white); font-size: 1.4rem; }
.hfx-step .elementor-widget-text-editor { color: var(--hfx-on-dark-muted); font-size: 0.975rem; line-height: 1.6; }

@media (max-width: 1024px) {
	.e-con.hfx-steps > .e-con-inner,
	.e-con.hfx-steps.e-con-full {
		gap: 0;
		grid-template-columns: 1fr;
		margin-inline: auto;
		max-width: 620px;
	}
	.e-con.hfx-step {
		display: grid;
		gap: 4px 20px;
		grid-template-columns: 52px 1fr;
		padding: 0 0 32px;
	}
	.e-con.hfx-step > .elementor-widget { grid-column: 2; }
	.e-con.hfx-step > .hfx-step__num { grid-column: 1; grid-row: 1 / span 3; }
	.hfx-step__num .elementor-heading-title { margin: 0; }
	.e-con.hfx-step::after {
		height: auto;
		left: 26px;
		right: auto;
		top: 60px;
		bottom: 6px;
		width: 1px;
	}
}

/* --------------------------------------------------------------------------
   Considerations / feature list (icon-free, typographic)
   -------------------------------------------------------------------------- */

.e-con.hfx-features > .e-con-inner,
.e-con.hfx-features.e-con-full {
	border-top: 1px solid var(--hfx-line);
	display: grid;
	gap: 0 clamp(24px, 3vw, 48px);
	grid-template-columns: repeat(var(--hfx-cols, 3), minmax(0, 1fr));
}
.e-con.hfx-feature {
	--gap: 8px;
	--row-gap: 8px;
	border-bottom: 1px solid var(--hfx-line);
	padding: 26px 0;
}
.hfx-feature h3.elementor-heading-title { font-size: 1.35rem; }
.hfx-feature .elementor-widget-text-editor { font-size: 0.98rem; }
@media (max-width: 1024px) { .e-con.hfx-features { --hfx-cols: 2; } }
@media (max-width: 600px) { .e-con.hfx-features { --hfx-cols: 1; } }

/* --------------------------------------------------------------------------
   Announcement (coming soon)
   -------------------------------------------------------------------------- */

.e-con.hfx-announce > .e-con-inner {
	align-items: center;
	border: 1px solid var(--hfx-line-strong);
	border-radius: var(--hfx-radius);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px 32px;
	justify-content: space-between;
	padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
	position: relative;
}
.e-con.hfx-announce > .e-con-inner::before {
	background: var(--hfx-red);
	bottom: -1px;
	content: "";
	left: -1px;
	position: absolute;
	top: -1px;
	width: 3px;
}
.hfx-announce h2.elementor-heading-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.e-con.hfx-announce__text { --gap: 6px; --row-gap: 6px; flex: 1 1 420px; }
.hfx-announce .elementor-widget-text-editor { color: var(--hfx-muted); }

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

.e-con.hfx-cta-band {
	background: var(--hfx-navy);
	overflow: hidden;
}
.e-con.hfx-cta-band::after {
	/* Subtle diamond lattice echoing the logo's geometry */
	background-image:
		linear-gradient(45deg, rgb(255 255 255 / 4%) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / 4%) 75%),
		linear-gradient(45deg, rgb(255 255 255 / 4%) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / 4%) 75%);
	background-position: 0 0, 22px 22px;
	background-size: 44px 44px;
	content: "";
	inset: 0 0 0 55%;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	pointer-events: none;
	position: absolute;
}
.e-con.hfx-cta-band > .e-con-inner { position: relative; z-index: 1; }
.hfx-cta-band .elementor-heading-title { color: var(--hfx-white); }
.hfx-cta-band .hfx-lead p { color: var(--hfx-on-dark); }

/* --------------------------------------------------------------------------
   FAQ (Elementor Toggle widget with class hfx-faq)
   -------------------------------------------------------------------------- */

.elementor-widget.hfx-faq { margin-inline: auto; max-width: var(--hfx-narrow); width: 100%; }
.hfx-faq .elementor-toggle { border-top: 1px solid var(--hfx-line); }
.hfx-faq .elementor-toggle .elementor-toggle-item { border-bottom: 1px solid var(--hfx-line); margin: 0; }
.hfx-faq .elementor-toggle .elementor-tab-title {
	align-items: center;
	border: 0;
	color: var(--hfx-navy);
	cursor: pointer;
	display: flex;
	font-family: var(--hfx-font-serif);
	font-size: 1.35rem;
	font-weight: 600;
	gap: 16px;
	justify-content: space-between;
	line-height: 1.3;
	padding: 22px 0;
}
.hfx-faq .elementor-toggle .elementor-tab-title a,
.hfx-faq .elementor-toggle .elementor-toggle-title { color: inherit; text-decoration: none; }
.hfx-faq .elementor-toggle .elementor-tab-title::after {
	color: var(--hfx-red);
	content: "+";
	flex: 0 0 auto;
	font-family: var(--hfx-font-sans);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	order: 2;
}
.hfx-faq .elementor-toggle .elementor-tab-title.elementor-active::after { content: "\2212"; }
.hfx-faq .elementor-toggle .elementor-toggle-icon { display: none; }
.hfx-faq .elementor-toggle .elementor-tab-content {
	border: 0;
	color: var(--hfx-text);
	padding: 0 48px 24px 0;
}

/* --------------------------------------------------------------------------
   Contact page layout
   -------------------------------------------------------------------------- */

.e-con.hfx-contact-layout > .e-con-inner {
	align-items: flex-start;
	display: grid;
	gap: clamp(32px, 4vw, 64px);
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.e-con.hfx-contact-aside { --gap: 20px; --row-gap: 20px; position: sticky; top: calc(var(--hfx-header-h) + 24px); }
.e-con.hfx-panel {
	--gap: 12px;
	--row-gap: 12px;
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	padding: clamp(22px, 2.5vw, 32px);
}
.hfx-panel h2.elementor-heading-title,
.hfx-panel h3.elementor-heading-title { font-size: 1.5rem; }
.e-con.hfx-form-card {
	--gap: 16px;
	--row-gap: 16px;
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	padding: clamp(24px, 3.5vw, 48px);
}
@media (max-width: 1024px) {
	.e-con.hfx-contact-layout > .e-con-inner { grid-template-columns: 1fr; }
	.e-con.hfx-contact-aside { position: static; }
}

.e-con.hfx-jump {
	--padding-top: 0px;
	--padding-bottom: 0px;
}
.e-con.hfx-jump > .e-con-inner {
	border-bottom: 1px solid var(--hfx-line);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px 28px;
	padding-block: 16px;
}

.e-con.hfx-callout {
	--gap: 6px;
	--row-gap: 6px;
	background: var(--hfx-cream);
	border-left: 3px solid var(--hfx-red);
	border-radius: 0 var(--hfx-radius) var(--hfx-radius) 0;
	padding: 18px 22px;
}
.hfx-callout .elementor-widget-text-editor { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Shortcode output from the HFX Rugs Core plugin
   -------------------------------------------------------------------------- */

/* Service cards */
.hfx-service-cards {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.hfx-service-card {
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s;
}
.hfx-service-card:hover,
.hfx-service-card:focus-within {
	border-color: var(--hfx-line-strong);
	box-shadow: var(--hfx-shadow);
}
.hfx-service-card__media {
	aspect-ratio: 4 / 3;
	background: var(--hfx-gray);
	overflow: hidden;
}
.hfx-service-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--hfx-ease);
	width: 100%;
}
.hfx-service-card:hover .hfx-service-card__media img { transform: scale(1.035); }
.hfx-service-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 26px 28px 28px;
}
.hfx-service-card__title {
	font-size: 1.5rem;
	margin: 0;
}
.hfx-service-card__title a { color: inherit; text-decoration: none; }
/* Whole card is clickable via the title link */
.hfx-service-card__title a::after { content: ""; inset: 0; position: absolute; z-index: 1; }
.hfx-service-card__text { color: var(--hfx-text); font-size: 1rem; margin: 0; }
.hfx-service-card__more {
	color: var(--hfx-navy);
	font-size: 0.9375rem;
	font-weight: 600;
	margin-top: auto;
	padding-top: 8px;
}
.hfx-service-card__more::after { content: " \2192"; transition: margin 0.2s; }
.hfx-service-card:hover .hfx-service-card__more { color: var(--hfx-red); }
@media (max-width: 1024px) { .hfx-service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hfx-service-cards { grid-template-columns: 1fr; } }

/* Business details lists */
.hfx-contact-list,
.hfx-detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hfx-contact-list li { margin-bottom: 12px; }
.hfx-contact-list__label {
	color: var(--hfx-muted);
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hfx-contact-list__value { overflow-wrap: anywhere; }
.hfx-contact-list a { text-decoration: none; }
.hfx-contact-list a:hover { text-decoration: underline; }

.hfx-detail-list { border-top: 1px solid var(--hfx-line); }
.hfx-detail-list li {
	border-bottom: 1px solid var(--hfx-line);
	display: grid;
	gap: 4px 24px;
	grid-template-columns: minmax(140px, 0.4fr) 1fr;
	padding: 14px 0;
}
.hfx-detail-list__label { color: var(--hfx-navy); font-weight: 600; }
.hfx-detail-list__value { color: var(--hfx-text); }
@media (max-width: 600px) { .hfx-detail-list li { grid-template-columns: 1fr; } }

.hfx-social { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 14px 0 0; padding: 0; }

/* Reviews */
.hfx-reviews { display: grid; gap: 28px; }
.hfx-reviews__grid {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.hfx-review {
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 28px;
}
.hfx-review__stars { color: #b8862b; font-size: 1.05rem; letter-spacing: 0.12em; line-height: 1; }
.hfx-review__text { font-family: var(--hfx-font-serif); font-size: 1.3rem; line-height: 1.45; color: var(--hfx-navy-ink); margin: 0; }
.hfx-review__text p { margin: 0 0 0.6em; }
.hfx-review__meta { color: var(--hfx-muted); font-size: 0.9rem; margin-top: auto; }
.hfx-review__name { color: var(--hfx-navy); font-style: normal; font-weight: 600; }
.hfx-reviews__links { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; }
@media (max-width: 1024px) { .hfx-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hfx-reviews__grid { grid-template-columns: 1fr; } }

/* Before & after */
.hfx-ba-list {
	display: grid;
	gap: clamp(28px, 3vw, 40px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.hfx-ba { margin: 0; }
.hfx-ba__stage {
	border-radius: var(--hfx-radius);
	overflow: hidden;
	position: relative;
}
.hfx-ba__pair { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.hfx-ba__pane { margin: 0; position: relative; }
.hfx-ba__pane img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.hfx-ba__tag {
	background: rgb(16 34 58 / 82%);
	border-radius: 2px;
	color: var(--hfx-white);
	font-size: 0.75rem;
	font-weight: 600;
	left: 12px;
	letter-spacing: 0.1em;
	padding: 5px 9px;
	position: absolute;
	text-transform: uppercase;
	top: 12px;
	z-index: 2;
}
.hfx-ba__pane--after .hfx-ba__tag { left: auto; right: 12px; }
.hfx-ba__caption { color: var(--hfx-muted); font-size: var(--hfx-fs-small); margin-top: 12px; }
.hfx-ba__caption strong { color: var(--hfx-navy); display: block; font-family: var(--hfx-font-serif); font-size: 1.3rem; }
.hfx-ba__range { display: none; }

/* Slider mode (enabled by JS) */
.hfx-ba.is-slider .hfx-ba__pair { display: block; position: relative; }
.hfx-ba.is-slider .hfx-ba__pane--after {
	clip-path: inset(0 0 0 var(--pos, 50%));
	inset: 0;
	position: absolute;
}
.hfx-ba.is-slider .hfx-ba__pane--after img { height: 100%; }
.hfx-ba.is-slider .hfx-ba__stage::after {
	background: var(--hfx-white);
	bottom: 0;
	box-shadow: 0 0 0 1px rgb(16 34 58 / 25%);
	content: "";
	left: var(--pos, 50%);
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translateX(-1px);
	width: 2px;
	z-index: 3;
}
.hfx-ba.is-slider .hfx-ba__handle {
	align-items: center;
	background: var(--hfx-white);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgb(16 34 58 / 30%);
	color: var(--hfx-navy);
	display: flex;
	font-size: 0.9rem;
	height: 44px;
	justify-content: center;
	left: var(--pos, 50%);
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	z-index: 4;
}
.hfx-ba:not(.is-slider) .hfx-ba__handle { display: none; }
.hfx-ba.is-slider .hfx-ba__range {
	appearance: none;
	background: transparent;
	cursor: ew-resize;
	display: block;
	height: 100%;
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
	z-index: 5;
}
.hfx-ba.is-slider .hfx-ba__range:focus-visible + .hfx-ba__handle { outline: 2px solid var(--hfx-red); outline-offset: 3px; }

/* Placeholders visible only to logged-in editors */
.hfx-admin-placeholder {
	background: repeating-linear-gradient(-45deg, #fffaf0, #fffaf0 12px, #fdf3e1 12px, #fdf3e1 24px);
	border: 2px dashed #c08a2b;
	border-radius: var(--hfx-radius);
	color: #5a4a2a;
	font-size: 0.95rem;
	padding: 18px 22px;
}
.hfx-admin-placeholder strong { color: #4a3a1a; }
.e-con + .hfx-admin-placeholder,
.hfx-admin-placeholder + .e-con { margin-top: 0; }
body > .hfx-admin-placeholder,
.elementor > .hfx-admin-placeholder { border-radius: 0; margin: 0; text-align: center; }

/* --------------------------------------------------------------------------
   Fluent Forms
   -------------------------------------------------------------------------- */

.fluentform .ff-el-group { margin-bottom: 22px; }
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label {
	color: var(--hfx-navy-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 6px;
}
.fluentform .ff-el-is-required.asterisk-right label::after { color: var(--hfx-red); }

.fluentform .ff-el-form-control {
	background: var(--hfx-white);
	border: 1.5px solid var(--hfx-line-strong);
	border-radius: var(--hfx-radius);
	color: var(--hfx-text);
	font-family: var(--hfx-font-sans);
	font-size: 1rem;
	line-height: 1.5;
	min-height: 50px;
	padding: 12px 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.fluentform textarea.ff-el-form-control { min-height: 140px; }
.fluentform .ff-el-form-control:focus {
	border-color: var(--hfx-navy);
	box-shadow: 0 0 0 3px rgb(32 58 91 / 15%);
	outline: none;
}
.fluentform .ff-el-form-control::placeholder { color: #8a8f98; }
.fluentform .ff-el-help-message { color: var(--hfx-muted); font-size: 0.875rem; font-style: normal; margin-top: 6px; }
.fluentform .error,
.fluentform .text-danger { color: var(--hfx-red); font-size: 0.875rem; margin-top: 6px; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--hfx-red); }

.fluentform .ff-el-form-check { margin-bottom: 8px; }
.fluentform .ff-el-form-check-label { align-items: flex-start; color: var(--hfx-text); display: inline-flex; gap: 10px; }
.fluentform input[type="radio"],
.fluentform input[type="checkbox"] {
	accent-color: var(--hfx-navy);
	height: 18px;
	margin-top: 3px;
	width: 18px;
}
.fluentform .ff-el-tc label,
.fluentform .ff_t_c { color: var(--hfx-text); font-size: 0.9375rem; }

.fluentform .ff-btn-submit {
	font-size: 1rem;
	min-height: 52px;
	padding-inline: 2em;
}
.fluentform .ff-btn-submit:disabled { cursor: progress; opacity: 0.7; }
.fluentform .ff_submit_btn_wrapper { margin-top: 8px; }

.ff-message-success {
	background: var(--hfx-cream);
	border: 1px solid var(--hfx-line);
	border-left: 3px solid var(--hfx-navy);
	border-radius: var(--hfx-radius);
	box-shadow: none;
	color: var(--hfx-text);
	padding: 24px 28px;
}
.ff-message-success h3,
.ff-message-success strong { color: var(--hfx-navy); }

.fluentform .ff-custom_html .hfx-form-note,
.fluentform .hfx-form-note {
	background: var(--hfx-cream);
	border-left: 3px solid var(--hfx-red);
	border-radius: 0 var(--hfx-radius) var(--hfx-radius) 0;
	color: var(--hfx-text);
	font-size: 0.95rem;
	padding: 14px 18px;
}

/* Photo uploader (HFX Quote Photos plugin) */
.hfx-photo-upload__label { color: var(--hfx-navy-ink); font-size: 0.9375rem; font-weight: 600; margin: 0 0 4px; }
.hfx-photo-upload__help { color: var(--hfx-muted); font-size: 0.875rem; margin: 0 0 10px; }
.hfx-photo-upload__drop {
	align-items: center;
	background: var(--hfx-cream);
	border: 1.5px dashed var(--hfx-line-strong);
	border-radius: var(--hfx-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding: 18px;
	transition: border-color 0.2s, background-color 0.2s;
}
.hfx-photo-upload__drop.is-dragover { background: #f2ede3; border-color: var(--hfx-navy); }
.hfx-photo-upload__button { min-height: 44px; padding: 0.6em 1.2em; }
.hfx-photo-upload__input:focus-visible + .hfx-photo-upload__button { outline: 2px solid var(--hfx-red); outline-offset: 3px; }
.hfx-photo-upload__hint { color: var(--hfx-muted); font-size: 0.875rem; }
.hfx-photo-upload__list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.hfx-photo-upload__item {
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	font-size: 0.8rem;
	overflow: hidden;
	position: relative;
}
.hfx-photo-upload__item img { aspect-ratio: 1; display: block; object-fit: cover; width: 100%; }
.hfx-photo-upload__item-name { color: var(--hfx-muted); display: block; overflow: hidden; padding: 6px 8px; text-overflow: ellipsis; white-space: nowrap; }
.hfx-photo-upload__item.is-uploading img { opacity: 0.45; }
.hfx-photo-upload__item.is-error { border-color: var(--hfx-red); }
.hfx-photo-upload__remove {
	align-items: center;
	background: rgb(16 34 58 / 85%);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 1rem;
	height: 32px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 6px;
	top: 6px;
	width: 32px;
}
.hfx-photo-upload__remove:hover { background: var(--hfx-red); color: #fff; }
.hfx-photo-upload__status { font-size: 0.875rem; margin-top: 8px; min-height: 1.2em; }
.hfx-photo-upload__status.is-error { color: var(--hfx-red); }

/* --------------------------------------------------------------------------
   Default page content (non-Elementor pages such as the Privacy Policy)
   -------------------------------------------------------------------------- */

.site-main:not(.hfx-404) > .page-header,
.site-main:not(.hfx-404) > .page-content,
.site-main:not(.hfx-404) > article,
body:not(.elementor-page) .site-main.post-type-page {
	margin-inline: auto;
	max-width: calc(var(--hfx-narrow) + 2 * var(--hfx-gutter));
	padding-inline: var(--hfx-gutter);
}
body:not(.elementor-page) .site-main .page-header { padding-top: clamp(48px, 6vw, 88px); }
body:not(.elementor-page) .site-main .page-content { padding-bottom: var(--hfx-space-section); }
body:not(.elementor-page) .site-main .page-content h2 { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem); margin-top: 1.4em; }

/* 404 */
.hfx-404 { background: linear-gradient(180deg, var(--hfx-white), var(--hfx-cream)); }
.hfx-404__inner {
	margin-inline: auto;
	max-width: calc(880px + 2 * var(--hfx-gutter));
	padding: clamp(56px, 8vw, 112px) var(--hfx-gutter);
}
.hfx-404__inner h1 { margin-top: 10px; }
.hfx-404__links {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 36px 0;
	padding: 0;
}
.hfx-404__links a {
	background: var(--hfx-white);
	border: 1px solid var(--hfx-line);
	border-radius: var(--hfx-radius);
	display: block;
	height: 100%;
	padding: 20px 22px;
	text-decoration: none;
	transition: border-color 0.2s;
}
.hfx-404__links a:hover { border-color: var(--hfx-navy); }
.hfx-404__title { color: var(--hfx-navy); display: block; font-family: var(--hfx-font-serif); font-size: 1.35rem; font-weight: 600; }
.hfx-404__desc { color: var(--hfx-muted); display: block; font-size: 0.95rem; }
@media (max-width: 600px) { .hfx-404__links { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (only when JS is running; disabled for reduced motion)
   -------------------------------------------------------------------------- */

.hfx-js .hfx-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--hfx-ease), transform 0.8s var(--hfx-ease);
}
.hfx-js .hfx-reveal.is-visible { opacity: 1; transform: none; }
.elementor-editor-active .hfx-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.hfx-js .hfx-reveal { opacity: 1; transform: none; }
}

@media print {
	.hfx-header, .hfx-footer, .hfx-menu-toggle { display: none !important; }
}
