@charset "UTF-8";
/* sections/hero.php */
.hr-section {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	/* Same gap (--hr-gap) between the header and the content as between the content and the end of the section. */
	--hr-gap: calc(var(--space-7) + var(--space-3));
	padding: calc(var(--hr-gap) + var(--header-offset, 0px)) var(--space-gutter) var(--hr-gap);
	/* Photo under a veil of the reference navy only (no other colour): the photo fades into solid navy behind the form. */
	/* Veil colour: the reference navy, computes to #061e48. */
	--hr-blue: color-mix(in srgb, var(--c-primary) 8%, var(--c-primary-dark));
	background-color: var(--hr-blue);
	background-image:
		linear-gradient(180deg, color-mix(in srgb, var(--hr-blue) 80%, transparent) 0, color-mix(in srgb, var(--hr-blue) 90%, transparent) 70vw, var(--hr-blue) 172vw),
		url("/wp-content/uploads/2026/10/deratihome-cover-phone.webp");
	background-repeat: no-repeat;
	background-position: 0 0, top center;
	background-size: auto, 100% auto;
	color: var(--c-on-dark);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.5;
}
.hr-section *, .hr-section *::before, .hr-section *::after { box-sizing: border-box; }
.hr-icon { flex: none; width: 1.25em; height: 1.25em; }
.hr-inner { display: grid; gap: var(--space-6); max-width: var(--container); margin: 0 auto; }
.hr-inner > * { min-width: 0; }

/* Intro */
.hr-badge {
	display: inline-flex; align-items: center; gap: var(--space-2);
	margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-4);
	border: 1px solid color-mix(in srgb, var(--c-on-dark) 22%, transparent);
	border-radius: var(--radius-pill);
	background: color-mix(in srgb, var(--c-on-dark) 10%, transparent);
	font-size: var(--fs-sm); font-weight: 600;
}
.hr-badge .hr-icon { color: var(--c-primary-light); }
.hr-section .hr-title {
	margin: 0 0 var(--space-4); color: var(--c-on-dark);
	font-family: var(--f-heading); font-size: var(--fs-3xl); font-weight: 800;
	line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.hr-title-accent { display: block; color: var(--c-primary-light); }
.hr-lead {
	margin: 0; max-width: 52ch;
	color: color-mix(in srgb, var(--c-on-dark) 86%, transparent);
	font-size: var(--fs-lg); line-height: 1.6;
}


/* Buttons */
.hr-section .hr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	width: 100%; min-height: 3rem; padding: var(--space-3) var(--space-5);
	border: 1px solid transparent; border-radius: var(--radius-sm);
	background: var(--c-primary); color: var(--c-on-primary);
	font: 700 var(--fs-base)/1.2 var(--f-body); text-align: center; text-decoration: none;
	cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.hr-section .hr-btn:hover, .hr-section .hr-btn:focus { background: var(--c-primary-hover); color: var(--c-on-primary); }

/*
	Intro buttons, in the same family as the header call button: pills with a round
	icon badge that reacts on hover. One solid white, one glass (red stays for the form).
*/
.hr-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hr-section .hr-cta .hr-btn {
	flex: 1 1 auto; justify-content: space-between; gap: var(--space-4); width: auto; min-height: 3.5rem;
	padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5); border-radius: var(--radius-pill);
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.hr-section .hr-cta .hr-btn:hover { transform: translateY(-2px); }
.hr-btn-icon {
	display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.hr-btn-icon .hr-icon { transition: transform 0.25s; }
.hr-section .hr-btn--light {
	background: var(--c-surface); color: var(--c-primary);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--c-bg-dark) 40%, transparent);
}
.hr-section .hr-btn--light:hover, .hr-section .hr-btn--light:focus {
	background: var(--c-surface); color: var(--c-primary);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--c-bg-dark) 50%, transparent);
}
/* First button: round badge in the logo red, like the header call icon. */
.hr-btn--light .hr-btn-icon { background: var(--c-accent); color: var(--c-on-accent); }
/* The arrow points up-right at rest and swings to the right on hover. */
.hr-btn--light .hr-btn-icon .hr-icon { transform: rotate(-45deg); }
.hr-btn--light:hover .hr-btn-icon, .hr-btn--light:focus-visible .hr-btn-icon { background: var(--c-accent-hover); transform: scale(1.06); }
.hr-btn--light:hover .hr-btn-icon .hr-icon, .hr-btn--light:focus-visible .hr-btn-icon .hr-icon { transform: rotate(0deg); }
.hr-section .hr-btn--outline {
	border-color: color-mix(in srgb, var(--c-on-dark) 34%, transparent);
	background: color-mix(in srgb, var(--c-on-dark) 10%, transparent); color: var(--c-on-dark);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hr-section .hr-btn--outline:hover, .hr-section .hr-btn--outline:focus {
	border-color: color-mix(in srgb, var(--c-on-dark) 70%, transparent);
	background: color-mix(in srgb, var(--c-on-dark) 18%, transparent); color: var(--c-on-dark);
}
/* Second button: no red, the badge is glass and turns white on hover. */
.hr-btn--outline .hr-btn-icon { background: color-mix(in srgb, var(--c-on-dark) 16%, transparent); color: var(--c-on-dark); }
.hr-btn--outline:hover .hr-btn-icon, .hr-btn--outline:focus-visible .hr-btn-icon { background: var(--c-surface); color: var(--c-primary); transform: scale(1.06); }
.hr-section .hr-cta .hr-btn:focus-visible { outline-color: var(--c-on-dark); }

.hr-section .hr-btn:focus-visible {
	outline: 2px solid var(--c-primary); outline-offset: 2px;
}

/*
	Google reviews strip ("testimonial card"): one review at a time, with the
	reviewer's initials on a disc, their name, their stars and "Avis Google";
	on the right the rating (score, stars, number of reviews); along the bottom
	edge a thin red bar fills up during the 6 s before the next review. The
	reviews slide up one after the other. The quote is cut after two lines; the
	full text is one click away on Google.
*/
.hr-reviews {
	position: relative; display: grid; gap: var(--space-3); overflow: hidden;
	padding: var(--space-4) var(--space-4) calc(var(--space-4) + 3px); border-radius: var(--radius);
	background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-md);
}
.hr-slides { display: grid; min-width: 0; }
/* The outgoing review slides up and fades, the next one comes up from below. */
.hr-slide {
	display: grid; grid-area: 1 / 1; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); align-items: start; margin: 0;
	opacity: 0; visibility: hidden; transform: translateY(0.75rem); transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.hr-slide.is-leaving { transform: translateY(-0.75rem); }
