/* Home hero: headline, intro, photo and specialties panel (mockup .hero, .heroimages) */
.pf-home-hero { padding-bottom: 0; }
.pf-home-hero .hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding: 48px 0 28px; }
.pf-home-hero .hero-head { min-width: 0; }
.pf-home-hero h1.wp-block-heading { margin: 14px 0 0; font-size: clamp(50px, 6.3vw, 90px); line-height: .98; letter-spacing: -.065em; font-weight: 750; }
.pf-home-hero .herointro { max-width: 290px; padding: 0 16px 5px 0; }
.pf-home-hero .herointro p { margin: 0 0 18px; font-size: 19px; line-height: 1.4; }
.pf-home-hero .herointro .wp-block-buttons { margin: 0; }
.pf-home-hero .heroimages { display: grid; grid-template-columns: 3.9fr 1fr; gap: 15px; }
.pf-home-hero .heroimg.wp-block-cover { aspect-ratio: 2.3; min-height: 0; padding: 0; border-radius: 17px; overflow: hidden; filter: contrast(1.08) saturate(1.1) brightness(.98); }
.pf-home-hero .heroimg .wp-block-cover__image-background { object-position: center 100%; }
.pf-home-hero .hero-aside { background: var(--wp--preset--color--navy); color: #fff; border-radius: 17px; padding: clamp(16px, 2vw, 30px); display: flex; flex-direction: column; justify-content: flex-end; }
.pf-home-hero .hero-aside::before { content: ''; display: block; width: 100%; aspect-ratio: 240 / 125; max-height: 120px; margin: auto 0; background: url(../../svg/hero-roof.svg) center / contain no-repeat; }
.pf-home-hero .aside-label { margin: 12px 0 4px; font-size: 13px; color: #b4c3e0; }
.pf-home-hero .aside-link { margin: 0; border-top: 1px solid #3b5584; padding: 4px 0; font-size: clamp(18px, 2vw, 30px); font-weight: 700; letter-spacing: -.06em; line-height: 1.55; }
.pf-home-hero .aside-link a { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.pf-home-hero .aside-link a::after { content: '\2197'; font-size: 20px; color: #a9bde0; }
.pf-home-hero .aside-link a:hover,
.pf-home-hero .aside-link a:focus-visible,
.pf-home-hero .aside-link a:active { color: #d5dcea; }
.pf-home-hero .aside-link a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
	.pf-home-hero .aside-link a { transition: color .18s; }
	.pf-home-hero .heroimg .wp-block-cover__image-background { animation: pf-roof-pan 3.4s cubic-bezier(.18, .55, .25, 1) both; }
	.pf-home-hero .hero-head, .pf-home-hero .herointro { animation: pf-rise-in .6s cubic-bezier(.2, .7, .2, 1) backwards; }
	.pf-home-hero .herointro { animation-delay: 90ms; }
}
@keyframes pf-roof-pan { from { transform: scale(1.075) translateY(1%); } to { transform: scale(1) translateY(0); } }
@media (max-width: 900px) {
	.pf-home-hero .hero { gap: 20px; }
	.pf-home-hero .heroimages { grid-template-columns: 3fr 1fr; }
	.pf-home-hero .heroimg.wp-block-cover { aspect-ratio: 1.9; }
}
@media (max-width: 620px) {
	.pf-home-hero .hero { display: block; padding: 30px 0 19px; }
	.pf-home-hero h1.wp-block-heading { font-size: clamp(46px, 11.5vw, 68px);text-align: center; }
	.wp-site-blocks .eye {justify-content: center;}
	.pf-home-hero .herointro {     padding: 0;     margin: 20px 0 0;     text-align: center;     max-width: 100%;   }
	.pf-home-hero .herointro p { font-size: 14px; max-width: 100%; margin: 0 0 20px; }
	.pf-home-hero .herointro .wp-block-buttons {justify-content: center;}
	.pf-home-hero .heroimages { grid-template-columns: 1fr; gap: 9px; }
	.pf-home-hero .heroimg.wp-block-cover { aspect-ratio: 1.5; }
	.pf-home-hero .hero-aside { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
	.pf-home-hero .hero-aside::before { display: none; }
	.pf-home-hero .aside-label { margin: 0; font-size: 8px; max-width: 56px; }
	.pf-home-hero .aside-link { border: 0; }
	.pf-home-hero .aside-link a { gap: 12px; }
}


/* Mobile: make the main "Plan Your Project" call to action the most prominent element in the hero */
@media (max-width: 620px) {
	.pf-home-hero .herointro .wp-block-buttons { width: 100%; }
	.pf-home-hero .herointro .wp-block-button.pf-btn-arrow { width: 100%; max-width: 380px; }
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link {
		position: relative; overflow: hidden; isolation: isolate;
		display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box;
		min-height: 66px; padding: 12px 14px 12px 28px; font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; text-align: left;
		color: #fff; text-shadow: 0 1px 2px #6a000099; border: 2px solid #ff5a5a; border-radius: 20px;
		/* glossy red: bright top half, deeper bottom half */
		background: linear-gradient(180deg, #ff3b3b 0%, #e30a0a 48%, #c20000 50%, #a80000 100%);
		/* 3D effect: light top edge, solid darker "thickness" underneath, soft red glow */
		box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 6px #5a000040, 0 7px 0 #7a0000, 0 14px 24px #d000006b;
		transform: translateY(0);
	}
	/* Arrow sits in a white circle so it reads as a "go" button */
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link::after {
		content: ''; flex: none; width: 40px; height: 40px; border-radius: 50%;
		/* Arrow is drawn as an SVG centered in the circle, so it stays centered in any font */
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d00000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
		box-shadow: 0 3px 0 #00000026, inset 0 -2px 0 #d0000026;
	}
	/* Diagonal light sweep across the button */
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link::before {
		content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -40%; width: 28%;
		background: linear-gradient(90deg, transparent, #ffffff73, transparent); transform: skewX(-22deg); pointer-events: none;
	}
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link:is(:hover, :focus-visible) {
		background: linear-gradient(180deg, #ff3b3b 0%, #e30a0a 48%, #c20000 50%, #a80000 100%); color: #fff;
	}
	/* Pressed state: button sinks into its own shadow */
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link:active {
		transform: translateY(6px);
		box-shadow: inset 0 2px 0 #ffffff40, inset 0 -3px 6px #5a000040, 0 1px 0 #7a0000, 0 4px 10px #d0000059;
	}
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--navy); outline-offset: 5px; }
	/* Room for the 3D edge so it does not touch the photo below */
	.pf-home-hero .herointro { margin-bottom: 18px; }
}
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link { transition: transform .12s ease, box-shadow .12s ease; animation: pf-cta-glow 2.8s ease-in-out 1.2s 3; }
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link::before { animation: pf-cta-shine 4.5s ease-in-out 1.6s infinite; }
	.pf-home-hero .herointro .wp-block-buttons .wp-block-button.pf-btn-arrow .wp-block-button__link::after { animation: pf-cta-nudge 2.2s ease-in-out 1.2s infinite; }
}
@keyframes pf-cta-glow {
	0%, 100% { box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 6px #5a000040, 0 7px 0 #7a0000, 0 14px 24px #d000006b; }
	50% { box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 6px #5a000040, 0 7px 0 #7a0000, 0 14px 38px #d00000b3; }
}
@keyframes pf-cta-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@keyframes pf-cta-nudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(5px); } 90% { transform: translateX(0); } }
