/* ==========================================================================
   Hayes Hunter PC – Home Page template (template-home.php)
   Scoped to .hh-home so legacy pages are untouched.
   Tokens live in hh-site.css (:root).
   ========================================================================== */

.hh-home { background: #fff; color: var(--hh-ink); }
.hh-home *, .hh-home *::before, .hh-home *::after { box-sizing: border-box; }

/* Reset theme heading/list defaults inside the new sections */
.hh-home h1, .hh-home h2, .hh-home h3 { padding: 0; margin: 0; }
.hh-home section:not(.testimonials) p { margin: 0 0 1em; color: inherit; }
.hh-home section:not(.testimonials) ul,
.hh-home section:not(.testimonials) ol { margin: 0; padding: 0; list-style: none; }
.hh-home section:not(.testimonials) li { padding: 0; font-size: inherit; }

.hh-wrap { width: min(1220px, 100% - 48px); margin-inline: auto; position: relative; }
.hh-section { padding: clamp(64px, 8vw, 112px) 0; position: relative; overflow: hidden; }
.hh-bg-cream { background: var(--hh-cream); }
.hh-bg-forest { background: var(--hh-forest); color: #fff; }
.hh-center { text-align: center; margin-top: 44px; }

.hh-eyebrow {
	font-family: "DM Sans", sans-serif;
	font-size: .78rem !important;
	font-weight: 700;
	letter-spacing: .16em !important;
	text-transform: uppercase;
	color: var(--hh-gold) !important;
	margin: 0 0 14px !important;
	display: flex;
	align-items: center;
	gap: 12px;
}
.hh-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hh-eyebrow-dark { color: var(--hh-gold-ink) !important; }

.hh-h2 {
	font-family: "Playfair Display", serif;
	font-weight: 400 !important;
	font-size: clamp(2rem, 3.6vw, 3rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -.005em !important;
	color: var(--hh-forest) !important;
	margin-bottom: 18px !important;
	text-wrap: balance;
}
.hh-bg-forest .hh-h2 { color: #fff !important; }
.hh-h3 { font-family: "Playfair Display", serif; font-weight: 400 !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; color: var(--hh-forest) !important; margin-bottom: 14px !important; }
.hh-h3 a { color: inherit; }
.hh-lead { font-size: 1.25rem !important; line-height: 1.5 !important; color: var(--hh-forest) !important; font-family: "Playfair Display", serif; font-style: italic; }

.hh-section-head { max-width: 760px; margin-bottom: 48px; }
.hh-section-head > p { font-size: 1.08rem; color: var(--hh-muted); }
.hh-split-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hh-split-head > p { max-width: 460px; }
.hh-bg-forest .hh-split-head > p { color: rgba(255,255,255,.75) !important; }

/* ---------- Buttons ---------- */
.hh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	font-family: "DM Sans", sans-serif;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.hh-btn:hover { transform: translateY(-1px); }
.hh-btn-gold { background: var(--hh-gold); color: var(--hh-forest) !important; }
.hh-btn-gold:hover { background: #ebcd7f; }
.hh-btn-ghost { border-color: rgba(255,255,255,.7); color: #fff !important; }
.hh-btn-ghost:hover { background: #fff; color: var(--hh-forest) !important; }
.hh-btn-green { background: var(--hh-sage); color: #fff !important; }
.hh-btn-green:hover { background: var(--hh-sage-dark); }
.hh-btn-outline { border-color: var(--hh-forest); color: var(--hh-forest) !important; }
.hh-btn-outline:hover { background: var(--hh-forest); color: #fff !important; }

.hh-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hh-sage);
	text-decoration: none;
}
.hh-arrow-link::after { content: "→"; transition: transform .18s ease; }
a:hover > .hh-arrow-link::after, .hh-arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
#hh-hero {
	position: relative;
	min-height: min(860px, 100vh);
	display: flex;
	align-items: flex-end;
	padding: 210px 0 170px;
	color: #fff;
	overflow: hidden;
	background: var(--hh-forest) url(../img/hero-bg.jpg) center/cover no-repeat;
}
.hh-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hh-hero-shade {
	position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(90deg, rgba(12,50,39,.94) 0%, rgba(12,50,39,.82) 42%, rgba(12,50,39,.35) 75%, rgba(12,50,39,.25) 100%),
		linear-gradient(0deg, rgba(12,50,39,.65) 0%, rgba(12,50,39,0) 40%);
}
.hh-hero-grid { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hh-hero-copy { max-width: 760px; }
#hh-hero h1 {
	font-family: "Playfair Display", serif;
	font-weight: 400;
	color: #fff;
	font-size: clamp(2.6rem, 5.4vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -.01em;
	margin-bottom: 24px;
}
#hh-hero h1 span {
	display: block;
	font-style: italic;
	color: var(--hh-gold);
	font-size: .52em;
	line-height: 1.25;
	margin-top: 14px;
	letter-spacing: 0;
}
.hh-hero-lead { font-size: 1.15rem !important; line-height: 1.6 !important; color: rgba(255,255,255,.88) !important; max-width: 640px; margin: 0 0 32px !important; }
.hh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hh-hero-proof { display: flex; flex-wrap: wrap; gap: 10px 0; border-top: 1px solid rgba(255,255,255,.22); padding-top: 22px !important; }
.hh-hero-proof li { font-size: .95rem !important; color: rgba(255,255,255,.78); padding-right: 22px !important; margin-right: 22px; border-right: 1px solid rgba(255,255,255,.22); }
.hh-hero-proof li:last-child { border-right: 0; margin-right: 0; }
.hh-hero-proof strong { color: #fff; font-weight: 600; }
.hh-hero-badge { width: 130px; height: auto; flex-shrink: 0; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }

/* ---------- Pillars ---------- */
#hh-pillars { position: relative; z-index: 3; margin-top: -110px; }
.hh-pillar-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 22px; }
.hh-pillar {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 22px 50px rgba(12,50,39,.14);
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.hh-pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(12,50,39,.2); }
.hh-pillar-media { height: 150px; background-size: cover; background-position: center; position: relative; }
.hh-pillar-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,50,39,.05), rgba(12,50,39,.45)); }
.hh-pillar-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; position: relative; }
.hh-pillar-num {
	position: absolute; top: -26px; left: 28px;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--hh-forest); color: var(--hh-gold);
	display: grid; place-items: center;
	font-family: "Playfair Display", serif; font-size: 1.1rem;
	border: 3px solid #fff;
}
.hh-pillar h2 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.65rem; color: var(--hh-forest); margin: 18px 0 8px; }
.hh-pillar h2 a { color: inherit; }
.hh-pillar-body > p { color: var(--hh-muted) !important; font-size: .98rem !important; }
.hh-pillar ul { margin: 4px 0 22px !important; display: grid; grid-template-columns: 1fr; gap: 0; }
.hh-pillar-real-estate ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.hh-pillar li a {
	display: block; padding: 9px 0; border-bottom: 1px solid var(--hh-line);
	color: var(--hh-ink); font-size: .95rem; transition: color .15s ease, padding .15s ease;
}
.hh-pillar li a:hover { color: var(--hh-sage); padding-left: 4px; }
.hh-pillar .hh-arrow-link { margin-top: auto; }
.hh-pillar-real-estate { border-top: 4px solid var(--hh-gold); }
.hh-pillar-real-estate .hh-pillar-media { height: 170px; }

