/* =========================================================
   Home Fresh Cleaning — Theme CSS
   Mirrors the design tokens and component styles from the
   original HTML template. Loaded on both front-end and editor.
   ========================================================= */

:root {
	--hf-font-display: 'Cormorant Garamond', Georgia, serif;
	--hf-font-body: 'Manrope', Arial, sans-serif;

	--hf-color-bg: #fff7fb;
	--hf-color-surface: #fffafb;
	--hf-color-surface-2: #fff0f6;
	--hf-color-surface-offset: #f7e4ea;
	--hf-color-border: rgba(94, 48, 67, 0.14);
	--hf-color-divider: rgba(94, 48, 67, 0.12);
	--hf-color-text: #35212b;
	--hf-color-text-muted: #725462;
	--hf-color-text-faint: #ab8f9b;
	--hf-color-text-inverse: #fff9fb;
	--hf-color-primary: #c77d9a;
	--hf-color-primary-hover: #b46788;
	--hf-color-primary-highlight: #f7d9e5;
	--hf-color-gold: #d8b37a;
	--hf-shadow: 0 18px 40px rgba(120, 72, 92, 0.12);
	--hf-transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
	--hf-radius-md: 0.75rem;
	--hf-radius-lg: 1rem;
	--hf-radius-xl: 1.5rem;
	--hf-radius-full: 9999px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
	:root {
		--hf-color-bg: #1f161b;
		--hf-color-surface: #281d23;
		--hf-color-surface-2: #32242c;
		--hf-color-surface-offset: #392931;
		--hf-color-border: rgba(255, 229, 238, 0.14);
		--hf-color-divider: rgba(255, 229, 238, 0.10);
		--hf-color-text: #f6e8ee;
		--hf-color-text-muted: #d1b8c2;
		--hf-color-text-faint: #9f8591;
		--hf-color-text-inverse: #26191f;
		--hf-color-primary: #e7a5c1;
		--hf-color-primary-hover: #f0b7cf;
		--hf-color-primary-highlight: #503842;
		--hf-color-gold: #e7c48d;
		--hf-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
	}
}

[data-theme="dark"] {
	--hf-color-bg: #1f161b;
	--hf-color-surface: #281d23;
	--hf-color-surface-2: #32242c;
	--hf-color-surface-offset: #392931;
	--hf-color-border: rgba(255, 229, 238, 0.14);
	--hf-color-divider: rgba(255, 229, 238, 0.10);
	--hf-color-text: #f6e8ee;
	--hf-color-text-muted: #d1b8c2;
	--hf-color-text-faint: #9f8591;
	--hf-color-text-inverse: #26191f;
	--hf-color-primary: #e7a5c1;
	--hf-color-primary-hover: #f0b7cf;
	--hf-color-primary-highlight: #503842;
	--hf-color-gold: #e7c48d;
	--hf-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

/* ---- Heading colour — explicit on all surfaces ---- */
h1, h2, h3, h4, h5, h6 {
	color: var(--hf-color-text);
}

/* ---- Global Reset ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--hf-font-body);
	background: var(--hf-color-bg);
	color: var(--hf-color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
}

img, svg {
	display: block;
	max-width: 100%;
}

/* ---- Skip Link ---- */
.skip-link {
	position: absolute;
	left: -999px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	background: var(--hf-color-text);
	color: var(--hf-color-text-inverse);
	padding: 0.75rem 1rem;
	border-radius: var(--hf-radius-md);
	z-index: 999;
}

/* ---- Header ---- */
.hf-site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 247, 251, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--hf-color-divider);
}

[data-theme="dark"] .hf-site-header {
	background: rgba(31, 22, 27, 0.84);
}

.hf-nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	width: min(100% - 2rem, 1120px);
	margin-inline: auto;
}

/* Brand */
.hf-brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}

.hf-brand-mark {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--hf-color-primary-highlight), rgba(216, 179, 122, 0.28));
	display: grid;
	place-items: center;
	color: var(--hf-color-primary);
	box-shadow: var(--hf-shadow);
	flex-shrink: 0;
}

