/*
Theme Name: Bennetts Bricklaying & Construction
Theme URI: https://bennetts.co.uk
Author: Bennetts Bricklaying & Construction Ltd
Description: Custom classic PHP theme for Bennetts Bricklaying & Construction Ltd (Warwick, UK). Built from a hi-fi HTML design handoff, direction "1a" (navy/red, Barlow type).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bennetts-bricklaying
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--navy: #1B2D5C;
	--navy-deep: #14213F;
	--navy-card: #22376B;
	--navy-border: #2A3A63;
	--red: #C11B22;
	--red-hover: #A81620;
	--red-light: #E06A70;
	--ink: #24272E;
	--muted: #4A463F;
	--muted-2: #6B6660;
	--meta: #857F78;
	--on-navy-body: #B9C2D8;
	--on-navy-label: #8E9BBD;
	--white: #FFFFFF;
	--off-white: #F6F4F0;
	--border: #E5E1DA;
	--input-border: #D8D3CB;

	--font-heading: 'Barlow Condensed', sans-serif;
	--font-body: 'Barlow', sans-serif;

	/* Fluid gutter: 56px padding (matches the 1440px design reference) at
	   1440px and below; grows on wider screens so colored section
	   backgrounds stay full-bleed while content re-centers around ~1328px. */
	--pad-x: max(56px, calc((100% - 1328px) / 2));
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding: 0;
	background: var(--white);
	font-family: var(--font-body);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--red); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--red-hover); }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--input-border);
	padding: 16px 18px;
	outline: none;
	width: 100%;
}
textarea { resize: vertical; }
::placeholder { color: var(--meta); opacity: 1; }

.site { background: var(--white); }

/* ==========================================================================
   Kicker / red rule / headings
   ========================================================================== */
.kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	color: var(--red);
	text-transform: uppercase;
}
.kicker--on-navy { color: var(--red-light); }
.rule {
	width: 64px;
	height: 10px;
	background: var(--red);
	margin-bottom: 22px;
}
h1.display {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 72px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--white);
	margin: 0;
}
h2.section-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 48px;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0;
}
h2.section-title--on-navy { color: var(--white); }
.eyebrow-row { display: flex; justify-content: space-between; align-items: flex-end; margin: 10px 0 40px; gap: 24px; flex-wrap: wrap; }
.view-all { font-size: 15px; font-weight: 600; color: var(--red); }
.view-all--on-navy { color: var(--white); }
.breadcrumb {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--on-navy-label);
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section { padding: 88px var(--pad-x); }
.section--tight { padding: 72px var(--pad-x); }
.section--off-white { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--navy-deep { background: var(--navy-deep); }

.page-hero { background: var(--navy); padding: 72px var(--pad-x); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-64 { gap: 64px; }
.align-center { align-items: center; }
.align-start { align-items: start; }

.body-text { font-size: 17px; line-height: 1.65; color: var(--muted); }
.body-text--on-navy { color: var(--on-navy-body); }
.body-text p { margin: 0 0 18px; }
.body-text p:last-child { margin-bottom: 0; }
.body-text strong { color: var(--navy); font-weight: 700; }
.body-text h3 {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--navy);
	line-height: 1.15;
	margin: 34px 0 12px;
}
.body-text h3:first-child { margin-top: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-block;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .5px;
	padding: 16px 30px;
	border: none;
	text-align: center;
	cursor: pointer;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); color: var(--white); }
.btn--outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; padding: 14px 28px; }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.btn--outline-white { border: 2px solid var(--white); color: var(--white); background: transparent; padding: 14px 28px; }
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--block { display: block; width: 100%; }

/* ==========================================================================
   Nav / header
   ========================================================================== */
.topbar {
	background: var(--navy);
	color: var(--on-navy-body);
	display: flex;
	justify-content: space-between;
	padding: 8px var(--pad-x);
	font-size: 13px;
	font-weight: 500;
	gap: 16px;
	flex-wrap: wrap;
}
.topbar__phone { color: var(--white); font-weight: 600; }
.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px var(--pad-x);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	transition: opacity .2s ease;
}
.masthead__logo img { height: 55px; display: block; }
.masthead__links { display: flex; align-items: center; gap: 26px; }
.masthead__link { font-size: 15px; font-weight: 600; color: var(--ink); }
.masthead__link:hover, .masthead__link.is-active { color: var(--red); }
.masthead__cta { background: var(--red); color: var(--white); padding: 12px 22px; font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.masthead__cta:hover { background: var(--red-hover); color: var(--white); }
.masthead__toggle { display: none; background: none; border: none; font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .5px; color: var(--navy); }

/* ==========================================================================
   Hero (full-bleed image + gradient scrim)
   ========================================================================== */
.hero-photo {
	position: relative;
	background-color: var(--navy);
	background-size: cover;
	background-position: center;
}
.hero-photo__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15,26,54,.88) 0%, rgba(15,26,54,.55) 45%, rgba(15,26,54,0) 75%);
	pointer-events: none;
}
.hero-photo__scrim--tight { background: linear-gradient(90deg, rgba(15,26,54,.92) 0%, rgba(15,26,54,.55) 55%, rgba(15,26,54,.12) 100%); }
.hero-photo__content { position: relative; z-index: 1; }