/* ---------- At a glance ---------- */
.hh-glance-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hh-glance-answer { font-size: 1.15rem !important; line-height: 1.65 !important; color: var(--hh-ink) !important; border-left: 3px solid var(--hh-gold); padding-left: 20px; }
#hh-glance .hh-glance-grid > div > p:last-child { color: var(--hh-muted); font-size: 1.05rem; }
.hh-facts { margin: 0; border: 1px solid var(--hh-line); border-radius: 6px; overflow: hidden; background: #fff; }
.hh-facts > div { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--hh-line); }
.hh-facts > div:last-child { border-bottom: 0; }
.hh-facts dt { background: var(--hh-cream); padding: 14px 18px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-gold-ink); }
.hh-facts dd { margin: 0; padding: 14px 18px; font-size: 1rem; color: var(--hh-ink); }
.hh-facts a { color: var(--hh-sage); font-weight: 600; }

/* ---------- Real estate clusters ---------- */
.hh-cluster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hh-cluster {
	background: #fff; border-radius: 6px; padding: 36px 36px 30px;
	border: 1px solid var(--hh-line); position: relative;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.hh-cluster:hover { border-color: var(--hh-sage); box-shadow: 0 16px 40px rgba(12,50,39,.08); }
.hh-cluster-num { position: absolute; top: 28px; right: 32px; font-family: "Playfair Display", serif; font-size: 2.6rem; line-height: 1; color: var(--hh-line); }
.hh-cluster h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.6rem; color: var(--hh-forest); margin-bottom: 12px !important; padding-right: 60px; }
.hh-cluster > p { color: var(--hh-muted) !important; font-size: 1rem !important; line-height: 1.65 !important; }
.hh-cluster ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px !important; }
.hh-cluster li a {
	display: inline-block; padding: 7px 14px; border-radius: 999px;
	background: var(--hh-cream); color: var(--hh-forest); font-size: .88rem; font-weight: 500;
	border: 1px solid transparent; transition: all .15s ease;
}
.hh-cluster li a:hover { background: var(--hh-forest); color: #fff; }

/* ---------- Scenarios ---------- */
.hh-scn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hh-line); border: 1px solid var(--hh-line); border-radius: 6px; overflow: hidden; counter-reset: scn; }
.hh-scn-grid li { background: #fff; counter-increment: scn; }
.hh-scn-grid a { display: flex; flex-direction: column; height: 100%; padding: 30px 26px 26px; color: inherit; transition: background .2s ease; }
.hh-scn-grid a::before { content: counter(scn, decimal-leading-zero); font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--hh-gold-ink); margin-bottom: 14px; }
.hh-scn-grid a:hover { background: var(--hh-forest); }
.hh-scn-grid h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.22rem; line-height: 1.3; color: var(--hh-forest); margin-bottom: 10px !important; transition: color .2s ease; }
.hh-scn-grid p { font-size: .95rem !important; color: var(--hh-muted) !important; transition: color .2s ease; }
.hh-scn-more { margin-top: auto; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hh-sage); }
.hh-scn-more::after { content: " →"; }
.hh-scn-grid a:hover h3 { color: #fff; }
.hh-scn-grid a:hover p { color: rgba(255,255,255,.75) !important; }
.hh-scn-grid a:hover .hh-scn-more { color: var(--hh-gold); }

/* ---------- Results ---------- */
.hh-watermark { position: absolute; right: -80px; top: -40px; width: 520px; opacity: .05; pointer-events: none; }
.hh-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hh-result {
	display: flex; flex-direction: column; padding: 32px 28px; border-radius: 6px;
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: #fff;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hh-result:hover { background: rgba(255,255,255,.08); border-color: var(--hh-gold); transform: translateY(-3px); }
.hh-result-figure { font-family: "Playfair Display", serif; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--hh-gold); }
.hh-result-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 12px 0 14px; }
.hh-result p { color: rgba(255,255,255,.86) !important; font-size: 1rem !important; }
.hh-result .hh-arrow-link { margin-top: auto; color: var(--hh-gold); }

