/*
 * Nelly's Construction (spike, 2026-10-14). Mobile first: every rule is the
 * phone layout; min-width queries adapt it for tablet (768px) and desktop
 * (1025px), the house breakpoints. Values follow NELLYS-BUILD.md section 3:
 * white and stone grounds, charcoal text and one charcoal band, red for the
 * one action, navy for links and WhatsApp, Barlow 800 headings and 400/600
 * body at 18px/1.6.
 *
 * Load order: this file loads before the Blockstudio block stylesheets, so
 * shared primitives live here and each block's own style.scss refines them.
 */

/* ---------- Fallback faces (performance standard, build rule 3) ----------
 * Barlow is a static family, so its own metrics are per weight: ascent
 * 1000, descent 200, line gap 0 per 1000 units (@capsizecss/unpack 4.0.1,
 * read from these woff2 files 2026-10-14). size-adjust is the median width
 * ratio of Barlow to the local face in Chromium over eight English runs
 * from the site's own copy, measured 2026-10-14: 400 on Arial 0.9690, 600
 * on Arial Bold 0.9123, 800 on Arial Bold 0.9330 (capsize's xWidthAvg
 * agrees: 0.976, 0.915, 0.933). The overrides are Barlow's metrics divided
 * by size-adjust, so the fallback's line box equals Barlow's.
 */
@font-face {
	font-family: "Barlow Fallback";
	font-style: normal;
	font-weight: 400;
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
	size-adjust: 96.90%;
	ascent-override: 103.20%;
	descent-override: 20.64%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Barlow Fallback";
	font-style: normal;
	font-weight: 600;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
	size-adjust: 91.23%;
	ascent-override: 109.61%;
	descent-override: 21.92%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Barlow Fallback";
	font-style: normal;
	font-weight: 800;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
	size-adjust: 93.30%;
	ascent-override: 107.18%;
	descent-override: 21.44%;
	line-gap-override: 0%;
}

:root {
	--nl-white: #fff;
	--nl-stone: var(--wp--preset--color--stone);
	--nl-charcoal: var(--wp--preset--color--charcoal);
	--nl-red: var(--wp--preset--color--red);
	--nl-red-deep: var(--wp--preset--color--red-deep);
	--nl-navy: var(--wp--preset--color--navy);
	--nl-navy-deep: var(--wp--preset--color--navy-deep);
	--nl-line: var(--wp--preset--color--line);
	--nl-line-dark: var(--wp--preset--color--line-on-charcoal);
	--nl-font: var(--wp--preset--font-family--barlow);
	--nl-radius: 6px;
	--nl-ease: cubic-bezier(0.33, 1, 0.68, 1);
	--nl-gutter: 20px;
	--nl-section-y: 56px;
	--nl-wrap: 1200px;
}

@media (min-width: 768px) {
	:root {
		--nl-gutter: 32px;
		--nl-section-y: 80px;
	}
}

@media (min-width: 1025px) {
	:root {
		--nl-section-y: 96px;
	}
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
	background: var(--nl-white);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a,
p,
figcaption,
li {
	overflow-wrap: break-word;
}

::selection {
	background: var(--nl-red);
	color: #fff;
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--nl-navy);
	outline-offset: 3px;
	border-radius: 2px;
}

.nl-ground-charcoal :where(a, button, summary):focus-visible,
.nl-footer :where(a, button):focus-visible,
.nl-hero :where(a, button):focus-visible {
	outline-color: #fff;
}

img {
	max-width: 100%;
	height: auto;
}

/* The post content of a page file is a column of full-bleed sections. */
.upp-main > .wp-block-post-content,
.upp-main > .wp-block-post-content > * {
	margin-block: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Primitives ---------- */

.nl-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--nl-wrap) + 2 * var(--nl-gutter));
	margin-inline: auto;
	padding-inline: var(--nl-gutter);
}

.nl-section {
	padding-block: var(--nl-section-y);
}

.nl-ground-white {
	background: var(--nl-white);
}

.nl-ground-stone {
	background: var(--nl-stone);
}

.nl-ground-charcoal {
	background: var(--nl-charcoal);
	color: #fff;
}

.nl-ground-charcoal :is(h1, h2, h3, h4) {
	color: #fff;
}

.nl-ground-charcoal a:not(.nl-btn) {
	color: #fff;
}

