/**
 * Our Local Collective — global chrome (header, footer, content pages)
 */

body.olc-has-chrome {
	padding-top: var(--olc-header-h);
	font-family: var(--olc-body);
	color: var(--olc-ink);
	background: var(--olc-soft);
}

/* Plugin blank-canvas templates: no marketing chrome offset */
body.plugin-fullpage {
	padding-top: 0;
}

/* Marketplace cart is not part of the contractor OS launch. */
body.olc-has-chrome .knx-cart-drawer,
body.plugin-fullpage .knx-cart-drawer,
body .knx-cart-drawer {
	display: none !important;
}

.olc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
	height: var(--olc-header-h);
	background: rgba(15, 23, 51, 0.92);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
}

.olc-header__inner {
	height: 100%;
	width: min(calc(100% - 32px), var(--olc-shell));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
}

.olc-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
	color: #fff;
}

.olc-header__mark {
	width: 48px;
	height: 32px;
	flex: 0 0 48px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 4px;
	border-radius: 3px;
	background: #f3efe6;
	overflow: hidden;
}

.olc-header__mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.olc-header__name {
	font-family: var(--olc-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.olc-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.olc-nav a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: var(--olc-radius);
}

.olc-nav a:hover,
.olc-nav a[aria-current="page"] {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.olc-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	margin-left: 4px;
	border-radius: var(--olc-radius);
	background: var(--olc-gold);
	color: var(--olc-navy-deep) !important;
	font-family: var(--olc-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
}

.olc-header__cta:hover {
	filter: brightness(1.05);
	background: var(--olc-gold);
}

.olc-header__toggle {
	display: none;
	margin-left: auto;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--olc-radius);
	background: transparent;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.olc-site-footer {
	padding: 40px 0 48px;
	background: var(--olc-navy-deep);
	color: rgba(255, 255, 255, 0.72);
	margin-top: auto;
}

.olc-site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 28px;
}

.olc-site-footer__lockup {
	display: inline-block;
	margin: 0 0 14px;
	padding: 12px 14px 10px;
	background: #000;
	border-radius: 4px;
	line-height: 0;
}

.olc-site-footer__lockup img {
	display: block;
	width: 180px;
	height: auto;
}

.olc-site-footer__brand {
	margin: 0 0 8px;
	font-family: var(--olc-display);
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
}

.olc-site-footer__tag {
	margin: 0;
	max-width: 28rem;
	line-height: 1.5;
	font-size: 0.95rem;
}

.olc-site-footer h3 {
	margin: 0 0 12px;
	font-family: var(--olc-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--olc-gold);
}

.olc-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.olc-site-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-weight: 600;
}

.olc-site-footer a:hover {
	color: var(--olc-gold);
}

/* Content pages (legal, about, contact, trade) */
.olc-page {
	padding: 40px 0 64px;
}

.olc-page__title {
	margin: 0 0 12px;
	font-family: var(--olc-display);
	font-size: clamp(2rem, 4.5vw, 2.8rem);
	font-weight: 800;
	color: var(--olc-navy);
	line-height: 1.05;
}

.olc-page__lead {
	margin: 0 0 28px;
	max-width: 40rem;
	color: var(--olc-muted);
	font-size: 1.08rem;
	line-height: 1.55;
}

.olc-page .entry-content,
.olc-page__body {
	max-width: 720px;
	line-height: 1.65;
	color: var(--olc-ink);
}

.olc-page .entry-content h2,
.olc-page__body h2 {
	font-family: var(--olc-display);
	color: var(--olc-navy);
	margin-top: 1.6em;
}

.olc-page .entry-content a,
.olc-page__body a {
	color: var(--olc-navy-mid);
	font-weight: 600;
}

.olc-trade-hero {
	padding: 48px 0 36px;
	background: var(--olc-navy-deep);
	color: #fff;
	margin: calc(-1 * var(--olc-header-h)) 0 0;
	padding-top: calc(var(--olc-header-h) + 48px);
}

.olc-trade-hero h1 {
	margin: 0 0 12px;
	font-family: var(--olc-display);
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.05;
}

.olc-trade-hero p {
	margin: 0 0 24px;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.08rem;
	line-height: 1.5;
}

/* Audience path cards (home + contact) */
.olc-paths__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.olc-path {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 24px;
	border-radius: 6px;
	border: 1px solid var(--olc-line);
	background: var(--olc-paper);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s var(--olc-ease), border-color 0.3s ease;
}

.olc-path:hover {
	transform: translateY(-3px);
	border-color: rgba(27, 42, 94, 0.35);
}

.olc-path--navy {
	background: var(--olc-navy);
	border-color: var(--olc-navy);
	color: #fff;
}

.olc-path__kicker {
	margin: 0;
	font-family: var(--olc-display);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--olc-gold-deep);
}

.olc-path--navy .olc-path__kicker {
	color: var(--olc-gold);
}

.olc-path h3 {
	margin: 0;
	font-family: var(--olc-display);
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--olc-navy);
}

.olc-path--navy h3 {
	color: #fff;
}

.olc-path p {
	margin: 0;
	color: var(--olc-muted);
	line-height: 1.5;
	flex: 1;
}

.olc-path--navy p {
	color: rgba(255, 255, 255, 0.78);
}

.olc-path__cta {
	margin-top: 10px;
	font-family: var(--olc-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--olc-navy-mid);
}

.olc-path--navy .olc-path__cta {
	color: var(--olc-gold);
}

.olc-city-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.olc-city-list li {
	padding: 8px 12px;
	border: 1px solid var(--olc-line);
	border-radius: 999px;
	background: var(--olc-paper);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--olc-navy);
}

@media (max-width: 860px) {
	.olc-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.olc-nav {
		display: none;
		position: absolute;
		top: var(--olc-header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		background: var(--olc-navy-deep);
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.olc-header.is-open .olc-nav {
		display: flex;
	}

	.olc-nav a,
	.olc-header__cta {
		width: 100%;
		margin: 0;
		justify-content: flex-start;
		padding: 12px 14px;
	}

	.olc-site-footer__grid {
		grid-template-columns: 1fr;
	}

	.olc-paths__grid {
		grid-template-columns: 1fr;
	}
}
