/* ==========================================================================
   Homepage design refresh (trial). Loaded on the front page only.
   Everything is scoped to body.home; page content and other pages are unchanged.
   To undo: remove the 'ezer-home-refresh' enqueue in functions.php.
   ========================================================================== */

body.home {
	--hr-radius: 14px;
	--hr-soft: #f5f6f8;
	--hr-line: rgba(13, 31, 53, .1);
	--hr-gutter: var(--wp--preset--spacing--24, 24px);
	--hr-wide: var(--wp--style--global--wide-size, 1200px);
}

/* ---- Type: lighter, tighter, larger ---- */
body.home .wp-block-post-content h1,
body.home .wp-block-post-content h2 {
	font-weight: 500;
	letter-spacing: -0.028em;
	line-height: 1.08;
	text-wrap: balance;
}
body.home .wp-block-post-content h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
body.home .wp-block-post-content h2.has-x-large-font-size { font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important; letter-spacing: -0.02em; }
body.home .wp-block-post-content .section p { color: rgba(13, 31, 53, .78); }

/* ---- Buttons: pills ---- */
body.home .wp-block-button__link {
	border-radius: 999px;
	padding: 14px 26px;
	letter-spacing: .01em;
	text-transform: none;
	font-size: 15px;
	font-weight: 600;
}
body.home .site-header__cta .wp-block-button__link { padding: 10px 20px; font-size: 14px; }

/* ---- Sections: more air, soft surface ---- */
body.home .wp-block-post-content > .section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
body.home .section--surface { background: var(--hr-soft); }

/* ---- Hero: headline over a framed photo ---- */
body.home .hero {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 0 !important;
	padding: clamp(48px, 6vw, 88px) var(--hr-gutter) clamp(24px, 3vw, 40px);
	background: var(--wp--preset--color--primary);
}
body.home .hero::after { display: none; }
body.home .hero .wp-block-cover__background { opacity: 1 !important; z-index: 0; }
body.home .hero .wp-block-cover__inner-container {
	order: 1;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--hr-wide);
	margin: 0 auto;
	padding: 0;
}
body.home .hero h1 {
	max-width: 16ch;
	font-size: clamp(2.75rem, 6.2vw, 5rem);
	letter-spacing: -0.035em;
	line-height: 1.02;
	margin: 0 0 20px;
}
body.home .hero p:not(.hero__cue) { max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; opacity: .86; margin: 0; }
body.home .hero .wp-block-buttons { margin-top: 32px; }
body.home .hero > picture,
body.home .hero > img.wp-block-cover__image-background {
	order: 2;
	position: relative;
	inset: auto;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: var(--hr-wide);
	height: clamp(260px, 40vw, 560px);
	margin: clamp(40px, 5vw, 72px) auto 0;
	border-radius: var(--hr-radius);
	object-fit: cover;
	object-position: 50% 72%;
}
body.home .hero > picture > img.wp-block-cover__image-background {
	position: static;
	width: 100%;
	height: 100%;
	border-radius: var(--hr-radius);
	object-fit: cover;
	object-position: 50% 72%;
}
body.home .hero .hero__cue { display: none; }

/* ---- Photos: rounded frames ---- */
body.home #intro .wp-block-image img,
body.home .section:has(ol.wp-block-list) .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--hr-radius);
	display: block;
}
body.home .section > .wp-block-columns.alignwide { gap: clamp(32px, 6vw, 88px); }

/* ---- Intro ---- */
body.home #intro h2 { margin-bottom: 28px; }
body.home #intro p { font-size: 1.0625rem; max-width: 34em; }