/* Eyebrow: a short red rule, then the label. Red label on white (5.10:1);
   on stone the label is charcoal (red on stone measured 4.52:1, too close
   to the 4.5 floor for 14px text); on charcoal and over the hero's shade,
   white (red on charcoal 3.01:1). */
.nl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--nl-red);
	font: 600 14px/1.3 var(--nl-font);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nl-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 28px;
	height: 3px;
	background: var(--nl-red);
}

.nl-ground-stone .nl-eyebrow {
	color: var(--nl-charcoal);
}

.nl-ground-charcoal .nl-eyebrow,
.nl-hero .nl-eyebrow {
	color: #fff;
}

.nl-h1,
.nl-h2,
.nl-h3 {
	margin: 0;
	color: var(--nl-charcoal);
	font-family: var(--nl-font);
	font-weight: 800;
	letter-spacing: -0.005em;
}

.nl-h1 {
	font-size: clamp(38px, 5.4vw, 64px);
	line-height: 1.04;
}

.nl-h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.1;
}

.nl-h3 {
	font-size: 24px;
	line-height: 1.2;
}

.nl-ground-charcoal :is(.nl-h1, .nl-h2, .nl-h3) {
	color: #fff;
}

.nl-eyebrow + .nl-h1,
.nl-eyebrow + .nl-h2 {
	margin-top: 12px;
}

.nl-sub {
	max-width: 62ch;
	margin: 14px 0 0;
}

.nl-head {
	margin-bottom: 32px;
}

@media (min-width: 768px) {
	.nl-head {
		margin-bottom: 40px;
	}
}

/* Buttons: square-cornered like the live site's, Barlow 600 17px. Red is
   the one action (white text, 5.10:1); navy is WhatsApp and secondary
   actions (17.43:1). */
.nl-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 24px;
	border: 2px solid transparent;
	border-radius: var(--nl-radius);
	font: 600 17px/1.1 var(--nl-font);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nl-btn:hover {
	text-decoration: none;
}

.nl-btn svg {
	flex: none;
}

.nl-btn--red,
.nl-btn--red:visited {
	background: var(--nl-red);
	color: #fff;
}

.nl-btn--red:hover {
	background: var(--nl-red-deep);
	color: #fff;
}

.nl-btn--navy,
.nl-btn--navy:visited {
	background: var(--nl-navy);
	color: #fff;
}

.nl-btn--navy:hover {
	background: var(--nl-navy-deep);
	color: #fff;
}

.nl-btn--outline,
.nl-btn--outline:visited {
	border-color: var(--nl-navy);
	background: transparent;
	color: var(--nl-navy);
}

.nl-btn--outline:hover {
	background: var(--nl-navy);
	color: #fff;
}

.nl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Text links inside copy: navy, underlined. */
.nl-link {
	color: var(--nl-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.nl-link:hover {
	text-decoration-thickness: 2px;
}

/* The star line: decoration beside words that carry the score. */
.nl-stars {
	color: var(--nl-red);
	letter-spacing: 2px;
}

/* ---------- Header (parts/header.html) ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: relative;
	z-index: 50;
	margin: 0;
	background: var(--nl-white);
	border-bottom: 1px solid var(--nl-line);
}

.nl-header {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: calc(var(--nl-wrap) + 2 * var(--nl-gutter));
	min-height: 72px;
	margin-inline: auto;
	padding: 10px var(--nl-gutter);
}

.nl-header > * {
	margin-block: 0;
}

/* Phones and tablet: logo, then call and WhatsApp as round buttons, then
   the burger. Desktop: logo, the menu, then the number and WhatsApp. */
.nl-header__contact {
	display: flex;
	align-items: center;
	gap: 8px;
	order: 1;
	margin-left: auto;
}

.nl-header .nl-nav {
	order: 2;
}

.nl-header__contact a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-width: 44px;
	height: 44px;
	border-radius: var(--nl-radius);
	font: 600 17px/1 var(--nl-font);
	text-decoration: none;
}

.nl-header__phone,
.nl-header__phone:visited {
	border: 2px solid var(--nl-navy);
	color: var(--nl-navy);
}

.nl-header__wa,
.nl-header__wa:visited {
	background: var(--nl-navy);
	color: #fff;
}

.nl-header__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

@media (min-width: 1025px) {
	.nl-header {
		gap: 28px;
		min-height: 92px;
	}

	.nl-header .nl-nav {
		order: 1;
		margin-left: auto;
	}

	.nl-header__contact {
		order: 2;
		margin-left: 0;
		gap: 12px;
	}

	.nl-header__contact a {
		padding: 0 16px;
	}

	.nl-header__phone,
	.nl-header__phone:visited {
		border-color: transparent;
		padding-inline: 4px !important;
	}

	.nl-header__phone:hover .nl-header__label {
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.nl-header__label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}
}

.nl-header .wp-block-navigation {
	gap: 28px;
	font: 600 17px/1.2 var(--nl-font);
}

/* Doubled class to outrank core's (0,3,0) "color: inherit" on links. */
.nl-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--nl-charcoal);
	text-decoration: none;
}

