/**
 * Homepage Layout & Composition Styles
 *
 * Page-specific composition for the 4DMC homepage.
 * Uses framework components composed into sections.
 */

/* ===== MASTER PAGE GRID ===== */

main#primary.site-main {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* ===== CONTAINER & GUTTERS ===== */

.c-container--3xl {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter-mobile, 1rem);
	width: 100%;
}

@media (min-width: 768px) {
	.c-container--3xl {
		padding: 0 var(--gutter-tablet, 1.5rem);
	}
}

@media (min-width: 1024px) {
	.c-container--3xl {
		padding: 0 48px;
	}
}

/* ===== HEADER WRAPPER ===== */

.site-header {
	background: transparent;
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* ===== HERO SECTION ===== */

.c-hero--split {
	padding: 80px 0 0;
}

.c-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 64px;
	align-items: center;
}

.c-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
}

.c-hero__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-brand-primary-dark);
	margin-bottom: 32px;
	display: block;
}

.c-hero__heading {
	font-size: clamp(38px, 4.2vw, 58px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--color-text-primary);
	margin-bottom: 32px;
}

.c-hero__subheading {
	font-size: 16.5px;
	color: #555;
	max-width: 420px;
	line-height: 1.65;
	margin-bottom: 48px;
	margin-top: 0;
}

.c-hero__actions {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
}

.c-hero__btn {
	display: inline-flex;
	align-items: center;
	padding: 16px 32px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	transition: all 0.15s;
	white-space: nowrap;
	text-decoration: none;
}

.c-hero__btn--primary {
	background: var(--color-brand-action);
	color: var(--color-text-primary);
	border: 1px solid var(--color-brand-action);
}

.c-hero__btn--primary:hover {
	background: var(--color-brand-action-dark);
	border-color: var(--color-brand-action-dark);
}

.c-hero__btn--secondary {
	background: transparent;
	color: var(--color-text-primary);
	border: 1px solid var(--color-text-primary);
}

.c-hero__btn--secondary:hover {
	background: var(--color-brand-dark, #16283a);
	border-color: var(--color-brand-dark, #16283a);
	color: white;
}

.c-hero__proof-line {
	padding-top: 28px;
	border-top: 1px solid var(--color-border-light);
	margin-top: 0;
}

.c-hero__proof-separator {
	display: none;
}

.c-hero__proof-tick {
	width: 1px;
	height: 8px;
	background: var(--color-border-light);
	flex-shrink: 0;
}

.c-hero__proof-stem {
	flex: 1;
	height: 1px;
	background: var(--color-border-light);
}

.c-hero__proof-row {
	display: flex;
	gap: 36px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: #556;
	letter-spacing: 0.02em;
}

.c-hero__proof-row strong {
	color: var(--color-brand-primary-dark);
	font-weight: 600;
}

.c-hero__image-wrap {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 6 / 5;
}

.c-hero__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Responsive */
@media (max-width: 1024px) {
	.c-hero__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.c-hero__image-wrap {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.c-hero--split {
		padding: 60px 0 0;
	}

	.c-hero__heading {
		font-size: 32px;
	}

	.c-hero__subheading {
		font-size: 16px;
	}

	.c-hero__actions {
		flex-direction: column;
		gap: 12px;
	}

	.c-hero__btn {
		width: 100%;
		text-align: center;
	}

	.c-hero__proof-row {
		flex-direction: column;
		gap: 12px;
	}
}

/* ===== ZONES SECTION ===== */

.c-zones-panel {
	background: var(--color-brand-light, #F5F3EE);
	padding: 60px;
	border-radius: 8px;
}

.c-zones__head {
	text-align: center;
	margin-bottom: 60px;
}

.c-zones__head .c-hero__eyebrow {
	display: block;
	margin: 0 0 20px 0;
}

.c-zones__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.c-zone__card {
	border: 0.5px solid var(--color-border-light);
	border-radius: 8px;
	overflow: hidden;
	background: white;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
}

.c-zone__card:hover {
	box-shadow: 0 12px 32px rgba(14, 27, 38, 0.08);
	transform: translateY(-3px);
}

.c-zone__image-wrap {
	height: 190px;
	position: relative;
	overflow: hidden;
}

.c-zone__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c-zone__body {
	padding: 28px 26px 30px;
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.c-zone__title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 10px 0;
	letter-spacing: -0.005em;
}

.c-zone__description {
	font-size: 13.5px;
	color: #666;
	line-height: 1.55;
	margin: 0 0 22px 0;
	min-height: 40px;
	flex: 1;
}

.c-zone__arrow-btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--color-border-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--color-text-primary);
	transition: all 0.2s;
	flex-shrink: 0;
}

.c-zone__card:hover .c-zone__arrow-btn {
	background: var(--color-brand-primary);
	border-color: var(--color-brand-primary);
	color: white;
}

/* Responsive */
@media (max-width: 1024px) {
	.c-zones__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.c-zones__grid {
		grid-template-columns: 1fr;
	}

	.c-zones__head {
		margin-bottom: 40px;
	}

	.c-zone__title {
		font-size: 16px;
	}

	.c-zone__description {
		font-size: 13px;
	}
}

/* ===== EDITORIAL SECTION ===== */

.c-editorial-panel {
	background: var(--color-brand-light, #F5F3EE);
	padding: 60px;
	border-radius: 8px;
}

.c-editorial__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 44px;
	gap: 40px;
}

.c-editorial__head h2 {
	font-size: clamp(26px, 2.8vw, 34px);
	font-weight: 700;
	letter-spacing: -0.015em;
	max-width: 520px;
	line-height: 1.15;
	margin: 0;
}

.c-editorial__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.c-editorial__card {
	border: 0.5px solid var(--color-border-light);
	border-radius: 8px;
	overflow: hidden;
	background: white;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
}

.c-editorial__card:hover {
	box-shadow: 0 12px 32px rgba(14, 27, 38, 0.08);
	transform: translateY(-3px);
}

.c-editorial__image-wrap {
	height: 200px;
	position: relative;
	overflow: hidden;
}

.c-editorial__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c-editorial__tag {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: white;
	background: rgba(14, 27, 38, 0.55);
	padding: 6px 11px;
	border-radius: 2px;
}

.c-editorial__card--secondary .c-editorial__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 55%,
		rgba(169, 113, 76, 0.28) 100%
	);
}

