/* ===========================================
   CONSTRUCTION WARM (V2) — Color overrides
   Palette: Cobalt (#1E21A8) · Terracotta (#C4622D)
            Linen (#F7F3EE) · Dark Brown (#231F1C)
            Taupe (#6B5C4E) · Cobalt Tint (#EFF0FD)
   Fonts:   Zilla Slab (display) · Nunito Sans (body)
   =========================================== */


/* === Global button system === */

.wp-element-button,
.wp-block-button__link {
	padding: 12px 28px !important;
	border-radius: 4px !important;
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
	letter-spacing: 0.04em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primary (cobalt solid) hover → terracotta */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary) !important;
	color: var(--wp--preset--color--base) !important;
}


/* === Outline buttons on dark backgrounds === */

.block-cta-band .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	color: var(--wp--preset--color--base) !important;
}

.block-cta-band .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.85) !important;
}


/* === Section eyebrow labels === */

/* Shared structure: flex row with 28px × 3px terracotta bar before the text.
   Applied to eyebrow <p> elements in Services, Why Choose Us, and Portfolio.
   Testimonials, CTA, and Contact use their own named selectors below. */

.section-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-eyebrow::before {
	content: '';
	width: 28px;
	height: 3px;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px;
	flex-shrink: 0;
	display: block;
}

/* Center-aligned eyebrows (services header) */
.has-text-align-center.section-eyebrow {
	justify-content: center;
}


/* === Global construction heading system === */

/* H1: hero only — size set inline in pattern */
.block-construction-hero .wp-block-heading {
	font-family: 'Zilla Slab', serif;
}

/* H2: section titles — clamp(32px, 4vw, 50px) across all sections */
.block-services-grid h2.wp-block-heading,
.block-portfolio-grid h2.wp-block-heading,
.block-why-choose-us h2.wp-block-heading,
.block-testimonials h2.wp-block-heading,
.block-stats-bar h2.wp-block-heading,
.block-process-steps h2.wp-block-heading,
.block-blog-grid h2.wp-block-heading,
.block-contact-split h2.wp-block-heading,
.block-cta-band h2.wp-block-heading,
.block-cta-banner h2.wp-block-heading {
	font-family: 'Zilla Slab', serif;
	font-size: clamp(32px, 4vw, 50px) !important;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* H3: sub-section / card titles */
.block-services-grid h3.wp-block-heading,
.block-why-choose-us h3.wp-block-heading,
.block-process-steps h3.wp-block-heading,
.block-blog-grid h3.wp-block-heading,
.block-contact-split h3.wp-block-heading {
	font-family: 'Zilla Slab', serif;
}

/* H4: pillar / inline callout titles */
.block-why-choose-us h4.wp-block-heading,
.block-process-steps h4.wp-block-heading {
	font-family: 'Zilla Slab', serif;
}


/* === Stats Bar: column dividers === */

.block-stats-bar .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 781px) {
	.block-stats-bar .wp-block-column + .wp-block-column {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}
}


/* === Services Grid === */

/* Force white section background — pattern uses backgroundColor:"white" which has no
   palette slug in construction-warm.json, so it falls through to body linen otherwise */
.block-services-grid {
	background-color: #FFFFFF !important;
}

.block-services-grid .wp-block-column > .wp-block-group {
	background-color: #F7F3EE !important;
	border: 1px solid #DDD4C5;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.block-services-grid .wp-block-column > .wp-block-group:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(30, 26, 22, 0.09);
}

/* Image wrapper: clips to 200px, zoom effect stays inside the figure */
.block-services-grid .wp-block-image {
	height: 200px;
	overflow: hidden;
	margin: 0;
}

/* Image: fill the figure, no fixed height (let the figure control it) */
.block-services-grid .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.block-services-grid .wp-block-column > .wp-block-group:hover .wp-block-image img {
	transform: scale(1.04);
}

/* Service heading */
.block-services-grid h3.wp-block-heading {
	font-family: 'Zilla Slab', serif;
	font-size: 21px !important;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0;
}

