/**
 * Strategic Objectives page.
 *
 * Loaded alongside strategic-plan.css, which supplies the CARTA tokens, the
 * .csp-bleed / .csp-wrap / .csp-pattern helpers and the button styles. Only the
 * pieces unique to this page live here.
 *
 * Every selector is scoped under .carta-so for the same reason the plan page is
 * scoped under .carta-sp: the Elementor kit stylesheet sets colours for h1 to
 * h6, a and p at one class of specificity and loads after this file, so an
 * unscoped rule would lose the tie.
 */

.carta-so {
	/* Brand palette, taken from the theme's own tokens in theme.css. CARTA's
	   colours are brown, mustard and warm grey. There is no blue in them, and
	   the plan itself uses nothing but warm tones, so the darkest value here is
	   the warm near-black --carta-ink rather than a navy. */
	--cso-gold: #eaaa00;
	--cso-gold-soft: #f3cd73;
	--cso-brown: #8d5523;
	--cso-brown-deep: #6e3f15;
	--cso-ink: #2c2418;
	--cso-cream: #fbf2d4;
	--cso-cream-pale: #fffdf8;
	--cso-paper: #ffffff;
	--cso-text: #2c2418;
	--cso-text-soft: #5c5043;
	--cso-line: rgba(141, 85, 35, .2);

	/* The shared buttons come from strategic-plan.css, whose tokens were drawn
	   from the Power BI report rather than the brand. Re-point them here so the
	   whole page sits on one palette. */
	--csp-gold: #eaaa00;
	--csp-gold-soft: #f3cd73;
	--csp-brown: #8d5523;
	--csp-cream: #fbf2d4;
	--csp-ink: #2c2418;

	--csp-vw: 100vw;

	box-sizing: border-box;
	color: var(--cso-text);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.carta-so *,
.carta-so *::before,
.carta-so *::after {
	box-sizing: inherit;
}

.carta-so p {
	margin: 0 0 1em;
}

/* ------------------------------------------------------------------- intro */

.carta-so .cso-intro {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 72px 0 60px;
	background: linear-gradient(135deg, var(--cso-ink) 0%, #4a2d0b 46%, var(--cso-brown) 100%);
	color: #fff;
}

/* The pattern is blurred by nesting rather than by filtering the masked
   element directly: filters are applied before masking, so a filter on the
   masked layer would blur a flat colour and leave the diamond edges crisp.
   Blurring the parent works on the already-masked child. The child bleeds past
   the edges so the blur does not feather the band's own boundary. */
.carta-so .cso-intro-texture {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	opacity: .045;
	filter: blur(3.5px);
	pointer-events: none;
}

.carta-so .cso-intro-texture .csp-pattern {
	position: absolute;
	inset: -14px;
	display: block;
	color: var(--cso-cream);
}

.carta-so .cso-intro .csp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 7px 16px;
	border: 1px solid rgba(250, 238, 209, .4);
	border-radius: 999px;
	background: rgba(0, 0, 0, .18);
	color: var(--cso-cream);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.carta-so .cso-intro .csp-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--cso-gold);
}

.carta-so.carta-so .cso-intro h1 {
	max-width: 16ch;
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.carta-so .cso-lead {
	max-width: 62ch;
	margin: 0 0 34px;
	color: rgba(255, 255, 255, .9);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
}

/* Jump nav. Five chips that are also the page's table of contents. */
.carta-so .cso-jump {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}

.carta-so .cso-jump a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 15px;
	border: 1px solid rgba(250, 238, 209, .26);
	border-radius: 11px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: .89rem;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.carta-so .cso-jump a:hover {
	background: rgba(239, 164, 0, .18);
	border-color: var(--cso-gold);
	color: #fff;
	transform: translateY(-2px);
}

.carta-so .cso-jump a:focus-visible {
	outline: 3px solid var(--cso-gold);
	outline-offset: 3px;
}

.carta-so .cso-jump-n {
	flex: none;
	padding: 4px 9px;
	border-radius: 7px;
	background: var(--cso-gold);
	color: #241a06;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .04em;
}

/* ------------------------------------------------------------------- cards */

.carta-so .cso-list {
	padding-top: 64px;
	padding-bottom: 20px;
	display: grid;
	gap: 26px;
}

.carta-so .cso-card {
	border: 1px solid var(--cso-line);
	border-radius: 16px;
	background: var(--cso-paper);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(45, 33, 12, .04), 0 14px 34px rgba(45, 33, 12, .06);
	/* Clears the site's fixed header when a jump link lands here. */
	scroll-margin-top: 120px;
}

.carta-so .cso-card-head {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 28px;
	border-left: 5px solid var(--cso-gold);
	background: linear-gradient(90deg, var(--cso-cream) 0%, rgba(250, 238, 209, .34) 100%);
}

.carta-so .cso-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 13px;
	background: var(--cso-gold);
	color: #fff;
}

