/*
Theme Name: HD Hardwood Flooring
Theme URI: https://gdprowebdesigns.com/
Author: GD Web Pros
Author URI: https://gdprowebdesigns.com/
Description: Lightweight, modern and minimal custom theme for HD Hardwood Flooring. Hardwood & vinyl flooring on Massachusetts' North Shore. Built-in estimate form, editable business details and photo slots (Appearance → Customize).
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: hd-hardwood
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--bg-alt: #f7f4ef;
	--ink: #1a1917;
	--text: #2e2b27;
	--muted: #5e5850;       /* 7:1 on white */
	--line: #e7e1d8;
	--oak: #d9c2a3;         /* decorative only, never text on white */
	--oak-soft: #efe5d7;
	--accent: #8a5a2b;      /* 5.9:1 on white: links, small accents */
	--accent-ink: #6b4420;
	--dark: #1f1d1a;
	--on-dark: #f4f0ea;
	--on-dark-muted: #cfc7bb;
	--on-dark-accent: #e2c9a6;
	--focus: #1d63d8;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 10px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(26, 25, 23, .05), 0 8px 24px rgba(26, 25, 23, .06);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
#main:focus { outline: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--radius); text-decoration: none;
}

.hd-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.hd-narrow { max-width: 820px; }
.hd-eyebrow {
	font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); margin-bottom: .9em;
}
.hd-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }

/* ---------- Buttons ---------- */
.hd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 14px 26px; border-radius: 999px;
	font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center;
	border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.hd-btn:hover { transform: translateY(-1px); }
.hd-btn--primary { background: var(--ink); color: #fff; }
.hd-btn--primary:hover { background: var(--accent-ink); color: #fff; }
.hd-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.hd-btn--ghost:hover { background: var(--ink); color: #fff; }
.hd-btn--on-dark { background: var(--on-dark-accent); color: var(--dark); }
.hd-btn--on-dark:hover { background: #fff; color: var(--dark); }
.hd-btn--ghost-light { color: var(--on-dark); border-color: var(--on-dark); }
.hd-btn--ghost-light:hover { background: var(--on-dark); color: var(--dark); }
.hd-btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.hd-btn--block { width: 100%; }

.hd-link-arrow { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--oak); padding-bottom: 2px; display: inline-block; }
.hd-link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Header ---------- */
.hd-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.hd-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.hd-wordmark__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--on-dark-accent); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.hd-wordmark__text { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.custom-logo { max-height: 52px; width: auto; }
.hd-logo { display: inline-flex; align-items: center; padding: 5px 0; }
.hd-logo img { display: block; height: 70px; width: auto; }
@media (max-width: 599px) { :root { --header-h: 72px; } .hd-logo img { height: 54px; } }

.hd-nav { display: flex; align-items: center; gap: 28px; }
.hd-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hd-menu a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9875rem; border-radius: 8px; }
.hd-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.hd-menu .current-menu-item > a, .hd-menu a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.hd-nav__cta { display: flex; align-items: center; gap: 16px; }
.hd-phone-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; min-height: 44px; white-space: nowrap; }
.hd-phone-link svg { color: var(--accent); }

.hd-nav-toggle {
	display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
	background: none; border: 1px solid var(--line); border-radius: 999px; font: 700 .9375rem var(--font); color: var(--ink); cursor: pointer;
}
.hd-nav-toggle__bars, .hd-nav-toggle__bars::before, .hd-nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.hd-nav-toggle__bars::before, .hd-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.hd-nav-toggle__bars::before { top: -6px; }
.hd-nav-toggle__bars::after { top: 6px; }
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bars { background: transparent; }
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
	.hd-nav-toggle { display: inline-flex; }
	.hd-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	}
	.hd-nav.is-open { display: flex; }
	.hd-menu { flex-direction: column; }
	.hd-menu a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.hd-menu .current-menu-item > a, .hd-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
	.hd-nav__cta { flex-direction: column; align-items: stretch; }
	.hd-nav__cta .hd-btn { min-height: 52px; }
	.hd-phone-link { justify-content: center; }
}

/* ---------- Hero ---------- */
.hd-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: min(92svh, 880px);
	padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 5vw, 64px);
	background: #17120d; color: var(--on-dark);
}
.hd-hero__bg { position: absolute; inset: 0; z-index: -1; transform: translate3d(0, calc(var(--hd-scroll, 0) * .3px), 0); }
.hd-hero__bg > * { position: absolute; }

/* Real photo: slow "settle" zoom */
.hd-hero__img { inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 45%; animation: hd-kenburns 22s cubic-bezier(.25, .6, .3, 1) both; }

