/*
Theme Name: DD Construction
Theme URI: https://www.ddcon.co
Author: DD Construction
Description: Custom theme for DD Construction, a pre-engineered metal building erector based in Centennial, Colorado. Edit home page text and contact details in Appearance > Customize > DD Construction.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dd-construction
*/

/* ---------- Font (bundled, SIL Open Font License) ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("assets/fonts/archivo.woff2") format("woff2-variations"), url("assets/fonts/archivo.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--brand: #f05742;
	--brand-deep: #c93a26;
	--amber: #eea849;
	--black: #000;
	--ink: #1c1f22;
	--steel: #4b5259;
	--galv: #dde1e4;
	--rule: #b8bec4;
	--white: #fff;
	--line-dark: #3a3f44;

	--font: "Archivo", Arial, Helvetica, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

h1, h2, h3, h4 {
	margin: 0;
	font-stretch: 72%;
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.wrap--text { max-width: 760px; padding-top: 48px; padding-bottom: var(--section); }

.skip-link {
	position: absolute; left: -999px; top: 8px; z-index: 100;
	background: var(--brand); color: var(--black); padding: 8px 14px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid transparent;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--brand { background: var(--brand); color: var(--black); }
.btn--brand:hover { background: var(--white); color: var(--black); }
.btn--line { border-color: var(--white); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--black);
	color: var(--white);
	border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 72px;
}
.brand__link { display: block; line-height: 0; }
.brand__logo { height: 44px; width: auto; }
.custom-logo { max-height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { color: var(--white); text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a { color: var(--brand); }
.site-nav .sub-menu { display: none; }
.site-nav__call { min-height: 42px; }

.nav-toggle {
	display: none;
	align-items: center; gap: 10px;
	background: none; border: 0; color: var(--white);
	font: 600 1rem var(--font); cursor: pointer; padding: 10px 0;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--black);
		border-bottom: 1px solid var(--line-dark);
		padding: 8px var(--gutter) 24px;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.125rem; }
	.site-nav__call { margin-top: 20px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); color: var(--white); }
.hero__steel {
	position: absolute;
	right: -2%;
	top: 0;
	width: min(54vw, 860px);
	height: auto;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%), linear-gradient(to top, transparent 0, #000 22%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 28%), linear-gradient(to top, transparent 0, #000 22%);
	mask-composite: intersect;
}
.hero__inner {
	position: relative;
	padding-top: clamp(64px, 11vw, 168px);
	padding-bottom: clamp(56px, 9vw, 136px);
}
.hero__copy { max-width: min(660px, 50vw); }
@media (max-width: 860px) { .hero__copy { max-width: none; } }
.hero__title {
	font-size: clamp(3.25rem, 7.4vw, 6.5rem);
	font-stretch: 62%;
	font-weight: 800;
	line-height: .88;
	letter-spacing: -0.01em;
	margin-bottom: 30px;
	text-wrap: balance;
}
.hero__text { font-size: 1.1875rem; max-width: 44ch; color: #d4d8dc; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
	.hero__steel { animation: ddc-rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes ddc-rise {
	from { opacity: 0; transform: translate(4%, 6%) scale(1.04); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	.hero__steel { width: 115vw; right: -38vw; top: 0; opacity: .25; animation: none !important; }
}

/* Proof strip under the hero */
.proof { position: relative; border-top: 1px solid var(--line-dark); background: rgba(0,0,0,.72); }
.proof__list {
	list-style: none; margin: 0 auto;
	display: grid; grid-template-columns: repeat(4, 1fr);
}
.proof__list li { padding: 22px 24px 24px 0; }
.proof__list li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.proof__list strong {
	display: block;
	font-size: 2rem; font-stretch: 62%; font-weight: 800; line-height: 1.05;
	color: var(--brand);
}
.proof__list span { display: block; margin-top: 4px; color: #aab1b8; font-size: .9375rem; line-height: 1.4; }
@media (max-width: 860px) {
	.proof__list { grid-template-columns: 1fr 1fr; }
	.proof__list li:nth-child(3) { padding-left: 0; border-left: 0; }
	.proof__list li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Photo band ---------- */
.photo-band { margin: 0; background: var(--black); }
.photo-band img { width: 100%; max-height: 640px; object-fit: cover; }
.photo-band figcaption { color: #aab1b8; font-size: .875rem; padding-top: 12px; padding-bottom: 12px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--galv { background: var(--galv); }
.section--black { background: var(--black); color: var(--white); }
.section--brand { background: var(--brand); color: var(--black); }

.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { margin-bottom: 18px; }
.section__head p { font-size: 1.1875rem; color: var(--steel); margin: 0; }
.section--black .section__head p { color: #aab1b8; }

/* ---------- Scope table ---------- */
.spec { border-top: 3px solid var(--black); }
.spec__row {
	display: grid;
	grid-template-columns: 1.1fr 1.4fr 1.2fr 1.3fr;
	gap: 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--rule);
}
.spec__row--head { padding: 14px 0; font-size: .9375rem; font-weight: 600; color: var(--steel); }
.spec__name { font-stretch: 72%; font-weight: 750; font-size: 1.625rem; line-height: 1.05; }

@media (max-width: 860px) {
	.spec__row--head { display: none; }
	.spec__row { grid-template-columns: 1fr; gap: 10px; }
	.spec__row [role="cell"]::before {
		content: attr(data-label);
		display: block;
		font-size: .875rem; font-weight: 600; color: var(--steel);
	}
}

.installs__title { margin: clamp(56px, 7vw, 88px) 0 28px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.installs {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.installs li { border-top: 6px solid var(--brand); padding-top: 18px; }
.installs h3, .installs h4 { margin-bottom: 10px; font-size: 1.375rem; }
.installs p { color: var(--steel); margin: 0; }

@media (max-width: 960px) { .installs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .installs { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--black); }
.industry { padding: 32px 32px 8px 0; }
.industry + .industry { padding-left: 32px; border-left: 1px solid var(--rule); }
.industry h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-stretch: 62%; font-weight: 800; margin-bottom: 18px; }
.industry h3::before {
	content: ""; display: block; width: 48px; height: 6px; margin-bottom: 22px;
	background: linear-gradient(90deg, var(--brand), var(--amber));
}
.industry p { color: var(--steel); }
.industry__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 26px; background: var(--galv); }
.industry ul { list-style: none; margin: 20px 0 0; padding: 0; }
.industry li { padding: 10px 0; border-top: 1px solid var(--rule); font-weight: 600; }
.industries__also { margin: 40px 0 0; color: var(--steel); }
@media (max-width: 900px) {
	.industries { grid-template-columns: 1fr; }
	.industry, .industry + .industry { padding: 32px 0 8px; border-left: 0; }
	.industry + .industry { border-top: 1px solid var(--rule); }
}

/* ---------- Process ---------- */
.process { display: grid; gap: 56px; }
.process__phase { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.process__phase-title { font-size: 2.25rem; color: var(--brand); }
.process__phase-title span { display: block; margin-top: 10px; font-size: 1rem; font-stretch: 100%; font-weight: 500; color: #aab1b8; }
.process__steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-left: 1px solid var(--line-dark);
}
.process__steps li { padding: 0 24px 32px; border-right: 1px solid var(--line-dark); }
.process__steps li:nth-child(3n) { border-right: 0; }
.process__num {
	display: block; margin-bottom: 14px;
	font-size: 3.5rem; font-stretch: 62%; font-weight: 800; line-height: 1;
	color: var(--white);
	-webkit-text-stroke: 0;
}
.process__steps h4 { font-size: 1.5rem; margin-bottom: 8px; color: var(--white); }
.process__steps p { margin: 0; color: #aab1b8; font-size: 1rem; }

@media (max-width: 960px) {
	.process__phase { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
	.process__steps { grid-template-columns: 1fr; border-left: 0; }
	.process__steps li { border-right: 0; border-top: 1px solid var(--line-dark); padding: 20px 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
	.process__num { grid-row: span 2; font-size: 2.75rem; margin: 0; }
}

/* ---------- Credentials ---------- */
.credentials { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.credentials .section__head { margin-bottom: 0; }
.credentials__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
}
.credentials__list li {
	position: relative;
	padding: 16px 0 16px 26px;
	border-bottom: 1px solid var(--rule);
	font-weight: 600;
}
.credentials__list li::before {
	content: ""; position: absolute; left: 0; top: 24px;
	width: 10px; height: 10px; background: var(--brand);
}
.badges {
	list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 32px 0 0;
	border-top: 1px solid var(--rule);
	display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px;
}
.badges img { height: 88px; width: auto; }
.badges li:last-child img { height: 52px; }
@media (max-width: 860px) {
	.credentials { grid-template-columns: 1fr; }
	.badges img { height: 68px; }
	.badges li:last-child img { height: 40px; }
	.credentials__list { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.75rem, 6vw, 5rem); font-stretch: 62%; font-weight: 800; margin-bottom: 20px; }
.contact__copy > p { font-size: 1.1875rem; max-width: 40ch; margin-bottom: 36px; }
.contact__details { margin: 0; display: grid; gap: 18px; }
.contact__details div { display: grid; grid-template-columns: 90px 1fr; border-top: 2px solid var(--black); padding-top: 12px; }
.contact__details dt { font-weight: 600; }
.contact__details dd { margin: 0; font-size: 1.125rem; font-weight: 600; }
.contact__details a { text-decoration: none; }
.contact__details a:hover { color: var(--white); }

.contact__form { background: var(--black); color: var(--white); padding: clamp(24px, 4vw, 40px); }
.contact__fallback p { font-size: 1.125rem; margin-bottom: 24px; }
.contact__fallback .btn { margin: 0 10px 10px 0; }
.contact__mark { width: 96px; height: auto; margin-bottom: 24px; }

/* Make common form plugins match */
.contact__form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.contact__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact__form textarea,
.contact__form select {
	width: 100%; padding: 12px 14px; margin-bottom: 14px;
	border: 1px solid #5c646b; background: #15181b; color: var(--white);
	font: 1rem var(--font);
}
.contact__form input[type="submit"], .contact__form button[type="submit"] {
	background: var(--brand); color: var(--black); border: 0;
	min-height: 48px; padding: 0 24px; font: 700 1rem var(--font); cursor: pointer;
}
.contact__form input[type="submit"]:hover, .contact__form button[type="submit"]:hover { background: var(--white); }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Data center case study ---------- */
.case h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 22px; }
.case__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case__copy p { color: #c3c9ce; font-size: 1.125rem; margin: 0; }
.case__img { margin: 0; }
.case__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case__sub { font-size: 1.75rem; margin: clamp(48px, 6vw, 72px) 0 22px; }

.stats {
	list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.stats li { padding: 24px 24px 24px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stats strong {
	display: block; font-size: clamp(2.5rem, 5vw, 4rem); font-stretch: 62%; font-weight: 800; line-height: 1;
	background: linear-gradient(90deg, var(--brand), var(--amber));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { display: block; margin-top: 8px; color: #aab1b8; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline li { position: relative; padding-top: 22px; }
.timeline li::before {
	content: ""; position: absolute; top: 0; left: 0; right: -16px; height: 4px;
	background: var(--line-dark);
}
.timeline li::after { content: ""; position: absolute; top: -4px; left: 0; width: 12px; height: 12px; background: var(--brand); }
.timeline li:last-child::before { right: 0; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline time { display: block; margin-top: 12px; font-weight: 700; color: var(--white); }
.timeline span { display: block; color: #aab1b8; font-size: .9375rem; }

.case__bottom { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.delivered ul { list-style: none; margin: 0; padding: 0; }
.delivered li { padding: 14px 0 14px 24px; border-top: 1px solid var(--line-dark); position: relative; color: #d4d8dc; }
.delivered li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 10px; background: var(--brand); }
.speed > p { color: #c3c9ce; margin-bottom: 24px; max-width: 60ch; }
.path { margin-bottom: 18px; }
.path__label { margin: 0 0 8px; font-weight: 700; font-size: .9375rem; }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.path li {
	padding: 10px 18px 10px 14px; font-size: .875rem; font-weight: 600; line-height: 1.25;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}
.path li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.path--slow .path__label { color: #aab1b8; }
.path--slow li { background: #2a2e32; color: #c3c9ce; }
.path--fast .path__label { color: var(--brand); }
.path--fast li { background: linear-gradient(90deg, var(--brand), var(--amber)); color: var(--black); padding-top: 14px; padding-bottom: 14px; }
.path--fast li:last-child { flex: 1 1 260px; }

@media (max-width: 960px) {
	.case__top, .case__bottom { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.timeline li::before { right: 0; }
	.timeline li:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
	.stats { grid-template-columns: 1fr; }
	.stats li, .stats li + li { padding: 20px 0; border-left: 0; }
	.stats li + li { border-top: 1px solid var(--line-dark); }
}

/* ---------- Projects ---------- */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--galv); margin-bottom: 18px; }
.project h3 { font-size: 1.75rem; margin-bottom: 12px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.project__meta div { display: flex; gap: 6px; }
.project__meta dt { color: var(--steel); }
.project__meta dd { margin: 0; font-weight: 600; }
.project p { color: var(--steel); margin: 0; }
.projects__more { margin: 40px 0 0; color: var(--steel); max-width: 80ch; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about h2 { margin-bottom: 22px; }
.about__copy p { font-size: 1.125rem; color: var(--steel); margin: 0 0 1em; }
.about__copy p:last-child { margin-bottom: 0; }
.why { list-style: none; margin: clamp(56px, 6vw, 80px) 0 0; padding: clamp(40px, 5vw, 56px) 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.why li { border-top: 6px solid var(--brand); padding-top: 20px; }
.why h3 { font-size: 1.5rem; margin-bottom: 12px; }
.why p { color: var(--steel); margin: 0; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 5vw, 64px); align-items: stretch; }
.quotes blockquote { margin: 0; padding: 32px 36px; background: var(--galv); border-left: 6px solid var(--brand); display: flex; flex-direction: column; justify-content: space-between; }
.quotes p { font-size: 1.25rem; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.quotes cite { font-style: normal; color: var(--steel); font-size: .9375rem; }
@media (max-width: 960px) {
	.about { grid-template-columns: 1fr; }
	.why { grid-template-columns: repeat(2, 1fr); }
	.quotes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- Insurance and bonding ---------- */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(48px, 6vw, 72px); }
.coverage h3 { font-size: 1.5rem; margin-bottom: 12px; }
.coverage dl { margin: 0; border-top: 3px solid var(--black); }
.coverage dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.coverage dt { color: var(--steel); }
.coverage dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 720px) { .coverage { grid-template-columns: 1fr; } }

/* ---------- Home: link to Forge Ops ---------- */
.process__more { margin: 48px 0 0; }

/* ---------- Forge Ops QA/QC page ---------- */
.forge-head__lead { max-width: 60ch; margin: 20px 0 0; font-size: 1.1875rem; color: #c3c9ce; }
.forge-head__facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; color: #aab1b8; }
.forge-head__facts strong { color: var(--brand); font-size: 2rem; font-stretch: 62%; font-weight: 800; margin-right: 6px; }

.forge-nav { position: sticky; top: 72px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--rule); }
.forge-nav__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.forge-nav__list a {
	display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
	padding: 14px 12px 12px; border-bottom: 4px solid transparent;
	text-decoration: none; color: var(--ink);
}
.forge-nav__list li:first-child a { padding-left: 0; }
.forge-nav__list a:hover, .forge-nav__list a[aria-current] { border-bottom-color: var(--brand); color: var(--ink); }
.forge-nav__num { color: var(--steel); font-size: .875rem; }
.forge-nav__acr { font-stretch: 62%; font-weight: 800; font-size: 1.375rem; line-height: 1; }
.forge-nav__name { width: 100%; color: var(--steel); font-size: .8125rem; }
@media (max-width: 760px) {
	.forge-nav__list { grid-template-columns: repeat(6, auto); overflow-x: auto; gap: 0 4px; padding-right: 16px; }
	.forge-nav__name { display: none; }
}

.phase { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 140px; }
.phase--white { background: var(--white); }
.phase--galv { background: var(--galv); }
.phase__head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }
.phase__acr {
	margin: 0; font-size: clamp(4rem, 11vw, 8.5rem); font-stretch: 62%; font-weight: 800; line-height: .8;
	background: linear-gradient(90deg, var(--brand), var(--amber));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.phase__head h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.phase__tagline { margin: 8px 0 0; color: var(--steel); font-weight: 600; }
.phase__intro { max-width: 70ch; margin: 28px 0 0; font-size: 1.125rem; }

.letters { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.letters li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding-top: 18px; border-top: 3px solid var(--black); }
.letters__l { font-size: 3.25rem; font-stretch: 62%; font-weight: 800; line-height: .85; color: var(--brand); }
.letters h3 { font-size: 1.25rem; margin-bottom: 8px; }
.letters p { margin: 0; color: var(--steel); font-size: .9375rem; }

.callout { margin: 40px 0 0; padding: 22px 28px; background: var(--black); color: var(--white); border-left: 6px solid var(--brand); max-width: 860px; }
.callout h3 { font-size: 1.25rem; color: var(--brand); margin-bottom: 8px; }
.callout p { margin: 0; color: #d4d8dc; }

.phase__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); margin-top: 48px; align-items: start; }
.detail { border-top: 1px solid var(--steel); }
.detail:last-child { border-bottom: 1px solid var(--steel); }
.detail summary {
	cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
	font-stretch: 72%; font-weight: 750; font-size: 1.375rem; line-height: 1.15;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.75rem; font-stretch: 100%; font-weight: 400; color: var(--brand); }
.detail[open] summary::after { content: "\2212"; }
.detail > p { margin: 0 0 12px; color: var(--steel); }
.detail ul { margin: 0 0 20px; padding-left: 1.2em; }
.detail li { margin-bottom: 6px; }
.detail li::marker { color: var(--brand); }

.checklist { background: var(--white); border: 1px solid var(--rule); padding: 24px; }
.phase--white .checklist { background: var(--galv); border-color: transparent; }
.checklist__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.checklist__head h3 { font-size: 1.5rem; }
.checklist__progress { margin: 0; font-weight: 700; }
.checklist__bar { height: 6px; background: var(--rule); margin: 14px 0 8px; }
.checklist__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--amber)); transition: width .2s; }
.checklist__items { list-style: none; margin: 0; padding: 0; }
.checklist__items li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; }
.checklist__items input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.checklist__items label { cursor: pointer; }
.checklist__items input:checked + label { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--brand); }
.checklist__who { font-size: .8125rem; font-weight: 600; color: var(--steel); white-space: nowrap; }
.checklist__signoff { margin: 16px 0 0; font-size: .875rem; color: var(--steel); }
.checklist.is-complete .checklist__progress { color: var(--brand-deep); }

.forge-standard h2 { margin-bottom: 18px; }
.forge-standard p { max-width: 70ch; font-size: 1.1875rem; color: #c3c9ce; }
.forge-standard__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.forge-standard .btn { cursor: pointer; background-color: transparent; }
.forge-standard .btn--brand { background: var(--brand); }

@media (max-width: 960px) { .phase__body { grid-template-columns: 1fr; } }

@media print {
	.site-header, .forge-nav, .site-footer, .forge-standard__actions, .skip-link { display: none !important; }
	.page-head, .phase, .section--black { background: #fff !important; color: #000 !important; }
	.forge-head__lead, .forge-standard p, .callout p { color: #000 !important; }
	.callout { background: #fff; color: #000; border: 1px solid #000; border-left-width: 6px; }
	.phase { padding: 24px 0; break-before: page; }
	.phase__body { grid-template-columns: 1fr; }
	.checklist { break-inside: avoid; }
	.detail summary::after { display: none; }
}

/* ---------- Home: accreditation logos ---------- */
.credentials--home { align-items: center; }
.credentials--home .badges { margin: 0; padding: 0; border-top: 0; justify-content: flex-end; gap: 32px 56px; }
.credentials--home .badges img { height: 104px; }
.credentials--home .badges li:last-child img { height: 60px; }
.credentials__more { margin: 40px 0 0; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--brand); color: var(--black); }
@media (max-width: 860px) {
	.credentials--home .badges { justify-content: flex-start; }
	.credentials--home .badges img { height: 76px; }
	.credentials--home .badges li:last-child img { height: 44px; }
}

/* ---------- More information page ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.info-title { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.info-note { margin: 16px 0 0; color: var(--steel); }
.facts { margin: 0; border-top: 3px solid var(--black); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--steel); }
.facts dd { margin: 0; font-weight: 600; }
.badges--plain { margin-top: 40px; padding-top: 0; border-top: 0; }
.coverage--page { margin-top: 0; }
.info-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.info-columns h3 { font-size: 1.375rem; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 6px solid var(--brand); }
.info-columns ul { list-style: none; margin: 0; padding: 0; }
.info-columns li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.info-written { padding-top: 0; }
.info-written .entry-content > :first-child { margin-top: 0; }
.info-written .entry-content img { height: auto; }
.info-cta h2 { margin-bottom: 16px; }
.info-cta p { color: #c3c9ce; font-size: 1.125rem; max-width: 60ch; }
@media (max-width: 960px) {
	.info-grid { grid-template-columns: 1fr; }
	.info-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.info-columns { grid-template-columns: 1fr; }
	.facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Forge Ops page: team login button, top right of the header */
.forge-head__wrap { position: relative; }
.forge-head__login { position: absolute; top: 0; right: var(--gutter); }
.forge-head__login::before {
	content: ""; width: 14px; height: 14px; margin-right: 10px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 1 0-4 0v2z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 1 0-4 0v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 760px) {
	.forge-head__login { position: static; margin-bottom: 24px; }
}
@media print { .forge-head__login { display: none !important; } }

/* ---------- Previous customers logo slider ---------- */
.clients { margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 3px solid var(--black); }
.clients__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.clients__head h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.clients__pause {
	background: none; border: 0; padding: 4px 0; cursor: pointer;
	font: 600 .9375rem var(--font); color: var(--steel);
	text-decoration: underline; text-underline-offset: 3px;
}
.clients__pause:hover { color: var(--ink); }
.clients__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clients__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; }
.clients__track li { flex: none; display: grid; place-items: center; height: 96px; padding: 0 clamp(24px, 3vw, 40px); }
.clients__track img {
	display: block; max-width: none;
	filter: grayscale(1); opacity: .62;
	transition: filter .2s, opacity .2s;
}
.clients__track li:hover img { filter: none; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
	.clients__track { animation: ddc-clients 70s linear infinite; }
	.clients__viewport:hover .clients__track,
	.clients__viewport:focus-within .clients__track,
	.clients.is-paused .clients__track { animation-play-state: paused; }
}
@keyframes ddc-clients { to { transform: translateX(-50%); } }

/* Without motion: a static, wrapping grid of logos */
@media (prefers-reduced-motion: reduce) {
	.clients__pause, .clients__dupe { display: none !important; }
	.clients__viewport { -webkit-mask-image: none; mask-image: none; }
	.clients__track { width: auto; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
	.clients__track li { height: 80px; padding: 0 20px; }
	.clients__track img { transform: scale(.85); }
}

/* ---------- Inner pages ---------- */
.page-head { background: var(--black); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 6px solid var(--brand); }
.page-head h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-stretch: 62%; font-weight: 800; }

.entry-content h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); margin: 1.6em 0 .5em; }
.entry-content h3 { margin: 1.5em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--brand); font-size: 1.25rem; }
.entry-content .wp-block-button__link { background: var(--brand); color: var(--black); border-radius: 0; font-weight: 700; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .875rem; color: var(--steel); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.post-list h2 { margin: 0 0 6px; font-size: 2rem; }
.post-list h2 a { text-decoration: none; }
.post-date { color: var(--steel); font-size: .9375rem; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #aab1b8; font-size: .9375rem; line-height: 1.7; }
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
	padding-top: 64px;
	padding-bottom: 48px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__logo { width: 150px; height: auto; display: block; margin-bottom: 16px; }
.site-footer__about { margin-top: 12px !important; max-width: 34ch; }
.site-footer__slogan { color: var(--white); font-stretch: 72%; font-weight: 700; font-size: 1.25rem; line-height: 1.2; max-width: 22ch; }
.site-footer__title {
	margin: 0 0 12px;
	font-size: 1rem; font-stretch: 100%; font-weight: 700; line-height: 1.4;
	color: var(--white);
	padding-bottom: 10px; border-bottom: 2px solid var(--brand);
	display: inline-block;
}
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin: 0; }
.site-footer__legal { border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 28px; font-size: .875rem; }
@media (max-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Logged-in admin bar offset ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .forge-nav { top: 104px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .forge-nav { top: 118px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .forge-nav { top: 72px; }
}
