/*
Theme Name: Prowell Energy
Theme URI: https://www.prowellenergy.com/
Author: Rebuilt for Prowell Energy Services Limited
Description: A modern, industrial WordPress theme for Prowell Energy Services Limited — an indigenous oil and gas servicing company. Deep steel palette with the Prowell red as the working accent, a restrained nod to the previous gradient identity, and templates for services, gallery and multi-office contact pages.
Version: 1.0.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prowell
Tags: business, corporate, industrial, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ink: #080b0f;
	--steel-900: #0d131a;
	--steel-850: #111922;
	--steel-800: #16202b;
	--steel-700: #1e2a37;
	--steel-600: #2a3a4a;
	--steel-500: #43566a;
	--steel-400: #6b8095;
	--steel-300: #9fb0c0;
	--mist-200: #d7dee5;
	--mist-100: #eef2f5;
	--mist-050: #f7f9fb;
	--paper: #ffffff;

	--red: #e01414;
	--red-bright: #ff2a2a;
	--red-deep: #a30f0f;
	--red-tint: rgba(224, 20, 20, .1);

	/* A restrained nod to the previous purple/teal identity. */
	--grad: linear-gradient(115deg, #7b3fe4 0%, #2f6fd0 48%, #0fb5a6 100%);
	--grad-soft: linear-gradient(115deg, rgba(123, 63, 228, .5) 0%, rgba(15, 181, 166, .5) 100%);

	--font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--wrap: 1200px;
	--wrap-narrow: 820px;
	--gutter: clamp(20px, 5vw, 48px);
	--section-y: clamp(64px, 9vw, 120px);

	--radius: 4px;
	--radius-lg: 8px;
	--shadow-sm: 0 1px 2px rgba(8, 11, 15, .08), 0 4px 12px rgba(8, 11, 15, .06);
	--shadow-md: 0 12px 32px rgba(8, 11, 15, .12);
	--shadow-lg: 0 24px 64px rgba(8, 11, 15, .18);
	--ease: cubic-bezier(.2, .6, .2, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--steel-800);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-deep); }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--mist-200); margin: 2.5rem 0; }
blockquote {
	margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem;
	border-left: 3px solid var(--red); font-size: 1.15em; color: var(--steel-700);
}
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--mist-200); text-align: left; }
th { font-weight: 600; background: var(--mist-050); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.01em;
	color: var(--steel-900);
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1.05rem; }

::selection { background: var(--red); color: #fff; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	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(--red); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--steel-900); color: var(--mist-200); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--mist { background: var(--mist-050); }
.text-center { text-align: center; }
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }

/* Eyebrow — small red-ruled kicker above headings */
.eyebrow {
	display: flex; align-items: center; gap: .7rem;
	font-family: var(--font-body);
	font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--red); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); flex: none; }
.section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow::before { background: var(--grad); }
.text-center .eyebrow { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.text-center .section-head { margin-inline: auto; }
.section-head p { font-size: 1.1rem; color: var(--steel-500); margin-bottom: 0; }
.section--dark .section-head p { color: var(--steel-300); }

.lead { font-size: 1.2rem; line-height: 1.65; color: var(--steel-600); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	font-family: var(--font-body); font-size: .92rem; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase;
	padding: .95rem 1.7rem; border: 2px solid transparent; border-radius: var(--radius);
	cursor: pointer; transition: all .22s var(--ease); line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(224, 20, 20, .28); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-2px); }

.btn--dark { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }
.btn--dark:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