/* Sub-items list */
.block-services-grid .wp-block-list {
	list-style: none !important;
	padding-left: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.block-services-grid .wp-block-list li {
	padding-left: 14px;
	position: relative;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--taupe);
}

.block-services-grid .wp-block-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--terra-light);
	border-radius: 50%;
}

/* View Service link */
.block-services-grid p a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--wp--preset--color--secondary) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	border: 1.5px solid var(--wp--preset--color--secondary);
	border-radius: 4px;
	padding: 9px 16px;
	transition: background 0.2s, color 0.2s;
}

.block-services-grid p a::after {
	content: '→';
	font-size: 14px;
}

.block-services-grid p a:hover {
	background: var(--wp--preset--color--secondary) !important;
	color: #ffffff !important;
}


/* === Testimonials === */

/* Section label eyebrow — terracotta bar + text */
.block-testimonials .t-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.block-testimonials .t-section-label::before {
	content: '';
	width: 28px;
	height: 3px;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px;
	flex-shrink: 0;
	display: block;
}

/* Score block: right-aligned */
.block-testimonials .t-score-block {
	text-align: right;
	align-items: flex-end;
}

.block-testimonials .t-score-num {
	font-family: 'Zilla Slab', serif;
}

/* ── Spotlight: shortcode output ── */

.t-spotlight {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	min-height: 380px;
}

.t-spotlight-inner {
	display: grid;
	grid-template-columns: 1fr 380px;
	min-height: 380px;
}

.t-spotlight-content {
	padding: 56px 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.t-spotlight-quote {
	font-family: 'Zilla Slab', serif;
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 500;
	color: var(--wp--preset--color--base);
	line-height: 1.55;
	font-style: italic;
	margin-bottom: 24px;
}

.t-spotlight-quote::before {
	content: '\201C';
	font-size: 64px;
	color: var(--wp--preset--color--secondary);
	line-height: 0.6;
	display: block;
	margin-bottom: 16px;
	font-style: normal;
}

.t-spotlight-author {
	display: flex;
	align-items: center;
	gap: 16px;
}

.t-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Zilla Slab', serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--base);
	flex-shrink: 0;
}

.t-author-name {
	font-family: 'Zilla Slab', serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--base);
}

.t-author-loc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 600;
	margin-top: 2px;
}

.t-stars {
	margin-left: auto;
	color: var(--wp--preset--color--terra-light);
	font-size: 16px;
	letter-spacing: 2px;
}

/* Right nav panel */
.t-spotlight-nav {
	background: rgba(255, 255, 255, 0.04);
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px 36px;
}

/* Dots */
.t-dots {
	display: flex;
	gap: 8px;
	align-items: center;
}

.t-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: background 0.2s, width 0.2s;
	border: none;
	padding: 0;
}

.t-dot.active {
	background: var(--wp--preset--color--secondary);
	width: 24px;
	border-radius: 4px;
}

/* Preview list */
.t-nav-preview {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
	margin: 32px 0;
	justify-content: center;
	overflow-y: auto;
	max-height: 240px;
}

.t-preview-item {
	padding: 16px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: background 0.2s;
	opacity: 0.6;
}

.t-preview-item.active {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

.t-preview-item:hover {
	background: rgba(255, 255, 255, 0.08);
	opacity: 1;
}

.t-preview-name {
	font-family: 'Zilla Slab', serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--base);
	margin-bottom: 3px;
}

.t-preview-snip {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.5;
	font-style: italic;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Arrows */
.t-arrows {
	display: flex;
	gap: 10px;
}

.t-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--base);
}

.t-arrow:hover {
	background: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}

@media (max-width: 781px) {
	.t-spotlight-inner {
		grid-template-columns: 1fr;
	}

	.t-spotlight-content {
		padding: 40px 32px 36px;
	}

	.t-spotlight-nav {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		padding: 32px 28px;
	}
}


/* === CTA Banner === */

