/* ═════════════════════════════════════════════════════════════════
   PAGE — OUR PARTNERS
   About → Our Partners page (see /pages/page-our-partners.php).

   Page deltas only — cream background, hero blob decorations,
   4-card partnership options grid, 2-column partner ecosystem grid,
   and the default-orange final CTA with inline hl-line override.

   Class prefix: `.op-*`
   ═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   PAGE BACKGROUND — cream end-to-end until the orange final CTA.
   ───────────────────────────────────────────────────────────────── */
.op-page {
	background: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────
   HERO BAND — eyebrow + display headline + lede + tagline strip.
   Decorative blob layer sits behind content (z-index 0 vs 1).
   ───────────────────────────────────────────────────────────────── */
.op-hero-band {
	padding-top: clamp(100px, 11vw, 144px);
	padding-bottom: 0;
	position: relative;
	overflow-x: clip;
}

/* Decorative blobs — orange-tinted abstract shapes approximating
   the Figma rotated-blur composition on the right half of the hero. */
.op-hero-blobs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}
.op-blob {
	position: absolute;
}
.op-blob-1 {
	width: 52vw;
	height: 130%;
	background: rgba(245, 244, 240, 0.95);
	filter: blur(90px);
	left: -5%;
	top: -15%;
}
.op-blob-2 {
	width: 72vw;
	height: 72vw;
	max-width: 960px;
	max-height: 960px;
	background: rgba(255, 79, 0, 0.07);
	filter: blur(80px);
	border-radius: 50%;
	right: -10%;
	top: -20%;
	opacity: 1;
}
.op-blob-3 {
	width: 50vw;
	height: 28vw;
	max-width: 700px;
	max-height: 380px;
	background: rgba(245, 244, 240, 0.85);
	filter: blur(70px);
	right: -4%;
	bottom: -10%;
	transform: rotate(-48deg);
	transform-origin: center;
}

/* Keep text above blobs */
.op-hero-wrap {
	position: relative;
	z-index: 1;
}

.op-hero-band .hero-bg { 
	/* top: -200px;  */
}

/* Hero headline — two .hl-line rows + right-aligned .it-tail via hero.css */
.op-headline {
	margin: 0 0 clamp(28px, 3.5vw, 50px);
}

.op-lede {
	max-width: 68ch;
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   PARTNERSHIP OPTIONS BAND — heading + lede above the 4-card grid.
   ───────────────────────────────────────────────────────────────── */
.op-options-header {
	margin-bottom: clamp(48px, 5.5vw, 80px);
}

.op-options-headline {
	margin: 0 0 clamp(24px, 3vw, 40px);
}
.op-options-headline .hl-line {
	display: block;
	text-transform: uppercase;
	line-height: clamp(46px, 6.94vw, 100px);
}
.op-options-headline .it-tail.op-options-it-tail {
	display: block;
	text-align: left;
	white-space: normal;
	margin-top: 0;
	line-height: 1.02;
	letter-spacing: 0;
}

.op-options-lede {
	max-width: 80ch;
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   4-CARD GRID — equal-width columns, frosted glass cards.
   align-items: stretch so all cards in a row share the same height,
   letting the tag pin to the bottom via justify-content:
   space-between on each card.
   ───────────────────────────────────────────────────────────────── */
.op-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.5vw, 20px);
	align-items: stretch;
}

.op-card {
	--shimmer-pos: 120%;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid #d7d5d0;
	border-radius: 14px;
	padding: clamp(24px, 2.5vw, 30px) clamp(20px, 2.2vw, 30px) clamp(24px, 2.5vw, 40px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;

	transition:
		--shimmer-pos 0.55s ease,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

.op-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		120deg,
		transparent                   0%,
		transparent                   calc(var(--shimmer-pos) - 28%),
		rgba(255, 255, 255, 0.18)     calc(var(--shimmer-pos) - 12%),
		rgba(255, 255, 255, 0.45)     var(--shimmer-pos),
		rgba(255, 255, 255, 0.18)     calc(var(--shimmer-pos) + 12%),
		transparent                   calc(var(--shimmer-pos) + 28%),
		transparent                   100%
	);
}

.op-card:hover {
	border-color: var(--green);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
	transition:
		--shimmer-pos 0.06s linear,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

.op-card-top {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 24px);
	margin-bottom: clamp(24px, 3vw, 40px);
}

.op-card-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.op-card-num {
	color: var(--green);
	margin: 0;
}

.op-card-title {
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: clamp(28px, 3vw, 42px);
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0;
}

.op-card-body {
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.54;
	color: rgba(26, 26, 26, 0.75);
	margin: 0;
}