.btn--sm { padding: .7rem 1.15rem; font-size: .8rem; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.topbar {
	background: var(--ink); color: var(--steel-300);
	font-size: .82rem; letter-spacing: .02em;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.topbar__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.topbar a { color: var(--mist-200); }
.topbar a:hover { color: #fff; }
.topbar__tag { display: flex; align-items: center; gap: .55rem; }
.topbar__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
@media (max-width: 880px) { .topbar { display: none; } }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--mist-200);
	transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.site-brand { display: flex; align-items: center; gap: .85rem; flex: none; }
.site-brand img { max-height: 54px; width: auto; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand__name {
	font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
	letter-spacing: .01em; color: var(--steel-900); text-transform: uppercase;
}
.site-brand__name em { font-style: normal; color: var(--red); }
.site-brand__tagline { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel-400); font-weight: 600; }

.nav-main ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-main li { margin: 0; position: relative; }
.nav-main a {
	display: block; position: relative; padding: .6rem .85rem; border-radius: var(--radius);
	font-size: .93rem; font-weight: 500; color: var(--steel-700); letter-spacing: .01em;
}
.nav-main a:hover { color: var(--red); background: var(--mist-100); }
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a,
.nav-main .current-menu-ancestor > a,
.nav-main .current_page_ancestor > a { color: var(--red); }
.nav-main .current-menu-item > a::after,
.nav-main .current_page_item > a::after {
	content: ""; display: block; height: 2px; background: var(--red);
	margin: .3rem .1rem -.35rem;
}

/* Dropdowns */
.nav-main .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px;
	background: #fff; border: 1px solid var(--mist-200); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md); padding: .5rem; display: block;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s var(--ease); flex-direction: column; align-items: stretch; gap: 0;
}
.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-main .sub-menu a { padding: .6rem .8rem; font-size: .88rem; border-radius: var(--radius); }
.nav-main .sub-menu .current-menu-item > a::after { display: none; }
.nav-main .menu-item-has-children > a::before {
	content: ""; position: absolute; right: .1rem; top: 50%; width: 5px; height: 5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg); opacity: .5;
}
.nav-main > ul > .menu-item-has-children > a { padding-right: 1.35rem; }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0;
	background: var(--steel-900); border: 0; border-radius: var(--radius); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: background .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
	content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
	transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
	.nav-toggle { display: flex; }
	.header-actions .btn { display: none; }
	.nav-main {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--mist-200);
		box-shadow: var(--shadow-md);
		max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
	}
	.nav-main.is-open { max-height: 80vh; overflow-y: auto; }
	.nav-main ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem var(--gutter) 1.5rem; }
	.nav-main a { padding: .85rem .25rem; border-bottom: 1px solid var(--mist-100); border-radius: 0; }
	.nav-main .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--mist-200);
		border-radius: 0; margin: 0 0 .5rem .25rem; padding: 0 0 0 .75rem; min-width: 0;
	}
	.nav-main .menu-item-has-children > a::before { right: .5rem; }
	.nav-main .current-menu-item > a::after { display: none; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative; overflow: hidden;
	background: var(--ink);
	color: #fff;
	padding-block: clamp(72px, 11vw, 150px);
	isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(120% 90% at 82% 8%, rgba(123, 63, 228, .34) 0%, transparent 55%),
		radial-gradient(90% 80% at 8% 96%, rgba(15, 181, 166, .26) 0%, transparent 58%),
		linear-gradient(180deg, rgba(8, 11, 15, .55) 0%, rgba(8, 11, 15, .9) 100%);
}
/* Industrial hatch texture */
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 9px);
}
.hero__inner { position: relative; max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mist-200); max-width: 620px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__tagline {
	display: inline-flex; align-items: center; gap: .7rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: #fff; background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	padding: .5rem 1rem; border-radius: 100px; margin-bottom: 1.6rem;
}
.hero__tagline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); }

/* Stat strip */
.stats {
	position: relative; z-index: 2; background: var(--steel-850);
	border-top: 3px solid transparent;
	border-image: var(--grad) 1;
}
.stats__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stats__item { padding: clamp(24px, 3vw, 38px) clamp(16px, 2vw, 28px); border-right: 1px solid rgba(255, 255, 255, .07); }
.stats__item:last-child { border-right: 0; }
.stats__value { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 700; color: #fff; line-height: 1; }
.stats__value span { color: var(--red-bright); }
.stats__label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300); margin-top: .55rem; }
@media (max-width: 780px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__item { border-bottom: 1px solid rgba(255, 255, 255, .07); }
	.stats__item:nth-child(even) { border-right: 0; }
	.stats__item:last-child { border-right: 0; border-bottom: 0; }
	.stats__item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ==========================================================================
   7. Page hero (interior pages)
   ========================================================================== */

.page-hero {
	position: relative; background: var(--steel-900); color: #fff;
	padding-block: clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(90% 120% at 88% 0%, rgba(123, 63, 228, .3) 0%, transparent 60%),
		radial-gradient(80% 100% at 0% 100%, rgba(15, 181, 166, .2) 0%, transparent 60%);
}
.page-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
	background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 9px);
}
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero__lead { color: var(--steel-300); max-width: 640px; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--grad); }

.breadcrumbs { font-size: .82rem; color: var(--steel-400); margin-top: 1.1rem; }
.breadcrumbs a { color: var(--mist-200); }
.breadcrumbs a:hover { color: var(--red-bright); }
.breadcrumbs span { margin: 0 .45rem; opacity: .5; }

/* ==========================================================================
   8. Service cards
   ========================================================================== */

.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--mist-200); border-radius: var(--radius-lg);
	padding: clamp(26px, 3vw, 38px); overflow: hidden;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: var(--red); transform: scaleX(0); transform-origin: left;
	transition: transform .32s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--mist-200); }
