/* ============================================================
   bi-service-page.css
   Styles for service-detail and industry-detail pages.
   Shared by all ~200 generated pages via template inclusion.
   ============================================================ */

/* ── Base ────────────────────────────────────────────────── */
body { background: #050816; }
main { position: relative; z-index: 1; }

/* Industry/service detail pages - keep content visible without scroll.
   Exclude flip faces: transform:none breaks backface-visibility and shows both sides. */
body.bi-industry-page .bi-glass-card:not(.bi-flip-front):not(.bi-flip-back),
body.bi-industry-page .bi-kpi-card,
body.bi-industry-page .bi-reveal-fade,
body.bi-industry-page .bi-reveal-scale,
body.bi-industry-page .bi-sol-card:not(.bi-flip-front):not(.bi-flip-back) {
	opacity: 1 !important;
	transform: none !important;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.bi-breadcrumb {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.45);
	margin-bottom: 1.25rem;
}
.bi-breadcrumb a {
	color: rgba(255,255,255,0.45);
	text-decoration: none;
	transition: color 0.18s;
}
.bi-breadcrumb a:hover { color: #a78bfa; }
.bi-breadcrumb .bi-bc-sep { margin: 0 0.4rem; opacity: 0.4; }
.bi-breadcrumb .bi-bc-current { color: rgba(255,255,255,0.75); }

/* ── Hero ────────────────────────────────────────────────── */
.bi-hero { padding: 3.5rem 0 1.5rem; }

.bi-page-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(124,58,237,0.4);
	background: rgba(124,58,237,0.12);
	color: #c4b5fd;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.85rem;
}

.bi-hero-gradient-text {
	background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 55%, #67e8f9 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 800 !important;
	letter-spacing: -0.025em;
	line-height: 1.15 !important;
}

.bi-hero-accent {
	display: block;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #7c3aed, #0891b2);
	margin: 0.9rem auto 0;
}

.bi-hero .lead {
	color: rgba(255,255,255,0.82) !important;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero industry icon */
.bi-hero-industry-icon {
	font-size: 3.5rem;
	line-height: 1;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #a78bfa, #22d3ee);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	filter: drop-shadow(0 0 18px rgba(124,58,237,0.5));
	display: block;
}

/* Hero CTAs */
.bi-btn-gradient {
	background: linear-gradient(135deg, #7c3aed, #0891b2) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 4px 20px rgba(124,58,237,0.4);
	font-weight: 600;
	border-radius: 10px !important;
	transition: box-shadow 0.2s, transform 0.18s;
}
.bi-btn-gradient:hover {
	box-shadow: 0 6px 28px rgba(124,58,237,0.55);
	transform: translateY(-1px);
}
.bi-btn-ghost {
	color: #fff !important;
	border: 1px solid rgba(124,58,237,0.4) !important;
	background: rgba(124,58,237,0.08) !important;
	font-weight: 600;
	border-radius: 10px !important;
	transition: border-color 0.2s, background 0.2s;
}
.bi-btn-ghost:hover {
	border-color: rgba(124,58,237,0.65) !important;
	background: rgba(124,58,237,0.16) !important;
}

/* ── Stats bar ───────────────────────────────────────────── */
.bi-page-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	border-top: 1px solid rgba(124,58,237,0.15);
	border-bottom: 1px solid rgba(124,58,237,0.15);
	margin: 1.5rem 0;
	padding: 0.75rem 0;
}
.bi-page-stat {
	text-align: center;
	padding: 0.5rem 1.75rem;
	position: relative;
}
.bi-page-stat + .bi-page-stat::before {
	content: '';
	position: absolute; left: 0; top: 20%; bottom: 20%;
	width: 1px;
	background: rgba(124,58,237,0.25);
}
.bi-page-stat-val {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #a78bfa, #67e8f9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
}
.bi-page-stat-label {
	font-size: 0.72rem;
	color: rgba(255,255,255,0.55);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	margin-top: 0.2rem;
}
@media (max-width: 575px) {
	.bi-page-stat { padding: 0.5rem 1rem; }
	.bi-page-stat-val { font-size: 1rem; }
}

/* ── Section divider ─────────────────────────────────────── */
.bi-section-divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(124,58,237,0.25) 40%, rgba(8,145,178,0.25) 60%, transparent);
	margin: 0.25rem 0 1.5rem;
}

/* ── Anchor nav ──────────────────────────────────────────── */
.bi-anchor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	margin-bottom: 2rem;
	position: sticky;
	top: 58px;
	z-index: 90;
	background: rgba(5,8,22,0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 0.35rem 1rem;
}
body.bi-industry-page main section[id] {
	scroll-margin-top: 7.5rem;
}
.bi-anchor-nav a {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	color: rgba(255,255,255,0.6);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.18s, border-color 0.18s;
	white-space: nowrap;
}
.bi-anchor-nav a:hover,
.bi-anchor-nav a.active {
	color: #a78bfa;
	border-bottom-color: #7c3aed;
}
@media (max-width: 575px) {
	.bi-anchor-nav { top: 52px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
	.bi-anchor-nav a { padding: 0.55rem 0.85rem; font-size: 0.8rem; }
}

/* ── Glass card (base) ───────────────────────────────────── */
.bi-glass-card {
	background: rgba(255,255,255,0.05) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.1) !important;
	border-radius: 16px !important;
	box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
	transition: border-color 0.22s, box-shadow 0.22s;
}
.bi-glass-card:hover {
	border-color: rgba(124,58,237,0.3) !important;
	box-shadow: 0 6px 32px rgba(124,58,237,0.1) !important;
}