.c-editorial__body {
	padding: 30px 28px 32px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.c-editorial__eyebrow {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-brand-primary-dark);
	margin-bottom: 14px;
	font-weight: 500;
}

.c-editorial__card--secondary .c-editorial__eyebrow {
	color: var(--color-brand-secondary-dark);
}

.c-editorial__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	margin: 0 0 12px 0;
}

.c-editorial__description {
	font-size: 13.5px;
	color: #666;
	line-height: 1.55;
	margin: 0 0 20px 0;
	flex: 1;
}

.c-editorial__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-brand-primary-dark);
	text-decoration: none;
	transition: color 0.2s;
}

.c-editorial__link:hover {
	color: var(--color-brand-primary);
}

.c-editorial__card--secondary .c-editorial__link {
	color: var(--color-brand-secondary-dark);
}

.c-editorial__card--secondary .c-editorial__link:hover {
	color: var(--color-brand-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
	.c-editorial__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.c-editorial__grid {
		grid-template-columns: 1fr;
	}

	.c-editorial__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.c-editorial__head h2 {
		font-size: 24px;
	}

	.c-editorial__title {
		font-size: 18px;
	}
}

/* ===== TRUST SECTION ===== */

.c-trust {
	padding: 0;
}

.c-trust__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 2px;
	border: 0.5px solid var(--color-border-light);
	border-radius: 6px;
	overflow: hidden;
}

.c-trust__panel {
	padding: 56px 52px;
}

.c-trust__panel--left {
	background: white;
}

.c-trust__panel--right {
	background: var(--color-brand-light);
	position: relative;
	overflow: hidden;
}

.c-trust__panel--right::before {
	content: '';
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 220px;
	height: 220px;
	background: linear-gradient(
		135deg,
		transparent 48%,
		rgba(98, 144, 179, 0.12) 50%,
		transparent 52%
	);
	pointer-events: none;
}

.c-trust__label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-brand-primary-dark);
	margin-bottom: 24px;
	font-weight: 500;
	display: block;
}

.c-trust__quote {
	font-size: 22px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.65;
	color: #333;
	margin: 0 0 32px 0;
}

.c-trust__author {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.c-trust__author-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--color-text-primary);
}

.c-trust__author-location {
	font-size: 13px;
	color: #777;
}

.c-trust__cta-title {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 14px 0;
	letter-spacing: -0.01em;
	position: relative;
	z-index: 1;
}

.c-trust__cta-description {
	font-size: 14.5px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 30px 0;
	max-width: 300px;
	position: relative;
	z-index: 1;
}

.c-trust__button {
	position: relative;
	z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
	.c-trust__grid {
		grid-template-columns: 1fr;
	}

	.c-trust__panel {
		padding: 40px 32px;
	}
}