.block-cta-banner {
	background-color: #F7F3EE;
}

.block-cta-banner .cta-card {
	overflow: hidden;
	min-height: 650px;
}

.block-cta-banner .cta-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.block-cta-banner .cta-section-label::before {
	content: '';
	width: 28px;
	height: 3px;
	background: var(--wp--preset--color--terra-light);
	border-radius: 2px;
	flex-shrink: 0;
	display: block;
}

.block-cta-banner h2.wp-block-heading {
	font-family: 'Zilla Slab', serif;
}

.block-cta-banner .cta-phone-link a {
	font-family: 'Zilla Slab', serif;
	font-size: 19px;
	font-weight: 700;
	color: var(--wp--preset--color--base) !important;
	text-decoration: none;
	transition: color 0.2s;
}

.block-cta-banner .cta-phone-link a:hover {
	color: rgba(255, 255, 255, 0.8) !important;
}


/* === Trust Bar === */

.block-trust-bar {
	background-color: var(--wp--preset--color--linen-mid);
	border-top: 1px solid #DDD4C5;
	border-bottom: 1px solid #DDD4C5;
}

.block-trust-bar .trust-items-row {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0 !important;
}

.block-trust-bar .trust-item {
	flex: 1;
	justify-content: center;
	border-right: 1px solid #DDD4C5;
	margin-block-start: 0 !important;
}

.block-trust-bar .trust-item:last-child {
	border-right: none;
}

.block-trust-bar .trust-icon {
	width: 40px !important;
	height: 40px;
	min-width: 40px;
	background-color: var(--wp--preset--color--base);
	border-radius: 6px;
	border: 1px solid #DDD4C5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	margin: 0 !important;
}

.block-trust-bar .trust-icon img {
	width: 20px !important;
	height: 20px !important;
	object-fit: contain;
}

.block-trust-bar .trust-title {
	font-family: 'Zilla Slab', serif;
	font-size: 16px !important;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	line-height: 1.2;
	margin: 0 !important;
}

.block-trust-bar .trust-sub {
	font-size: 12px !important;
	font-weight: 600;
	color: var(--wp--preset--color--taupe);
	margin: 0 !important;
}

@media (max-width: 781px) {
	.block-trust-bar .trust-items-row {
		flex-wrap: wrap !important;
	}

	.block-trust-bar .trust-item {
		flex-basis: 50%;
		border-bottom: 1px solid #DDD4C5;
	}

	.block-trust-bar .trust-item:nth-child(odd) {
		border-right: 1px solid #DDD4C5;
	}

	.block-trust-bar .trust-item:nth-child(even) {
		border-right: none;
	}

	.block-trust-bar .trust-item:nth-last-child(-n+2):not(:has(~ .trust-item:nth-last-child(-n+2))) {
		border-bottom: none;
	}
}


/* === Top Bar === */

.block-top-bar {
	background-color: #1E21A8;
	color: var(--wp--preset--color--base);
}