/* ---------- Attorney ---------- */
.hh-atty-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hh-atty-photo { margin: 0; position: relative; }
.hh-atty-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--hh-gold); border-radius: 6px; z-index: 0; }
.hh-atty-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; }
.hh-atty-photo figcaption { position: absolute; z-index: 2; left: 0; bottom: 0; right: 0; padding: 18px 22px; color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(0deg, rgba(12,50,39,.85), rgba(12,50,39,0)); border-radius: 0 0 6px 6px; }
.hh-atty-copy > p:not(.hh-eyebrow):not(.hh-lead) { color: var(--hh-muted); font-size: 1.05rem; line-height: 1.7; }
.hh-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 8px 0 32px !important; }
.hh-checks li { position: relative; padding-left: 26px !important; font-size: .98rem !important; color: var(--hh-ink); }
.hh-checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--hh-sage); border-bottom: 2px solid var(--hh-sage); transform: rotate(-45deg); }

/* ---------- Pillars 2 & 3 ---------- */
.hh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hh-panel { background: #fff; border-radius: 6px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--hh-line); }
.hh-panel > p:not(.hh-eyebrow) { color: var(--hh-muted); font-size: 1.02rem; line-height: 1.7; }
.hh-link-cols { columns: 2; column-gap: 24px; margin-top: 10px !important; }
.hh-link-cols li { break-inside: avoid; }
.hh-link-cols a { display: block; padding: 9px 0; border-bottom: 1px solid var(--hh-line); color: var(--hh-forest); font-size: .95rem; }
.hh-link-cols a:hover { color: var(--hh-sage); }

/* ---------- Process ---------- */
.hh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.hh-steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--hh-line); }
.hh-steps li { position: relative; padding-right: 28px !important; }
.hh-steps span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--hh-sage); color: var(--hh-sage); font-family: "Playfair Display", serif; font-size: 1.1rem; position: relative; margin-bottom: 22px; }
.hh-steps li:first-child span { background: var(--hh-sage); color: #fff; }
.hh-steps h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.35rem; color: var(--hh-forest); margin-bottom: 8px !important; }
.hh-steps p { font-size: .98rem !important; color: var(--hh-muted) !important; }

