/* v1.13.7: contained site-wide WordPress-block hero system and template compatibility. */
.nfne-hero,
.nfne-home-hero {
	position: relative;
	isolation: isolate;
	width: min(var(--nfne-content), calc(100% - (var(--nfne-gutter) * 2))) !important;
	max-width: var(--nfne-content) !important;
	margin: clamp(1.25rem, 2.4vw, 2rem) auto 0 !important;
	padding: 0;
	overflow: hidden;
	border-radius: 10px;
	background: var(--nfne-ink);
	color: #e7edf1;
}
.nfne-hero::after,
.nfne-home-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 14% 20%, rgba(215, 154, 43, .08), transparent 33%),
		linear-gradient(120deg, rgba(255, 255, 255, .018), transparent 44%);
}
.nfne-hero__grid,
.nfne-home-hero__grid,
.nfne-page-hero__grid {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: minmax(0, 58fr) minmax(300px, 42fr);
	width: 100% !important;
	max-width: none !important;
	min-height: clamp(390px, 31vw, 470px);
	height: auto;
	margin: 0 auto !important;
	gap: 0;
	align-items: stretch;
}
.nfne-hero__grid > .wp-block-column,
.nfne-home-hero__grid > .wp-block-column,
.nfne-page-hero__grid > .wp-block-column {
	min-width: 0;
	width: auto !important;
	align-self: stretch !important;
}
.nfne-hero__content,
.nfne-home-hero__content,
.nfne-page-hero__content {
	order: 1 !important;
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	align-self: stretch !important;
	justify-content: center;
	padding: clamp(2.5rem, 3.8vw, 3.6rem) clamp(1.6rem, 4vw, 4.5rem);
	background: transparent;
}
.nfne-hero__content > *,
.nfne-home-hero__content > *,
.nfne-page-hero__content > * { width: 100%; }
.nfne-hero .nfne-kicker,
.nfne-home-hero .nfne-kicker {
	margin: 0 0 .7rem;
	color: #e0a33a;
	font-size: clamp(.71rem, .68rem + .08vw, .78rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.nfne-hero h1,
.nfne-home-hero__content h1,
.nfne-page-hero__content h1 {
	max-width: 16ch;
	margin: 0;
	color: #fbf7ef;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.55rem, 1.85rem + 2.15vw, 4.1rem);
	font-weight: 500;
	line-height: .99;
	letter-spacing: -.035em;
	overflow-wrap: normal;
	word-break: normal;
}
.nfne-hero__intro,
.nfne-home-hero__intro,
.nfne-home-hero .nfne-lead,
.nfne-page-hero__intro,
.nfne-hero .wp-block-post-excerpt__excerpt {
	max-width: 56ch;
	margin: 1.15rem 0 0;
	color: #c8d2d9;
	font-size: clamp(1rem, .96rem + .18vw, 1.14rem);
	line-height: 1.58;
}
.nfne-hero .wp-block-post-excerpt { margin: 0; }
.nfne-hero__actions,
.nfne-home-hero__actions,
.nfne-page-hero .wp-block-buttons {
	margin-top: clamp(1.35rem, 2.1vw, 1.8rem);
	gap: .75rem;
}
.nfne-hero .wp-block-button__link,
.nfne-home-hero .wp-block-button__link {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .78rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 5px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.nfne-hero .nfne-hero__button--primary .wp-block-button__link,
.nfne-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.nfne-home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	border-color: #d79a2b;
	background: #d79a2b;
	color: #071827;
}
.nfne-hero .nfne-hero__button--primary .wp-block-button__link:hover,
.nfne-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.nfne-home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	border-color: #e7b655;
	background: #e7b655;
	color: #071827;
}
.nfne-hero .nfne-hero__button--secondary .wp-block-button__link,
.nfne-hero .wp-block-button.is-style-outline .wp-block-button__link,
.nfne-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(251, 247, 239, .7);
	background: transparent;
	color: #fbf7ef;
}
.nfne-hero .nfne-hero__button--secondary .wp-block-button__link:hover,
.nfne-hero .wp-block-button.is-style-outline .wp-block-button__link:hover,
.nfne-home-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #fbf7ef;
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
.nfne-hero .wp-block-button__link:focus-visible,
.nfne-home-hero .wp-block-button__link:focus-visible,
.nfne-project-opening .wp-block-button__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.nfne-hero__visual,
.nfne-home-hero__visual,
.nfne-page-hero__visual,
.nfne-page-hero--reverse .nfne-page-hero__visual {
	position: relative;
	order: 2 !important;
	min-height: 100%;
	overflow: hidden;
	border-radius: 0;
	background: #132536;
}
.nfne-hero__visual::before,
.nfne-home-hero__visual::before,
.nfne-page-hero__visual::before {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, var(--nfne-ink) 0, rgba(7, 24, 39, .78) 13%, rgba(7, 24, 39, .18) 46%, rgba(7, 24, 39, .08) 100%);
}
.nfne-hero__image,
.nfne-home-hero__image,
.nfne-page-hero__image {
	width: 100%;
	height: 100%;
	margin: 0;
	background: #132536;
}
.nfne-hero__image img,
.nfne-home-hero__image img,
.nfne-page-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
}
.nfne-hero__visual--brand,
.nfne-page-hero__visual--brand {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 62% 42%, rgba(215, 154, 43, .17), transparent 30%),
		radial-gradient(circle at 52% 48%, #1c3850 0, #102639 46%, #071827 80%);
}
.nfne-hero__visual--brand::after,
.nfne-page-hero__visual--brand::after {
	content: "PROPERTY MAINTENANCE • NORTH EAST";
	position: absolute;
	z-index: 3;
	right: clamp(1.2rem, 3vw, 2.5rem);
	bottom: clamp(1.2rem, 3vw, 2.4rem);
	left: clamp(1.2rem, 3vw, 2.5rem);
	color: rgba(239, 231, 215, .72);
	font-size: .67rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .18em;
	text-align: right;
	text-transform: uppercase;
}
.nfne-hero__visual--brand .nfne-hero__image,
.nfne-page-hero__visual--brand .nfne-page-hero__image,
.nfne-hero__image--optional,
.nfne-page-hero__image--optional {
	display: grid;
	place-items: center;
	background: transparent;
}
.nfne-hero__visual--brand .nfne-hero__image img,
.nfne-page-hero__visual--brand .nfne-page-hero__image img,
.nfne-hero__image--optional img,
.nfne-page-hero__image--optional img {
	position: relative;
	z-index: 1;
	width: clamp(118px, 11vw, 176px);
	max-width: 40%;
	height: auto;
	min-height: 0;
	object-fit: contain;
	filter: drop-shadow(0 20px 38px rgba(0, 0, 0, .28));
}
.nfne-hero--homepage .nfne-hero__grid { min-height: clamp(420px, 34vw, 500px); }
.nfne-hero--homepage h1 { max-width: 12.5ch; }
.nfne-home-hero .nfne-home-hero__grid { min-height: clamp(400px, 31vw, 460px); }
.nfne-home-hero__content h1.has-display-font-size {
	max-width: 19ch;
	font-size: clamp(2.65rem, 2rem + 2.2vw, 4.25rem) !important;
}
.nfne-hero--service .nfne-hero__grid { min-height: clamp(390px, 30vw, 455px); }
.nfne-hero--content .nfne-hero__grid,
.nfne-hero--content-led .nfne-hero__grid { min-height: clamp(350px, 27vw, 415px); grid-template-columns: minmax(0, 66fr) minmax(260px, 34fr); }
.nfne-hero--content h1,
.nfne-hero--content-led h1 { max-width: 19ch; }
.nfne-hero--utility {
	padding: clamp(2.25rem, 4vw, 3.8rem) 0;
}
.nfne-hero--utility .nfne-hero__grid {
	display: block !important;
	min-height: 0;
}
.nfne-hero--utility .nfne-hero__content,
.nfne-hero__content--utility {
	width: min(var(--nfne-content), calc(100% - (var(--nfne-gutter) * 2))) !important;
	max-width: 980px !important;
	min-height: 0;
	margin: 0 auto !important;
	padding: 0;
}
.nfne-hero--utility .nfne-hero__visual { display: none; }
.nfne-hero--utility h1,
.nfne-hero__content--utility h1 { max-width: 24ch; font-size: clamp(2.25rem, 1.75rem + 1.7vw, 3.7rem); }
.nfne-hero--article { padding: clamp(2.35rem, 4.3vw, 4.5rem) 0; }
.nfne-hero--article .nfne-article__meta { margin-top: 1.05rem; gap: .65rem 1.2rem; color: #c8d2d9; }

/* Legal pages use a restrained title banner rather than a marketing hero. */
.nfne-hero--legal,
.nfne-legal-hero {
	padding: clamp(2rem, 3.6vw, 3.35rem) 0;
	background: var(--nfne-ink);
}
.nfne-legal-hero__inner {
	width: min(980px, calc(100% - (var(--nfne-gutter) * 2))) !important;
	max-width: 980px !important;
	margin: 0 auto !important;
}
.nfne-hero--legal h1,
.nfne-legal-hero h1 {
	max-width: 22ch;
	font-size: clamp(2.15rem, 1.65rem + 1.6vw, 3.45rem);
}
.nfne-legal-hero__scope,
.nfne-legal-hero__meta {
	max-width: 75ch;
	margin: .75rem 0 0;
	color: #c8d2d9;
	font-size: .96rem;
	line-height: 1.5;
}
.nfne-legal-hero__meta { color: #9fadb7; font-size: .82rem; }

/* Existing proof/trust strips remain separate blocks but visually connect to the new compact hero family. */
.nfne-hero + .nfne-page-proof,
.nfne-hero + .nfne-home-trust-section {
	position: relative;
	z-index: 3;
}
.nfne-hero + .nfne-page-proof { margin-top: 0 !important; border-top: 0; border-radius: 0 0 10px 10px; }

/* Individual project pages retain one title/image opening and align it with the site-wide family. */
.nfne-project-opening {
	position: relative;
	overflow: hidden;
	background: var(--nfne-ink);
	color: #e7edf1;
}
.nfne-project-opening__grid {
	display: grid !important;
	grid-template-columns: minmax(0, 48fr) minmax(320px, 52fr);
	width: min(var(--nfne-content), calc(100% - (var(--nfne-gutter) * 2))) !important;
	max-width: var(--nfne-content) !important;
	min-height: clamp(390px, 31vw, 470px);
	margin: 0 auto !important;
	gap: 0;
	align-items: stretch;
}
.nfne-project-opening__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.6rem, 4.5vw, 4.6rem) clamp(1.5rem, 3.6vw, 4rem) clamp(2.6rem, 4.5vw, 4.6rem) 0;
}
.nfne-project-opening h1 { max-width: 16ch; margin: 0; color: #fbf7ef; font-size: clamp(2.45rem, 1.8rem + 2.15vw, 4.35rem); line-height: 1; }
.nfne-project-opening__intro,
.nfne-project-opening .wp-block-post-excerpt__excerpt { max-width: 50ch; margin: 1rem 0 0; color: #c8d2d9; }
.nfne-project-opening__visual { position: relative; min-height: 100%; overflow: hidden; background: #132536; }
.nfne-project-opening__visual::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, #071827 0, rgba(7, 24, 39, .68) 14%, transparent 48%); pointer-events: none; }
.nfne-project-opening__image,
.nfne-project-opening__image img { width: 100%; height: 100%; min-height: 100%; margin: 0; object-fit: cover; }
.nfne-project-single__body,
.nfne-article__body,
.nfne-template-listing { padding-top: clamp(2rem, 4vw, 3.75rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

@media (max-width: 1040px) {
	.nfne-hero__grid,
	.nfne-home-hero__grid,
	.nfne-page-hero__grid { grid-template-columns: minmax(0, 56fr) minmax(280px, 44fr); min-height: 390px; }
	.nfne-hero__content,
	.nfne-home-hero__content,
	.nfne-page-hero__content { padding-right: clamp(1.25rem, 3vw, 2.6rem); }
	.nfne-hero h1,
	.nfne-home-hero__content h1,
	.nfne-page-hero__content h1 { font-size: clamp(2.45rem, 1.8rem + 2.7vw, 4rem); }
}

@media (max-width: 782px) {
	.nfne-hero,
	.nfne-home-hero {
		width: calc(100% - (var(--nfne-gutter) * 2)) !important;
	}
	.nfne-hero__grid,
	.nfne-home-hero__grid,
	.nfne-page-hero__grid,
	.nfne-hero--content .nfne-hero__grid,
	.nfne-hero--content-led .nfne-hero__grid,
	.nfne-project-opening__grid {
		display: grid !important;
		grid-template-columns: 1fr;
		width: 100% !important;
		min-height: 0;
	}
	.nfne-hero__content,
	.nfne-home-hero__content,
	.nfne-page-hero__content,
	.nfne-page-hero--reverse .nfne-page-hero__content {
		order: 1 !important;
		width: min(100%, calc(var(--nfne-content) + (var(--nfne-gutter) * 2))) !important;
		padding: clamp(2.35rem, 8vw, 3.5rem) var(--nfne-gutter);
	}
	.nfne-hero__visual,
	.nfne-home-hero__visual,
	.nfne-page-hero__visual,
	.nfne-page-hero--reverse .nfne-page-hero__visual {
		order: 2 !important;
		width: 100% !important;
		height: clamp(230px, 54vw, 360px);
		min-height: clamp(230px, 54vw, 360px);
		border-radius: 0;
	}
	.nfne-hero__visual::before,
	.nfne-home-hero__visual::before,
	.nfne-page-hero__visual::before { background: linear-gradient(180deg, var(--nfne-ink) 0, rgba(7, 24, 39, .35) 28%, rgba(7, 24, 39, .05) 70%); }
	.nfne-hero--content .nfne-hero__visual,
	.nfne-hero--content-led .nfne-hero__visual { height: 210px; min-height: 210px; }
	.nfne-hero h1,
	.nfne-home-hero__content h1,
	.nfne-page-hero__content h1 { max-width: 18ch; font-size: clamp(2.35rem, 8.4vw, 3.7rem); }
	.nfne-hero--utility { padding: 0; }
	.nfne-hero--utility .nfne-hero__content,
	.nfne-hero__content--utility { width: 100% !important; padding: clamp(2.1rem, 7vw, 3rem) var(--nfne-gutter); }
	.nfne-project-opening__content { order: 1; padding: clamp(2.35rem, 8vw, 3.5rem) var(--nfne-gutter); }
	.nfne-project-opening__visual { order: 2; min-height: clamp(250px, 60vw, 390px); }
	.nfne-project-opening__visual::before { background: linear-gradient(180deg, #071827 0, rgba(7, 24, 39, .35) 30%, transparent 68%); }
}

@media (max-width: 480px) {
	.nfne-hero__content,
	.nfne-home-hero__content,
	.nfne-page-hero__content,
	.nfne-hero--utility .nfne-hero__content,
	.nfne-hero__content--utility,
	.nfne-project-opening__content { padding-right: 1rem; padding-left: 1rem; }
	.nfne-hero h1,
	.nfne-home-hero__content h1,
	.nfne-page-hero__content h1,
	.nfne-project-opening h1 { font-size: clamp(2.15rem, 10.5vw, 3rem); }
	.nfne-home-hero__content h1.has-display-font-size {
		font-size: clamp(2.15rem, 10.5vw, 3rem) !important;
	}
	.nfne-hero__actions,
	.nfne-home-hero__actions,
	.nfne-page-hero .wp-block-buttons { width: 100%; }
	.nfne-hero__actions .wp-block-button,
	.nfne-home-hero__actions .wp-block-button,
	.nfne-page-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.nfne-hero .wp-block-button__link,
	.nfne-home-hero .wp-block-button__link { width: 100%; }
	.nfne-hero__visual,
	.nfne-home-hero__visual,
	.nfne-page-hero__visual { min-height: 215px; }
	.nfne-hero__visual--brand::after,
	.nfne-page-hero__visual--brand::after { text-align: center; }
	.nfne-legal-hero__scope,
	.nfne-legal-hero__meta { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nfne-hero *,
	.nfne-project-opening * { animation: none !important; transition: none !important; }
}

/* Reviews page: compact submission accordion and refined MyJobQuote panel. */
.nfne-review-submit-section {
	padding-top: clamp(2rem, 4vw, 3.5rem) !important;
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.nfne-review-accordion {
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(16, 40, 59, .16);
	border-top: 3px solid #b88924;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(7, 24, 39, .07);
}
.nfne-review-accordion summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: clamp(1.15rem, 2.2vw, 1.6rem);
	color: #10283b;
	cursor: pointer;
	list-style: none;
}
.nfne-review-accordion summary::-webkit-details-marker { display: none; }
.nfne-review-accordion summary:focus-visible {
	outline: 3px solid #d4a536;
	outline-offset: -4px;
}
.nfne-review-accordion__icon {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border-radius: 999px;
	background: #08243a;
	color: #e0b04b;
	font-size: 1rem;
}
.nfne-review-accordion summary strong {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	line-height: 1.15;
}
.nfne-review-accordion summary small {
	display: block;
	margin-top: .28rem;
	color: #536579;
	font-size: .95rem;
}
.nfne-review-accordion__action {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .65rem 1rem;
	border: 1px solid #b88924;
	border-radius: 999px;
	color: #10283b;
	font-size: .82rem;
	font-weight: 700;
}
.nfne-review-accordion__action::after {
	content: "+";
	margin-left: .55rem;
	color: #a87816;
	font-size: 1.15rem;
}
.nfne-review-accordion[open] .nfne-review-accordion__action::before { content: "Close form"; }
.nfne-review-accordion[open] .nfne-review-accordion__action { font-size: 0; }
.nfne-review-accordion[open] .nfne-review-accordion__action::before { font-size: .82rem; }
.nfne-review-accordion[open] .nfne-review-accordion__action::after { content: "−"; font-size: 1.15rem; }
.nfne-review-accordion__body {
	padding: 0 clamp(1.15rem, 2.2vw, 1.6rem) clamp(1.35rem, 2.5vw, 2rem);
	border-top: 1px solid rgba(16, 40, 59, .1);
}
.nfne-review-accordion__body > p:first-child {
	max-width: 720px;
	margin: 1.25rem 0;
	color: #536579;
}
.nfne-myjobquote-section {
	position: relative;
}
.nfne-myjobquote-section > .wp-block-group {
	position: relative;
}
.nfne-myjobquote-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .55rem 2rem;
	align-items: center;
	margin: 1.2rem 0 0 !important;
	padding: 1rem 1.2rem;
	border: 1px solid rgba(184, 137, 36, .3);
	border-radius: 12px;
	background: linear-gradient(135deg, #08243a, #0d354f);
	color: #f8f3e9;
}
.nfne-myjobquote-summary p { margin: 0 !important; color: inherit; }
.nfne-myjobquote-summary__label {
	grid-column: 1 / -1;
	color: #e0b04b !important;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .12em;
}
.nfne-myjobquote-summary__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .65rem .95rem;
	border: 1px solid rgba(224, 176, 75, .75);
	border-radius: 999px;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.nfne-myjobquote-summary__link:hover { background: rgba(255, 255, 255, .08); }
.nfne-myjobquote-section .nfne-myjobquote-widget {
	margin-top: 1rem;
	border-color: rgba(16, 40, 59, .14);
	box-shadow: 0 16px 38px rgba(7, 24, 39, .08);
}

@media (max-width: 700px) {
	.nfne-review-accordion summary { grid-template-columns: auto minmax(0, 1fr); }
	.nfne-review-accordion__action { grid-column: 1 / -1; justify-content: center; }
	.nfne-myjobquote-summary { grid-template-columns: 1fr; }
	.nfne-myjobquote-summary__link { justify-content: center; white-space: normal; text-align: center; }
}


/* v1.14.1: compact three-column verified-review cards with plugin-owned expansion. */
.nfne-reviews-page__verified .nfne-review-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nfne-review-card__verified {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 .7rem;
	padding: .35rem .65rem;
	border: 1px solid rgba(184, 137, 36, .38);
	border-radius: 999px;
	background: #fff8e8;
	color: #765510;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.nfne-reviews-page__verified .nfne-review-card__source {
	font-size: .78rem;
}
.nfne-review-submit-section {
	padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
	padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}
@media (max-width: 980px) {
	.nfne-reviews-page__verified .nfne-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.nfne-reviews-page__verified .nfne-review-grid { grid-template-columns: 1fr; }
}
