/*
Theme Name: Velocity Infra Marketplace
Theme URI: https://example.com/velocity-infra-marketplace
Author: Codex
Author URI: https://openai.com
Description: A full-fledged IT infrastructure and data center procurement marketplace theme with service listings, RFQ intake, comparison pages, and demo content setup.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velocity-infra-marketplace
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, one-column, two-columns, e-commerce
*/

:root {
	--vim-red: #e10619;
	--vim-red-dark: #a90413;
	--vim-charcoal: #15171b;
	--vim-charcoal-2: #22262d;
	--vim-ink: #111318;
	--vim-silver: #d9dde3;
	--vim-silver-2: #f0f2f5;
	--vim-white: #ffffff;
	--vim-steel: #69717f;
	--vim-green: #23b26d;
	--vim-border: rgba(21, 23, 27, 0.14);
	--vim-shadow: 0 18px 40px rgba(21, 23, 27, 0.16);
	--vim-radius: 8px;
	--vim-container: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--vim-white);
	color: var(--vim-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--vim-red);
}

button,
input,
select,
textarea {
	font: inherit;
}

.container {
	width: min(100% - 32px, var(--vim-container));
	margin: 0 auto;
}

.narrow-content {
	max-width: 860px;
}

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

.skip-link:focus {
	z-index: 1000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--vim-red);
	color: var(--vim-white);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(21, 23, 27, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 22px;
	min-height: 78px;
}

.site-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--vim-white);
}

.site-brand:hover,
.site-brand:focus {
	color: var(--vim-white);
}

.site-brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: var(--vim-red);
	color: var(--vim-white);
	font-weight: 900;
	border-radius: 6px;
	box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.18);
}

.site-brand strong {
	display: block;
	font-size: 1rem;
	line-height: 1.1;
	text-transform: uppercase;
}

.site-brand small {
	display: block;
	color: var(--vim-silver);
	font-size: 0.75rem;
	line-height: 1.2;
}

.primary-nav ul,
.site-footer ul {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav {
	justify-self: end;
}

.primary-nav a {
	color: var(--vim-silver-2);
	font-size: 0.92rem;
	font-weight: 750;
}

.primary-nav a:hover,
.primary-nav a:focus {
	color: var(--vim-white);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	border-radius: 6px;
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--vim-white);
}

.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 18px;
	border: 2px solid var(--vim-red);
	background: var(--vim-red);
	color: var(--vim-white);
	font-weight: 850;
	line-height: 1.1;
	border-radius: 6px;
	box-shadow: 0 10px 22px rgba(225, 6, 25, 0.25);
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
	background: var(--vim-red-dark);
	border-color: var(--vim-red-dark);
	color: var(--vim-white);
	transform: translateY(-1px);
}

.button--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--vim-charcoal);
	box-shadow: none;
}

.hero .button--ghost,
.section--charcoal .button--ghost,
.site-header__cta {
	color: var(--vim-white);
}

.button--large {
	min-height: 52px;
	padding: 14px 22px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	color: var(--vim-red);
	font-weight: 850;
}

.text-link::after {
	content: ">";
	margin-left: 8px;
}

.hero,
.page-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(115deg, rgba(225, 6, 25, 0.95) 0 6px, transparent 6px 34px),
		linear-gradient(135deg, #15171b 0%, #20242b 58%, #303640 100%);
	color: var(--vim-white);
}

.hero {
	padding: 86px 0 34px;
}

.hero::after,
.page-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 8px;
	background: repeating-linear-gradient(90deg, var(--vim-red) 0 80px, var(--vim-silver) 80px 104px, transparent 104px 140px);
}

.hero__grid,
.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
	align-items: center;
	gap: 44px;
}

.hero__content {
	max-width: 720px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--vim-red);
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section--charcoal .eyebrow {
	color: var(--vim-silver);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	background: currentColor;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 14px;
	color: inherit;
	line-height: 1.08;
	font-weight: 950;
}

h1 {
	font-size: 4.6rem;
	max-width: 12ch;
}

h2 {
	font-size: 2.8rem;
}

h3 {
	font-size: 1.18rem;
}

p {
	margin: 0 0 18px;
}

.hero p,
.page-hero p {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.08rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0;
}

.hero__visual {
	margin: 0;
	padding: 18px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--vim-radius);
	box-shadow: var(--vim-shadow);
}

.metric-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	max-width: 620px;
}

.metric-strip div,
.status-stack div,
.service-detail-panel,
.filter-panel,
.quote-aside {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--vim-radius);
}

.metric-strip div {
	padding: 14px;
}

.metric-strip strong {
	display: block;
	color: var(--vim-white);
	font-size: 1.45rem;
	line-height: 1;
}

.metric-strip span {
	color: var(--vim-silver);
	font-size: 0.85rem;
}

.section {
	padding: 80px 0;
}

.section--silver {
	background: var(--vim-silver-2);
}

.section--charcoal {
	background: var(--vim-charcoal);
	color: var(--vim-white);
}

