/* ============================================================
   TechiEvolve core design system (lean stack)
   Loads with bootstrap-grid.min.css (grid + flex + spacing only)
   and provides: reboot, tokens, fluid type, the small utility
   subset the templates use, and minimal component primitives
   (modal / collapse / pills / table) that used to come from the
   full Bootstrap bundle.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
	/* brand */
	--te-navy: #16276b;
	--te-deep: #06143d;
	--te-blue: #08aeea;
	--te-cyan: #15c8ff;
	--te-text: #172049;
	--te-muted: #5d6688;
	--te-soft: #eef9ff;
	--te-line: #d7e6f3;
	--te-white: #fff;

	/* legacy aliases still referenced across style.css */
	--grey: #e4e4e4;
	--grey1: #e6e6e6;
	--grey2: #8f8f8f;
	--black: #313130;
	--purple: #04aaea;
	--white: #fff;
	--red: #04aaea;
	--blue: #192964;

	/* type scale (fluid) */
	--fs-900: clamp(2.4rem, 1.2rem + 4.2vw, 4.6rem);   /* h1 / display */
	--fs-800: clamp(2rem, 1rem + 3.4vw, 3.6rem);       /* h2 */
	--fs-700: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);     /* h3 / sub */
	--fs-600: clamp(1.2rem, 1rem + .8vw, 1.5rem);
	--fs-500: 1.125rem;
	--fs-400: 1rem;
	--fs-300: .875rem;

	/* rhythm */
	--space-section: clamp(3.5rem, 2rem + 4vw, 7rem);
	--container-max: 1200px;
	--radius: 16px;
	--radius-lg: 26px;
	--shadow-1: 0 10px 30px rgba(6, 20, 61, .08);
	--shadow-2: 0 24px 60px rgba(6, 20, 61, .16);
	--transition: .22s ease;
}

/* ---------- reboot (subset the old full-Bootstrap load provided) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: var(--fs-400);
	line-height: 1.6;
	color: var(--te-text);
	background: #fff;
	-webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.2; }
b, strong { font-weight: bolder; }
p { margin: 0 0 1rem; }
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--te-blue); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
fieldset { border: 0; margin: 0; padding: 0; }
table { border-collapse: collapse; }
th { text-align: inherit; }

/* fluid heading sizes override the fixed px sizes in legacy style.css */
h1 { font-size: var(--fs-900); font-weight: 800; }
h2 { font-size: var(--fs-800); line-height: 1.15; }
h3 { font-size: var(--fs-700); line-height: 1.25; }

/* ---------- accessibility ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 10000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--te-navy);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}

:focus-visible { outline: 3px solid var(--te-cyan); outline-offset: 2px; }

/* ---------- utility subset (was full Bootstrap) ---------- */
.text-center  { text-align: center !important; }
.text-left    { text-align: left !important; }
.text-right   { text-align: right !important; }
.text-white   { color: #fff !important; }
.text-secondary { color: var(--te-muted) !important; }
.font-weight-bold { font-weight: 700 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mw-100 { max-width: 100% !important; }
.text-decoration-none { text-decoration: none !important; }
.bg-transparent { background-color: transparent !important; }
.border-0 { border: 0 !important; }
.rounded-pill { border-radius: 50rem !important; }
.shadow { box-shadow: var(--shadow-1) !important; }
.sticky-top { position: sticky; top: 90px; z-index: 2; }
.h1 { font-size: var(--fs-900); font-weight: 800; }
.h2 { font-size: var(--fs-800); font-weight: 800; }
.h3 { font-size: var(--fs-700); font-weight: 700; }
.h4 { font-size: var(--fs-600); font-weight: 700; }
.h5 { font-size: var(--fs-500); font-weight: 700; }
.h6 { font-size: var(--fs-400); font-weight: 700; }

@media (min-width: 992px) {
	.text-lg-right { text-align: right !important; }
	.text-lg-left  { text-align: left !important; }
}
@media (min-width: 768px) {
	.text-md-center { text-align: center !important; }
}

/* ---------- responsive breakpoint helpers used by templates ---------- */
/* (d-none/d-md-block/etc. come from bootstrap-grid display utilities) */

/* ---------- components: collapse ---------- */
.collapse:not(.show) { display: none; }
.collapsing {
	position: relative;
	height: 0;
	overflow: hidden;
	transition: height .3s ease;
}

/* ---------- components: tabs / pills ---------- */
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.fade { transition: opacity .18s linear; }
.fade:not(.show):not(.active) { opacity: 0; }
.tab-pane.active, .show.fade { opacity: 1; }
.nav-pills { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-pills .nav-item { list-style: none; }
.nav-pills .nav-link { display: block; text-decoration: none; cursor: pointer; }

/* ---------- components: modal ---------- */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1050;
	overflow-x: hidden;
	overflow-y: auto;
	background: rgba(6, 20, 61, .62);
	padding: 1rem;
}
.modal.show { display: block; }
.modal-dialog {
	position: relative;
	margin: 1.75rem auto;
	max-width: 560px;
	width: auto;
	pointer-events: none;
}
.modal-dialog-centered {
	display: flex;
	align-items: center;
	min-height: calc(100% - 3.5rem);
}
.modal-lg { max-width: 860px; }
.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border-radius: var(--radius);
	pointer-events: auto;
}
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal .close {
	position: absolute;
	top: -14px; right: -8px;
	z-index: 2;
	background: none;
	border: 0;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
}
body.modal-open { overflow: hidden; }

/* ---------- components: table (comparison section) ---------- */
.table { width: 100%; margin-bottom: 1rem; color: inherit; }
.table th, .table td { padding: .65rem; vertical-align: middle; }
.table-borderless th, .table-borderless td { border: 0; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- components: card base (visuals come from style.css) ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-clip: border-box;
}
.card-header { padding: 0; }
.card-body { flex: 1 1 auto; }

/* ---------- reveal-on-scroll (replaces WOW/ScrollReveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .te-reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity .45s ease-out, transform .45s ease-out;
	}
	.js .te-reveal.from-left  { transform: translateX(-16px); }
	.js .te-reveal.from-right { transform: translateX(16px); }
	.js .te-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* legacy animation-library classes: render static on the lean stack */
.animate__animated { opacity: 1 !important; visibility: visible !important; }

/* ---------- logo marquee (replaces Owl carousel for logo strips) ---------- */
.te-marquee {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.te-marquee-track {
	display: flex;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	width: max-content;
	animation: te-marquee 36s linear infinite;
}
.te-marquee:hover .te-marquee-track { animation-play-state: paused; }
.te-marquee-track > * { flex: 0 0 auto; }
@keyframes te-marquee {
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.te-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- reduced motion: kill decorative movement globally ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