.nl-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Contact: the red button in the bar. */
.nl-header .wp-block-navigation .nl-nav-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 14px 22px;
	border-radius: var(--nl-radius);
	background: var(--nl-red);
	color: #fff;
}

.nl-header .wp-block-navigation .nl-nav-cta .wp-block-navigation-item__content:hover {
	background: var(--nl-red-deep);
}

.nl-header .wp-block-navigation .nl-nav-cta .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	text-decoration: none;
}

/* Current page: underline, so it is not colour alone. */
.nl-header .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label,
.nl-header .nl-nav-services.current-menu-ancestor > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.nl-header .nl-nav-cta .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	text-decoration: none;
}

/* The Services dropdown on desktop: a white panel with the seven hubs. */
@media (min-width: 1025px) {
	.nl-header .wp-block-navigation .wp-block-navigation__submenu-container {
		min-width: 280px !important;
		padding: 10px 0;
		border: 1px solid var(--nl-line) !important;
		border-radius: var(--nl-radius);
		background: #fff !important;
		box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.25);
	}

	.nl-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
		padding: 10px 20px;
		font-weight: 400;
	}
}

/* Burger below desktop (core switches at 600px; the house breakpoint is
   1025px). */
@media (max-width: 1024.98px) {
	.nl-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.nl-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.nl-header .wp-block-navigation__responsive-container-open {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: var(--nl-radius);
	color: var(--nl-charcoal);
}

.nl-header .wp-block-navigation__responsive-container-open svg,
.nl-header .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

/* Full-screen white menu: hubs listed under Services, Contact as the red
   button. */
.nl-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 14px var(--nl-gutter) 32px;
	background: #fff !important;
	color: var(--nl-charcoal) !important;
}

.nl-header .wp-block-navigation__responsive-container-close {
	top: 14px !important;
	right: var(--nl-gutter) !important;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nl-charcoal);
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
	align-items: flex-start;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: flex-start;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: flex-start;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .nl-nav-services > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 6px 0 10px;
	font-size: 28px;
	font-weight: 800;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	width: 100%;
	padding: 0 !important;
	gap: 0 !important;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 1px solid var(--nl-line);
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 14px 0;
	font-size: 20px;
	font-weight: 600;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
	display: none;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.nl-nav-cta {
	width: auto;
	margin-top: 28px;
}

.nl-header .wp-block-navigation__responsive-container.is-menu-open .nl-nav-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: inline-flex;
	padding: 16px 28px;
	font-size: 18px;
}

/* ---------- The pinned quotation button on phones (nellys/sticky-cta) ---------- */

.nl-sticky {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 16px;
	z-index: 40;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
	transition: opacity 0.25s, transform 0.25s var(--nl-ease), visibility 0.25s;
}

.nl-sticky.is-hidden {
	visibility: hidden;
	opacity: 0;
	transform: translateY(12px);
}

@media (min-width: 768px) {
	.nl-sticky {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nl-sticky {
		transition: none;
	}
}

/* Room under the footer so the pinned button never covers its last line. */
@media (max-width: 767.98px) {
	.nl-footer {
		padding-bottom: 104px !important;
	}
}

/* ---------- Gravity Forms (GF's own CSS is off, inc/forms.php) ---------- */

.nl-form .gform_wrapper {
	margin: 0;
}

.nl-form .gform_heading,
.nl-form .gform_required_legend {
	display: none;
}

.nl-form .gform_fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nl-form .gfield {
	grid-column: span 12;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

@media (min-width: 480px) {
	.nl-form .gfield--width-half {
		grid-column: span 6;
	}
}

.nl-form .gfield_label,
.nl-form .gform-field-label,
.nl-form legend.gfield_label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--nl-charcoal);
	font: 600 16px/1.4 var(--nl-font);
}