/* ---- Services cards ---- */
body.home .ezhs-card { border-radius: var(--hr-radius); }
body.home .section:has(.ezhs) h2 { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---- How We Work: numbered step cards ---- */
body.home .section:has(ol.wp-block-list) > .wp-block-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(28px, 4vw, 48px);
}
body.home .section:has(ol.wp-block-list) > .wp-block-columns > .wp-block-column:has(ol) { order: 1; }
body.home .section:has(ol.wp-block-list) > .wp-block-columns > .wp-block-column:has(.wp-block-image) { order: 2; }
body.home .section:has(ol.wp-block-list) .wp-block-image img { aspect-ratio: 21 / 8; }
body.home .section:has(ol.wp-block-list) h2 { margin-bottom: clamp(28px, 4vw, 48px); }
body.home .section ol.wp-block-list {
	list-style: none;
	counter-reset: hr-step;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
}
body.home .section ol.wp-block-list > li {
	counter-increment: hr-step;
	background: var(--hr-soft);
	border-radius: var(--hr-radius);
	padding: 28px 24px 30px;
	margin: 0;
	font-size: .98rem;
	line-height: 1.55;
	color: rgba(13, 31, 53, .78);
}
body.home .section ol.wp-block-list > li::before {
	content: counter(hr-step, decimal-leading-zero);
	display: block;
	margin-bottom: 44px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	width: max-content;
	padding-bottom: 4px;
}
body.home .section ol.wp-block-list > li strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--primary);
}

/* ---- Vendor-Neutral: inset rounded statement card ---- */
body.home .band {
	width: auto;
	max-width: var(--hr-wide);
	margin: 0 max(var(--hr-gutter), calc((100% - var(--hr-wide)) / 2)) !important;
	border-radius: var(--hr-radius);
	overflow: hidden;
	min-height: 0 !important;
	padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px) !important;
}
body.home .band h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
body.home .band .band__cols { align-items: flex-end !important; gap: clamp(28px, 5vw, 72px); }
body.home .band .band__cols > .wp-block-column:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.home .band .band__point {
	margin: 0 !important;
	padding: 20px 20px 22px;
	border-left: 0;
	border-top: 2px solid var(--wp--preset--color--accent);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 0 0 10px 10px;
	font-size: 1.02rem !important;
	line-height: 1.45;
}

/* ---- Frameworks and partners ---- */
body.home .logo-row { border-radius: var(--hr-radius); }
body.home .chip { border-color: var(--hr-line); background: var(--hr-soft); font-weight: 600; }

/* ---- Insights cards ---- */
body.home .section:has(.wp-block-query) .card {
	border: 0;
	border-radius: var(--hr-radius);
	padding: 14px 14px 22px;
}
body.home .section:has(.wp-block-query) .card .wp-block-post-featured-image img { border-radius: 10px; }
body.home .section:has(.wp-block-query) .card .wp-block-post-title {
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.3;
	padding: 0 8px;
}
body.home .section:has(.wp-block-query) .card .wp-block-post-title a { text-decoration: none; }

/* ---- Closing CTA: inset rounded navy card ---- */
body.home .wp-block-post-content > .section--navy {
	max-width: var(--hr-wide);
	margin: clamp(48px, 7vw, 96px) max(var(--hr-gutter), calc((100% - var(--hr-wide)) / 2)) clamp(48px, 7vw, 96px) !important;
	border-radius: var(--hr-radius);
	padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
}
body.home .wp-block-post-content > .section--navy h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 14ch; }
body.home .wp-block-post-content > .section--navy p { color: rgba(255, 255, 255, .82); }