.section__header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 20px;
	margin-bottom: 28px;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.service-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-radius: var(--vim-radius);
	box-shadow: 0 12px 28px rgba(21, 23, 27, 0.08);
}

.service-card[hidden] {
	display: none;
}

.service-card__visual {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	height: 92px;
	padding: 14px;
	background:
		linear-gradient(135deg, rgba(225, 6, 25, 0.92), rgba(225, 6, 25, 0.18)),
		var(--vim-charcoal);
}

.service-card__visual span {
	display: block;
	border-radius: 4px;
	background: linear-gradient(180deg, #eef1f5, #8d96a4);
	box-shadow: inset 0 -18px 0 rgba(21, 23, 27, 0.22);
}

.service-card__body {
	flex: 1;
	padding: 22px;
}

.service-card h3 a {
	color: var(--vim-charcoal);
}

.service-card p {
	color: #454c57;
}

.badge {
	display: inline-flex;
	margin-bottom: 12px;
	padding: 5px 9px;
	background: rgba(225, 6, 25, 0.1);
	color: var(--vim-red-dark);
	border: 1px solid rgba(225, 6, 25, 0.22);
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 900;
	text-transform: uppercase;
}

.fact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.fact-grid div {
	min-width: 0;
	padding: 12px;
	background: var(--vim-silver-2);
	border-left: 4px solid var(--vim-red);
}

.fact-grid--compact {
	grid-template-columns: 1fr;
}

.fact-grid dt {
	color: var(--vim-steel);
	font-size: 0.75rem;
	font-weight: 850;
	text-transform: uppercase;
}

.fact-grid dd {
	margin: 0;
	color: var(--vim-charcoal);
	font-weight: 850;
	overflow-wrap: anywhere;
}

.service-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0 22px 22px;
}

.split,
.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.48fr);
	gap: 34px;
	align-items: start;
}