.hero-slider { position: relative; overflow: hidden; height: 640px; }
.hero-slider .hero-photo {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease;
	z-index: 1;
}
/* .is-active = the current slide, fully visible, sitting as the base layer.
   .is-incoming = the next slide, fading in ON TOP of the still-fully-opaque
   active slide (higher z-index) — a true image-to-image crossfade, since the
   base layer never itself fades and so never exposes the page background
   underneath. main.js removes .is-active from the old slide only once the
   incoming slide has fully faded in, at which point the swap is invisible. */
.hero-slider .hero-photo.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slider .hero-photo.is-incoming { opacity: 1; visibility: visible; z-index: 3; }
.hero-slider__dots {
	position: absolute;
	z-index: 4;
	left: var(--pad-x);
	bottom: 28px;
	display: flex;
	gap: 10px;
}
.hero-slider__dot {
	width: 34px;
	height: 4px;
	background: rgba(255, 255, 255, .4);
	border: none;
	padding: 0;
	cursor: pointer;
}
.hero-slider__dot.is-active { background: var(--red); }
.hero-slider__dot:hover { background: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Stat / facts strips
   ========================================================================== */
.stat-strip { background: var(--navy); display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px var(--pad-x); gap: 24px; border-top: 1px solid var(--navy-border); }
.stat-strip > div, .facts-strip > div { border-left: 4px solid var(--red); padding-left: 18px; }
.stat-strip__value { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--white); }
.stat-strip__label { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; color: var(--on-navy-label); text-transform: uppercase; }
.facts-strip { background: var(--navy-deep); display: grid; grid-template-columns: repeat(var(--facts-count, 4), 1fr); padding: 30px var(--pad-x); gap: 24px; }
.facts-strip__label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--on-navy-label); text-transform: uppercase; }
.facts-strip__value { font-size: 20px; font-weight: 700; color: var(--white); margin-top: 6px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.service-card { border: 1px solid var(--border); padding: 28px 24px 24px; display: block; }
.service-card:hover { border-color: var(--navy); }
.service-card__num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--red); }
.service-card__name { font-size: 18px; font-weight: 700; margin: 10px 0 8px; color: var(--navy); line-height: 1.25; }
.service-card__desc { font-size: 14px; line-height: 1.5; color: var(--muted-2); }

.service-row { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--border); background: var(--white); }
.service-row:hover { border-color: var(--navy); }
.service-row__img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; }
.service-row__body { padding: 26px 28px; }

.project-card { border: 1px solid var(--border); background: var(--white); display: block; }
.project-card:hover { border-color: var(--navy); }
.project-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.project-card__body { padding: 20px 22px; }
.project-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--red); text-transform: uppercase; }
.project-card__title { font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 8px; }
.project-card__meta { font-size: 14px; color: var(--meta); margin-top: 4px; }
.project-card__cue { font-size: 14px; font-weight: 700; color: var(--red); margin-top: 14px; }

.featured-project { background: var(--navy-card); display: block; }
.featured-project img { width: 100%; height: 260px; object-fit: cover; display: block; }
.featured-project__body { padding: 22px; }

.milestone-card { background: var(--white); border-top: 4px solid var(--red); padding: 26px 24px; }
.milestone-card__year { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--navy); }
.milestone-card__desc { font-size: 15px; line-height: 1.5; color: var(--muted-2); margin-top: 8px; }

.testimonial-card { background: var(--white); border-top: 4px solid var(--red); padding: 32px 30px; }
.testimonial-card__quote { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--navy); }
.testimonial-card__by { margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--meta); }

.policy-card { border: 1px solid var(--border); border-top: 4px solid var(--red); padding: 36px 34px; display: flex; flex-direction: column; }
.policy-card__num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--red); }
.policy-card__title { margin: 10px 0 14px; font-family: var(--font-heading); font-size: 32px; font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1.05; }
.policy-card__desc { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--muted); flex: 1; }

.role-card { border: 1px solid var(--border); padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.role-card__title { font-size: 20px; font-weight: 700; color: var(--navy); }
.role-card__detail { font-size: 15px; color: var(--muted-2); margin-top: 6px; }
.role-card__meta { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--red); text-transform: uppercase; }
.role-card__meta span:last-child { color: var(--meta); }

.news-card { border: 1px solid var(--border); display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.news-card__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { display: flex; gap: 12px; align-items: baseline; }
.news-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--red); text-transform: uppercase; }
.news-card__date { font-size: 13px; color: var(--meta); }
.news-card__title { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.news-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--muted-2); }
.news-card__cue { font-size: 14px; font-weight: 700; color: var(--red); margin-top: auto; }

