/* ==========================================================================
   Site-wide design refresh: the homepage treatment carried to every other page.
   Loaded on all pages except the front page (which has home-refresh.css).
   Everything is scoped to body.ez-refresh. Page content is unchanged.
   Section vertical padding is deliberately left alone (see the spacing rules
   in site.css).
   To undo: remove the 'ezer-site-refresh' block in functions.php.
   ========================================================================== */

body.ez-refresh {
	--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 ---- */
body.ez-refresh .hero h1,
body.ez-refresh main h1,
body.ez-refresh .wp-block-post-content h2,
body.ez-refresh main > h2 {
	font-weight: 500;
	letter-spacing: -0.028em;
	line-height: 1.08;
	text-wrap: balance;
}
body.ez-refresh .wp-block-post-content .section h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
body.ez-refresh .wp-block-post-content h3 { font-weight: 600; letter-spacing: -0.012em; }
body.ez-refresh .section__eyebrow,
body.ez-refresh .hero__eyebrow { font-size: 12px; letter-spacing: .16em; }
body.ez-refresh .section__eyebrow::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 10px;
	background: var(--wp--preset--color--accent);
	vertical-align: 1px;
}
body.ez-refresh .section:not(.section--navy) .section__eyebrow::before { background: var(--wp--preset--color--primary); }
body.ez-refresh .svc-foundation .section__eyebrow::before { background: var(--wp--preset--color--accent); }

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

/* ---- Soft surface ---- */
body.ez-refresh .section--surface { background: var(--hr-soft); }

/* ---- Page hero: headline over a framed photo ---- */
body.ez-refresh .hero {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 0 !important;
	padding: clamp(44px, 5.5vw, 80px) var(--hr-gutter) clamp(24px, 3vw, 40px);
	background: var(--wp--preset--color--primary);
}
body.ez-refresh .hero::after { display: none; }
body.ez-refresh .hero .wp-block-cover__background { opacity: 1 !important; z-index: 0; }
body.ez-refresh .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.ez-refresh .hero h1 {
	max-width: 22ch;
	font-size: clamp(2.2rem, 4.6vw, 3.75rem);
	letter-spacing: -0.032em;
	line-height: 1.04;
	margin: 0 0 20px;
}
body.ez-refresh .hero p:not(.hero__eyebrow):not(.hero__topics):not(.hero__cue) { max-width: 38em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.5; opacity: .86; margin: 0; }
body.ez-refresh .hero .hero__eyebrow { margin: 0 0 18px; }
body.ez-refresh .hero .wp-block-buttons { margin-top: 30px; }
body.ez-refresh .hero > picture,
body.ez-refresh .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(220px, 30vw, 420px);
	margin: clamp(36px, 4.5vw, 60px) auto 0;
	border-radius: var(--hr-radius);
	object-fit: cover;
	overflow: hidden;
}
body.ez-refresh .hero > picture > img.wp-block-cover__image-background {
	position: static;
	width: 100%;
	height: 100%;
	border-radius: var(--hr-radius);
	object-fit: cover;
}
body.ez-refresh .hero .hero__cue { display: none; }
/* Right-aligned hero variant reads left like the rest */
body.ez-refresh .hero--right .wp-block-cover__inner-container { text-align: left; }
/* Articles: title block only, the featured image follows in the body */
body.ez-refresh.single .hero > picture,
body.ez-refresh.single .hero > img.wp-block-cover__image-background { display: none; }
body.ez-refresh.single .hero { padding-bottom: clamp(44px, 5.5vw, 80px); }
body.ez-refresh.single .hero h1 { max-width: 26ch; font-size: clamp(1.9rem, 3.6vw, 3rem); }
body.ez-refresh.single main .wp-block-post-featured-image img { border-radius: var(--hr-radius); }

