/* =============================================
   PAGE: BUSINESS INTELLIGENCE & DATA ANALYTICS
   ============================================= */

/* ── Hero ─────────────────────────────────────── */
.bi-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: center;
	background: linear-gradient(130deg, rgba(10, 35, 66, 0.90) 0%, rgba(31, 119, 180, 0.76) 100%),
		var(--bi-bg, none) center / cover no-repeat;
	overflow: hidden;
}

.bi-hero__deco {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.bi-hero__deco--1 {
	width: 480px;
	height: 480px;
	top: -140px;
	right: -60px;
	background: rgba(255, 191, 0, 0.06);
}

.bi-hero__deco--2 {
	width: 280px;
	height: 280px;
	bottom: -80px;
	left: 30%;
	background: rgba(255, 255, 255, 0.04);
}

.bi-hero__inner {
	position: relative;
	z-index: 1;
	padding: 5.5rem 0;
}

.bi-hero__label {
	display: inline-block;
	padding: 0.375rem 1rem;
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid rgba(255, 191, 0, 0.35);
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #FFBF00;
	margin-bottom: 1.25rem;
}

.bi-hero__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 1.25rem;
	max-width: 720px;
}

.bi-hero__sub {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 620px;
	line-height: 1.75;
	margin: 0 0 2rem;
}

.bi-hero__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: center;
}

.bi-hero__btn--primary {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bi-hero__btn--primary:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

.bi-hero__btn--ghost {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: transparent;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.bi-hero__btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
}

/* ── Problem ──────────────────────────────────── */
.bi-problem {
	padding: 5rem 0;
	background: #fff;
}

.bi-problem__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4.5rem;
	align-items: start;
}

.bi-problem__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #0A2342;
	line-height: 1.15;
	margin: 0 0 1.25rem;
}

.bi-problem__intro {
	font-size: 1rem;
	color: #4B5563;
	line-height: 1.8;
	margin: 0;
}

.bi-problem__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bi-problem__item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 0;
	border-bottom: 1px solid #E5E7EB;
}

.bi-problem__item:first-child {
	padding-top: 0;
}

.bi-problem__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bi-problem__icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(10, 35, 66, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0A2342;
	margin-top: 1px;
}

.bi-problem__text {
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.6;
	margin: 0;
	padding-top: 4px;
}

/* ── Dashboards ───────────────────────────────── */
.bi-dash {
	background: #F4F6F9;
	padding: 5rem 0;
}

.bi-dash__header {
	max-width: 760px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.bi-dash__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #0A2342;
	margin: 0 0 1.25rem;
}

.bi-dash__text {
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.8;
	margin: 0 0 0.875rem;
}

.bi-dash__text:last-of-type {
	margin-bottom: 0;
}

.bi-dash__tableau-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 1.75rem 0 3rem;
	font-size: 0.8125rem;
	color: #4B5563;
}

.bi-dash__tableau-badge img {
	height: 20px;
	width: auto;
}

.bi-dash__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.bi-dash-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #E5E7EB;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bi-dash-card:hover {
	box-shadow: 0 8px 28px rgba(10, 35, 66, 0.10);
	transform: translateY(-3px);
}

.bi-dash-card__img-wrap {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0A2342;
}

.bi-dash-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	display: block;
	transition: transform 0.4s ease;
}

.bi-dash-card:hover .bi-dash-card__img {
	transform: scale(1.03);
}

.bi-dash-card__label {
	padding: 0.875rem 1.125rem;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0A2342;
	margin: 0;
	line-height: 1.35;
}

.bi-dash__below-text {
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.8;
	text-align: center;
	max-width: 680px;
	margin: 2rem auto 3rem;
}

.bi-dash__footer {
	text-align: center;
}

.bi-dash__cta-text {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: #0A2342;
	margin: 0 0 1.5rem;
}

.bi-dash__cta-btn {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bi-dash__cta-btn:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

/* ── Tools ────────────────────────────────────── */
.bi-tools {
	background: #fff;
	padding: 5rem 0;
	border-top: 1px solid #E5E7EB;
}

.bi-tools__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #0A2342;
	text-align: center;
	margin: 0 0 3rem;
}

.bi-tools__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 4rem;
}