.hf-brand-name {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.hf-brand-name strong {
	font-family: var(--hf-font-display);
	font-size: 1.55rem;
	font-weight: 600;
}

.hf-brand-name span {
	font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--hf-color-text-muted);
}

/* Nav links */
.hf-nav-links {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	color: var(--hf-color-text-muted);
	list-style: none;
}

.hf-nav-links a:hover {
	color: var(--hf-color-text);
}

.hf-nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Theme toggle & menu button */
.hf-theme-toggle,
.hf-menu-btn {
	width: 44px;
	height: 44px;
	border-radius: var(--hf-radius-full);
	border: 1px solid var(--hf-color-border);
	background: var(--hf-color-surface);
	display: grid;
	place-items: center;
	color: var(--hf-color-text);
	cursor: pointer;
	transition: background var(--hf-transition);
}

.hf-menu-btn {
	display: none;
}

/* Buttons */
.hf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.85rem 1.3rem;
	border-radius: var(--hf-radius-full);
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	font-weight: 700;
	border: 1px solid transparent;
	transition: all var(--hf-transition);
	cursor: pointer;
	text-decoration: none;
	font-family: var(--hf-font-body);
}

.hf-btn-primary {
	background: var(--hf-color-primary);
	color: var(--hf-color-text-inverse);
	box-shadow: var(--hf-shadow);
}

.hf-btn-primary:hover {
	background: var(--hf-color-primary-hover);
	color: var(--hf-color-text-inverse);
}

.hf-btn-secondary {
	border-color: var(--hf-color-border);
	background: var(--hf-color-surface);
	color: var(--hf-color-text);
}

.hf-btn-secondary:hover {
	background: var(--hf-color-surface-2);
}

/* Mobile nav */
.hf-mobile-nav {
	display: none;
	padding-bottom: 1rem;
	width: min(100% - 2rem, 1120px);
	margin-inline: auto;
}

.hf-mobile-nav.open {
	display: grid;
	gap: 0.75rem;
}

.hf-mobile-nav a {
	color: var(--hf-color-text-muted);
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
}

/* ---- Sections ---- */
.hf-section {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.hf-section-alt {
	background: var(--hf-color-surface);
}

.hf-container {
	width: min(100% - 2rem, 1120px);
	margin-inline: auto;
}

.hf-section-head {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	align-items: end;
	margin-bottom: 2rem;
}

.hf-section-head p {
	max-width: 52ch;
	color: var(--hf-color-text-muted);
}

/* Eyebrow */
.hf-eyebrow {
	font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hf-color-primary);
	font-weight: 700;
	margin-bottom: 1rem;
	display: block;
}

/* ---- Hero ---- */
.hf-hero {
	padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
	position: relative;
	overflow: hidden;
}

.hf-hero::before,
.hf-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	opacity: 0.55;
	pointer-events: none;
}

.hf-hero::before {
	width: 340px;
	height: 340px;
	right: -70px;
	top: 20px;
	background: radial-gradient(circle, var(--hf-color-primary-highlight), transparent 70%);
}

.hf-hero::after {
	width: 220px;
	height: 220px;
	left: -40px;
	bottom: 20px;
	background: radial-gradient(circle, rgba(216, 179, 122, 0.25), transparent 72%);
}

.hf-hero-grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: stretch;
}

.hf-hero p {
	color: var(--hf-color-text-muted);
	margin-bottom: 1.5rem;
}

.hf-hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.hf-hero-left {
	display: flex;
	flex-direction: column;
}

.hf-hero-photo {
	margin-top: 1.75rem;
	border-radius: var(--hf-radius-xl);
	overflow: hidden;
	box-shadow: var(--hf-shadow);
	flex: 1;
	min-height: 200px;
}

.hf-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
	min-height: 200px;
}

/* Hero card */
.hf-hero-card {
	background: linear-gradient(180deg, var(--hf-color-surface), var(--hf-color-surface-2));
	border: 1px solid var(--hf-color-border);
	border-radius: calc(var(--hf-radius-xl) + 6px);
	padding: 1.5rem;
	box-shadow: var(--hf-shadow);
	position: relative;
}

