/*
 * Solution pages — template-parts/solution-page/.
 * Hand-written rather than Tailwind utilities: the compiled tailwind.css can
 * only be rebuilt where Node is available, and this host has none. Enqueued
 * on single solution pages only (inc/enqueue.php).
 */

.sp {
	--sp-navy: #132637;
	--sp-green: #2AB591;
	--sp-green-dark: #1e9476;
	--sp-mint: #EEF9F5;
	--sp-grey: #F9FAFB;
	--sp-muted: #6B7280;
	--sp-line: rgba(0, 0, 0, 0.08);
}

.sp-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.sp-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

.sp-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: var(--sp-green);
}
.sp-eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }

.sp-h2 {
	font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
	color: var(--sp-navy); margin: 1rem 0 0;
}
.sp-lead { color: var(--sp-muted); font-size: 1.125rem; line-height: 1.7; margin: 1.25rem 0 0; }

.sp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .95rem 1.75rem; border-radius: 999px; font-weight: 600; font-size: .9375rem;
	text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn--green { background: var(--sp-green); color: #fff; }
.sp-btn--green:hover { background: #fff; color: var(--sp-navy); }
.sp-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.sp-btn--ghost:hover { background: #fff; color: var(--sp-navy); border-color: #fff; }
.sp-btn--navy { background: var(--sp-navy); color: #fff; }
.sp-btn--navy:hover { background: var(--sp-green); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

/* Layout and type come from the site's Tailwind classes (see hero.php); only
   the wide photo frame and the badge position are defined here. */
.sp-hero__media { position: relative; max-width: 64rem; margin: 4rem auto 0; }
.sp-hero__frame {
	position: relative; overflow: hidden;
	background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 1.5rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.sp-hero__frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
.sp-hero__badge { position: absolute; left: 1rem; bottom: -1.25rem; }

@media (min-width: 768px) {
	.sp-hero__frame img { aspect-ratio: 2 / 1; }
	.sp-hero__badge { left: -2rem; }
}

/* ── Capabilities ───────────────────────────────────────────────────────── */

.sp-caps { background: #fff; padding: 6.5rem 0; }
.sp-caps__head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: 3.5rem; }
.sp-caps__head .sp-lead { margin: 0; }
.sp-caps__grid { display: grid; gap: 1.25rem; }
.sp-cap {
	display: flex; gap: 1.5rem; align-items: flex-start;
	padding: 1.75rem; border: 1px solid var(--sp-line); border-radius: 1.25rem;
	background: #fff; transition: border-color .25s, box-shadow .25s;
}
.sp-cap:hover { border-color: rgba(42, 181, 145, .4); box-shadow: 0 20px 40px -24px rgba(19, 38, 55, .25); }
.sp-cap__icon {
	flex: none; width: 4.5rem; height: 4.5rem; border-radius: 1rem;
	background: var(--sp-mint); display: flex; align-items: center; justify-content: center; padding: .6rem;
}
.sp-cap__icon img { width: 100%; height: 100%; object-fit: contain; }
.sp-cap__num { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--sp-green); }
.sp-cap h3 { font-family: 'Outfit', sans-serif; font-size: 1.1875rem; font-weight: 700; color: var(--sp-navy); margin: .15rem 0 .5rem; line-height: 1.3; }
.sp-cap p { margin: 0; color: var(--sp-muted); font-size: .9375rem; line-height: 1.65; }

/* ── Outcomes (image + copy panels) ─────────────────────────────────────── */

.sp-outcomes { background: #fff; padding: 0 0 6.5rem; }
.sp-outcomes .sp-wrap { display: flex; flex-direction: column; gap: 2rem; }
.sp-outcome {
	display: grid; overflow: hidden;
	background: var(--sp-mint); border-radius: 2rem;
}
.sp-outcome__photo { min-height: 18rem; }
.sp-outcome__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-outcome__body { padding: 2.5rem 2rem; align-self: center; }
.sp-outcome__body .sp-h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); margin-top: 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.sp-chips li {
	display: inline-flex; align-items: center; gap: .5rem;
	background: #fff; color: var(--sp-navy); border: 1px solid rgba(42, 181, 145, .25);
	font-size: .875rem; font-weight: 500; line-height: 1.4;
	padding: .55rem .95rem; border-radius: 999px;
}
.sp-chips li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sp-green); }

/* ── Pillars ────────────────────────────────────────────────────────────── */

.sp-pillars { background: var(--sp-grey); border-top: 1px solid var(--sp-line); padding: 6.5rem 0; }
.sp-pillars__head { text-align: center; max-width: 46rem; margin: 0 auto 4rem; }
.sp-pillars__head .sp-eyebrow::after { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.sp-pillars__grid { display: grid; gap: 2.5rem; counter-reset: pillar; }
.sp-pillar { border-top: 3px solid var(--sp-navy); padding-top: 1.75rem; }
.sp-pillar:first-child { border-top-color: var(--sp-green); }
.sp-pillar__num {
	display: block; font-family: 'Outfit', sans-serif; font-weight: 700;
	font-size: 3.25rem; line-height: 1; color: rgba(42, 181, 145, .35); margin-bottom: 1rem;
}
.sp-pillar h3 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--sp-navy); margin: 0 0 .75rem; line-height: 1.3; }
.sp-pillar p { margin: 0; color: var(--sp-muted); font-size: .9375rem; line-height: 1.7; }
.sp-pillars__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin-top: 3.5rem; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.sp-faq { background: #fff; padding: 6.5rem 0; }
.sp-faq__head { text-align: center; margin-bottom: 3rem; }
.sp-faq__list { border-top: 1px solid var(--sp-line); }
.sp-faq details { border-bottom: 1px solid var(--sp-line); }
.sp-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.5rem 0; cursor: pointer; list-style: none;
	font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--sp-navy);
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary:hover { color: var(--sp-green-dark); }
.sp-faq__icon {
	flex: none; position: relative; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--sp-mint); transition: background-color .25s, transform .25s;
}
.sp-faq__icon::before, .sp-faq__icon::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: .75rem; height: 2px;
	background: var(--sp-green-dark); border-radius: 2px; transform: translate(-50%, -50%);
}
.sp-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.sp-faq details[open] .sp-faq__icon { background: var(--sp-green); }
.sp-faq details[open] .sp-faq__icon::before,
.sp-faq details[open] .sp-faq__icon::after { background: #fff; }
.sp-faq details[open] .sp-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.sp-faq details p { margin: 0; padding: 0 3.5rem 1.75rem 0; color: var(--sp-muted); font-size: 1rem; line-height: 1.75; }

/* ── Breakpoints ────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
	.sp-caps__grid { grid-template-columns: repeat(2, 1fr); }
	.sp-pillars__grid { grid-template-columns: repeat(3, 1fr); }
	.sp-outcome { grid-template-columns: 1fr 1fr; }
	.sp-outcome__photo { min-height: 26rem; }
	.sp-outcome--flip .sp-outcome__photo { order: 2; }
	.sp-outcome__body { padding: 3.5rem; }
}

@media (min-width: 1024px) {
	.sp-caps { padding: 8rem 0; }
	.sp-caps__head { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
	.sp-outcome__body { padding: 4rem 4.5rem; }
	.sp-outcomes { padding-bottom: 8rem; }
	.sp-pillars, .sp-faq { padding: 8rem 0; }
}

@media (max-width: 639px) {
	.sp-cap { flex-direction: column; gap: 1rem; }
	.sp-faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sp-btn, .sp-btn:hover { transition: none; transform: none; }
}