/* ── Why-choose cards with icon + left accent ────────────── */
.bi-why-card {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.25rem !important;
}
.bi-why-card .bi-why-icon {
	flex-shrink: 0;
	width: 44px; height: 44px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem;
	background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
	border: 1px solid rgba(124,58,237,0.25);
	color: #a78bfa;
}
.bi-why-card .bi-why-body { flex: 1; }
.bi-why-card .bi-why-body h3 {
	color: #fff !important;
	font-size: 0.95rem !important;
	font-weight: 700;
	margin-bottom: 0.3rem;
}
.bi-why-card .bi-why-body p {
	color: rgba(255,255,255,0.72) !important;
	font-size: 0.875rem;
	margin: 0;
	line-height: 1.6;
}

/* ── KPI cards ───────────────────────────────────────────── */
.bi-kpi-card {
	background: rgba(124,58,237,0.05) !important;
	border: 1px solid rgba(124,58,237,0.18) !important;
	border-radius: 14px !important;
	transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.bi-kpi-card:hover {
	border-color: rgba(124,58,237,0.32) !important;
	box-shadow: 0 8px 28px rgba(124,58,237,0.08) !important;
}
.bi-kpi-card .bi-why-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	background: rgba(124,58,237,0.14);
	border: 1px solid rgba(124,58,237,0.25);
	color: #a78bfa;
}

/* ── Delivery steps ─────────────────────────────────────── */
.bi-process-step {
	background: rgba(255,255,255,0.03) !important;
	border: 1px solid rgba(255,255,255,0.08) !important;
	border-radius: 14px !important;
}
.bi-process-step .bi-why-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	background: rgba(124,58,237,0.14);
	border: 1px solid rgba(124,58,237,0.25);
	color: #a78bfa;
}

/* ── Deliverables + checklists ───────────────────────────── */
.bi-checklist {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.bi-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0.35rem 0;
	color: rgba(255,255,255,0.86);
}
.bi-checklist li i {
	color: #a78bfa;
	margin-top: 0.15rem;
	flex-shrink: 0;
}

/* ── SLA section tint ─────────────────────────────────────── */
.bi-sla-panel,
#sla.bi-sla-panel {
	background: rgba(124,58,237,0.04) !important;
	border: 1px solid rgba(124,58,237,0.18) !important;
	border-radius: 14px !important;
}

/* ── UX experience cards ─────────────────────────────────── */
.bi-ux-card {
	min-height: 100%;
}

/* ── FAQ accordion ───────────────────────────────────────── */
.bi-faq-list { display: flex; flex-direction: column; gap: 0.65rem; }
.bi-faq-item {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	overflow: hidden;
}
.bi-faq-item summary {
	cursor: pointer;
	padding: 0.85rem 1rem;
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
	list-style: none;
}
.bi-faq-item summary::-webkit-details-marker { display: none; }
.bi-faq-item summary::after {
	content: '+';
	float: right;
	color: #a78bfa;
	font-weight: 800;
}
.bi-faq-item[open] summary::after { content: '−'; }
.bi-faq-answer {
	padding: 0 1rem 0.85rem;
	color: rgba(255,255,255,0.72);
	font-size: 0.9rem;
	line-height: 1.65;
}
.bi-faq-answer p { margin: 0; }

/* Flip card back note */
.bi-flip-back-note {
	color: rgba(255,255,255,0.6);
	font-weight: 700;
	font-size: 0.82rem;
	line-height: 1.6;
	margin-top: 0.35rem;
}

/* ── Capability sections ─────────────────────────────────── */
.bi-cap-section { margin-bottom: 1rem; }
.bi-cap-section .bi-glass-card { transition: border-color 0.22s, box-shadow 0.22s; }
.bi-cap-alt.bi-glass-card {
	background: rgba(124,58,237,0.04) !important;
	border-color: rgba(124,58,237,0.15) !important;
}
.bi-cap-heading-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}
.bi-cap-icon {
	flex-shrink: 0;
	width: 36px; height: 36px;
	border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.1rem;
	background: rgba(124,58,237,0.15);
	border: 1px solid rgba(124,58,237,0.25);
	color: #a78bfa;
}
.bi-cap-kicker {
	color: #a78bfa;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.bi-section-title { color: #ffffff !important; font-weight: 700; }

/* Icon bullets */
.bi-icon-bullets {
	list-style: none;
	padding: 0;
	margin: 0;
}
.bi-icon-bullets li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: rgba(255,255,255,0.85);
	font-size: 0.9rem;
	padding: 0.3rem 0;
	line-height: 1.55;
}
.bi-icon-bullets li i {
	color: #a78bfa;
	font-size: 1rem;
	flex-shrink: 0;
	margin-top: 0.18rem;
}