.card:hover::before { transform: scaleX(1); }
.card__num {
	font-family: var(--font-display); font-size: .95rem; font-weight: 700;
	letter-spacing: .1em; color: var(--red); margin-bottom: 1rem;
}
.card__icon {
	width: 52px; height: 52px; border-radius: var(--radius); background: var(--mist-100);
	display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
	color: var(--steel-800); transition: background .28s var(--ease), color .28s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--red); color: #fff; }
.card h3 { margin-bottom: .65rem; font-size: 1.3rem; }
.card h3 a { color: inherit; }
.card:hover h3 a { color: var(--red); }
.card p { color: var(--steel-500); font-size: .96rem; margin-bottom: 1.25rem; }
.card__link {
	margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
	font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.card__link svg { width: 14px; height: 14px; transition: transform .22s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__thumb { margin: -1px -1px 1.5rem; aspect-ratio: 16/10; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card--flush { padding-top: 0; }
.card--flush .card__thumb { margin: 0 calc(-1 * clamp(26px, 3vw, 38px)) 1.5rem; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin: 0; color: var(--steel-600); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 9px; height: 9px; background: var(--red); transform: rotate(45deg);
}
.section--dark .checklist li { color: var(--mist-200); }
.checklist--2col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 2rem; }

/* ==========================================================================
   9. Split / feature sections
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.figure-stack { position: relative; }
.figure-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.figure-stack::after {
	content: ""; position: absolute; left: -18px; bottom: -18px; width: 130px; height: 130px; z-index: -1;
	background-image: radial-gradient(var(--steel-400) 1.4px, transparent 1.4px);
	background-size: 12px 12px; opacity: .5;
}
.figure-stack__badge {
	position: absolute; right: -14px; bottom: -14px;
	background: var(--red); color: #fff; padding: 1rem 1.35rem; border-radius: var(--radius);
	box-shadow: var(--shadow-md); max-width: 220px;
}
.figure-stack__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.figure-stack__badge span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }

/* Media placeholder used where no image has been uploaded yet */
.media-ph {
	position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--steel-800);
	display: flex; align-items: center; justify-content: center;
}
.media-ph::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(80% 90% at 20% 10%, rgba(123, 63, 228, .26), transparent 62%),
		radial-gradient(80% 90% at 90% 90%, rgba(15, 181, 166, .2), transparent 62%),
		linear-gradient(180deg, rgba(8, 11, 15, .1), rgba(8, 11, 15, .5));
}
.media-ph::after {
	content: ""; position: absolute; inset: 0; opacity: .6;
	background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 10px);
}
.media-ph span {
	position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: .12em; text-transform: uppercase;
	color: rgba(255, 255, 255, .55); text-align: center; padding: 1rem;
}

/* Vision / mission */
.pillars { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pillar {
	background: var(--steel-800); border-radius: var(--radius-lg);
	padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .07);
}
.pillar::before {
	content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad);
}
.pillar h3 { color: #fff; font-size: 1.5rem; margin-bottom: .8rem; }
.pillar p { color: var(--mist-200); margin-bottom: 0; }
.pillar__mark {
	font-family: var(--font-display); font-size: 5rem; line-height: 1; font-weight: 700;
	color: rgba(255, 255, 255, .05); position: absolute; right: 1.2rem; top: .4rem;
}

/* Partners */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--mist-200); border: 1px solid var(--mist-200); border-radius: var(--radius-lg); overflow: hidden; }
.partner {
	background: #fff; padding: 1.6rem 1.2rem; text-align: center;
	transition: background .25s var(--ease);
}
.partner:hover { background: var(--mist-050); }
.partner strong { display: block; font-family: var(--font-display); font-size: 1.28rem; color: var(--steel-900); letter-spacing: .01em; }
.partner span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-400); }

/* OEM chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.chips li {
	margin: 0; padding: .5rem 1rem; border: 1px solid var(--mist-200); border-radius: 100px;
	font-size: .85rem; font-weight: 500; color: var(--steel-600); background: #fff;
}
.section--dark .chips li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--mist-100); }

/* ==========================================================================
   10. CTA band
   ========================================================================== */

.cta-band {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--steel-900); color: #fff;
	padding-block: clamp(52px, 6.5vw, 84px);
}
.cta-band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
	background: radial-gradient(90% 140% at 85% 20%, rgba(224, 20, 20, .3) 0%, transparent 62%),
	            radial-gradient(80% 120% at 5% 90%, rgba(123, 63, 228, .3) 0%, transparent 60%);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; max-width: 18ch; }
.cta-band p { color: var(--mist-200); margin: 0; max-width: 46ch; }

/* ==========================================================================
   11. Gallery
   ========================================================================== */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; }
.gallery-grid a, .gallery-grid figure {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg);
	aspect-ratio: 4/3; background: var(--steel-800);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
	content: ""; position: absolute; inset: 0; background: rgba(8, 11, 15, .35);
	opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-grid a:hover::after { opacity: 1; }