.nl-form .gform-field-label--type-sub {
	margin: 6px 0 0;
	font-weight: 400;
	font-size: 14px;
}

.nl-form .gfield_required {
	margin-left: 4px;
	color: var(--nl-charcoal);
	font-weight: 400;
	font-size: 14px;
}

.nl-form .gfield_required .gfield_required_text {
	font-style: normal;
}

.nl-form .hidden_label > .gfield_label,
.nl-form .hidden_label > legend.gfield_label,
.nl-form .hidden_sub_label,
.nl-form .gform-field-label--type-sub.hidden_sub_label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.nl-form .ginput_complex {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.nl-form .ginput_container_address {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
	.nl-form .ginput_container_address {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.nl-form .ginput_complex > span {
	display: block;
	min-width: 0;
}

.nl-form input[type="text"],
.nl-form input[type="email"],
.nl-form input[type="tel"],
.nl-form textarea,
.nl-form select {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 13px 14px;
	border: 1px solid #8a8a8a;
	border-radius: var(--nl-radius);
	background: #fff;
	color: var(--nl-charcoal);
	font: 400 17px/1.4 var(--nl-font);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nl-form input::placeholder,
.nl-form textarea::placeholder {
	color: #666;
}

.nl-form textarea {
	min-height: 140px;
	resize: vertical;
}

.nl-form input:focus,
.nl-form textarea:focus,
.nl-form select:focus {
	border-color: var(--nl-navy);
	outline: none;
	box-shadow: 0 0 0 3px rgba(17, 16, 77, 0.2);
}

/* File upload: GF's multi-file drop zone, drawn plainly. */
.nl-form .gform_drop_area {
	padding: 18px;
	border: 1px dashed #8a8a8a;
	border-radius: var(--nl-radius);
	background: #fff;
	text-align: center;
}

.nl-form .gform_drop_instructions {
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
}

.nl-form .gform_button_select_files {
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--nl-navy);
	border-radius: var(--nl-radius);
	background: #fff;
	color: var(--nl-navy);
	font: 600 16px/1 var(--nl-font);
	cursor: pointer;
}

.nl-form .gfield_description,
.nl-form .gform_fileupload_rules {
	display: block;
	margin-top: 6px;
	color: var(--nl-charcoal);
	font: 400 14px/1.4 var(--nl-font);
}

.nl-form .ginput_preview {
	margin-top: 8px;
	font-size: 15px;
}

.nl-form .gfield_error input,
.nl-form .gfield_error textarea {
	border-color: #b3261e;
}

.nl-form .validation_message,
.nl-form .gfield_validation_message {
	margin-top: 6px;
	color: #b3261e;
	font: 400 15px/1.4 var(--nl-font);
}

.nl-form .gform_validation_errors {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #b3261e;
	border-radius: var(--nl-radius);
	background: #fff;
}

.nl-form .gform_validation_errors h2 {
	margin: 0;
	color: #b3261e;
	font: 600 16px/1.4 var(--nl-font);
}

.nl-form .gform_validation_errors ol {
	margin: 8px 0 0;
	padding-left: 20px;
	font-size: 15px;
}

.nl-form .gform_validation_errors a {
	color: #b3261e;
}

.nl-form .gform_footer {
	margin-top: 24px;
	padding: 0;
}

.nl-form .gform_footer .gform_button {
	min-width: 200px;
}

.nl-form .gform_confirmation_message {
	padding: 20px;
	border-left: 4px solid var(--nl-red);
	border-radius: 0 var(--nl-radius) var(--nl-radius) 0;
	background: #fff;
	font-size: 18px;
}

.nl-form .gform_ajax_spinner,
.nl-form .gform-loader {
	margin-left: 12px;
	vertical-align: middle;
}

.nl-form .gform_hidden,
.nl-form .gfield--type-honeypot,
.nl-form .gform_validation_container,
.nl-form .gfield_visibility_hidden,
.nl-form .gfield_visibility_administrative {
	display: none !important;
}

/* reCAPTCHA v3's badge, once keys are entered at cutover (section 8): its
   notice is in the form, so the badge is hidden, as on the live site. */
.grecaptcha-badge {
	visibility: hidden;
}