/* Plain bullets (fallback) */
.bi-bullets {
	padding-left: 1.2rem;
	color: rgba(255,255,255,0.85);
}
.bi-bullets li { margin: 0.4rem 0; }

/* ── Tools / chip strip ──────────────────────────────────── */
.bi-chip-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.bi-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(124,58,237,0.35);
	background: rgba(124,58,237,0.08);
	color: rgba(255,255,255,0.9);
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.18s, border-color 0.18s;
}
.bi-chip:hover {
	background: rgba(124,58,237,0.18);
	border-color: rgba(124,58,237,0.55);
}
.bi-chip i { font-size: 0.9rem; color: #a78bfa; }

/* ── Industry solution cards ─────────────────────────────── */
.bi-sol-card {
	padding: 1.4rem 1.25rem;
}
.bi-sol-icon {
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
	color: #a78bfa;
	display: block;
}
.bi-sol-card h3 {
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 700;
	margin-bottom: 0.4rem;
}
.bi-sol-card p {
	color: rgba(255,255,255,0.72) !important;
	font-size: 0.875rem;
	margin: 0;
	line-height: 1.6;
}

/* ── CTA block (gradient border) ────────────────────────── */
.bi-cta-gradient {
	background: linear-gradient(#050816, #050816) padding-box,
				linear-gradient(135deg, rgba(124,58,237,0.65), rgba(6,182,212,0.45)) border-box;
	border: 1px solid transparent;
	border-radius: 18px;
	padding: 2.75rem 2rem;
	position: relative;
	overflow: hidden;
}
.bi-cta-gradient::before {
	content: '';
	position: absolute; inset: 0; border-radius: 18px;
	background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.1) 0%, transparent 65%);
	pointer-events: none;
}
.bi-cta-gradient h2 { color: #fff; font-weight: 800; }
.bi-cta-gradient p { color: rgba(255,255,255,0.78); }

/* ── Tools (nav-tabs) - prevent Bootstrap white active tabs ── */
#tools .nav-tabs {
	border-bottom: 1px solid rgba(124,58,237,0.35) !important;
}
#tools .nav-link {
	background: transparent !important;
	border: 0 !important;
	color: rgba(255,255,255,0.68) !important;
}
#tools .nav-link:hover {
	color: #a78bfa !important;
	background: rgba(124,58,237,0.08) !important;
	border: 0 !important;
}
#tools .nav-link.active {
	background: rgba(124,58,237,0.18) !important;
	color: #a78bfa !important;
	border: 0 !important;
}
#tools .nav-link:focus {
	box-shadow: none !important;
}

/* ── Kicker labels ───────────────────────────────────────── */
.bi-kicker {
	color: #a78bfa;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

/* ── Scroll-reveal: body.bi-js-ready pattern ─────────────── */
body.bi-js-ready .bi-glass-card:not(.bi-flip-front):not(.bi-flip-back),
body.bi-js-ready .bi-why-card-wrap,
body.bi-js-ready .bi-cap-section,
body.bi-js-ready .bi-sol-card-wrap {
	/* Keep content visible even if reveal JS doesn't run for a specific viewport.
	   This avoids "blank" sections like Capabilities staying invisible until scroll. */
	opacity: 1 !important;
	transform: translateY(18px);
	transition: opacity 0.42s ease, transform 0.42s ease, border-color 0.22s, box-shadow 0.22s;
}
body.bi-js-ready .bi-glass-card.bi-revealed:not(.bi-flip-front):not(.bi-flip-back),
body.bi-js-ready .bi-why-card-wrap.bi-revealed,
body.bi-js-ready .bi-cap-section.bi-revealed,
body.bi-js-ready .bi-sol-card-wrap.bi-revealed {
	opacity: 1;
	transform: translateY(0);
}
body.bi-js-ready .bi-reveal-fade {
	opacity: 0; transform: translateX(-10px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}
body.bi-js-ready .bi-reveal-fade.bi-revealed { opacity: 1; transform: translateX(0); }
body.bi-js-ready .bi-reveal-scale {
	opacity: 0; transform: scale(0.96);
	transition: opacity 0.45s ease, transform 0.45s ease;
}
body.bi-js-ready .bi-reveal-scale.bi-revealed { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
	body.bi-js-ready .bi-glass-card,
	body.bi-js-ready .bi-why-card-wrap,
	body.bi-js-ready .bi-cap-section,
	body.bi-js-ready .bi-sol-card-wrap,
	body.bi-js-ready .bi-reveal-fade,
	body.bi-js-ready .bi-reveal-scale {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ── Active anchor nav highlight via JS ─────────────────── */
.bi-anchor-nav a.active {
	color: #a78bfa;
	border-bottom-color: #7c3aed;
}