/* Hero card with image variant */
.hf-hero-card--media {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hf-hero-card-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: calc(var(--hf-radius-xl) + 6px) calc(var(--hf-radius-xl) + 6px) 0 0;
}

.hf-hero-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}

.hf-hero-card-body {
	padding: 1.5rem;
	flex: 1;
}

/* Keep the inner gold border away from the image area */
.hf-hero-card--media::before {
	top: 236px;
	border-radius: 0 0 calc(var(--hf-radius-xl) - 4px) calc(var(--hf-radius-xl) - 4px);
}

.hf-hero-card::before {
	content: "";
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(216, 179, 122, 0.35);
	border-radius: calc(var(--hf-radius-xl) - 4px);
	pointer-events: none;
}

.hf-hero-card h2 {
	color: var(--hf-color-text);
}

.hf-hero-card p {
	color: var(--hf-color-text-muted);
}

.hf-diamond-line {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	color: var(--hf-color-text-muted);
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
}

.hf-diamond {
	width: 10px;
	height: 10px;
	background: var(--hf-color-gold);
	transform: rotate(45deg);
	border-radius: 2px;
	box-shadow: 0 0 0 6px rgba(216, 179, 122, 0.08);
	flex-shrink: 0;
}

.hf-hero-card h2 {
	font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
	margin-bottom: 1rem;
}

/* Mini grid */
.hf-mini-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}

.hf-mini-panel {
	padding: 1rem;
	border-radius: var(--hf-radius-lg);
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid var(--hf-color-border);
}

[data-theme="dark"] .hf-mini-panel {
	background: rgba(255, 255, 255, 0.03);
}

.hf-mini-panel strong {
	display: block;
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	margin-bottom: 0.35rem;
}

.hf-mini-panel span {
	font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	color: var(--hf-color-text-muted);
}

/* ---- Cards ---- */
.hf-cards,
.hf-pricing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.hf-card,
.hf-price-card,
.hf-about-box,
.hf-diamond-item,
.hf-banner,
.hf-contact-box,
.hf-form-box,
.hf-footer-top {
	background: var(--hf-color-surface);
	border: 1px solid var(--hf-color-border);
	border-radius: var(--hf-radius-xl);
	box-shadow: var(--hf-shadow);
}

.hf-card,
.hf-price-card {
	padding: 1.5rem;
}

.hf-card h3 {
	font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
	margin: 1rem 0 0.75rem;
	font-weight: 700;
}

.hf-card p,
.hf-card li,
.hf-about-box p,
.hf-contact-box p,
.hf-footer-copy,
.hf-price-card li {
	color: var(--hf-color-text-muted);
}

