/* ==========================================================================
   CBS Building Supply
   --brand, --navy and --accent are injected from inc/site-config.php.
   ========================================================================== */

:root {
	/* Fallbacks only - inc/site-config.php injects the live values over these. */
	--brand: #0f7ab0;
	--navy: #0a4a6b;
	--accent: #29abe2;

	--ink: #16202b;
	--ink-2: #46566a;
	--ink-3: #6b7c91;
	--line: #e2e8f0;
	--line-2: #eef2f7;
	--bg: #ffffff;
	--bg-alt: #f6f8fb;
	--bg-tint: #edf7fc;

	--radius: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(16, 32, 51, .06), 0 1px 3px rgba(16, 32, 51, .05);
	--shadow: 0 4px 12px rgba(16, 32, 51, .07), 0 1px 3px rgba(16, 32, 51, .05);
	--shadow-lg: 0 18px 40px rgba(16, 32, 51, .14);

	--wrap: 1240px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--navy); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.cbs-icon { flex: none; }

/* --------------------------------------------------------------- Buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px;
	font-size: 15px; font-weight: 600; line-height: 1.2;
	border: 1.5px solid transparent; border-radius: var(--radius);
	cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover {
	background: var(--navy);
	background: color-mix(in srgb, var(--brand) 84%, #000);
	border-color: var(--navy);
	border-color: color-mix(in srgb, var(--brand) 84%, #000);
	color: #fff;
}

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-alt); color: var(--navy); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); }

/*
 * The primary button on the dark bands - the hero and the closing CTA. White
 * on navy is the only pairing in this palette that clears AA comfortably; the
 * logo cyan against navy text only manages about 3.9:1.
 */
.btn-accent { background: #fff; color: var(--navy); border-color: #fff; }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }

/*
 * The short rule under a heading. It is the reference layout's main piece of
 * punctuation - every title block and band gets one.
 */
.rule {
	display: block; width: 58px; height: 4px; margin: 18px 0 0;
	background: var(--accent); border-radius: 2px;
}
.rule-light { background: rgba(255, 255, 255, .85); }
.rule-center { margin-left: auto; margin-right: auto; }

.eyebrow {
	margin: 0 0 10px;
	font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--brand);
}
.eyebrow-light { color: rgba(255, 255, 255, .75); }

/* ---------------------------------------------------------------- Header */