.hr-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.3s; }
.hr-avatar {
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	border: 2px solid var(--c-primary-light); border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary);
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em;
}
.hr-slide:nth-child(even) .hr-avatar { background: var(--c-primary-light); color: var(--c-primary-dark); }
.hr-slide-body { display: grid; gap: var(--space-1); min-width: 0; }
.hr-author { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--c-text-muted); font-size: var(--fs-xs); font-style: normal; font-weight: 600; }
.hr-author-name { color: var(--c-heading); font-size: var(--fs-sm); font-weight: 700; }
.hr-verified { display: inline-flex; align-items: center; gap: 0.25rem; }
.hr-verified .hr-icon { width: 0.875rem; height: 0.875rem; color: var(--c-success); }
.hr-section .hr-quote {
	display: -webkit-box; margin: 0; padding: 0; overflow: hidden; border: 0;
	font-size: var(--fs-sm); font-style: italic; line-height: 1.5;
	-webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.hr-section .hr-quote--plain { font-style: normal; }
/* Rating: score, stars, "G · 56 avis"; a row on a phone, a column on the right from 768px */
.hr-section .hr-rating {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3);
	padding-top: var(--space-3); border-top: 1px solid var(--c-border);
	color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.hr-rating-logo { flex: none; width: 1rem; height: 1rem; }
.hr-rating-score { color: var(--c-heading); font-family: var(--f-heading); font-size: var(--fs-xl); font-weight: 800; line-height: 1; }
.hr-rating-count { display: inline-flex; align-items: center; gap: 0.3rem; }
.hr-stars { display: inline-flex; gap: 0.0625rem; color: var(--c-star); }
.hr-stars .hr-icon { width: 0.875rem; height: 0.875rem; fill: currentColor; stroke: none; }
.hr-section .hr-rating:hover .hr-rating-count, .hr-section .hr-rating:focus .hr-rating-count { text-decoration: underline; text-underline-offset: 0.2em; }
.hr-section .hr-rating:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
/* Time bar: fills in 6 s (restarted by the script at each review), stops while paused, hidden with reduced motion */
.hr-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--c-border); }
.hr-progress::before { content: ""; display: block; width: 100%; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }
.hr-progress.is-running::before { animation: hr-fill 6s linear forwards; }
.hr-reviews.is-paused .hr-progress::before { animation-play-state: paused; }
@keyframes hr-fill { to { transform: scaleX(1); } }
/*
	Glass variant of the reviews strip: light sheen, blurred backdrop, white
	text. Remove the hr-glass class in the markup (and add
	data-header-theme="light") to return to the white card.
*/
.hr-glass {
	border: 1px solid color-mix(in srgb, var(--c-on-dark) 26%, transparent);
	/* Sheen and blur kept low so the photo shows through: raise the two % or the blur for a more frosted card. */
	background: linear-gradient(135deg, color-mix(in srgb, var(--c-on-dark) 8%, transparent), color-mix(in srgb, var(--c-on-dark) 2%, transparent));
	box-shadow: var(--shadow-md), inset 0 1px 0 color-mix(in srgb, var(--c-on-dark) 22%, transparent);
	color: var(--c-on-dark);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
}
.hr-glass .hr-author { color: color-mix(in srgb, var(--c-on-dark) 78%, transparent); }
.hr-glass .hr-author-name { color: var(--c-on-dark); }
.hr-glass .hr-verified .hr-icon { color: var(--c-primary-light); }
.hr-section .hr-glass .hr-rating { border-color: color-mix(in srgb, var(--c-on-dark) 22%, transparent); color: color-mix(in srgb, var(--c-on-dark) 84%, transparent); }
.hr-section .hr-glass .hr-rating:hover, .hr-section .hr-glass .hr-rating:focus { color: var(--c-on-dark); }
.hr-glass .hr-rating-score { color: var(--c-on-dark); }
.hr-glass .hr-progress { background: color-mix(in srgb, var(--c-on-dark) 20%, transparent); }
.hr-section .hr-glass .hr-rating:focus-visible { outline-color: var(--c-on-dark); }