.block-top-bar .top-bar-area {
	padding: 0 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.block-top-bar .top-bar-area:last-of-type {
	border-right: none;
	padding-right: 0;
}

.block-top-bar .top-bar-icon {
	width: 13px !important;
	height: 13px !important;
	min-width: 13px;
	flex-shrink: 0;
	margin: 0 !important;
}

.block-top-bar .top-bar-icon img {
	width: 13px !important;
	height: 13px !important;
	object-fit: contain;
	display: block;
}

.block-top-bar .top-bar-icon svg {
	width: 13px;
	height: 13px;
	stroke: var(--wp--preset--color--terra-light);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.block-top-bar p a {
	color: rgba(255, 255, 255, 0.9) !important;
	text-decoration: none;
	transition: color 0.2s;
}

.block-top-bar p a:hover {
	color: #ffffff !important;
}

@media (max-width: 781px) {
	.block-top-bar .top-bar-areas {
		display: none !important;
	}
}


/* === Header === */

.block-header-default {
	background-color: rgba(247, 243, 238, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #DDD4C5;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.block-header-default .header-logo-img {
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	margin: 0 !important;
}

.block-header-default .header-logo-img img {
	border-radius: 6px;
	display: block;
}

.block-header-default .header-brand-name {
	font-family: 'Zilla Slab', serif;
}

/* Nav links */
.block-header-default .wp-block-navigation a {
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--taupe-dark) !important;
	text-decoration: none;
	transition: color 0.2s;
}

.block-header-default .wp-block-navigation a:hover {
	color: var(--wp--preset--color--secondary) !important;
}

/* Get a Quote CTA link */
.block-header-default .wp-block-navigation .nav-cta > .wp-block-navigation-item__content {
	background: #C4622D !important;
	color: #ffffff !important;
	padding: 10px 22px !important;
	border-radius: 4px !important;
	transition: background 0.2s !important;
}

.block-header-default .wp-block-navigation .nav-cta:hover > .wp-block-navigation-item__content {
	background: #9E4A1E !important;
	color: #ffffff !important;
}


/* === Footer === */

.block-footer-default {
	background-color: #1E1A16;
}

.block-footer-default .footer-top-grid {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand row */
.block-footer-default .footer-logo {
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	margin: 0 !important;
}

.block-footer-default .footer-logo img {
	display: block;
	border-radius: 6px;
}

.block-footer-default .footer-brand-name {
	font-family: 'Zilla Slab', serif;
}

/* Nav column headings */
.block-footer-default .footer-col-head {
	text-transform: uppercase;
}

/* Nav links */
.block-footer-default .footer-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.block-footer-default .is-style-none li a,
.block-footer-default p a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.2s;
}

.block-footer-default .is-style-none li a:hover,
.block-footer-default p a:hover {
	color: var(--wp--preset--color--terra-light);
}

/* Social icons (wp:social-links) */
.block-footer-default .footer-social {
	gap: 12px;
	flex-wrap: wrap;
}

.block-footer-default .footer-social .wp-social-link {
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	transition: background 0.2s, border-color 0.2s;
}

.block-footer-default .footer-social .wp-social-link:hover {
	background: rgba(255, 255, 255, 0.16) !important;
	border-color: rgba(255, 255, 255, 0.28) !important;
}

.block-footer-default .footer-social .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
}

.block-footer-default .footer-social .wp-social-link svg {
	width: 15px !important;
	height: 15px !important;
}

/* Bottom bar — border handled by footer-top-grid border-bottom above */
.block-footer-default .footer-bottom-bar {
	border-top: none;
}

/* License text */
.footer-lic {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	font-weight: 600;
	letter-spacing: 0.03em;
}

@media (max-width: 781px) {
	.block-footer-default .footer-top-grid .wp-block-columns {
		flex-direction: column;
	}

	.block-footer-default .footer-top-grid .wp-block-column {
		flex-basis: 100% !important;
	}

	.block-footer-default .footer-bottom-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}


/* === Why Choose Us === */

.block-why-choose-us {
	background-color: var(--wp--preset--color--tertiary);
}

.block-why-choose-us .why-image-wrap .wp-block-image:first-child img {
	border-radius: 10px;
}

.block-why-choose-us .why-image-wrap .why-img-float img {
	border-radius: 8px;
	border: 6px solid var(--wp--preset--color--base);
	box-shadow: 0 8px 32px rgba(30, 26, 22, 0.14);
}

.why-icon-box {
	background-color: var(--wp--preset--color--cobalt-tint);
}

.block-why-choose-us .why-pillars {
	border-top: 1px solid var(--wp--preset--color--linen-mid);
}

.block-why-choose-us .why-pillar {
	border-bottom: 1px solid var(--wp--preset--color--linen-mid);
}


/* === Portfolio Grid === */

/*
 * The live page uses a wp:group.portfolio-grid-inner containing 6 wp:cover blocks
 * directly (no wp:columns wrapper). WP renders the group as display:flow-root via
 * a generated .is-layout-flow class. We override to CSS grid here.
 *
 * The .portfolio-item rules below are a fallback for any fresh-pattern instances
 * that use the wp:columns version of the pattern.
 */

/* ── grid-inner structure (live saved content) ── */

.block-portfolio-grid .portfolio-grid-inner {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 14px !important;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover {
	height: 300px !important;
	min-height: unset !important;
	overflow: hidden !important;
	border-radius: 8px !important;
	position: relative !important;
	cursor: pointer;
	/* Kill flow-layout sibling margins */
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	width: auto !important;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover .wp-block-cover__image-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.5s ease;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover .wp-block-cover__background {
	background: linear-gradient(to top, rgba(30,26,22,0.75) 0%, transparent 60%) !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover:hover .wp-block-cover__background {
	opacity: 1 !important;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover .wp-block-cover__inner-container {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	padding: 20px 18px !important;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover:hover .wp-block-cover__inner-container {
	opacity: 1;
}

/* ── portfolio-item structure (wp:columns pattern fallback) ── */

.block-portfolio-grid .portfolio-row {
	gap: 14px !important;
	margin-bottom: 0 !important;
}

.block-portfolio-grid .portfolio-row .wp-block-column {
	padding: 0 !important;
	min-width: 0;
}

.block-portfolio-grid .portfolio-item {
	overflow: hidden !important;
	border-radius: 8px !important;
	height: 300px !important;
	min-height: unset !important;
	position: relative !important;
	cursor: pointer;
}

.block-portfolio-grid .portfolio-item .wp-block-cover__image-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.5s ease;
}

.block-portfolio-grid .portfolio-item:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}

.block-portfolio-grid .portfolio-item .wp-block-cover__background {
	background: linear-gradient(to top, rgba(30,26,22,0.75) 0%, transparent 60%) !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease;
}

.block-portfolio-grid .portfolio-item:hover .wp-block-cover__background {
	opacity: 1 !important;
}

.block-portfolio-grid .portfolio-item .wp-block-cover__inner-container {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	padding: 20px 18px !important;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.block-portfolio-grid .portfolio-item:hover .wp-block-cover__inner-container {
	opacity: 1;
}

@media (max-width: 781px) {
	.block-portfolio-grid .portfolio-grid-inner {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.block-portfolio-grid .portfolio-row.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.block-portfolio-grid .portfolio-row .wp-block-column {
		flex-basis: calc(50% - 7px) !important;
	}

	/* Always show overlay on mobile — no hover state on touch */
	.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover .wp-block-cover__background,
	.block-portfolio-grid .portfolio-item .wp-block-cover__background {
		opacity: 1 !important;
	}

	.block-portfolio-grid .portfolio-grid-inner > .wp-block-cover .wp-block-cover__inner-container,
	.block-portfolio-grid .portfolio-item .wp-block-cover__inner-container {
		opacity: 1;
	}
}


/* === Block layout width override (WP generates dynamic max-width from saved post content) === */

.block-services-grid > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.block-why-choose-us > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.block-cta-banner > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.block-footer-default > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1600px !important;
}


/* === Separator: terracotta tint === */

.wp-block-separator.has-secondary-background-color {
	background-color: var(--wp--preset--color--secondary) !important;
	border-color: var(--wp--preset--color--secondary) !important;
}


/* === Contact Split === */

.block-contact-split .contact-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.block-contact-split .contact-section-label::before {
	content: '';
	width: 28px;
	height: 3px;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px;
	flex-shrink: 0;
	display: block;
}

/* Contact detail items */
.c-icon-img {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	margin: 0 !important;
}

.c-icon-img img {
	width: 20px !important;
	height: 20px !important;
	object-fit: contain;
	display: block;
}

.c-icon-img svg {
	width: 17px;
	height: 17px;
	stroke: var(--wp--preset--color--terra-light);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.c-value {
	font-family: 'Zilla Slab', serif;
}

/* Form */
.block-contact-split .contact-form {
	width: 100%;
}

.block-contact-split .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.block-contact-split .form-group {
	margin-bottom: 16px;
}

.block-contact-split .form-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe);
	margin-bottom: 7px;
}

.block-contact-split .form-input,
.block-contact-split .form-select,
.block-contact-split .form-textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #DDD4C5;
	border-radius: 4px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	color: #1E1A16;
	background: #F7F3EE;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.block-contact-split .form-input:focus,
.block-contact-split .form-select:focus,
.block-contact-split .form-textarea:focus {
	border-color: #1E21A8;
	background: #ffffff;
}

.block-contact-split .form-textarea {
	min-height: 108px;
	resize: vertical;
}

.block-contact-split .btn-submit {
	display: block;
	width: 100%;
	background: #C4622D;
	color: #ffffff;
	padding: 15px 24px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.2s;
	margin-top: 4px;
}

.block-contact-split .btn-submit:hover {
	background: #9E4A1E;
}

@media (max-width: 781px) {
	.block-contact-split .form-row {
		grid-template-columns: 1fr;
	}

	.block-contact-split .contact-left-panel,
	.block-contact-split .contact-right-col .wp-block-group {
		padding-left: 32px !important;
		padding-right: 32px !important;
		padding-top: 64px !important;
		padding-bottom: 64px !important;
	}
}


/* === Gravity Forms: match construction warm form styling === */

/* Container width */
.gform_wrapper.gravity-theme {
	width: 100% !important;
}

.gform_wrapper {
	width: 100% !important;
}

/* Field labels */
.gform_wrapper .gfield_label,
.gform_wrapper .gfield_required {
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--taupe) !important;
	margin-bottom: 7px !important;
}

.gform_wrapper .gfield_required {
	color: #C4622D !important;
	letter-spacing: 0 !important;
}

/* All inputs, selects, textareas */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper select,
.gform_wrapper textarea {
	width: 100% !important;
	padding: 13px 16px !important;
	border: 1.5px solid #DDD4C5 !important;
	border-radius: 4px !important;
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 15px !important;
	color: #1E1A16 !important;
	background: #F7F3EE !important;
	outline: none !important;
	transition: border-color 0.2s, background 0.2s !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper input[type="url"]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	border-color: #1E21A8 !important;
	background: #ffffff !important;
	box-shadow: none !important;
}

.gform_wrapper textarea {
	min-height: 108px !important;
	resize: vertical !important;
}

/* Two-column half-width fields */
.gform_wrapper .gfield--width-half {
	width: calc(50% - 7px) !important;
}

/* Field spacing */
.gform_wrapper .gfield {
	margin-bottom: 16px !important;
}

.gform_wrapper .gform_fields {
	gap: 0 14px !important;
}

/* Submit button */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper input[type="submit"].gform_button {
	display: block !important;
	width: 100% !important;
	background: #C4622D !important;
	color: #ffffff !important;
	padding: 15px 24px !important;
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	border: none !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	letter-spacing: 0.02em !important;
	transition: background 0.2s !important;
	margin-top: 4px !important;
	box-shadow: none !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper input[type="submit"].gform_button:hover {
	background: #9E4A1E !important;
}

/* Validation errors */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
	border-color: #C4622D !important;
}

.gform_wrapper .validation_message,
.gform_wrapper .gfield_description.validation_message {
	font-size: 12px !important;
	color: #C4622D !important;
	font-weight: 600 !important;
	margin-top: 4px !important;
}

.gform_wrapper .gform_validation_errors {
	background: rgba(196, 98, 45, 0.08) !important;
	border: 1px solid rgba(196, 98, 45, 0.3) !important;
	border-radius: 4px !important;
	padding: 16px !important;
	color: #C4622D !important;
	font-size: 14px !important;
}

@media (max-width: 781px) {
	.gform_wrapper .gfield--width-half {
		width: 100% !important;
	}
}

.block-header-default .header-brand-name a {
	color: #C4622D !important;
	text-decoration: none;
}
