/* =============================================================
   ARADEL – OPERATIONS STRATEGY CARDS
   File: aradel-operations-strategy-cards/assets/aradel-operations-strategy-cards.css

   Section sits on a light neutral background (#F0F0F0).
   Cards are rich gradient surfaces:
     - Energy Transition: orange → burnt-orange → Sherpa Blue
     - Renewable Energy:  Earth Green → deep green → Sherpa Blue
   CTA circle: tone="white" — white circle on dark gradient.

   Modal body is white. Accent bar at top is skin-coloured.

   Prefix: ar-osc (aradel operations strategy cards).
   No dependency on aradel-related-resources or aradel-prosperity-cards.
   ============================================================= */

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

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

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

.ar-osc-section {
	padding-top: 120px;
	padding-bottom: 120px;
	background: #F0F0F0;
}

#ar-operations-strategy-cards {
	scroll-margin-top: 120px;
}

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

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

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

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

/* ── Grid ────────────────────────────────────────────────────────────────── */
/*
   2 equal columns on desktop. !important guards against Bricks
   overriding display on shortcode containers.
*/

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

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

.ar-osc__card {
	border-radius: 20px;
	padding: 48px 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	overflow: hidden;
	/* Entrance animation start state */
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
	            transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	transition-delay: var(--ar-osc-delay, 0ms);
}

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

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

/* ── Card skin: Energy Transition ────────────────────────────────────────── */

.ar-osc__card--energy_transition {
	background: linear-gradient(
		145deg,
		#F36417 0%,
		#8B1A00 55%,
		#01303A 100%
	);
}

/* ── Card skin: Renewable Energy ─────────────────────────────────────────── */

.ar-osc__card--renewable_energy {
	background: linear-gradient(
		145deg,
		#0A7060 0%,
		#005A4E 45%,
		#01303A 100%
	);
}

/* ── Card body (title + teaser) ──────────────────────────────────────────── */

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

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

.ar-osc__card-teaser {
	font-family: var(--ads-font, "Nunito Sans", sans-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 27px;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

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

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

/* Modal trigger span */
.ar-osc__modal-trigger {
	display: inline-block;
	cursor: pointer;
}

/* Ensure white circle on dark gradient cards */
.ar-osc__card .ar-action[data-tone="white"] .ar-action__circle {
	border-color: rgba(255, 255, 255, 0.5);
}

.ar-osc__card .ar-action[data-tone="white"]:hover .ar-action__circle,
.ar-osc__card .ar-action[data-tone="white"]:focus-within .ar-action__circle {
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}

/* =============================================================
   MODAL SYSTEM
   Scoped to .ar-osc__modal-* selectors.
   White reading surface. Skin-specific accent bar at top.
   Own selectors — no dependency on aradel-related-resources.
   ============================================================= */

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

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

.ar-osc__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-osc__modal-overlay[hidden] {
	display: flex !important;
}

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

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

.ar-osc__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 48, 58, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

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

.ar-osc__modal-panel {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 800px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	transform: scale(0.96) translateY(10px);
	transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ── Accent bar (top of modal, skin-coloured) ────────────────────────────── */

.ar-osc__modal-accent-bar {
	height: 5px;
	border-radius: 20px 20px 0 0;
	background: #606060; /* default fallback */
	transition: background 0.2s ease;
}

.ar-osc__modal-panel--energy_transition .ar-osc__modal-accent-bar {
	background: linear-gradient(90deg, #F36417 0%, #C1000F 100%);
}

.ar-osc__modal-panel--renewable_energy .ar-osc__modal-accent-bar {
	background: linear-gradient(90deg, #005A4E 0%, #9FD4BE 100%);
}

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

.ar-osc__modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	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-osc__modal-close:hover {
	background: #01303A;
	color: #ffffff;
}

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

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

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

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

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

/* ── Skin-specific title accent ──────────────────────────────────────────── */

.ar-osc__modal-panel--energy_transition .ar-osc__modal-title {
	color: #8B1A00;
}

.ar-osc__modal-panel--renewable_energy .ar-osc__modal-title {
	color: #005A4E;
}

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

.ar-osc__modal-divider {
	height: 1px;
	background: #E0E0E0;
	margin: 40px 0;
}

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

.ar-osc__modal-body {
	color: #333333;
	font-family: "Nunito Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
}

.ar-osc__modal-body p {
	margin: 0 0 20px;
}

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

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

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

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

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

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

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

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

	.ar-osc__card {
		padding: 40px 36px 32px;
	}

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

	.ar-osc__modal-title {
		font-size: 38px;
		line-height: 50px;
	}
}

@media (max-width: 768px) {
	.ar-osc-section {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	#ar-operations-strategy-cards {
		scroll-margin-top: 96px;
	}

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

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

	/* Tablet: stack to 1 column for cleaner spacing */
	.ar-osc__grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}

	.ar-osc__card {
		padding: 36px 32px 28px;
		gap: 32px;
	}

	.ar-osc__card-title {
		font-size: 26px;
		line-height: 34px;
	}

	.ar-osc__card-teaser {
		font-size: 16px;
		line-height: 25px;
	}
}

@media (max-width: 480px) {
	.ar-osc-section {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	#ar-operations-strategy-cards {
		scroll-margin-top: 80px;
	}

	.ar-osc__card {
		padding: 32px 28px 24px;
	}
}

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

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

	.ar-osc__modal-divider {
		margin: 28px 0;
	}

	.ar-osc__modal-body {
		font-size: 16px;
		line-height: 26px;
	}
}