.site-header { position: relative; z-index: 60; background: #fff; }

.utility-bar { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: 13px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.utility-tag { margin: 0; color: rgba(255, 255, 255, .62); }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility-link { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .82); }
.utility-link:hover { color: #fff; text-decoration: none; }
.utility-phone { font-weight: 600; color: #fff; }

.masthead { border-bottom: 1px solid var(--line-2); }

/*
 * One row: logo, then the navigation pushed to the right, then the quote
 * button. The navigation used to sit in a band of its own below this.
 *
 * Positioned, because the catalogue mega-panel hangs off the masthead rather
 * than off its menu item - the item is far too narrow and too far right to
 * anchor a 1,000px panel to.
 */
.masthead { position: relative; }
.masthead-inner { display: flex; align-items: center; gap: 28px; min-height: 88px; }

/* The logo holds its width; the navigation gives ground first. */
.brand { flex: none; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-mark {
	display: grid; place-items: center;
	width: 48px; height: 48px;
	background: var(--brand); color: #fff;
	font-size: 17px; font-weight: 800; letter-spacing: .02em;
	border-radius: 8px;
}
.brand-words { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; max-width: 13ch; }
.brand-sub { font-size: 12px; color: var(--ink-3); }

/* Catalogue search, revealed by the magnifier in the masthead. */
.search-drawer { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.search-drawer[hidden] { display: none; }
.site-search { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 16px; }
.site-search-icon { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.site-search input {
	flex: 1; min-width: 0;
	padding: 11px 14px 11px 42px;
	font: inherit; font-size: 15px; color: var(--ink);
	background: var(--bg-alt);
	border: 1.5px solid var(--line); border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
}
.site-search input:focus { outline: none; background: #fff; border-color: var(--navy); }
.site-search .btn { flex: none; }
.site-search button:not(.btn) {
	padding: 0 20px; font: inherit; font-size: 15px; font-weight: 600; color: #fff;
	background: var(--navy); border: 1.5px solid var(--navy);
	border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}
.site-search button:hover {
	background: var(--brand);
	background: color-mix(in srgb, var(--navy) 82%, #000);
}

.masthead-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	color: var(--navy); background: transparent;
	border: 1.5px solid var(--line); border-radius: var(--radius);
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--navy); background: var(--bg-alt); }
.search-toggle-close { display: none; }
.search-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-toggle[aria-expanded="true"] .search-toggle-open { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle-close { display: block; }

.nav-toggle {
	display: none;
	margin-left: auto; padding: 8px;
	color: var(--navy); background: none; border: 0; cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ------------------------------------------------------------ Navigation */

/* The navigation now lives inside the masthead row, hard against the right. */
.primary-nav { margin-left: auto; }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list > li { position: relative; display: flex; }

.nav-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 32px 14px;
	font-size: 14.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
	white-space: nowrap;
	color: var(--ink); border-bottom: 3px solid transparent;
}
.nav-link:hover,
.nav-list > li:hover > .nav-link,
.nav-list > .current-menu-item > .nav-link,
.nav-list > .current_page_parent > .nav-link {
	color: var(--brand); border-bottom-color: var(--brand); text-decoration: none;
}
.nav-caret { transition: transform .18s; }
.nav-list > li:hover > .nav-link .nav-caret { transform: rotate(180deg); }

.nav-mobile-extras { display: none; }

/* Mega dropdown */
.nav-list > li.has-mega { position: static; }
.mega {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
	display: flex; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-list > li:hover > .mega,
.nav-list > li:focus-within > .mega,
.nav-list > li.is-open > .mega { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-inner {
	width: min(1040px, calc(100vw - 48px));
	margin-top: -1px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.mega-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 2px; padding: 14px;
}
.mega-item {
	display: flex; align-items: flex-start; gap: 11px;
	padding: 10px 12px;
	border-radius: 8px; color: var(--ink);
}
.mega-item:hover { background: var(--bg-tint); text-decoration: none; }
.mega-item-icon {
	display: grid; place-items: center; flex: none;
	width: 34px; height: 34px;
	color: var(--brand); background: var(--bg-tint); border-radius: 8px;
}
.mega-item:hover .mega-item-icon { background: var(--brand); color: #fff; }
.mega-item-text { display: flex; flex-direction: column; min-width: 0; }
.mega-item-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.mega-item-count { font-size: 12px; color: var(--ink-3); }

.mega-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 13px 26px;
	background: var(--bg-alt); border-top: 1px solid var(--line-2);
}
.mega-all { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--brand); }
.mega-note { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ Hero */

/*
 * A full-bleed band with the copy sitting on it, left-aligned. Drop a photo at
 * assets/img/banners/home.jpg and it slides in behind the scrim; without one
 * the band is a deep brand gradient, which is what ships.
 */
.hero {
	position: relative;
	background:
		linear-gradient(120deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 70%, var(--brand)) 100%);
	background-size: cover; background-position: center;
	color: #fff;
}
.hero.has-photo::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(8, 24, 38, .88) 0%, rgba(8, 24, 38, .72) 45%, rgba(8, 24, 38, .35) 100%);
}
.hero-inner { position: relative; padding-top: 88px; padding-bottom: 88px; max-width: min(var(--wrap), 100%); }
.hero-title { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.03em; color: #fff; max-width: 18ch; }
.hero-title-em { display: block; color: var(--accent); }
.hero-lede { margin: 22px 0 30px; max-width: 56ch; font-size: 18px; line-height: 1.62; color: rgba(255, 255, 255, .82); }
.hero .rule { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	margin-top: 34px; list-style: none;
	font-size: 14.5px; color: rgba(255, 255, 255, .8);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .cbs-icon { color: var(--accent); }

/* ----------------------------------------------------------------- Stats */

.stats { background: var(--navy); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { display: block; margin-top: 5px; font-size: 13px; color: rgba(255, 255, 255, .68); }

/* -------------------------------------------------------------- Sections */

.section { padding: 76px 0; }
.section-tight { padding-top: 40px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-title { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; letter-spacing: -.01em; }
.section-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* --------------------------------------------------------- Product tiles */
/*
 * The grid the whole layout is built around: a 4:3 photo with the department
 * name and a "view" action beneath it, four across. Column counts follow the
 * reference exactly - 4 / 3 / 2 / 1.
 */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.prod-grid-related { gap: 22px; }

.prod-tile {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	color: inherit;
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.prod-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }

.prod-tile-media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--bg-alt);
}
.prod-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-tile:hover .prod-tile-media img { transform: scale(1.05); }

/*
 * Until a real photo is dropped into assets/img/departments/, the tile shows a
 * brand-coloured plate with the department icon watermarked across it. Six
 * tones, picked from the slug, so a grid of them still reads as a grid.
 */
.prod-tile-plate .prod-tile-media {
	background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 60%, var(--brand)));
}
.prod-tile-plate[data-tone="1"] .prod-tile-media { background: linear-gradient(150deg, var(--accent), var(--brand)); }
.prod-tile-plate[data-tone="2"] .prod-tile-media { background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 72%, #000), color-mix(in srgb, var(--navy) 92%, var(--brand))); }
.prod-tile-plate[data-tone="3"] .prod-tile-media { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 72%, #fff), var(--brand)); }
.prod-tile-plate[data-tone="4"] .prod-tile-media { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--navy) 80%, #000)); }
.prod-tile-plate[data-tone="5"] .prod-tile-media { background: linear-gradient(200deg, color-mix(in srgb, var(--brand) 62%, #fff), var(--navy)); }

/* The two pale plates need a darker glyph to stay visible. */
.prod-tile-plate[data-tone="3"] .prod-tile-glyph,
.prod-tile-plate[data-tone="5"] .prod-tile-glyph { color: rgba(10, 40, 62, .22); }
.prod-tile-plate[data-tone="3"]:hover .prod-tile-glyph,
.prod-tile-plate[data-tone="5"]:hover .prod-tile-glyph { color: rgba(10, 40, 62, .32); }

.prod-tile-glyph {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	color: rgba(255, 255, 255, .3);
	transition: transform .4s ease, color .18s;
}
.prod-tile:hover .prod-tile-glyph { transform: scale(1.06); color: rgba(255, 255, 255, .42); }

.prod-tile-count {
	position: absolute; left: 14px; top: 14px; z-index: 1;
	padding: 4px 10px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--navy); background: rgba(255, 255, 255, .92);
	border-radius: 999px;
}

.prod-tile-body {
	display: flex; flex-direction: column; gap: 14px; flex: 1;
	padding: 20px 22px 22px;
	background: var(--navy); color: #fff;
}
.prod-tile-name { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.prod-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.prod-tile-cta { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.prod-tile-arrow { color: var(--accent); transition: transform .18s; }
.prod-tile:hover .prod-tile-arrow { transform: translateX(4px); }

/* Compact department cards, still used on the 404 page. */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dept-card {
	display: flex; flex-direction: column;
	padding: 22px;
	background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dept-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.dept-icon {
	display: grid; place-items: center;
	width: 46px; height: 46px; margin-bottom: 15px;
	color: var(--brand); background: var(--bg-tint); border-radius: 11px;
}
.dept-card:hover .dept-icon { background: var(--brand); color: #fff; }
.dept-name { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.dept-count { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.dept-blurb { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* Counter picks */
.picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.picks-card {
	display: flex; flex-direction: column;
	padding: 22px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.picks-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.picks-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand); background: var(--bg-tint); border-radius: 8px; }
.picks-head h3 { font-size: 16px; }
.picks-list { flex: 1; list-style: none; }
.picks-list li { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.picks-list li:last-child { border-bottom: 0; }
.picks-name { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.picks-sku { display: inline-block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.picks-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.picks-note { margin: 28px 0 0; text-align: center; font-size: 14.5px; color: var(--ink-3); }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { padding: 26px; background: var(--bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--line-2); }
.why-card .cbs-icon { color: var(--brand); }
.why-card h3 { margin: 15px 0 9px; font-size: 17px; }
.why-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* Policy strip */
.policy-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.policy-card {
	display: flex; flex-direction: column;
	padding: 26px; background: #fff; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: border-color .15s, box-shadow .15s;
}
.policy-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.policy-card .cbs-icon { color: var(--brand); }
.policy-card h3 { margin: 14px 0 8px; font-size: 17px; }
.policy-card p { flex: 1; margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.policy-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }

/* Callout */
.callout {
	display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
	margin-top: 48px; padding: 34px;
	background: var(--navy); color: #fff; border-radius: var(--radius-lg);
}
.callout h2 { font-size: 24px; color: #fff; }
.callout p { margin: 8px 0 0; max-width: 62ch; color: rgba(255, 255, 255, .78); }
.callout-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/*
 * The callout sits on the dark navy, so the default outline button - which is
 * navy text on a transparent ground - disappears into it. Give it the light
 * treatment inside this block.
 */
.callout .btn-outline {
	color: #fff;
	border-color: rgba(255, 255, 255, .45);
}
.callout .btn-outline:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	color: #fff;
}
.center-actions { margin-top: 36px; text-align: center; }

/* ------------------------------------------------------------- CTA band */
/* The centred band that closes every main page, as on the reference. */
.cta-band {
	background: linear-gradient(120deg, var(--navy), color-mix(in srgb, var(--navy) 70%, var(--brand)));
	color: #fff;
}
.cta-band-inner { padding: 68px 24px; text-align: center; }
.cta-band-title { font-size: clamp(26px, 3.2vw, 38px); color: #fff; text-transform: uppercase; }
.cta-band-lede { margin: 22px auto 30px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.cta-band-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- Page hero */

/*
 * Two pieces, following the reference: a decorative image band across the full
 * width, then the title on white beneath it. No text sits on the band, so a
 * photo can be swapped in without anyone having to worry about contrast.
 */
.page-banner {
	position: relative; overflow: hidden;
	height: clamp(150px, 22vw, 260px);
	background: linear-gradient(120deg, var(--navy), color-mix(in srgb, var(--navy) 62%, var(--brand)));
	background-size: cover; background-position: center;
}
.page-banner.has-photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8, 24, 38, .3), rgba(8, 24, 38, .45));
}
.page-banner-glyph {
	position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
	color: rgba(255, 255, 255, .09);
}

.page-intro { padding: 42px 0 0; }
.page-title { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; text-transform: uppercase; }
.page-lede { margin: 22px 0 0; max-width: 74ch; font-size: 17px; line-height: 1.66; color: var(--ink-2); }

.crumbs { margin-bottom: 14px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumb-sep { margin: 0 9px; opacity: .45; }

/* ------------------------------------------------------------- Catalogue */

.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-search { position: relative; flex: 1; min-width: 260px; max-width: 460px; }
.catalog-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.catalog-search input {
	width: 100%; padding: 12px 14px 12px 42px;
	font: inherit; font-size: 15px;
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.catalog-search input:focus { outline: none; border-color: var(--navy); }
.catalog-count { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
	padding: 7px 15px;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
	background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
	transition: background-color .12s, color .12s, border-color .12s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.item-list {
	list-style: none;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px;
	border-top: 1px solid var(--line-2);
}
.item {
	display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
	padding: 11px 4px;
	border-bottom: 1px solid var(--line-2);
}
.item[hidden] { display: none; }
.item-name { font-size: 14px; line-height: 1.45; color: var(--ink); }
.item-cat { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.item-sku { flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.catalog-empty { padding: 34px 0; text-align: center; color: var(--ink-3); }

.related { margin-top: 64px; }
.related-title { font-size: 22px; text-transform: uppercase; }
.related .rule { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.related-card {
	display: flex; flex-direction: column; align-items: center; gap: 9px;
	padding: 18px 12px; text-align: center;
	color: var(--navy); background: var(--bg-alt);
	border: 1px solid var(--line-2); border-radius: var(--radius);
	font-size: 13.5px; font-weight: 600;
}
.related-card:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* --------------------------------------------------------------- Contact */

.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; }

.contact-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.contact-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-block h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.contact-block h2 .cbs-icon { color: var(--brand); }
.contact-big { margin: 12px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.contact-big a { color: var(--navy); }
.contact-list, .contact-hours { list-style: none; margin-top: 12px; }
.contact-list li, .contact-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14.5px; }
.contact-list li span, .contact-hours li span:first-child { color: var(--ink-3); }
.contact-hours li span:last-child { font-weight: 600; color: var(--ink); }
.contact-address { margin-top: 12px; font-style: normal; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.contact-address span { display: block; }
.contact-directions { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 700; font-size: 14.5px; }

.contact-form-wrap { padding: 34px; background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--radius-lg); }
.contact-form-title { font-size: 24px; }
.contact-form-lede { margin: 8px 0 22px; font-size: 14.5px; color: var(--ink-3); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.req { color: var(--brand); }
.field input, .field select, .field textarea {
	width: 100%; padding: 11px 13px;
	font: inherit; font-size: 15px; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 140px; }
.field-submit { margin: 4px 0 0; }
.form-privacy { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 18px; margin-bottom: 22px; border-radius: var(--radius); border-left: 4px solid var(--ink-3); background: #fff; }
.notice p { margin: 0; font-size: 14.5px; }
.notice-success { border-left-color: #1f9d55; background: #f0fbf4; }
.notice-error { border-left-color: var(--brand); background: var(--bg-tint); }

.map-section { border-top: 1px solid var(--line); }
.map-frame { display: block; width: 100%; height: 480px; border: 0; }

/* ---------------------------------------------------------------- Policy */

.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.policy-index { position: sticky; top: 24px; }
.policy-index h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.policy-index ul { list-style: none; border-left: 2px solid var(--line); }
.policy-index li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-2); }
.policy-index li a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }
.policy-index-help { margin-top: 24px; padding: 18px; background: var(--bg-alt); border-radius: var(--radius); }
.policy-index-help p { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.policy-index-help a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.policy-updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-3); }

/* ----------------------------------------------------------------- Prose */

.prose { max-width: 74ch; font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose-page, .policy-body { max-width: 74ch; }
.prose-intro { margin-bottom: 34px; }
.prose h2 { margin: 42px 0 14px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; font-size: 19px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 22px; }
.prose li { margin-bottom: .55em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-style: italic; }

.results-heading { font-size: 20px; margin-bottom: 16px; }
.results-heading-spaced { margin-top: 48px; }
.results-pages { list-style: none; }
.results-pages li { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.results-pages a { font-size: 17px; font-weight: 700; }
.results-pages p { margin: 5px 0 0; font-size: 14.5px; color: var(--ink-3); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.post-card-thumb { display: block; margin: -22px -22px 18px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.post-card-date { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-3); }
.post-card-title { font-size: 19px; }
.post-card-title a { color: var(--navy); }
.post-card-excerpt { margin: 10px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.post-card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); }

/* A hairline of brand colour where the page meets the footer. */
.site-footer { border-top: 4px solid var(--brand); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.1fr; gap: 44px; padding: 56px 24px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 14px; }
.footer-h3-spaced { margin-top: 26px; }
.brand-link-footer .brand-name { color: #fff; }
.footer-blurb { margin: 18px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .62); max-width: 42ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
	display: grid; place-items: center; width: 36px; height: 36px;
	color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); border-radius: 8px;
}
.footer-social a:hover { background: var(--brand); color: #fff; }

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.footer-list a:hover { color: #fff; text-decoration: none; }
.footer-list-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.footer-more { font-weight: 700; color: #fff !important; }

.footer-address { font-style: normal; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.footer-address span { display: block; }
.footer-contact { list-style: none; margin-top: 16px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 14.5px; }
.footer-contact a { color: rgba(255, 255, 255, .84); }
/* Second phone line: no icon of its own, indented to sit under the first. */
.footer-contact-continued { padding-left: 24px; }

.contact-big-2 { margin-top: 2px; }
.footer-hours { list-style: none; }
.footer-hours li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 4px 0; }
.footer-hours li span:last-child { color: #fff; font-weight: 600; }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-legal-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; }
.footer-legal p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.footer-legal-links { display: flex; gap: 22px; }
.footer-legal-links a { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------ Responsive */

/* Tighten the row before giving up on it entirely at 1160. */
@media (max-width: 1360px) {
	.masthead-inner { gap: 18px; }
	.nav-link { padding-inline: 10px; font-size: 13.5px; }
	.masthead-actions .btn { padding: 10px 14px; font-size: 14px; }
	.brand-sub { display: none; }
}

@media (max-width: 1080px) {
	.prod-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.dept-grid, .picks-grid, .why-grid, .policy-strip { grid-template-columns: repeat(2, 1fr); }
	.item-list { grid-template-columns: repeat(2, 1fr); }
	.related-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
	.contact-grid { grid-template-columns: 1fr; gap: 36px; }
	.policy-layout { grid-template-columns: 1fr; gap: 32px; }
	.policy-index { position: static; }
	.policy-index ul { display: flex; flex-wrap: wrap; gap: 0 6px; border-left: 0; }
	.policy-index li a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 0 0 6px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.mega-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1160px) {
	.search-drawer, .masthead-actions, .utility-tag { display: none; }
	.nav-toggle { display: block; margin-left: auto; }
	.masthead-inner { min-height: 68px; gap: 12px; }
	.brand-sub { display: block; }
	.prod-grid, .prod-grid-related { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.utility-inner { justify-content: center; }
	.utility-links { gap: 16px; font-size: 12.5px; }
	.utility-link { white-space: nowrap; }

	.primary-nav { display: none; margin-left: 0; }
	.primary-nav.is-open {
		display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 80;
		padding: 0 24px; background: #fff; box-shadow: var(--shadow-lg);
		max-height: calc(100vh - 110px); overflow-y: auto;
	}
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list > li { display: block; }
	.nav-link { display: flex; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; }
	.nav-link:hover, .nav-list > li:hover > .nav-link { border-bottom-color: var(--line-2); border-left-color: var(--brand); }
	.nav-list > li:hover > .nav-link .nav-caret { transform: none; }
	.nav-list > li.is-open > .nav-link .nav-caret { transform: rotate(180deg); }

	.mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav-list > li:hover > .mega, .nav-list > li:focus-within > .mega { display: none; }
	.nav-list > li.is-open > .mega { display: block; }
	.mega-inner { border: 0; border-radius: 0; box-shadow: none; background: var(--bg-alt); }
	.mega-grid { grid-template-columns: 1fr 1fr; padding: 10px; }
	.mega-foot { padding: 14px 12px; }
	.nav-mobile-extras { display: block; padding: 18px 0 24px; }
	.nav-mobile-search { display: flex; gap: 8px; margin-bottom: 14px; }
	.nav-mobile-search input {
		flex: 1; min-width: 0; padding: 11px 14px;
		font: inherit; font-size: 15px;
		border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
	}
	.nav-mobile-search input:focus { outline: none; border-color: var(--navy); }
	.nav-mobile-search button {
		display: grid; place-items: center; flex: none; width: 46px;
		color: #fff; background: var(--navy); border: 0; border-radius: var(--radius); cursor: pointer;
	}

	.hero-inner { padding-top: 64px; padding-bottom: 64px; }
	.page-intro { padding-top: 32px; }
	.cta-band-inner { padding: 52px 24px; }
	.stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
	.section { padding: 56px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
	.wrap { padding: 0 18px; }
	/* Only the phone number earns its place in the utility bar at this width. */
	.utility-links .utility-link:not(.utility-phone) { display: none; }
	.prod-grid, .prod-grid-related { grid-template-columns: 1fr; }
	.dept-grid, .picks-grid, .why-grid, .policy-strip, .post-grid { grid-template-columns: 1fr; }
	.item-list { grid-template-columns: 1fr; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.mega-grid { grid-template-columns: 1fr; }
	.contact-form-wrap { padding: 24px 20px; }
	.callout { padding: 26px 22px; }
	.hero-actions .btn, .callout-actions .btn, .cta-band-actions .btn { flex: 1 1 100%; }
	.map-frame { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .cta-band, .page-banner, .callout, .related, .map-section, .catalog-tools, .chips { display: none !important; }
	body { font-size: 12pt; color: #000; }
	.page-intro { padding: 0 0 12pt; }
	.page-title, .page-lede { color: #000; }
	.rule { display: none; }
}