.sourcing-flow {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.sourcing-flow article {
	padding: 20px;
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-top: 5px solid var(--vim-red);
	border-radius: var(--vim-radius);
	box-shadow: 0 10px 24px rgba(21, 23, 27, 0.08);
}

.sourcing-flow span {
	display: inline-flex;
	margin-bottom: 16px;
	color: var(--vim-red);
	font-size: 1.35rem;
	font-weight: 950;
}

.cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.page-hero {
	padding: 72px 0 58px;
}

.page-hero h1 {
	max-width: 14ch;
}

.filter-panel,
.status-stack,
.service-detail-panel {
	padding: 22px;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.filter-chips button {
	min-height: 36px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--vim-white);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 6px;
	font-weight: 850;
	cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button:focus,
.filter-chips button.is-active {
	background: var(--vim-red);
	border-color: var(--vim-red);
	color: var(--vim-white);
}

.filter-panel label,
.quote-form label {
	display: grid;
	gap: 8px;
	color: var(--vim-charcoal);
	font-weight: 850;
}

.page-hero .filter-panel label {
	color: var(--vim-white);
}

input,
select,
textarea {
	width: 100%;
	min-height: 46px;
	padding: 12px 13px;
	background: var(--vim-white);
	color: var(--vim-charcoal);
	border: 1px solid var(--vim-border);
	border-radius: 6px;
}

textarea {
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	outline: 3px solid rgba(225, 6, 25, 0.18);
	border-color: var(--vim-red);
}

.status-stack {
	display: grid;
	gap: 12px;
	background: transparent;
	border: 0;
}

.status-stack div {
	padding: 16px;
}

.status-stack strong {
	display: block;
	color: var(--vim-white);
}

.status-stack span {
	color: var(--vim-silver);
}

.quote-form {
	padding: 26px;
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-radius: var(--vim-radius);
	box-shadow: var(--vim-shadow);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.form-grid__wide {
	grid-column: 1 / -1;
}

.notice-banner {
	margin-bottom: 18px;
	padding: 14px 16px;
	background: rgba(35, 178, 109, 0.12);
	border: 1px solid rgba(35, 178, 109, 0.36);
	border-left: 5px solid var(--vim-green);
	border-radius: var(--vim-radius);
	font-weight: 800;
}

.search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	max-width: 680px;
}

.search-form label {
	display: block;
}

.no-results {
	margin: 18px 0 0;
	padding: 16px;
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-left: 5px solid var(--vim-red);
	border-radius: var(--vim-radius);
	font-weight: 850;
}

.assurance-grid,
.compare-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.assurance-grid article,
.compare-summary div,
.procurement-brief,
.solution-checklist {
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-radius: var(--vim-radius);
	box-shadow: 0 12px 28px rgba(21, 23, 27, 0.08);
}

.assurance-grid article {
	padding: 24px;
}

.assurance-grid article > span {
	display: block;
	width: 44px;
	height: 8px;
	margin-bottom: 18px;
	background: var(--vim-red);
	border-radius: 4px;
}

.assurance-grid h3 {
	color: var(--vim-charcoal);
}

.assurance-grid p {
	color: #454c57;
}

.section--charcoal .assurance-grid article {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

.section--charcoal .assurance-grid h3,
.section--charcoal .assurance-grid p {
	color: var(--vim-white);
}

.compare-summary {
	margin-bottom: 18px;
}

.compare-summary div {
	padding: 18px;
	border-top: 5px solid var(--vim-red);
}

.compare-summary strong {
	display: block;
	color: var(--vim-red);
	font-size: 2.1rem;
	line-height: 1;
}

.compare-summary span {
	color: var(--vim-steel);
	font-weight: 800;
}

.compare-shell {
	overflow-x: auto;
	border: 1px solid var(--vim-border);
	border-radius: var(--vim-radius);
	box-shadow: var(--vim-shadow);
}

.compare-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	background: var(--vim-white);
}

.compare-table th,
.compare-table td {
	padding: 16px;
	text-align: left;
	border-bottom: 1px solid var(--vim-border);
}

.compare-table thead {
	background: var(--vim-charcoal);
	color: var(--vim-white);
}

.compare-table tbody th {
	color: var(--vim-red-dark);
}

.entry-card,
.page-entry,
.quote-aside {
	padding: 24px;
	background: var(--vim-white);
	border: 1px solid var(--vim-border);
	border-radius: var(--vim-radius);
	box-shadow: 0 10px 26px rgba(21, 23, 27, 0.08);
}

.post-list {
	display: grid;
	gap: 18px;
}

.entry-meta {
	margin-bottom: 12px;
	color: var(--vim-steel);
	font-weight: 750;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	color: var(--vim-red);
	font-weight: 800;
}

.page-header {
	margin-bottom: 28px;
}

.page-header h1 {
	max-width: 16ch;
}

.service-detail-panel {
	background: var(--vim-white);
}

.service-detail-panel .fact-grid {
	grid-template-columns: 1fr;
}

.procurement-brief,
.solution-checklist {
	margin-bottom: 24px;
	padding: 24px;
}

.brief-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.brief-grid div {
	min-width: 0;
	padding: 14px;
	background: var(--vim-silver-2);
	border-left: 4px solid var(--vim-red);
}

.brief-grid span {
	display: block;
	color: var(--vim-steel);
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
}

.brief-grid strong {
	display: block;
	color: var(--vim-charcoal);
	overflow-wrap: anywhere;
}

.solution-checklist ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.solution-checklist li {
	position: relative;
	padding-left: 28px;
	font-weight: 750;
}

.solution-checklist li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 14px;
	height: 4px;
	background: var(--vim-red);
}

.site-footer {
	padding: 56px 0 22px;
	background: #101216;
	color: var(--vim-silver-2);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.7fr 1fr;
	gap: 34px;
}

.site-footer h2 {
	font-size: 1rem;
	text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.footer-bottom {
	color: var(--vim-silver);
}

.site-footer ul {
	display: grid;
	gap: 10px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.88rem;
}

.wp-block-image img,
.wp-caption {
	border-radius: var(--vim-radius);
}

.navigation.pagination {
	margin-top: 24px;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	min-height: 38px;
	padding: 8px;
	background: var(--vim-silver-2);
	border-radius: 6px;
	font-weight: 800;
}

.page-numbers.current {
	background: var(--vim-red);
	color: var(--vim-white);
}

.vim-admin-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

@media (max-width: 980px) {
	.site-header__inner {
		grid-template-columns: auto auto;
	}

	.primary-nav,
	.site-header__cta {
		display: none;
	}

	.primary-nav.is-open {
		display: block;
		grid-column: 1 / -1;
		justify-self: stretch;
		padding-bottom: 16px;
	}

	.primary-nav.is-open ul {
		display: grid;
		gap: 10px;
	}

	.menu-toggle {
		display: block;
		justify-self: end;
	}

	.hero__grid,
	.page-hero__grid,
	.split,
	.content-layout,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.assurance-grid,
	.compare-summary,
	.brief-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-top: 62px;
	}

	h1 {
		font-size: 3rem;
		max-width: 14ch;
	}

	h2 {
		font-size: 2.2rem;
	}
}

@media (max-width: 680px) {
	.container {
		width: min(100% - 22px, var(--vim-container));
	}

	.section,
	.page-hero {
		padding: 52px 0;
	}

	.service-grid,
	.sourcing-flow,
	.form-grid,
	.metric-strip,
	.fact-grid,
	.assurance-grid,
	.compare-summary,
	.brief-grid {
		grid-template-columns: 1fr;
	}

	.section__header,
	.cta-band,
	.footer-bottom {
		display: grid;
		grid-template-columns: 1fr;
	}

	.service-card__actions {
		grid-template-columns: 1fr;
	}

	.hero__actions {
		display: grid;
	}

	.hero__visual {
		padding: 10px;
	}

	h1 {
		font-size: 2.35rem;
	}

	h2 {
		font-size: 1.85rem;
	}
}