/* ---- Cards ---- */
body.ez-refresh .card { border-radius: var(--hr-radius); border-color: var(--hr-line); }
body.ez-refresh .section--surface .card { border-color: transparent; }
body.ez-refresh .svc-card--here { border: 2px solid var(--wp--preset--color--primary); }
body.ez-refresh .svc-card--addon { border-style: dashed; border-color: var(--wp--preset--color--primary); }
body.ez-refresh .svc-card__here { border-radius: 999px; padding: 3px 12px; font-size: 12px; }
body.ez-refresh .svc-card,
body.ez-refresh .value-card,
body.ez-refresh .card-grid .card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .2s; }
body.ez-refresh .svc-card:hover,
body.ez-refresh .value-card:hover,
body.ez-refresh .card-grid .card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(13, 31, 53, .11); }
body.ez-refresh .svc-fw { border-radius: var(--hr-radius); border-top-width: 3px; }
body.ez-refresh .svc-foundation,
body.ez-refresh .svc-callout,
body.ez-refresh .logo-row { border-radius: var(--hr-radius); }
body.ez-refresh .value-card img,
body.ez-refresh .card .wp-block-post-featured-image img { border-radius: 10px; }
body.ez-refresh .card .wp-block-post-featured-image { overflow: hidden; border-radius: 10px; }
body.ez-refresh .card .wp-block-post-featured-image img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
body.ez-refresh .card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
body.ez-refresh .card .wp-block-post-title { font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
body.ez-refresh .card .wp-block-post-title a { text-decoration: none; }

/* ---- Card arrow links: round ---- */
body.ez-refresh .card__link a::after { border-radius: 999px; }

/* ---- Tables: rounded shell, lighter rules ---- */
body.ez-refresh .svc-table {
	border: 1px solid var(--hr-line);
	border-radius: var(--hr-radius);
	overflow: hidden;
	background: #fff;
}
body.ez-refresh .svc-table table { border: 0; }
body.ez-refresh .svc-table th {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-bottom: 0;
	padding: 14px 18px;
	font-weight: 600;
	letter-spacing: .01em;
}
body.ez-refresh .svc-table td { padding: 15px 18px; }

/* ---- Photos and diagrams ---- */
body.ez-refresh .svc-graphic img { border-radius: var(--hr-radius); }
body.ez-refresh .split .wp-block-image img,
body.ez-refresh .section .wp-block-columns > .wp-block-column > .wp-block-image:not(.svc-icon):not(.svc-graphic) img { border-radius: var(--hr-radius); }

/* ---- FAQ accordion ---- */
body.ez-refresh .wp-block-details {
	border: 0;
	border-radius: 12px;
	background: #fff;
	padding: 0;
	margin: 0 0 10px;
	transition: box-shadow .3s;
}
body.ez-refresh .section:not(.section--surface) .wp-block-details { background: var(--hr-soft); }
body.ez-refresh .wp-block-details summary {
	list-style: none;
	position: relative;
	padding: 18px 56px 18px 22px;
	font-weight: 600;
	letter-spacing: -0.008em;
}
body.ez-refresh .wp-block-details summary::-webkit-details-marker { display: none; }
body.ez-refresh .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
	font-weight: 500;
	font-size: 18px;
	line-height: 1;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
body.ez-refresh .wp-block-details[open] summary::after { transform: rotate(45deg); }
body.ez-refresh .wp-block-details[open] { box-shadow: 0 12px 30px rgba(13, 31, 53, .08); }
body.ez-refresh .wp-block-details > :not(summary) { margin: 0; padding: 0 22px 20px; }
body.ez-refresh .split .wp-block-details:first-child { border-top: 0; }

/* ---- Numbered lists on Contact ---- */
body.ez-refresh .expect-list li::before { border-radius: 999px; }

/* ---- Closing CTA: inset rounded navy card ---- */
body.ez-refresh .wp-block-post-content > .cta-band {
	max-width: var(--hr-wide);
	margin: clamp(40px, 6vw, 80px) max(var(--hr-gutter), calc((100% - var(--hr-wide)) / 2)) clamp(40px, 6vw, 80px) !important;
	border-radius: var(--hr-radius);
	padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 72px) !important;
}
body.ez-refresh .wp-block-post-content > .cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }
body.ez-refresh .wp-block-post-content > .cta-band p { color: rgba(255, 255, 255, .82); }
body.ez-refresh .cta-band .wp-block-buttons { justify-content: flex-start; }