.case-study { display: grid; grid-template-columns: 520px 1fr; border: 1px solid var(--border); background: var(--white); }
.case-study__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.case-study__body { padding: 40px 44px; }
.case-study__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.case-study__facts-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--meta); text-transform: uppercase; }
.case-study__facts-value { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 4px; }

.sector-card { background: var(--white); border: 1px solid var(--border); display: block; }
.sector-card:hover { border-color: var(--navy); }
.sector-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.sector-card__body { padding: 24px; }
.sector-card__title { font-size: 22px; font-weight: 700; color: var(--navy); }
.sector-card__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); }

.filter-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--meta); text-transform: uppercase; margin-right: 8px; }
.chip {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
	font-family: var(--font-body);
	border: 2px solid var(--border);
	background: var(--white);
	color: var(--navy);
	cursor: pointer;
}
.chip.is-active { border-color: var(--red); background: var(--red); color: var(--white); }
.chip:hover:not(.is-active) { border-color: var(--navy); }

.logo-tile { background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.accreditation-tile { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.accreditation-tile img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Checklist (repeater-style bullet list, e.g. "what's included" / "what we did")
   ========================================================================== */
.checklist-box { background: var(--off-white); border-left: 4px solid var(--red); padding: 28px 32px; }
.checklist-box__label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--red); text-transform: uppercase; margin-bottom: 16px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; font-size: 16px; font-weight: 500; color: var(--navy); }
.checklist li { list-style: none; display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: ''; width: 8px; height: 8px; background: var(--red); flex: none; display: inline-block; }
.checklist--on-navy { color: var(--on-navy-body); }
.checklist--on-navy li::before { background: var(--red); }
.checklist--single { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; font-size: 15px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.enquiry-card { background: var(--navy); padding: 34px 32px; }
.enquiry-card__title { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--white); text-transform: uppercase; line-height: 1.05; }
.enquiry-card__desc { margin: 12px 0 24px; font-size: 15px; line-height: 1.55; color: var(--on-navy-body); }
.enquiry-card__call { margin-top: 18px; text-align: center; font-size: 14px; color: var(--on-navy-label); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--sidebar { display: grid; gap: 12px; }
.form-full { grid-column: 1/-1; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--meta); }
.wpcf7-response-output { font-family: var(--font-body); font-size: 14px; margin: 16px 0 0 !important; border: none !important; padding: 0 !important; color: var(--meta); }
.wpcf7-not-valid-tip { font-size: 12px; color: var(--red); margin-top: 4px; }
.enquiry-card .wpcf7-not-valid-tip { color: var(--red-light); }

/* ==========================================================================
   Footer
   ========================================================================== */
.cta-band { display: flex; align-items: center; justify-content: space-between; background: var(--red); padding: 44px var(--pad-x); gap: 32px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-heading); font-size: 38px; font-weight: 700; color: var(--white); text-transform: uppercase; }
.cta-band__right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-band__phone { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--white); }
.cta-band__btn { background: var(--white); color: var(--red); padding: 15px 28px; font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.cta-band__btn:hover { background: var(--off-white); color: var(--red); }

.site-footer { background: var(--navy-deep); color: var(--on-navy-label); padding: 56px var(--pad-x) 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-border); }
.site-footer__logo { background: var(--white); display: inline-block; padding: 10px 14px; }
.site-footer__logo img { height: 36px; display: block; }
.site-footer__blurb { font-size: 14px; line-height: 1.6; margin: 18px 0 0; }
.site-footer__col-title { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--white); text-transform: uppercase; margin-bottom: 14px; }
.site-footer__links { display: grid; gap: 9px; font-size: 14px; }
.site-footer__links a { color: var(--on-navy-label); }
.site-footer__links a:hover { color: var(--white); }
.site-footer__contact { display: grid; gap: 9px; font-size: 14px; }
.site-footer__contact strong { color: var(--white); font-weight: 600; }
.site-footer__accred-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--white); text-transform: uppercase; margin: 22px 0 12px; }
.site-footer__accred { display: flex; gap: 12px; }
.site-footer__accred .accreditation-tile { width: 100px; height: 68px; }
.site-footer__bar { padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.masthead__links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 24px var(--pad-x) 28px;
		z-index: 50;
	}
	.masthead__links.is-open { display: flex; }
	.masthead__toggle { display: block; }
	.case-study { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	:root { --pad-x: 24px; }
	h1.display { font-size: 44px; }
	h2.section-title { font-size: 34px; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.stat-strip, .facts-strip { grid-template-columns: 1fr 1fr; }
	.service-row { grid-template-columns: 1fr; }
	div[style*="grid-template-columns:1fr 400px"],
	div[style*="grid-template-columns:1fr 380px"],
	div[style*="grid-template-columns:1fr 480px"] { grid-template-columns: 1fr !important; }
	.checklist { grid-template-columns: 1fr; }
	.cta-band { flex-direction: column; align-items: flex-start; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