.bi-tools__logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bi-tools__logo img {
	height: 36px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	filter: grayscale(100%) opacity(0.55);
	transition: filter 0.3s ease;
}

.bi-tools__logo:hover img {
	filter: grayscale(0%) opacity(1);
}

/* ── Final CTA ────────────────────────────────── */
.bi-cta {
	background: #0A2342;
	padding: 5rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.bi-cta::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(255, 191, 0, 0.05);
	top: -220px;
	left: -100px;
	pointer-events: none;
}

.bi-cta__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
	position: relative;
}

.bi-cta__body {
	max-width: 540px;
	margin: 0 auto 2.5rem;
	color: rgba(203, 213, 225, 0.85);
	font-size: 1.0625rem;
	line-height: 1.75;
	position: relative;
}

.bi-cta__btn {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
	position: relative;
}

.bi-cta__btn:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
	.bi-dash__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bi-hero__inner {
		padding: 4rem 0;
	}

	.bi-problem__body {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.bi-dash__grid {
		grid-template-columns: 1fr;
		max-width: 440px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 2.5rem;
	}

	.bi-tools__logos {
		gap: 1.5rem 2.5rem;
	}
}

@media (max-width: 480px) {
	.bi-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.bi-tools__logo img {
		height: 28px;
	}
}

/* ── Tools note ───────────────────────────────── */
.bi-tools__note {
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.8;
	text-align: center;
	max-width: 760px;
	margin: -2rem auto 3rem;
}

/* ── Dashboard card: clickable ────────────────── */
a.bi-dash-card {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.bi-dash-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 35, 66, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.bi-dash-card:hover .bi-dash-card__overlay,
.bi-dash-card:focus-visible .bi-dash-card__overlay {
	opacity: 1;
}

.bi-dash-card__play-icon {
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.12);
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.bi-dash-card:hover .bi-dash-card__play-icon,
.bi-dash-card:focus-visible .bi-dash-card__play-icon {
	background: rgba(255, 191, 0, 0.25);
	border-color: #FFBF00;
}

.bi-dash-card:focus-visible {
	outline: 3px solid #1F77B4;
	outline-offset: 2px;
}

/* ── Dashboard modal ────────────────────────── */
.bi-dash-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bi-dash-modal.is-open {
	display: flex;
}

.bi-dash-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 35, 66, 0.85);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.bi-dash-modal__content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	width: min(98vw, 1500px);
	height: 94vh;
	max-height: 96vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.40);
	animation: bi-modal-in 0.22s ease;
}

@keyframes bi-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bi-dash-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1.25rem;
	border-bottom: 1px solid #E5E7EB;
	background: #F4F6F9;
	flex-shrink: 0;
}

.bi-dash-modal__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #0A2342;
	margin: 0;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bi-dash-modal__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.bi-dash-modal__ext-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.875rem;
	border: 1.5px solid #1F77B4;
	border-radius: 6px;
	color: #1F77B4;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1;
}

.bi-dash-modal__ext-link:hover {
	background: #1F77B4;
	color: #fff;
}

.bi-dash-modal__close {
	width: 34px;
	height: 34px;
	border: none;
	background: #E5E7EB;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4B5563;
	transition: background 0.2s, color 0.2s;
	padding: 0;
	flex-shrink: 0;
}

.bi-dash-modal__close:hover {
	background: #0A2342;
	color: #fff;
}

.bi-dash-modal__frame-wrap {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: #eef0f4;
}

.bi-dash-modal__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F4F6F9;
	z-index: 2;
}

.bi-dash-modal__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #E5E7EB;
	border-top-color: #1F77B4;
	border-radius: 50%;
	animation: bi-spin 0.7s linear infinite;
}

@keyframes bi-spin {
	to { transform: rotate(360deg); }
}

.bi-dash-modal__frame {
	position: absolute;
	top: 0;
	left: 0;
	border: none;
	display: block;
	transform-origin: top left;
}

@media (max-width: 768px) {
	.bi-dash-modal {
		padding: 0.25rem;
	}

	.bi-dash-modal__content {
		height: 97vh;
		max-height: 97vh;
		border-radius: 8px;
	}

	.bi-dash-modal__ext-link span {
		display: none;
	}

	.bi-dash-modal__ext-link {
		width: 34px;
		height: 34px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
}