/* Generated scene (until a photo is uploaded): warm wall + floor in perspective + window light */
.hd-hero__wall { inset: 0; background: radial-gradient(110% 70% at 78% 0%, #5a4130 0%, #2d2118 48%, #17120d 100%); }
.hd-hero__floor {
	left: -80%; right: -80%; bottom: -8%; height: 210%;
	background: url("assets/img/hero-floor.svg") 0 0 / 900px auto repeat;
	transform: perspective(800px) rotateX(50deg); transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(to top, #000 45%, transparent 82%);
	mask-image: linear-gradient(to top, #000 45%, transparent 82%);
	animation: hd-floor-drift 90s linear infinite;
}
.hd-hero__sunlight, .hd-hero__sunlight::before {
	position: absolute; left: 50%; top: 58%; width: 9%; height: 26%;
	background:
		linear-gradient(90deg, transparent 46%, rgba(30, 18, 8, .55) 46% 54%, transparent 54%),
		linear-gradient(transparent 46%, rgba(30, 18, 8, .55) 46% 54%, transparent 54%),
		rgba(255, 226, 170, .7);
	mix-blend-mode: overlay; filter: blur(6px); transform: skewX(-24deg);
	animation: hd-sun 14s ease-in-out infinite alternate;
}
.hd-hero__sunlight::before { content: ""; left: 120%; top: 0; width: 100%; height: 100%; animation-delay: -7s; }

/* Light sweep: like fresh finish catching the light */
.hd-hero__sheen {
	inset: -20%; opacity: 0; mix-blend-mode: screen; pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 205, .2) 50%, transparent 58%);
	animation: hd-sheen 10s ease-in-out 1.4s infinite;
}

/* Contrast overlay: keeps text readable on any photo */
.hd-hero__shade {
	inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 13, 9, .88) 0%, rgba(18, 13, 9, .7) 36%, rgba(18, 13, 9, .2) 70%, rgba(18, 13, 9, .05) 100%),
		linear-gradient(0deg, rgba(18, 13, 9, .35) 0%, transparent 30%);
}

/* Warm the photo so the oak glows under the dark overlay */
.hd-hero--photo .hd-hero__img { filter: saturate(1.15) contrast(1.04); }
.hd-hero--photo .hd-hero__shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 80% 60%, rgba(214, 150, 80, .22), transparent 70%); mix-blend-mode: soft-light; }