.carta-so .cso-icon svg {
	width: 27px;
	height: 27px;
}

.carta-so .cso-card-n {
	margin: 0 0 2px;
	color: var(--cso-brown);
	font-size: .73rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.carta-so.carta-so .cso-card-head h2 {
	margin: 0;
	color: var(--cso-brown-deep);
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -.01em;
}

.carta-so .cso-card-body {
	padding: 26px 28px 30px;
}

/* The strategy statement, set apart from the actions beneath it. */
.carta-so .cso-strategy {
	margin: 0 0 26px;
	padding: 18px 20px;
	border-left: 3px solid var(--cso-gold-soft);
	border-radius: 0 10px 10px 0;
	background: var(--cso-cream-pale);
	font-size: 1.02rem;
}

.carta-so .cso-strategy span {
	display: block;
	margin-bottom: 5px;
	color: var(--cso-brown);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.carta-so.carta-so .cso-sub {
	margin: 0 0 14px;
	color: var(--cso-brown);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.carta-so .cso-priorities {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 13px;
}

.carta-so .cso-priorities li {
	position: relative;
	padding-left: 30px;
	color: var(--cso-text);
	font-size: .97rem;
}

/* A small diamond, picking up the motif from the printed plan's borders. */
.carta-so .cso-priorities li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: .62em;
	width: 9px;
	height: 9px;
	background: var(--cso-gold);
	transform: rotate(45deg);
	border-radius: 2px;
}

/* --------------------------------------------------------------------- cta */

.carta-so .cso-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: 46px;
	padding: 60px 0;
	background: var(--cso-cream);
}

.carta-so .cso-cta-texture {
	position: absolute;
	inset: 0;
	z-index: -1;
	color: var(--cso-brown);
	opacity: .07;
	pointer-events: none;
}

.carta-so .cso-cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.carta-so.carta-so .cso-cta h2 {
	margin: 0 0 6px;
	color: var(--cso-ink);
	font-size: clamp(1.4rem, 2.8vw, 2rem);
	font-weight: 800;
}

.carta-so .cso-cta p {
	margin: 0;
	color: var(--cso-text-soft);
}

.carta-so .cso-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ------------------------------------------------------------ narrow view */

@media (max-width: 860px) {
	.carta-so .cso-intro {
		padding: 54px 0 46px;
	}

	.carta-so .cso-list {
		padding-top: 44px;
	}

	.carta-so .cso-card-head {
		align-items: flex-start;
		gap: 14px;
		padding: 18px 20px;
	}

	.carta-so .cso-icon {
		width: 44px;
		height: 44px;
	}

	.carta-so .cso-icon svg {
		width: 23px;
		height: 23px;
	}

	.carta-so .cso-card-body {
		padding: 22px 20px 26px;
	}

	.carta-so .cso-cta-actions .csp-btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.carta-so * {
		transition-duration: .01ms !important;
	}

	.carta-so .cso-jump a:hover {
		transform: none;
	}
}

@media print {
	.carta-so .cso-jump,
	.carta-so .cso-cta {
		display: none;
	}

	.carta-so .cso-card {
		break-inside: avoid;
		box-shadow: none;
	}
}