/* ---------- Testimonials (theme section, light refresh) ---------- */
.hh-home .testimonials { background: var(--hh-sage); }

/* ---------- FAQ ---------- */
.hh-faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hh-faq-grid > header { position: sticky; top: 110px; }
.hh-faq-grid > header p:not(.hh-eyebrow) { color: var(--hh-muted); font-size: 1.05rem; margin-bottom: 28px !important; }
.hh-faq-list details { border-bottom: 1px solid var(--hh-line); }
.hh-faq-list details:first-child { border-top: 1px solid var(--hh-line); }
.hh-faq-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; }
.hh-faq-list summary::-webkit-details-marker { display: none; }
.hh-faq-list summary::after {
	content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hh-line);
	display: grid; place-items: center; font-size: 1.2rem; color: var(--hh-sage); transition: transform .2s ease, background .2s ease;
}
.hh-faq-list details[open] summary::after { content: "–"; background: var(--hh-sage); color: #fff; border-color: var(--hh-sage); }
.hh-faq-list summary h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.22rem; line-height: 1.35; color: var(--hh-forest); display: inline; }
.hh-faq-a { padding: 0 48px 24px 0; }
.hh-faq-a p { color: var(--hh-muted) !important; font-size: 1.02rem !important; line-height: 1.75 !important; }
.hh-disclaimer { font-size: .85rem !important; color: var(--hh-muted) !important; margin-top: 22px !important; font-style: italic; }

/* ---------- Insights ---------- */
.hh-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hh-post { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--hh-line); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.hh-post:hover { box-shadow: 0 18px 44px rgba(12,50,39,.1); transform: translateY(-3px); }
.hh-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hh-forest); }
.hh-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hh-post:hover .hh-post-thumb img { transform: scale(1.04); }
.hh-post-body { padding: 24px 26px 28px; }
.hh-post time { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-gold-ink); }
.hh-post h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: 1.28rem; line-height: 1.32; margin: 10px 0 10px !important; }
.hh-post h3 a { color: var(--hh-forest); }
.hh-post h3 a:hover { color: var(--hh-sage); }
.hh-post p { font-size: .96rem !important; color: var(--hh-muted) !important; }

/* ---------- Office ---------- */
.hh-office-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hh-office-grid > div > p:not(.hh-eyebrow) { color: var(--hh-muted); font-size: 1.05rem; line-height: 1.7; }
.hh-office-grid address { font-style: normal; font-size: 1.05rem; line-height: 1.7; margin: 8px 0 28px; padding-left: 20px; border-left: 3px solid var(--hh-gold); }
.hh-office-grid address a { color: var(--hh-sage); font-weight: 600; }
.hh-office-grid .hh-hero-actions { margin-bottom: 0; }
.hh-map { border-radius: 6px; overflow: hidden; border: 1px solid var(--hh-line); aspect-ratio: 4 / 3; background: var(--hh-cream); }
.hh-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.hh-home * { transition: none !important; }
	.hh-hero-video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hh-pillar-grid { grid-template-columns: 1fr 1fr; }
	.hh-pillar-real-estate { grid-column: 1 / -1; }
	.hh-scn-grid { grid-template-columns: repeat(2, 1fr); }
	.hh-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	#hh-hero { padding: 170px 0 150px; min-height: 0; }
	.hh-hero-badge { display: none; }
	.hh-glance-grid, .hh-atty-grid, .hh-two-col, .hh-faq-grid, .hh-office-grid { grid-template-columns: 1fr; }
	.hh-faq-grid > header { position: static; }
	.hh-cluster-grid { grid-template-columns: 1fr; }
	.hh-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.hh-steps::before { display: none; }
	.hh-post-grid { grid-template-columns: 1fr; }
	.hh-atty-photo { max-width: 460px; }
}
@media (max-width: 640px) {
	.hh-wrap { width: calc(100% - 32px); }
	#hh-hero { padding: 140px 0 130px; }
	.hh-hero-actions .hh-btn { width: 100%; }
	.hh-hero-proof li { border-right: 0; margin-right: 0; padding-right: 0 !important; width: 100%; }
	.hh-pillar-grid { grid-template-columns: 1fr; }
	.hh-pillar-real-estate ul { grid-template-columns: 1fr; }
	.hh-scn-grid, .hh-results-grid, .hh-steps, .hh-checks { grid-template-columns: 1fr; }
	.hh-facts > div { grid-template-columns: 1fr; }
	.hh-facts dt { padding-bottom: 6px; }
	.hh-cluster { padding: 28px 22px; }
	.hh-link-cols { columns: 1; }
}