.hd-hero__content { display: grid; gap: clamp(40px, 6vw, 72px); }
.hd-hero__copy { max-width: 660px; }
.hd-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.25rem); text-wrap: balance; }
.hd-hero h1 em {
	font-style: normal; color: #e2c9a6;
	background: linear-gradient(90deg, #f0d9b5, #cf9f68 60%, #e8c99c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	background-size: 200% 100%; animation: hd-shimmer 8s ease-in-out 2s infinite alternate;
}
.hd-hero .hd-eyebrow { color: var(--on-dark-accent); }
.hd-hero .hd-lead { color: #e8e0d5; }

.hd-hero__trust {
	list-style: none; margin: 0; padding: 14px 24px; width: fit-content; max-width: 100%;
	display: flex; flex-wrap: wrap; gap: 8px 28px;
	font-weight: 600; font-size: .9375rem; color: #fff;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
	-webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
}
.hd-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hd-hero__trust svg { color: var(--on-dark-accent); flex: none; }

.hd-hero__admin-tag {
	position: absolute; right: 16px; bottom: 16px; z-index: 2;
	font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 6px;
	background: #fff3c4; color: #6b4a00; text-decoration: none;
}

.hd-reveal { animation: hd-rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
.hd-hero.is-paused *, .hd-hero.is-paused *::before { animation-play-state: paused; }

@keyframes hd-rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes hd-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes hd-floor-drift { to { background-position: 0 900px; } }
@keyframes hd-sun { from { opacity: .65; } to { opacity: 1; } }
@keyframes hd-sheen {
	0% { transform: translateX(-55%); opacity: 0; }
	12% { opacity: 1; }
	48% { transform: translateX(55%); opacity: 0; }
	100% { transform: translateX(55%); opacity: 0; }
}
@keyframes hd-shimmer { to { background-position: 100% 0; } }

@media (max-width: 860px) {
	.hd-hero { min-height: 0; align-items: flex-start; }
	.hd-hero__shade { background: linear-gradient(180deg, rgba(18, 13, 9, .82) 0%, rgba(18, 13, 9, .7) 60%, rgba(18, 13, 9, .55) 100%); }
	.hd-hero__floor { height: 60%; }
	.hd-hero__trust { border-radius: var(--radius); flex-direction: column; }
}

.hd-page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hd-page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 18em; }

/* ---------- Sections ---------- */
.hd-section { padding: var(--section) 0; }
.hd-section--alt { background: var(--bg-alt); }
.hd-section__head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.hd-section__head p:last-child { color: var(--muted); margin-bottom: 0; }
.hd-section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hd-section__head--row h2 { margin-bottom: 0; }
.hd-section__more { margin: 36px 0 0; }

.hd-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.hd-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.hd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hd-section--alt .hd-card { border-color: transparent; }
.hd-card:hover { border-color: var(--oak); box-shadow: var(--shadow); }
.hd-card__num { display: block; font-size: .8125rem; font-weight: 800; color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; }
.hd-card h3 a { color: var(--ink); text-decoration: none; }
.hd-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hd-card h3 a:focus-visible { outline: none; }
.hd-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.hd-card p { color: var(--muted); margin: 0; }

.hd-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hd-split__media .hd-photo, .hd-split__media .hd-placeholder { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }

.hd-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.hd-checks li { position: relative; padding-left: 34px; }
.hd-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--oak-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.hd-checks strong { color: var(--ink); }

.hd-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.hd-steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.hd-steps li::before { content: "0" counter(step); display: block; font-weight: 800; color: var(--accent); font-size: .875rem; letter-spacing: .08em; margin-bottom: 10px; }
.hd-steps p { color: var(--muted); margin: 0; }

.hd-gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hd-gallery-preview .hd-photo, .hd-gallery-preview .hd-placeholder { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }

.hd-area { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hd-area p { color: var(--muted); }
.hd-towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hd-towns li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--ink); background: #fff; }

.hd-faq details { background: #fff; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--line); }
.hd-faq summary {
	cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative; min-height: 44px;
}
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.hd-faq details[open] summary::after { content: "–"; }
.hd-faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.hd-cta-band { background: var(--dark); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 80px) 0; }
.hd-cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.hd-cta-band h2 { color: var(--on-dark); margin-bottom: .3em; }
.hd-cta-band p { margin: 0; max-width: 34em; }
.hd-cta-band .hd-actions { margin: 0; }

/* ---------- Services page ---------- */
.hd-jump { border-bottom: 1px solid var(--line); background: #fff; }
.hd-jump ul { list-style: none; margin: 0; padding: 14px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.hd-jump a { display: inline-block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; min-height: 40px; line-height: 24px; }
.hd-jump a:hover { background: var(--oak-soft); }
.hd-service-group + .hd-service-group { border-top: 1px solid var(--line); }
.hd-service-group__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hd-service-group__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.hd-service-group__aside p { color: var(--muted); }
.hd-service-group__aside .hd-photo, .hd-service-group__aside .hd-placeholder { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); margin-top: 24px; }
.hd-service-list { display: grid; gap: 16px; }
.hd-service { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.hd-service:target { border-color: var(--accent); box-shadow: var(--shadow); }
.hd-service p { color: var(--muted); }

/* ---------- Gallery ---------- */
.hd-gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.hd-gallery-grid .hd-placeholder { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.hd-gallery-grid__cap { margin: 10px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.hd-prose .wp-block-gallery { margin: 24px 0 48px; }
.hd-prose .wp-block-gallery img { border-radius: 8px; }

/* ---------- Reviews ---------- */
.hd-empty { text-align: center; padding: clamp(32px, 5vw, 56px); border: 1px dashed var(--oak); border-radius: var(--radius-lg); background: var(--bg-alt); }
.hd-empty .hd-actions { justify-content: center; }
.hd-review-ask { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.hd-reviews blockquote, .hd-reviews .wp-block-quote { margin: 0 0 20px; padding: 24px 28px; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Contact + form ---------- */
.hd-contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hd-contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.hd-contact__form:focus { outline: none; }
.hd-contact__info { background: var(--bg-alt); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.hd-contact__info .hd-btn { font-size: 1.125rem; }
.hd-contact__tips { margin-top: 28px; }
.hd-contact__tips ul { color: var(--muted); padding-left: 1.1em; }
.hd-contact__img { margin-top: 24px; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }
.hd-info-list { margin: 24px 0 0; }
.hd-info-list dt { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 16px; }
.hd-info-list dd { margin: 4px 0 0; color: var(--ink); }

.hd-form__note, .hd-form__hint { font-size: .9375rem; color: var(--muted); margin: 0 0 18px; }
.hd-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.hd-field--full { grid-column: 1 / -1; }
.hd-field label, .hd-field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .9375rem; }
.hd-field input[type="text"], .hd-field input[type="tel"], .hd-field input[type="email"], .hd-field select, .hd-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; font: 500 1rem/1.4 var(--font); color: var(--ink);
	background: #fff; border: 1.5px solid #b9b0a3; border-radius: var(--radius);   /* 3:1 border contrast */
}
.hd-field textarea { min-height: 140px; resize: vertical; }
.hd-field input:focus, .hd-field select:focus, .hd-field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(29, 99, 216, .35); outline-offset: 0; }
.hd-field ::placeholder { color: #857d72; }
.hd-radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.hd-radios legend { width: 100%; }
.hd-radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.hd-radios label:has(input:checked) { border-color: var(--ink); background: var(--bg-alt); }
.hd-radios input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.hd-form__privacy { font-size: .875rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.hd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hd-notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.hd-notice:focus { outline: none; }
.hd-notice--success { background: #e9f5ec; color: #1d4d2b; border: 1px solid #a8d5b5; }
.hd-notice--error { background: #fbeceb; color: #7a1f1a; border: 1px solid #e8b4b0; }
.hd-notice strong { display: block; }

/* ---------- Placeholders ---------- */
.hd-placeholder {
	display: grid; place-items: center; width: 100%; min-height: 220px; padding: 24px; text-align: center;
	color: var(--ink); border-radius: var(--radius);
	background:
		repeating-linear-gradient(90deg, rgba(138, 90, 43, .07) 0 2px, transparent 2px 64px),
		linear-gradient(135deg, var(--oak-soft), #e4d4bd);
	border: 1.5px dashed #b39470;
}
.hd-placeholder span { max-width: 26em; font-size: .9375rem; font-weight: 600; background: rgba(255, 255, 255, .85); padding: 10px 14px; border-radius: 8px; }
.hd-placeholder strong { display: block; font-size: .75rem; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 4px; }
.hd-tbd { display: inline-block; font-size: .8125rem; font-weight: 700; color: #6b4a00; background: #fff3c4; padding: 2px 8px; border-radius: 4px; }

/* ---------- Prose ---------- */
.hd-prose > *:last-child { margin-bottom: 0; }
.hd-prose h2 { margin-top: 1.4em; }
.hd-prose h2:first-child { margin-top: 0; }
.hd-prose--wide { max-width: none; }
.hd-post { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.hd-post__meta { color: var(--muted); font-size: .9375rem; }

/* ---------- Footer ---------- */
.hd-footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 80px) 0 0; font-size: .9875rem; }
.hd-footer a { color: var(--on-dark); text-decoration: none; }
.hd-footer a:hover { color: var(--on-dark-accent); text-decoration: underline; }
.hd-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.hd-footer__name { color: var(--on-dark); font-weight: 800; font-size: 1.25rem; margin-bottom: .5em; }
.hd-footer__heading { color: var(--on-dark); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.hd-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hd-footer__list a { display: inline-block; padding: 6px 0; }
.hd-footer__towns { line-height: 1.9; }
.hd-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hd-badges li { font-size: .8125rem; font-weight: 700; padding: 6px 12px; border: 1px solid rgba(244, 240, 234, .25); border-radius: 999px; color: var(--on-dark); }
.hd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(244, 240, 234, .14); font-size: .875rem; }
.hd-footer__bottom p { margin: 0; }

/* Mobile quick-contact bar */
.hd-mobile-bar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: 68px; }
	.hd-mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
		box-shadow: 0 -6px 20px rgba(26, 25, 23, .08);
	}
	.hd-mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
	.hd-mobile-bar__call { border: 2px solid var(--ink); color: var(--ink); }
	.hd-mobile-bar__est { background: var(--ink); color: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.hd-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.hd-footer__grid { grid-template-columns: 1fr 1fr; }
	.hd-service-group__grid { grid-template-columns: 1fr; }
	.hd-service-group__aside { position: static; }
	.hd-service-group__aside .hd-photo, .hd-service-group__aside .hd-placeholder { max-height: 320px; }
}
@media (max-width: 860px) {
	.hd-split, .hd-area, .hd-contact { grid-template-columns: 1fr; }
	.hd-gallery-preview { grid-template-columns: 1fr 1fr; }
	.hd-gallery-preview > :last-child { display: none; }
}
@media (max-width: 599px) {
	.hd-actions .hd-btn { width: 100%; }
	.hd-steps, .hd-footer__grid, .hd-form__grid, .hd-gallery-preview { grid-template-columns: 1fr; }
	.hd-gallery-preview > :last-child { display: block; }
	.hd-card, .hd-service { padding: 22px; }
}

/* ---------- Real photos ---------- */
.hd-gallery-grid__item { margin: 0; }
.hd-gallery-grid__item .hd-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.hd-gallery-grid__item:hover .hd-photo { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 25, 23, .16); }
.hd-gallery-preview .hd-photo, .hd-split__media .hd-photo { box-shadow: var(--shadow); }