/* WordPress core gallery blocks inherit the same treatment */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius-lg); }

/* ==========================================================================
   12. Contact
   ========================================================================== */

.offices { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.office {
	background: #fff; border: 1px solid var(--mist-200); border-radius: var(--radius-lg);
	padding: clamp(24px, 2.8vw, 34px); position: relative; overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.office:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.office__tag {
	display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--red);
	background: var(--red-tint); padding: .35rem .7rem; border-radius: 100px; margin-bottom: 1rem;
}
.office h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.office address { font-style: normal; color: var(--steel-500); line-height: 1.75; }

.contact-form { display: grid; gap: 1.1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-600); }
.field input, .field select, .field textarea {
	font-family: inherit; font-size: 1rem; color: var(--steel-900);
	padding: .85rem 1rem; border: 1px solid var(--mist-200); border-radius: var(--radius);
	background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint);
}
.form-note { font-size: .85rem; color: var(--steel-400); }

/* ==========================================================================
   13. Content (single/page)
   ========================================================================== */

.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.15em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.7rem; }
.entry-content ul li::before {
	content: ""; position: absolute; left: 0; top: .62em;
	width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}
.entry-content ol { padding-left: 1.3rem; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content .alignwide { width: min(100%, 1100px); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.alignleft { float: left; margin: .35rem 1.75rem 1.25rem 0; }
.alignright { float: right; margin: .35rem 0 1.25rem 1.75rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--steel-400); text-align: center; margin-top: .6rem; }

.post-meta { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-400); margin-bottom: 1rem; }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 .6rem; border: 1px solid var(--mist-200); border-radius: var(--radius);
	color: var(--steel-700); font-weight: 500;
}
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* Search form */
.search-form { display: flex; gap: .5rem; max-width: 460px; }
.search-form input[type="search"] {
	flex: 1; padding: .8rem 1rem; border: 1px solid var(--mist-200);
	border-radius: var(--radius); font-family: inherit; font-size: 1rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }

/* Sub-page navigation used on service detail pages */
.subnav { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.subnav li { margin: 0; }
.subnav a {
	display: block; padding: .8rem 1rem; border-left: 2px solid var(--mist-200);
	color: var(--steel-700); font-weight: 500; font-size: .94rem; transition: all .2s var(--ease);
}
.subnav a:hover { border-left-color: var(--red); background: var(--mist-050); color: var(--red); padding-left: 1.25rem; }
.subnav .is-current a { border-left-color: var(--red); color: var(--red); background: var(--mist-050); font-weight: 600; }

.sidebar-card {
	background: var(--steel-900); color: var(--mist-200); border-radius: var(--radius-lg);
	padding: clamp(24px, 2.6vw, 32px); margin-top: 1.5rem;
}
.sidebar-card h3 { color: #fff; font-size: 1.3rem; }
.sidebar-card p { font-size: .95rem; }

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--steel-300); padding-top: clamp(56px, 6vw, 84px); font-size: .95rem; }
.site-footer h4 {
	color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.35rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { color: var(--steel-300); }
.site-footer a { color: var(--mist-200); }
.site-footer a:hover { color: var(--red-bright); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; }
.footer-brand img { max-height: 60px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand .site-brand__name { color: #fff; }
.footer-note {
	margin-top: clamp(40px, 5vw, 64px); padding-block: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	font-size: .85rem; color: var(--steel-400);
}
.footer-note p { margin: 0; color: var(--steel-400); }

.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	width: 46px; height: 46px; border-radius: var(--radius); border: 0; cursor: pointer;
	background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .25s var(--ease); box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red-deep); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   15. Reveal-on-scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   16. Utilities & notices
   ========================================================================== */

@media (max-width: 900px) {
	.page-layout { grid-template-columns: 1fr !important; }
	.page-aside { order: 2; }
}

.page-aside { position: sticky; top: 108px; }
@media (max-width: 900px) { .page-aside { position: static; } }

.breadcrumbs .is-current { color: var(--mist-200); }

.notice-box {
	border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem;
	border-left: 3px solid var(--red); background: #fff; box-shadow: var(--shadow-sm);
}
.notice-box p { margin: .3rem 0 0; font-size: .95rem; color: var(--steel-500); }
.notice-box--ok { border-left-color: #12866b; }
.notice-box--bad { border-left-color: var(--red); }

.widget { margin-bottom: 1.5rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: .6rem; }

/* ==========================================================================
   17. Print
   ========================================================================== */

@media print {
	.site-header, .topbar, .site-footer, .to-top, .cta-band, .hero__actions { display: none !important; }
	body { color: #000; font-size: 12pt; }
	.hero, .page-hero { background: #fff; color: #000; padding-block: 0; }
	.hero h1, .page-hero h1 { color: #000; }
}