/*
	Light motion. On load the badge, title, lead, buttons, form and reviews strip rise
	into place one after the other (CSS only: without animation support they are simply
	there). Then two quiet loops: the shield of the badge breathes, the stars twinkle in turn.
*/
.hr-badge, .hr-title, .hr-lead, .hr-cta, .hr-form-slot, .hr-reviews { animation: hr-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hr-title { animation-delay: 0.08s; }
.hr-lead { animation-delay: 0.16s; }
.hr-form-slot { animation-delay: 0.2s; }
.hr-cta { animation-delay: 0.24s; }
.hr-reviews { animation-delay: 0.36s; }
@keyframes hr-rise { from { opacity: 0; transform: translateY(1.25rem); } }
.hr-badge .hr-icon { animation: hr-breathe 2.6s ease-in-out infinite; }
@keyframes hr-breathe { 50% { transform: scale(1.18); } }
.hr-stars .hr-icon { animation: hr-twinkle 3.6s ease-in-out infinite; }
.hr-stars .hr-icon:nth-child(2) { animation-delay: 0.14s; }
.hr-stars .hr-icon:nth-child(3) { animation-delay: 0.28s; }
.hr-stars .hr-icon:nth-child(4) { animation-delay: 0.42s; }
.hr-stars .hr-icon:nth-child(5) { animation-delay: 0.56s; }
@keyframes hr-twinkle { 0%, 22%, 100% { transform: scale(1); } 11% { transform: scale(1.3); } }

@media (min-width: 480px) {
	.hr-section .hr-cta .hr-btn { flex: none; }
}
@media (min-width: 768px) {
	/* The rating stands in its own column on the right, separated by a hairline */
	.hr-reviews { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding: var(--space-4) var(--space-5) calc(var(--space-4) + 3px); }
	.hr-section .hr-rating { flex-direction: column; gap: var(--space-1); padding: 0 0 0 var(--space-5); border-top: 0; border-left: 1px solid var(--c-border); text-align: center; }
	.hr-section .hr-glass .hr-rating { border-left-color: color-mix(in srgb, var(--c-on-dark) 22%, transparent); }
	.hr-rating-score { font-size: var(--fs-2xl); }
}
@media (min-width: 1024px) {
	.hr-section {
		--hr-gap: calc(var(--space-8) + var(--space-5));
		/*
			Veil in the reference navy only (no red glow): dense on the title side (94%, the photo only
			shows faintly under it), then easing out quickly so that the photo is bare on the form side
			(from 82% of the width). 84% on the left is the floor for readable white text. No darker band
			at the top: the header is transparent and sits directly on this background.
		*/
		background-image:
			linear-gradient(90deg, color-mix(in srgb, var(--hr-blue) 94%, transparent) 0, color-mix(in srgb, var(--hr-blue) 94%, transparent) 26%, color-mix(in srgb, var(--hr-blue) 86%, transparent) 34%, color-mix(in srgb, var(--hr-blue) 70%, transparent) 42%, color-mix(in srgb, var(--hr-blue) 48%, transparent) 50%, color-mix(in srgb, var(--hr-blue) 28%, transparent) 58%, color-mix(in srgb, var(--hr-blue) 13%, transparent) 66%, color-mix(in srgb, var(--hr-blue) 4%, transparent) 74%, transparent 82%),
			url("/wp-content/uploads/2026/10/deratihome-cover.webp");
		background-position: 0 0, right center;
		background-size: auto, cover;
	}
	/* Left column spans the form's height: intro level with its top, reasons level with its bottom. */
	.hr-inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--space-6) var(--space-8);
	}
	.hr-intro { align-self: start; }
	.hr-extras { align-self: end; }
	/* The form card follows the left column's height; any spare room goes above its footer. */
	.hr-form-slot { display: flex; grid-column: 2; grid-row: 1 / 3; }
	.hr-form-slot > * { flex: 1; }
	/* Sized so the accent line of the title stays on one line. */
	.hr-section .hr-title { font-size: clamp(2.125rem, 3.3vw, 3rem); }
	.hr-title-accent { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
	.hr-section * { animation: none !important; transition: none !important; }
}
