/*
 * Keystone — design tokens & site shell.
 *
 * THE RULE THIS FILE EXISTS TO ENFORCE: Keystone is this catalogue's
 * deliberate mass-market correction after a run of boutique niches — a
 * conventional, easily-recognizable small-business homepage structure
 * (hero + trust signals -> services grid -> before/after portfolio proof ->
 * credibility -> process -> service area -> testimonials -> blog), not an
 * experimental layout. Palette is the classic, recognizable "local
 * contractor" family — deep trustworthy blue (--navy) structural, warm
 * safety-orange (--orange) for CTAs/highlights, on a clean light-neutral
 * base — executed well rather than subverted. All button/text-on-color
 * combinations below were measured (not eyeballed) against WCAG AA 4.5:1;
 * see the comments beside --orange and --text-faint for the specific
 * near-miss values this catalogue's light-theme contrast trap would have
 * let slip through.
 */

:root {
	--navy: #14293f;
	--navy-deep: #0c1c2c;
	--navy-mid: #1b3550;
	--navy-tint: #eaf1f7;
	--navy-rgb: 20, 41, 63;

	/* --orange is the one color used for CTA button backgrounds AND as text
	   directly on the light bg AND as text on white — all three need to
	   individually clear 4.5:1. A brighter, more "safety orange" #d96b0e
	   measured only 3.47:1 in both directions, a near-miss that looks fine
	   at a glance (this catalogue's light-theme contrast trap) but fails
	   AA for normal-weight text/buttons. This darker value measures 5.5:1
	   white-on-orange, 5.5:1 orange-on-white, and 5.3:1 orange-on-bg. */
	--orange: #a84f09;
	--orange-deep: #8f4207;
	--orange-tint: #f7e9dd;
	--orange-rgb: 168, 79, 9;
	/* Decorative-only brighter orange — never used for text or a button
	   background that needs contrast, only for large icon strokes/borders
	   where WCAG's text thresholds don't apply. */
	--orange-bright: #d96b0e;

	--amber: #f2a71b; /* on --navy only (7.27:1); never white-on-amber (2.04:1, fails) */

	--status-green: #2f6b3f; /* 6.37:1 both directions */
	--status-green-tint: #eaf3ec;

	--bg: #fbfaf7;
	--bg-2: #f2f5f7;
	--bg-card: #ffffff;
	--surface: rgba(20, 41, 63, 0.04);
	--surface-strong: rgba(20, 41, 63, 0.07);
	--line: rgba(20, 41, 63, 0.14);
	--line-soft: rgba(20, 41, 63, 0.08);

	--text: #16232f;         /* 15.3:1 on --bg */
	--text-soft: #3f4f5e;    /* 8.1:1 on --bg */
	/* --text-faint measures 5.18:1 on --bg / 5.41:1 on white — both clear
	   AA's 4.5:1 floor with headroom, confirmed via measured contrast
	   check rather than eyeballed (this catalogue's recurring light-theme
	   contrast trap). */
	--text-faint: #5c6c7a;
	--text-on-navy: #f3f6f9;
	--text-on-navy-soft: #c3cedb;

	--font-display: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
	--font-sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;

	--fs-1: 1rem;
	--fs-2: 1.2rem;
	--fs-3: 1.44rem;
	--fs-4: 1.75rem;
	--fs-5: 2.1rem;
	--fs-6: clamp(2rem, 1.2rem + 3.6vw, 3.2rem);
	--fs-7: clamp(2.2rem, 1rem + 5vw, 4.2rem);

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 16px;
	--sp-4: 24px;
	--sp-5: 40px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 144px;

	--section-pad: clamp(64px, 5vw + 56px, 128px);

	--radius: 14px;
	--radius-sm: 8px;
	--radius-lg: 22px;

	--shadow-sm: 0 2px 10px rgba(20, 30, 41, 0.06);
	--shadow-md: 0 10px 34px rgba(20, 30, 41, 0.10);
	--shadow-lg: 0 22px 60px rgba(20, 30, 41, 0.16);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* The off-canvas mobile nav is a position:fixed, full-viewport-width panel
   pushed off-screen via transform: translateX(100%) rather than a true
   offset. body { overflow-x: hidden } does NOT clip position:fixed
   descendants (they escape to the initial containing block, not body), so
   without this the translated-off panel still contributes to the
   document's horizontal scrollWidth and mobile browsers can visibly widen
   the layout viewport to accommodate it — a real, verified bug this
   catalogue has hit before with fixed navs (see corner-theme). html (not
   just body) needs overflow-x: hidden to actually contain it. */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0 0 var(--sp-3);
	color: var(--navy);
	text-wrap: balance;
}
h1 { font-size: var(--fs-7); }
h2 { font-size: var(--fs-6); }
h3 { font-size: var(--fs-4); }
h4 { font-size: var(--fs-3); }
p { margin: 0 0 var(--sp-3); color: var(--text-soft); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-4); }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--sp-4); }

.eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 var(--sp-2);
}
.eyebrow--on-navy { color: var(--amber); }

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

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 400;
	background: var(--navy); color: #fff; padding: var(--sp-2) var(--sp-3);
	border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-2); }
.section--navy { background: var(--navy); color: var(--text-on-navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: var(--text-on-navy-soft); }
.section-head { max-width: 720px; margin: 0 0 var(--sp-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.96rem;
	border: 1px solid transparent;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
	white-space: nowrap;
}
.btn--cta { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: var(--orange-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); background: var(--surface); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.glass {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.glass:hover { border-color: rgba(20, 41, 63, 0.22); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Directional scroll-reveal — every major section uses one of these,
   per this catalogue's standing motion default: left column enters from
   left, right column from right, full-width blocks float up. */
.reveal { opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal--up { transform: translateY(28px); }
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

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

.topbar { background: var(--navy-deep); color: var(--text-on-navy-soft); font-size: 0.82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--sp-4); gap: var(--sp-4); }
.topbar__trust { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.topbar__sep { opacity: 0.5; }
.topbar__contact a { color: #fff; font-weight: 700; }
.topbar__contact a:hover { color: var(--amber); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 14px var(--sp-4); }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--navy); }
.brand__mark { color: var(--orange); display: inline-flex; }
.brand__tag { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.brand--footer { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: var(--sp-3); }
.brand--footer .brand__mark { color: var(--amber); }

.nav ul { display: flex; align-items: center; gap: var(--sp-5); }
.nav a { font-weight: 600; font-size: 0.96rem; color: var(--navy); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--orange); transition: right 0.25s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.nav .menu-item-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.topbar__trust span:not(:first-child) { display: none; }
	.nav { position: fixed; inset: 0; top: 0; background: var(--bg); padding: 100px var(--sp-4) var(--sp-5); transform: translateX(100%); transition: transform 0.32s var(--ease); overflow-y: auto; z-index: 90; }
	.nav.is-open { transform: translateX(0); }
	.nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-4); width: 100%; }
	.nav a { font-size: 1.3rem; }
	.nav .menu-item-cta { display: block; margin-top: var(--sp-4); width: 100%; }
	.nav .menu-item-cta a { display: block; text-align: center; background: var(--orange); color: #fff; padding: 14px; border-radius: 999px; font-weight: 700; }
	.header-actions .btn--cta { display: none; }
	.nav-toggle { display: flex; }
}

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

.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 var(--section-pad); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
.hero__eyebrow { color: var(--orange); }
.hero h1 { font-size: var(--fs-7); margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lede { font-size: 1.2rem; color: var(--text-soft); max-width: 52ch; }
.hero__cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-5) 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); margin-top: var(--sp-4); }
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.hero__trust-item svg { color: var(--orange); flex-shrink: 0; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; }
.hero__media-badge { position: absolute; left: var(--sp-4); bottom: var(--sp-4); background: rgba(12,28,44,0.86); backdrop-filter: blur(6px); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hero__media-badge svg { color: var(--amber); }

@media (max-width: 980px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
}

/* ---------------------------------------------------------------------- */
/* Services grid                                                         */
/* ---------------------------------------------------------------------- */

.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.s-card { display: block; overflow: hidden; }
.s-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.s-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.s-card:hover .s-card__media img { transform: scale(1.06); }
.s-card__icon { position: absolute; left: var(--sp-3); top: var(--sp-3); width: 44px; height: 44px; border-radius: 12px; background: rgba(12,28,44,0.82); color: #fff; display: flex; align-items: center; justify-content: center; }
.s-card__icon svg { width: 22px; height: 22px; }
.s-card__body { padding: var(--sp-4); }
.s-card__title { margin-bottom: 8px; font-size: 1.28rem; }
.s-card__excerpt { font-size: 0.94rem; margin-bottom: 10px; }
.s-card__price { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: var(--sp-2); }
.s-card__link { color: var(--orange); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 980px) { .s-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .s-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Before/after slider — the signature feature                           */
/* ---------------------------------------------------------------------- */

.ba-slider { position: relative; }
.ba-slider__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--navy-tint);
	user-select: none;
	touch-action: pan-y;
}
.p-card .ba-slider__frame,
.ba-slider--compact .ba-slider__frame { border-radius: 0; aspect-ratio: 4/3; }
.ba-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider__clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.ba-slider__clip .ba-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__label { position: absolute; top: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(12,28,44,0.78); color: #fff; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; pointer-events: none; }
.ba-slider__label--before { left: 14px; }
.ba-slider__label--after { right: 14px; }
.ba-slider--compact .ba-slider__label { font-size: 0.66rem; padding: 4px 10px; top: 10px; }
.ba-slider__divider { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(12,28,44,0.25); transform: translateX(-50%); pointer-events: none; }
.ba-slider__handle {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 46px; height: 46px; border-radius: 50%;
	background: #fff; color: var(--navy);
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-md);
	pointer-events: auto;
	cursor: ew-resize;
	border: 2px solid var(--orange);
}
.ba-slider--compact .ba-slider__handle { width: 34px; height: 34px; }
.ba-slider__handle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba-slider__handle svg { width: 18px; height: 18px; pointer-events: none; }

/* ---------------------------------------------------------------------- */
/* Portfolio (Our Work) grid                                             */
/* ---------------------------------------------------------------------- */

.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
.p-card { overflow: hidden; }
.p-card__media-link { display: block; }
.p-card__media { position: relative; }
.p-card__media img, .p-card__media--fallback { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--navy-tint); }
.p-badge { position: absolute; left: 14px; top: 14px; z-index: 5; background: var(--orange); color: #fff; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.p-card__body { padding: var(--sp-4); }
.p-card__title { font-size: 1.3rem; margin-bottom: 6px; }
.p-card__title a:hover { color: var(--orange); }
.p-card__loc { font-weight: 700; color: var(--text-faint); font-size: 0.86rem; margin-bottom: 8px; }
.p-card__excerpt { font-size: 0.94rem; }
.p-card__link { color: var(--orange); font-weight: 700; font-size: 0.9rem; }

.p-grid--home { grid-template-columns: repeat(2, 1fr); }

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

/* Homepage featured before/after — larger single showcase */
.featured-ba { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); align-items: center; }
.featured-ba__frame .ba-slider__frame { aspect-ratio: 5/4; }
.featured-ba__meta .p-card__loc { margin-bottom: var(--sp-2); }
@media (max-width: 860px) { .featured-ba { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Trust / why choose us                                                 */
/* ---------------------------------------------------------------------- */

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.trust-item { text-align: left; padding: var(--sp-4); }
.trust-item__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(242,167,27,0.14); color: var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.trust-item h3 { font-size: 1.12rem; color: #fff; margin-bottom: 6px; }
.trust-item p { color: var(--text-on-navy-soft); font-size: 0.92rem; margin: 0; }

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

/* ---------------------------------------------------------------------- */
/* Process                                                                */
/* ---------------------------------------------------------------------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.process-step { position: relative; padding: var(--sp-4); }
.process-step__num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: var(--sp-3); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; }
.process-step::after { content: ''; position: absolute; top: 24px; left: calc(100% - 8px); width: var(--sp-5); height: 2px; background: var(--line); }
.process-step:last-child::after { display: none; }

@media (max-width: 980px) {
	.process-grid { grid-template-columns: repeat(2, 1fr); }
	.process-step::after { display: none; }
}
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Service area                                                          */
/* ---------------------------------------------------------------------- */

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.area-item { display: flex; align-items: flex-start; gap: 12px; padding: var(--sp-4); }
.area-item__pin { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.area-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.area-item p { font-size: 0.86rem; margin: 0; color: var(--text-faint); }

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

/* ---------------------------------------------------------------------- */
/* Testimonials                                                          */
/* ---------------------------------------------------------------------- */

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.t-card { padding: var(--sp-5); }
.t-card__stars { color: var(--amber); display: flex; gap: 2px; margin-bottom: var(--sp-3); }
.t-card__stars svg { width: 16px; height: 16px; }
.t-card__quote { font-size: 1.02rem; color: var(--text); font-style: italic; }
.t-card__quote::before { content: '\201C'; }
.t-card__quote::after { content: '\201D'; }
.t-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.t-card__name { font-weight: 700; color: var(--navy); font-size: 0.94rem; }
.t-card__loc { font-size: 0.82rem; color: var(--text-faint); }
.t-card__project { font-size: 0.78rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 980px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .t-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Blog cards / generic card grid                                        */
/* ---------------------------------------------------------------------- */

.card { display: block; overflow: hidden; }
.card__media { aspect-ratio: 3/2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--fallback { background: var(--navy-tint); }
.card__eyebrow { padding: var(--sp-3) var(--sp-4) 0; font-size: 0.78rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.card__title { padding: 6px var(--sp-4) 0; font-size: 1.2rem; }
.card__excerpt { padding: 0 var(--sp-4) var(--sp-4); font-size: 0.92rem; }

@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/* Footer CTA band + footer                                              */
/* ---------------------------------------------------------------------- */

.footer-cta { background: var(--orange); color: #fff; padding: var(--sp-6) 0; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin-bottom: 6px; font-size: var(--fs-4); }
.footer-cta p { color: rgba(255,255,255,0.92); margin: 0; }
.footer-cta .btn--navy { flex-shrink: 0; }

.site-footer { background: var(--navy-deep); color: var(--text-on-navy-soft); padding: var(--sp-7) 0 var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.site-footer h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.site-footer p, .site-footer li { color: var(--text-on-navy-soft); font-size: 0.92rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--amber); }
.footer-license { font-weight: 700; color: #fff !important; margin-top: var(--sp-3); }
.footer-legal { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; }

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-cta__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------------------------------------------------------------------- */
/* Quote form                                                            */
/* ---------------------------------------------------------------------- */

.quote-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-7); align-items: start; }
.quote-side h2 { font-size: var(--fs-5); }
.quote-side-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-5); }
.quote-side-item { display: flex; gap: 14px; align-items: flex-start; }
.quote-side-item svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.quote-side-item h4 { font-size: 1rem; margin-bottom: 2px; }
.quote-side-item p { font-size: 0.9rem; margin: 0; }

.quote-form { padding: var(--sp-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-weight: 700; font-size: 0.86rem; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2);
	color: var(--text); font-size: 0.98rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: var(--sp-2); }
.form-status { margin-top: var(--sp-4); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.94rem; display: none; }
.form-status.is-success { display: block; background: var(--status-green-tint); color: var(--status-green); }
.form-status.is-error { display: block; background: var(--orange-tint); color: var(--orange-deep); }

@media (max-width: 900px) { .quote-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Compact quote form used inline on the homepage */
.mini-quote { padding: var(--sp-5); }
.mini-quote .form-row { grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------------------- */
/* Single project / service page                                        */
/* ---------------------------------------------------------------------- */

.proj-hero { padding-top: var(--sp-6); }
.proj-meta { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin: var(--sp-5) 0; padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proj-meta__item dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 700; margin-bottom: 2px; }
.proj-meta__item dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.proj-content { max-width: 760px; }
.proj-content p { font-size: 1.06rem; }

.spec-sheet { display: flex; flex-direction: column; gap: 10px; }
.spec-sheet__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.spec-sheet__row dt { color: var(--text-faint); font-size: 0.9rem; }
.spec-sheet__row dd { margin: 0; font-weight: 700; color: var(--navy); }

.included-list, .typical-list { display: flex; flex-direction: column; gap: 12px; }
.included-list li, .typical-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--text-soft); }
.included-list svg { color: var(--status-green); flex-shrink: 0; margin-top: 3px; }
.typical-list svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* ---------------------------------------------------------------------- */
/* Blog single / archive                                                 */
/* ---------------------------------------------------------------------- */

.post-header { max-width: 820px; margin: 0 auto var(--sp-6); text-align: center; }
.post-header .card__eyebrow { padding: 0; text-align: center; margin-bottom: var(--sp-3); }
.post-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.post-content p { margin-bottom: var(--sp-4); }
.post-featured { max-width: 980px; margin: 0 auto var(--sp-6); border-radius: var(--radius-lg); overflow: hidden; }
.post-featured img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* ---------------------------------------------------------------------- */
/* Comments, search form, 404                                            */
/* ---------------------------------------------------------------------- */

.comments-area { max-width: 760px; margin: var(--sp-7) auto 0; }
.comment-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.comment-body { padding: var(--sp-4); }
.comment-author { font-weight: 700; color: var(--navy); }
.comment-meta { font-size: 0.82rem; color: var(--text-faint); margin-bottom: var(--sp-2); }
.comment-form .form-field { margin-bottom: var(--sp-3); }

.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.search-form button { border-radius: 999px; }

.notfound { text-align: center; padding: var(--sp-8) 0; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); color: var(--navy-tint); line-height: 1; }
.notfound h1 { margin-top: -1.2rem; }

/* Misc fallback media block used wherever a thumbnail is absent */
.p-card__media--fallback, .card__media--fallback { display: block; background: linear-gradient(135deg, var(--navy-tint), var(--bg-2)); }

.pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 700; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