@media (max-width: 767px) {
	.c-trust__panel {
		padding: 32px 24px;
	}

	.c-trust__quote {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.c-trust__cta-title {
		font-size: 22px;
	}

	.c-trust__cta-description {
		font-size: 14px;
	}
}

/* ===== COMPREHENSIVE RESPONSIVE REFINEMENTS ===== */

/* Zone cards: 4col desktop → 2col tablet → 1col mobile */
@media (max-width: 1200px) {
	.c-zones__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.c-zones__grid {
		grid-template-columns: 1fr;
	}
}

/* Featured project: responsive aspect ratio */
@media (max-width: 768px) {
	.c-case-study__figure {
		aspect-ratio: 16 / 9;
	}
}

/* Proof strip: allow wrap at smaller sizes */
@media (max-width: 900px) {
	.c-hero__proof-row {
		flex-wrap: wrap;
		gap: 24px;
	}
}

/* Reduce vertical spacing at smaller widths */
@media (max-width: 900px) {
	.c-zones__head {
		margin-bottom: 40px;
	}

	.c-editorial__head {
		margin-bottom: 32px;
	}

	.c-trust {
		padding: 60px 0 !important;
	}
}

/* Footer main grid */
.site-footer__main {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
	gap: 36px;
	margin-bottom: 32px;
}

/* Brand column */
.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.site-footer__logo-wrap {
	margin-bottom: 12px;
	margin-left: 0;
}

.site-footer__logo {
	height: 56px;
	width: auto;
	display: block;
}

.site-footer__brand-desc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.5;
	margin: 0 0 12px 0;
	max-width: 200px;
	padding: 0;
	text-align: left;
}

/* Social icons */
.site-footer__social {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.2s;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
}

.site-footer__social-link:hover {
	color: white;
}

/* Navigation columns */
.site-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.site-footer__nav-title {
	font-weight: 500;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px 0;
	color: rgba(255, 255, 255, 0.75);
	text-align: left;
}

.site-footer__nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.site-footer__nav-list a {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__nav-list a:hover {
	color: white;
}

/* Checkatrade row */
.site-footer__rating {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	text-align: right;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 20px;
}

/* Legal row */
.site-footer__legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__copyright {
	flex: 1;
}

.site-footer__legal-links {
	display: flex;
	gap: 24px;
}

.site-footer__legal-links a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__legal-links a:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Footer utility and legal bar */
.site-footer__utility-bar {
	background: white;
	border-top: 1px solid #f0f0f0;
	padding: 10px 0;
	font-size: 11px;
	color: #666;
	line-height: 1.5;
}

.site-footer__utility-bar .c-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}

.site-footer__utility-left {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.site-footer__utility-copyright {
	margin: 0;
	padding: 0;
}

.site-footer__utility-legal-links {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.site-footer__utility-legal-links a {
	color: #666;
	text-decoration: none;
}

.site-footer__utility-legal-links a:hover {
	color: #333;
	text-decoration: underline;
}

.site-footer__utility-right {
	flex: 1;
	text-align: right;
}

.site-footer__utility-disclosure {
	margin: 0;
	padding: 0;
	font-style: italic;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 32px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Responsive: Mobile */
@media (max-width: 768px) {
	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 24px;
	}

	.site-footer__brand {
		align-items: flex-start;
		text-align: left;
	}

	.site-footer__nav {
		align-items: flex-start;
	}

	.site-footer__nav-title {
		margin-bottom: 8px;
		text-align: left;
	}


	.site-footer__rating {
		text-align: left;
		padding: 16px 0;
		margin-bottom: 16px;
	}

	.site-footer__legal {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.site-footer__legal-links {
		gap: 16px;
	}

	.site-footer__utility-bar .c-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.site-footer__utility-left {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.site-footer__utility-right {
		width: 100%;
		text-align: left;
	}
}

/* Hero CTAs remain visible on mobile */
@media (max-width: 767px) {
	.c-hero__actions {
		flex-direction: column;
		gap: 12px;
	}

	.c-hero__btn {
		width: 100%;
		text-align: center;
	}
}

/* Discreet source attribution for the three approved customer reviews only. */
.c-trust .c-review-source,
.c-about-testimonial .c-review-source,
.c-enquiry-testimonial .c-review-source {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.5;
	font-style: italic;
	font-weight: 400;
	color: #66727d;
	text-decoration: none;
}
.c-trust .c-review-source:hover,
.c-about-testimonial .c-review-source:hover,
.c-enquiry-testimonial .c-review-source:hover {
	color: var(--color-brand-primary-dark);
}
.c-trust .c-review-source:focus-visible,
.c-about-testimonial .c-review-source:focus-visible,
.c-enquiry-testimonial .c-review-source:focus-visible {
	outline: 2px solid var(--color-brand-primary-dark);
	outline-offset: 3px;
}

/* Shared testimonial hierarchy, confined to the three approved sections. */
.c-trust .c-trust__quote,
.c-about-page .c-about-testimonial .c-review-quote,
.c-enquiry-testimonial .c-review-quote {
	font-size: clamp(20px, 1.7vw, 24px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
}
.c-trust .c-trust__author-name,
.c-about-testimonial .c-review-name,
.c-enquiry-testimonial .c-review-name {
	display: block;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-text-primary);
}
.c-trust .c-trust__author-location,
.c-about-testimonial .c-review-details,
.c-enquiry-testimonial .c-review-details {
	display: block;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	color: #66727d;
}
