/* =============================================================
   ARADEL – WHAT SETS US APART
   File: aradel-what-sets-us-apart/assets/aradel-what-sets-us-apart.css

   Section sits on page background (white/light) — no coloured band.
   Cards use soft pastel backgrounds driven by card_tone:
     warm → #FFE6D8 | cool → #D9E0E1 | mint → #D6ECE3
   The inline CSS custom property --wsu-card-bg is set per card in PHP.

   CTA circle: tone="sherpa" (#01303A) — fixed on all card tones.
   Own .ar-wsu prefix throughout — no dependency on other modules.
   ============================================================= */

/* ── Box-sizing scope ────────────────────────────────────────────────────── */

.ar-wsu-section *,
.ar-wsu-section *::before,
.ar-wsu-section *::after {
	box-sizing: border-box;
}

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.ar-wsu-section {
	padding-top: 0;
	padding-bottom: 120px;
	background: transparent;
}

/* ── Inner container ─────────────────────────────────────────────────────── */

.ar-wsu-inner {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 112px;
	padding-right: 112px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */

.ar-wsu__eyebrow {
	color: #C1000F;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1.28px;
	text-transform: uppercase;
	margin: 0 0 24px;
}

/* ── Section heading ─────────────────────────────────────────────────────── */

.ar-wsu__heading {
	font-family: var(--ads-font, "Nunito Sans", sans-serif);
	font-size: 48px;
	font-weight: 400;
	line-height: 64px;
	letter-spacing: 0.014px;
	color: #000000;
	margin: 0 0 56px;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
/*
   3 columns on desktop. !important required — Bricks overrides
   grid containers inside shortcode output with display:flex.
*/

.ar-wsu__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	align-items: stretch;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.ar-wsu__card {
	background: var(--wsu-card-bg, #D9E0E1);
	border-radius: 20px;
	padding: 40px 36px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	/* Entrance animation start state */
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1),
	            transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
	transition-delay: var(--ar-wsu-delay, 0ms);
}

.ar-wsu__card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ar-wsu__card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ── Card body ───────────────────────────────────────────────────────────── */

.ar-wsu__card-body {
	flex: 1;
}

.ar-wsu__card-title {
	font-family: var(--ads-font, "Nunito Sans", sans-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: 0.006em;
	color: #000000;
	margin: 0 0 20px;
}

.ar-wsu__card-preview {
	font-family: var(--ads-font, "Nunito Sans", sans-serif);
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: #000000;
	margin: 0;
}

/* ── Card CTA ────────────────────────────────────────────────────────────── */

.ar-wsu__card-cta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
}

/* Modal trigger span */
.ar-wsu__modal-trigger {
	display: inline-block;
	cursor: pointer;
	/* pointer-events left intact — WAAPI circle animation must fire normally */
}

/* =============================================================
   MODAL SYSTEM
   Scoped to .ar-wsu__modal-overlay
   Mirrors aradel-related-resources modal pattern exactly.
   Own selectors — no cross-module dependency.
   ============================================================= */

/* Hidden template containers */
.ar-wsu__modal-tpl {
	display: none;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.ar-wsu__modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Keep in DOM for transition */
.ar-wsu__modal-overlay[hidden] {
	display: flex !important;
}

.ar-wsu__modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ── Backdrop ────────────────────────────────────────────────────────────── */

.ar-wsu__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* ── Modal panel ─────────────────────────────────────────────────────────── */

.ar-wsu__modal-panel {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10), 0 4px 16px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	transform: scale(0.96) translateY(8px);
	transition: transform 0.25s ease;
}

.ar-wsu__modal-overlay.is-open .ar-wsu__modal-panel {
	transform: scale(1) translateY(0);
}

/* ── Close button ────────────────────────────────────────────────────────── */

.ar-wsu__modal-close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #F3F3F3;
	color: #01303A;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
	z-index: 2;
}

.ar-wsu__modal-close:hover {
	background: #01303A;
	color: #ffffff;
}

.ar-wsu__modal-close:focus-visible {
	outline: 2px solid #C1000F;
	outline-offset: 3px;
}

/* ── Modal inner ─────────────────────────────────────────────────────────── */

.ar-wsu__modal-inner {
	padding: 56px 56px 64px;
}

/* ── Modal title ─────────────────────────────────────────────────────────── */

.ar-wsu__modal-title {
	margin: 0;
	color: #000000;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 64px;
	letter-spacing: 0.014px;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.ar-wsu__modal-divider {
	height: 1px;
	background: #000000;
	margin: 50px 0;
}

/* ── Modal body copy ─────────────────────────────────────────────────────── */

.ar-wsu__modal-body {
	color: #000000;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
}

.ar-wsu__modal-body p {
	margin: 0 0 18px;
}

.ar-wsu__modal-body p:last-child {
	margin-bottom: 0;
}

.ar-wsu__modal-body ul,
.ar-wsu__modal-body ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.ar-wsu__modal-body li {
	margin-bottom: 8px;
}

/* ── Body scroll lock ────────────────────────────────────────────────────── */

body.ar-wsu-modal-open {
	overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.ar-wsu-inner {
		padding-left: 64px;
		padding-right: 64px;
	}

	.ar-wsu__heading {
		font-size: 38px;
		line-height: 48px;
		margin-bottom: 40px;
	}

	.ar-wsu__modal-inner {
		padding: 48px 40px 56px;
	}

	.ar-wsu__modal-title {
		font-size: 36px;
		line-height: 48px;
	}
}

@media (max-width: 768px) {
	.ar-wsu-section {
		padding-bottom: 72px;
	}

	.ar-wsu-inner {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ar-wsu__eyebrow {
		margin-bottom: 16px;
	}

	.ar-wsu__heading {
		font-size: 28px;
		line-height: 38px;
		margin-bottom: 32px;
	}

	/* Tablet: 2 columns */
	.ar-wsu__grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.ar-wsu__card {
		padding: 32px 28px 28px;
	}

	.ar-wsu__card-title {
		font-size: 24px;
		line-height: 32px;
	}

	.ar-wsu__card-preview {
		font-size: 16px;
		line-height: 25px;
	}
}

@media (max-width: 480px) {
	.ar-wsu-section {
		padding-bottom: 48px;
	}

	/* Mobile: 1 column */
	.ar-wsu__grid {
		grid-template-columns: 1fr !important;
	}

	.ar-wsu__card {
		padding: 28px 24px 24px;
	}
}

@media (max-width: 640px) {
	.ar-wsu__modal-inner {
		padding: 48px 28px 48px;
	}

	.ar-wsu__modal-title {
		font-size: 28px;
		line-height: 38px;
	}

	.ar-wsu__modal-divider {
		margin: 32px 0;
	}

	.ar-wsu__modal-body {
		font-size: 16px;
		line-height: 25px;
	}
}