/* ---- Tablet and phone ---- */
@media (max-width: 1023px) {
	body.home .section ol.wp-block-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.home .band .band__cols > .wp-block-column:last-child { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	body.home .hero > picture,
	body.home .hero > img.wp-block-cover__image-background { height: clamp(220px, 62vw, 380px); }
	body.home .section:has(ol.wp-block-list) .wp-block-image img { aspect-ratio: 16 / 10; }
	body.home .band .band__cols { align-items: stretch !important; }
}
@media (max-width: 599px) {
	body.home .section ol.wp-block-list { grid-template-columns: 1fr; }
	body.home .section ol.wp-block-list > li::before { margin-bottom: 20px; }
	body.home .wp-block-post-content > .section--navy,
	body.home .band { margin-left: 16px !important; margin-right: 16px !important; }
}

/* ==========================================================================
   Animation. Only active when home-refresh.js adds .hr-anim to <html>, so the
   page is fully visible without JavaScript or with reduced motion.
   ========================================================================== */
.hr-anim body.home [data-hr] {
	transition:
		opacity .8s cubic-bezier(.2, .7, .2, 1) var(--hr-delay, 0ms),
		transform .9s cubic-bezier(.2, .7, .2, 1) var(--hr-delay, 0ms),
		clip-path 1.1s cubic-bezier(.2, .7, .2, 1) var(--hr-delay, 0ms);
	will-change: opacity, transform;
}
.hr-anim body.home [data-hr="up"] { opacity: 0; transform: translateY(36px); }
.hr-anim body.home [data-hr="fade"] { opacity: 0; }
.hr-anim body.home [data-hr="pop"] { opacity: 0; transform: translateY(14px) scale(.92); }
.hr-anim body.home [data-hr="frame"] { opacity: 0; transform: translateY(48px) scale(.965); clip-path: inset(8% 4% 0 4% round 14px); }
.hr-anim body.home [data-hr].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
.hr-anim body.home [data-hr="up"].is-in,
.hr-anim body.home [data-hr="fade"].is-in,
.hr-anim body.home [data-hr="pop"].is-in { clip-path: none; }

/* Headings roll up line by line */
body.home .hr-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
body.home .hr-line > span { display: block; }
.hr-anim body.home [data-hr="lines"] .hr-line > span { transform: translateY(112%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.hr-anim body.home [data-hr="lines"].is-in .hr-line > span { transform: none; }

/* Parallax on framed photos: the image is slightly oversized and drifts */
body.home img.hr-parallax { scale: 1.12; translate: 0 var(--hr-shift, 0%); transition: translate .2s linear; }
body.home .hero > img.hr-parallax { scale: 1; object-position: 50% calc(72% + var(--hr-shift, 0%) * 3); translate: none; }
body.home .section:has(ol.wp-block-list) .wp-block-image { overflow: hidden; border-radius: var(--hr-radius); }

/* Hover: cards lift, step numbers extend, photos ease in */
body.home .section ol.wp-block-list > li { transition: background .3s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
body.home .section ol.wp-block-list > li:hover { background: #fff; transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13, 31, 53, .12); }
body.home .section ol.wp-block-list > li::before { transition: padding-right .35s cubic-bezier(.2, .7, .2, 1); }
body.home .section ol.wp-block-list > li:hover::before { padding-right: 28px; }
body.home .band__point { transition: background .3s, transform .35s cubic-bezier(.2, .7, .2, 1); }
body.home .band__point:hover { background: rgba(255, 255, 255, .14); transform: translateY(-4px); }
body.home .section:has(.wp-block-query) .card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
body.home .section:has(.wp-block-query) .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13, 31, 53, .12); }
body.home .section:has(.wp-block-query) .card .wp-block-post-featured-image { overflow: hidden; border-radius: 10px; }
body.home .section:has(.wp-block-query) .card .wp-block-post-featured-image img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
body.home .section:has(.wp-block-query) .card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
body.home #intro .wp-block-image { overflow: hidden; border-radius: var(--hr-radius); }
body.home #intro .wp-block-image img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
body.home #intro .wp-block-image:hover img { transform: scale(1.04); }
body.home .wp-block-post-content .wp-block-button__link { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background .2s, color .2s; }
body.home .wp-block-post-content .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(222, 248, 89, .28); }

@media (prefers-reduced-motion: reduce) {
	body.home [data-hr], body.home .hr-line > span { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

.hr-pre body.home .hero h1 { visibility: hidden; }

/* Hero is content-height; the framed photo never shrinks */
body.home .hero { height: auto !important; max-height: none !important; }
body.home .hero > picture,
body.home .hero > img.wp-block-cover__image-background { flex: 0 0 auto; }