.op-card-tag {
	color: var(--green);
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   ECOSYSTEM BAND — heading + lede above the 2-column partner grid.
   ───────────────────────────────────────────────────────────────── */
.op-eco-header {
	margin-bottom: clamp(48px, 5.5vw, 80px);
}

.op-eco-headline {
	margin: 0 0 clamp(24px, 3vw, 40px);
}
.op-eco-headline .hl-line {
	display: block;
	text-transform: uppercase;
	line-height: clamp(46px, 6.94vw, 100px);
}
.op-eco-headline .it-tail.op-eco-it-tail {
	display: block;
	text-align: left;
	white-space: normal;
	margin-top: 0;
	line-height: 1.02;
	letter-spacing: 0;
}

.op-eco-lede {
	max-width: 80ch;
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   PARTNERS GRID — 2-column frosted-glass cards.
   The 7th card (ChexSystems) sits alone in the left column of row 4.
   ───────────────────────────────────────────────────────────────── */
.op-partners-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 1.5vw, 20px);
	align-items: stretch;
}

.op-partner-card {
	--shimmer-pos: 120%;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid #d7d5d0;
	border-radius: 14px;
	padding: clamp(24px, 2.5vw, 30px);
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.2vw, 24px);
	position: relative;
	overflow: hidden;

	transition:
		--shimmer-pos 0.55s ease,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

.op-partner-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		120deg,
		transparent                   0%,
		transparent                   calc(var(--shimmer-pos) - 28%),
		rgba(255, 255, 255, 0.18)     calc(var(--shimmer-pos) - 12%),
		rgba(255, 255, 255, 0.45)     var(--shimmer-pos),
		rgba(255, 255, 255, 0.18)     calc(var(--shimmer-pos) + 12%),
		transparent                   calc(var(--shimmer-pos) + 28%),
		transparent                   100%
	);
}

.op-partner-card:hover {
	border-color: var(--green);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
	transition:
		--shimmer-pos 0.06s linear,
		border-color  0.25s ease,
		transform     0.25s ease,
		box-shadow    0.25s ease;
}

/* Logo area — fixed 86px height matches the Figma spec. */
.op-partner-logo-wrap {
	height: 86px;
	display: flex;
	align-items: center;
}
.op-partner-logo-img {
	max-height: 86px;
	max-width: 260px;
	width: auto;
	object-fit: contain;
	object-position: left center;
}
.op-partner-logo-img--sm {
	max-height: 44px;
}

/* Text fallback rendered when no logo file is available yet. */
.op-partner-logo-text {
	font-family: var(--f-sans);
	font-weight: 600;
	font-size: clamp(18px, 1.8vw, 26px);
	color: var(--ink);
	letter-spacing: -0.02em;
}

.op-partner-content {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 24px);
}

.op-partner-meta {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.op-partner-name {
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(28px, 3vw, 42px);
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--ink);
	margin: 0;
}

.op-partner-role {
	color: var(--green);
	margin: 0;
}

.op-partner-body {
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(16px, 1.5vw, 22px);
	line-height: 1.54;
	color: rgba(26, 26, 26, 0.75);
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   FINAL CTA — orange band with green button (default .finalcta
   colours). Only override needed: force .hl-line inline so it
   shares the same visual line as the italic ".it-tail" ("together").
   ───────────────────────────────────────────────────────────────── */
.op-finalcta h2 .hl-line {
	display: inline;
}


/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.op-card,
	.op-partner-card {
		transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	}
	.op-card::after,
	.op-partner-card::after { display: none; }
}


/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.op-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.op-it-word {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	letter-spacing: -1.4px;
	color: var(--orange);
}

.op-headline .op-hl-mobile { display: none; }

.op-options-headline .op-options-hl-mobile,
.op-options-headline .it-tail.op-options-it-mobile { display: none; }

.op-eco-headline .op-eco-hl-mobile,
.op-eco-headline .it-tail.op-eco-it-mobile { display: none; }

.op-faq .it-tail.faq-it-mobile { display: none; }

@media (max-width: 700px) {
	.op-cards-grid,
	.op-partners-grid {
		grid-template-columns: 1fr;
	}
	.op-headline .op-hl-desktop { display: none; }
	.op-headline .op-hl-mobile  { display: block; }
	.op-options-headline .op-options-hl-desktop,
	.op-options-headline .it-tail.op-options-it-desktop { display: none; }
	.op-options-headline .op-options-hl-mobile,
	.op-options-headline .it-tail.op-options-it-mobile  { display: block; }
	 .it-tail.op-options-it-tail, .op-eco-it-mobile, .op-it-tail, .faq-it-mobile { line-height: clamp(30px, 6.94vw, 90px) !important; }
	 .faq-it-mobile {
		padding-bottom: 20px !important;
	 }
	.op-eco-headline .op-eco-hl-desktop,
	.op-eco-headline .it-tail.op-eco-it-desktop { display: none; }
	.op-eco-headline .op-eco-hl-mobile,
	.op-eco-headline .it-tail.op-eco-it-mobile  { display: block; }
	.op-faq .it-tail.faq-it-desktop { display: none; }
	.op-faq .it-tail.faq-it-mobile  { display: block; }
}