/* ---- Buttons hover ---- */
body.ez-refresh main .wp-block-button__link,
body.ez-refresh .wp-block-post-content .wp-block-button__link,
body.ez-refresh .hero .wp-block-button__link { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background .2s, color .2s; }
body.ez-refresh .wp-block-post-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.ez-refresh .hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(222, 248, 89, .28); }

/* ---- Pagination on Insights ---- */
body.ez-refresh .page-numbers { border-radius: 999px; }

/* ---- Phone ---- */
@media (max-width: 781px) {
	body.ez-refresh .hero > picture,
	body.ez-refresh .hero > img.wp-block-cover__image-background { height: clamp(190px, 52vw, 320px); }
}
@media (max-width: 599px) {
	body.ez-refresh .wp-block-post-content > .cta-band { margin-left: 16px !important; margin-right: 16px !important; }
}

/* ==========================================================================
   Animation. Only active when site-refresh.js adds .hr-anim to <html>, so the
   page is fully visible without JavaScript or with reduced motion.
   ========================================================================== */
.hr-anim body.ez-refresh [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.ez-refresh [data-hr="up"] { opacity: 0; transform: translateY(32px); }
.hr-anim body.ez-refresh [data-hr="fade"] { opacity: 0; }
.hr-anim body.ez-refresh [data-hr="frame"] { opacity: 0; transform: translateY(44px) scale(.97); clip-path: inset(8% 4% 0 4% round 14px); }
.hr-anim body.ez-refresh [data-hr].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
.hr-anim body.ez-refresh [data-hr="up"].is-in,
.hr-anim body.ez-refresh [data-hr="fade"].is-in,
.hr-anim body.ez-refresh [data-hr="lines"].is-in { clip-path: none; }

body.ez-refresh .hr-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
body.ez-refresh .hr-line > span { display: block; }
.hr-anim body.ez-refresh [data-hr="lines"] .hr-line > span { transform: translateY(112%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.hr-anim body.ez-refresh [data-hr="lines"].is-in .hr-line > span { transform: none; }
.hr-pre body.ez-refresh .hero h1 { visibility: hidden; }

/* Hero must be visible on load (Safari). hr-loaded is already added by JS. */
.hr-loaded body.ez-refresh .hero [data-hr],
.hr-loaded body.ez-refresh .hero [data-hr].is-in {
	opacity: 1 !important;
	transform: none !important;
	clip-path: none !important;
}
.hr-loaded body.ez-refresh .hero [data-hr="lines"] .hr-line > span {
	transform: none !important;
}

/* Leftover Cover dim from the old full-bleed hero. The refresh layout is a navy stack plus a framed photo; this overlay is not needed. */
body.ez-refresh .hero .wp-block-cover__background {
	display: none !important;
}


body.ez-refresh .hero > img.hr-parallax { object-position: var(--hr-ox, 50%) calc(var(--hr-oy, 50%) + var(--hr-shift, 0%) * 3) !important; }

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

/* Hero is content-height; the framed photo never shrinks */
body.ez-refresh .hero { height: auto !important; max-height: none !important; }
body.ez-refresh .hero > picture,
body.ez-refresh .hero > img.wp-block-cover__image-background { flex: 0 0 auto; }
@media (min-width: 768px) {
	body.ez-refresh .hero--right .wp-block-cover__inner-container > * { margin-left: 0; margin-right: 0; }
	body.ez-refresh .hero--right .wp-block-cover__inner-container > h1 { max-width: 22ch; }
	body.ez-refresh .hero--right .wp-block-cover__inner-container > p:not(.hero__eyebrow) { max-width: 38em; }
}
body.ez-refresh .hero--right .wp-block-buttons { justify-content: flex-start; }
@media (max-width: 599px) {
	body.ez-refresh .hero.hero--page h1 { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.025em; }
}