/* ---- About / Split ---- */
.hf-split {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.hf-about-box {
	padding: 2rem;
}

.hf-about-note {
	margin-top: 1.25rem;
	padding: 1rem;
	border-radius: var(--hf-radius-lg);
	background: var(--hf-color-primary-highlight);
	color: var(--hf-color-text);
}

.hf-diamond-stack {
	display: grid;
	gap: 1rem;
}

.hf-diamond-item {
	padding: 1.25rem;
	background: linear-gradient(135deg, var(--hf-color-surface-2), var(--hf-color-surface-offset));
}

.hf-diamond-item h3 {
	margin-bottom: 0.5rem;
}

.hf-diamond-item p {
	color: var(--hf-color-text-muted);
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
}

/* ---- Banner ---- */
.hf-banner {
	padding: 2rem;
	text-align: center;
	background: linear-gradient(135deg, var(--hf-color-primary-highlight), var(--hf-color-surface));
	position: relative;
	overflow: hidden;
}

.hf-banner::after {
	content: "";
	position: absolute;
	width: 180px;
	height: 180px;
	right: -40px;
	top: -50px;
	background: radial-gradient(circle, rgba(216, 179, 122, 0.22), transparent 72%);
	border-radius: 50%;
}

.hf-banner p {
	max-width: 62ch;
	margin: 0 auto;
	color: var(--hf-color-text-muted);
}

/* ---- Pricing ---- */
.hf-price-card.featured {
	background: linear-gradient(180deg, var(--hf-color-surface), var(--hf-color-surface-2));
}

.hf-tag {
	display: inline-flex;
	padding: 0.35rem 0.8rem;
	border-radius: var(--hf-radius-full);
	background: var(--hf-color-primary-highlight);
	color: var(--hf-color-primary);
	font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.hf-price-card ul {
	list-style: none;
	display: grid;
	gap: 0.7rem;
	margin-top: 1.25rem;
	padding: 0;
}

.hf-price-card li::before {
	content: "◆";
	color: var(--hf-color-gold);
	margin-right: 0.55rem;
}

/* ---- Contact ---- */
.hf-contact-grid {
	display: grid;
	grid-template-columns: minmax(320px, 0.96fr) minmax(380px, 1.04fr);
	gap: 2rem;
	align-items: stretch;
}

.hf-contact-box,
.hf-form-box {
	padding: clamp(1.75rem, 3vw, 2.6rem);
}

.hf-form-box form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	height: 100%;
	justify-content: center;
}

.hf-notice-banner {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border-radius: var(--hf-radius-lg);
	background: #fff0f4;
	border: 1px solid rgba(199, 125, 154, 0.28);
	color: #6b3248;
	font-weight: 600;
}

[data-theme="dark"] .hf-notice-banner {
	background: #462a34;
	color: #ffdbe7;
}

.hf-contact-list {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.hf-contact-list p {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--hf-color-divider);
}

.hf-contact-list p:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.hf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.hf-field {
	display: grid;
	gap: 0.45rem;
}

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

.hf-field label {
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	font-weight: 700;
}

.hf-field input,
.hf-field textarea {
	width: 100%;
	padding: 1rem;
	border-radius: var(--hf-radius-lg);
	border: 1px solid var(--hf-color-border);
	background: var(--hf-color-bg);
	color: var(--hf-color-text);
	font-family: var(--hf-font-body);
	font-size: inherit;
	transition: outline var(--hf-transition);
}

.hf-field textarea {
	min-height: 170px;
	resize: vertical;
}

.hf-field input:focus,
.hf-field textarea:focus {
	outline: 2px solid var(--hf-color-primary);
	outline-offset: 2px;
}

/* Contact form success message */
.hf-form-success {
	display: none;
	padding: 1rem;
	background: var(--hf-color-primary-highlight);
	border-radius: var(--hf-radius-lg);
	color: var(--hf-color-text);
	font-weight: 600;
	text-align: center;
}

/* ---- Footer ---- */
.hf-site-footer {
	padding: 3rem 0 1.5rem;
	background: #5f3347;
	color: #fff7fb;
	margin-top: 2rem;
}

.hf-footer-top {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	padding: 2rem;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 0.9fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.hf-site-footer h3 {
	font-family: var(--hf-font-display);
	font-size: 2rem;
	font-weight: 600;
	color: #fff7fb;
	margin-bottom: 0.75rem;
}

.hf-site-footer h4 {
	color: #fff7fb;
	margin-bottom: 0.75rem;
	font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hf-footer-links,
.hf-footer-contact {
	display: grid;
	gap: 0.8rem;
}

.hf-footer-links a,
.hf-footer-contact a,
.hf-footer-contact span {
	color: #f8dfe8;
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
}

.hf-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
	color: #f1cad8;
	width: min(100% - 2rem, 1120px);
	margin-inline: auto;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
	.hf-hero-grid,
	.hf-split,
	.hf-cards,
	.hf-pricing,
	.hf-contact-grid,
	.hf-footer-top {
		grid-template-columns: 1fr;
	}

	.hf-section-head,
	.hf-footer-bottom {
		display: grid;
	}

	.hf-nav-links {
		display: none;
	}

	.hf-menu-btn {
		display: grid;
	}

	.hf-mini-grid,
	.hf-form-grid {
		grid-template-columns: 1fr;
	}

	.hf-footer-top {
		padding: 1.5rem;
	}
}

@media (max-width: 600px) {
	.hf-hero-actions {
		flex-direction: column;
	}

	.hf-btn {
		width: 100%;
		justify-content: center;
	}
}
