/* =============================================================================
   Elementor Overrides — force design tokens onto Elementor Free widgets.

   Why the !important: Elementor injects inline styles from Site Settings and
   its default stylesheet with higher specificity than our tokens can beat
   without a stronger source of truth. In this build, our design system IS the
   source of truth, so we override loudly.
   ========================================================================== */

/* -----------------------------------------------------------------------
   Container defaults — respect our max width and gutters
   ----------------------------------------------------------------------- */
.e-con,
.e-con-inner {
	--e-con-max-width: var(--wt-container-max);
}

.e-con-full > .e-con-inner {
	max-width: none !important;
}

/* -----------------------------------------------------------------------
   HEADINGS — our design tokens win over Elementor's defaults
   Elementor renders the actual heading tag INSIDE .elementor-heading-title
   ----------------------------------------------------------------------- */

/* Reset every Elementor heading to on-surface color, our fonts */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--wt-font-display);
	color: var(--wt-on-surface);
}

/* Display Hero — h1 headline in mesh sections */
.elementor-widget-heading.wt-display-hero .elementor-heading-title,
.wt-display-hero.elementor-heading-title,
.wt-display-hero {
	font-family: var(--wt-font-display) !important;
	font-size: var(--wt-fs-display-hero) !important;
	font-weight: var(--wt-fw-black) !important;
	line-height: var(--wt-lh-tight) !important;
	letter-spacing: var(--wt-tracking-tight) !important;
	color: var(--wt-primary) !important;
	margin: 0 0 var(--wt-stack-md) !important;
}
@media (max-width: 900px) {
	.elementor-widget-heading.wt-display-hero .elementor-heading-title,
	.wt-display-hero {
		font-size: 48px !important;
	}
}

/* Headline Large — h2 for section titles */
.elementor-widget-heading.wt-headline-lg .elementor-heading-title,
.wt-headline-lg {
	font-family: var(--wt-font-display) !important;
	font-size: var(--wt-fs-headline-lg) !important;
	font-weight: var(--wt-fw-bold) !important;
	line-height: var(--wt-lh-tight) !important;
	color: var(--wt-primary) !important;
	margin: 0 !important;
}
@media (max-width: 900px) {
	.elementor-widget-heading.wt-headline-lg .elementor-heading-title,
	.wt-headline-lg {
		font-size: 32px !important;
	}
}

/* Headline Medium — subsection titles */
.elementor-widget-heading.wt-headline-md .elementor-heading-title,
.wt-headline-md {
	font-family: var(--wt-font-display) !important;
	font-size: var(--wt-fs-headline-md) !important;
	font-weight: var(--wt-fw-semibold) !important;
	line-height: 1.15 !important;
	color: var(--wt-primary) !important;
	margin: 0 !important;
}

/* Label Caps — small uppercase eyebrow */
.elementor-widget-heading.wt-label-caps .elementor-heading-title,
.wt-label-caps.elementor-heading-title,
.wt-label-caps {
	font-family: var(--wt-font-display) !important;
	font-size: var(--wt-fs-label-caps) !important;
	font-weight: var(--wt-fw-semibold) !important;
	text-transform: uppercase !important;
	letter-spacing: var(--wt-tracking-widest) !important;
	color: var(--wt-primary) !important;
	line-height: 1 !important;
	margin: 0 !important;
}

/* Pill — the "Enterprise Intelligence" chip */
.elementor-widget-heading.wt-pill .elementor-heading-title,
.wt-pill.elementor-heading-title,
.wt-pill {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 20px !important;
	background: rgba(0, 40, 142, 0.08) !important;
	border: 1px solid rgba(0, 40, 142, 0.15) !important;
	border-radius: 999px !important;
	color: var(--wt-primary) !important;
	font-family: var(--wt-font-display) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	line-height: 1 !important;
	width: auto !important;
	margin: 0 !important;
}

/* Live-dot before the pill text */
.elementor-widget-heading.wt-pill.wt-pill--live .elementor-heading-title::before,
.wt-pill.wt-pill--live::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wt-amber);
	margin-right: 8px;
	box-shadow: 0 0 0 0 rgba(255, 169, 41, 0.7);
	animation: wt-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes wt-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 169, 41, 0.7); }
	50%      { box-shadow: 0 0 0 8px rgba(255, 169, 41, 0); }
}

/* Center a pill widget when its parent container centers */
.elementor-widget-heading.wt-pill { text-align: left; }
.elementor-widget-heading.wt-pill.elementor-widget[data-align="center"] .elementor-heading-title { margin-inline: auto !important; }

/* -----------------------------------------------------------------------
   Text-Editor — body copy
   ----------------------------------------------------------------------- */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
	font-family: var(--wt-font-body);
	color: var(--wt-on-surface);
	font-size: var(--wt-fs-body-md);
	line-height: var(--wt-lh-body);
}
.elementor-widget-text-editor p.wt-body-lg,
.wt-body-lg {
	font-size: var(--wt-fs-body-lg) !important;
	line-height: var(--wt-lh-body) !important;
}

/* -----------------------------------------------------------------------
   BUTTONS — hard override of Elementor button widget
   Elementor renders the actual clickable element as .elementor-button INSIDE
   the widget wrapper. Our CSS classes on _css_classes land on the wrapper,
   so we descend into .elementor-button.
   ----------------------------------------------------------------------- */
.elementor-widget-button .elementor-button,
.elementor-widget-button .elementor-button-link {
	font-family: var(--wt-font-body);
	font-weight: var(--wt-fw-bold);
	font-size: var(--wt-fs-body-md);
	line-height: 1;
	border-radius: 999px;
	padding: 16px 32px;
	transition: all var(--wt-transition-base);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wt-stack-sm);
	border: 0;
	box-shadow: none;
	white-space: nowrap;
	fill: currentColor;
}
.elementor-widget-button .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	gap: var(--wt-stack-sm);
}

/* Primary — Deep Royal Blue solid */
.wt-btn-primary .elementor-button,
.elementor-widget-button.wt-btn-primary .elementor-button {
	background-color: var(--wt-primary) !important;
	color: #ffffff !important;
}
.wt-btn-primary .elementor-button:hover,
.elementor-widget-button.wt-btn-primary .elementor-button:hover {
	background-color: var(--wt-primary-container) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 40, 142, 0.24);
}

/* Secondary — Ghost with Royal Blue border */
.wt-btn-secondary .elementor-button,
.elementor-widget-button.wt-btn-secondary .elementor-button {
	background-color: transparent !important;
	color: var(--wt-primary) !important;
	box-shadow: inset 0 0 0 1.5px var(--wt-primary) !important;
}
.wt-btn-secondary .elementor-button:hover,
.elementor-widget-button.wt-btn-secondary .elementor-button:hover {
	background-color: rgba(0, 40, 142, 0.05) !important;
	color: var(--wt-primary) !important;
}

/* Amber — high-conversion */
.wt-btn-amber .elementor-button,
.elementor-widget-button.wt-btn-amber .elementor-button {
	background-color: var(--wt-amber) !important;
	color: #0F172A !important;
}
.wt-btn-amber .elementor-button:hover,
.elementor-widget-button.wt-btn-amber .elementor-button:hover {
	background-color: #ffbb52 !important;
	color: #0F172A !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(255, 169, 41, 0.32);
}

/* Ghost on dark bg */
.wt-btn-ghost-light .elementor-button,
.elementor-widget-button.wt-btn-ghost-light .elementor-button {
	background-color: transparent !important;
	color: #ffffff !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7) !important;
	backdrop-filter: none;
}
.wt-btn-ghost-light .elementor-button:hover,
.elementor-widget-button.wt-btn-ghost-light .elementor-button:hover {
	background-color: #ffffff !important;
	color: #00288e !important;
}

/* Text overrides inside buttons (Elementor puts the label in a span) */
.wt-btn-primary .elementor-button-text,
.wt-btn-amber .elementor-button-text,
.wt-btn-ghost-light .elementor-button-text { color: inherit; }

/* -----------------------------------------------------------------------
   BENTO GRID container — force 2 x 2 layout regardless of Elementor flex
   Apply .wt-bento-grid on the row container that holds 4 bento cards.
   ----------------------------------------------------------------------- */
.wt-bento-grid,
.e-con.wt-bento-grid,
.e-con.wt-bento-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 32px !important;
	width: 100% !important;
	max-width: none !important;
}
.wt-bento-grid > * {
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
}
@media (max-width: 900px) {
	.wt-bento-grid,
	.e-con.wt-bento-grid,
	.e-con.wt-bento-grid > .e-con-inner {
		grid-template-columns: 1fr !important;
	}
}

/* Four-column grid utility for stats/industries/case-metrics */
.wt-grid-4,
.e-con.wt-grid-4,
.e-con.wt-grid-4 > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
}
@media (max-width: 900px) {
	.wt-grid-4,
	.e-con.wt-grid-4,
	.e-con.wt-grid-4 > .e-con-inner {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 600px) {
	.wt-grid-4,
	.e-con.wt-grid-4,
	.e-con.wt-grid-4 > .e-con-inner {
		grid-template-columns: 1fr !important;
	}
}

/* Two-column layout for hero and other row-based containers */
.wt-two-col,
.e-con.wt-two-col,
.e-con.wt-two-col > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 48px !important;
	align-items: center !important;
	width: 100% !important;
}
@media (max-width: 900px) {
	.wt-two-col,
	.e-con.wt-two-col,
	.e-con.wt-two-col > .e-con-inner {
		grid-template-columns: 1fr !important;
	}
}

/* Row (buttons side-by-side) */
.wt-row,
.e-con.wt-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
	align-items: center !important;
}
.wt-row-center,
.e-con.wt-row-center {
	justify-content: center !important;
}

/* -----------------------------------------------------------------------
   CTA band background — deep royal blue when class present
   ----------------------------------------------------------------------- */
.e-con.wt-cta-band,
.elementor-element.wt-cta-band {
	background: var(--wt-primary) !important;
	color: #ffffff !important;
	position: relative;
	overflow: hidden;
}
.e-con.wt-cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(at 20% 30%, rgba(30, 64, 175, 0.85) 0%, transparent 60%),
		radial-gradient(at 80% 70%, rgba(59, 130, 246, 0.55) 0%, transparent 55%);
	z-index: 0;
}
.e-con.wt-cta-band > .e-con-inner,
.e-con.wt-cta-band > * {
	position: relative;
	z-index: 1;
}
.wt-cta-band .elementor-widget-heading .elementor-heading-title,
.wt-cta-band .wt-headline-lg,
.wt-cta-band .wt-headline-md { color: #ffffff !important; }
.wt-cta-band .elementor-widget-text-editor,
.wt-cta-band .elementor-widget-text-editor p { color: rgba(255, 255, 255, 0.85) !important; }

/* Stats band background */
.e-con.wt-stats-band,
.elementor-element.wt-stats-band {
	background: var(--wt-primary) !important;
	color: #ffffff !important;
	position: relative;
	overflow: hidden;
}
.e-con.wt-stats-band::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(at 20% 30%, rgba(30, 64, 175, 0.9) 0%, transparent 60%),
		radial-gradient(at 80% 70%, rgba(59, 130, 246, 0.4) 0%, transparent 55%);
	z-index: 0;
}
.e-con.wt-stats-band > .e-con-inner,
.e-con.wt-stats-band > * {
	position: relative;
	z-index: 1;
}
.wt-stats-band .elementor-widget-heading .elementor-heading-title,
.wt-stats-band .wt-stats-band__title { color: rgba(255, 255, 255, 0.85) !important; }
.wt-stats-band .wt-stat__value { color: var(--wt-amber) !important; }
.wt-stats-band .wt-stat__label { color: rgba(255, 255, 255, 0.85) !important; }

/* Mesh gradient — same treatment when applied via CSS class */
.e-con.wt-mesh-gradient,
.e-con.wt-mesh-gradient--strong {
	position: relative;
}

/* -----------------------------------------------------------------------
   White-text utility for CTA sections
   ----------------------------------------------------------------------- */
.elementor-widget-heading.wt-text-white .elementor-heading-title,
.wt-text-white { color: #ffffff !important; }

/* -----------------------------------------------------------------------
   Utility — remove Elementor page padding on the front page
   ----------------------------------------------------------------------- */
body.webtech-home .site-main,
body.webtech .site-main { padding: 0 !important; }

/* Editor safety — don't fix header inside Elementor editor */
body.elementor-editor-active .wt-header { position: static; }
body.elementor-editor-active .wt-site-main { padding-top: 0; }

/* =============================================================================
   v1.1.4 — aggressive layout overrides for every Elementor container variant
   Covers .e-con (newer), .elementor-widget-wrap and .elementor-container (older)
   ========================================================================== */

/* wt-two-col: real CSS grid, works whether class is on outer or inner wrap */
.wt-two-col,
.e-con.wt-two-col,
.e-con-boxed.wt-two-col,
.elementor-element.wt-two-col,
.wt-two-col > .e-con-inner,
.wt-two-col > .elementor-container,
.wt-two-col > .elementor-column-wrap,
.wt-two-col > .elementor-widget-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 48px !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 100% !important;
}
.wt-two-col > *,
.wt-two-col > .e-con-inner > *,
.wt-two-col > .elementor-container > * {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 1 auto !important;
}
@media (max-width: 900px) {
	.wt-two-col,
	.e-con.wt-two-col,
	.wt-two-col > .e-con-inner,
	.wt-two-col > .elementor-container {
		grid-template-columns: 1fr !important;
	}
}

/* wt-bento-grid: 2 x 2 grid, no matter what Elementor renders */
.wt-bento-grid,
.e-con.wt-bento-grid,
.e-con-boxed.wt-bento-grid,
.wt-bento-grid > .e-con-inner,
.wt-bento-grid > .elementor-container,
.wt-bento-grid > .elementor-widget-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 32px !important;
	width: 100% !important;
	max-width: 100% !important;
	align-items: stretch !important;
}
.wt-bento-grid > *,
.wt-bento-grid > .e-con-inner > * {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 1 auto !important;
}
@media (max-width: 900px) {
	.wt-bento-grid,
	.e-con.wt-bento-grid,
	.wt-bento-grid > .e-con-inner {
		grid-template-columns: 1fr !important;
	}
}

/* wt-grid-4: 4-column grid for stats bands, industries, etc. */
.wt-grid-4,
.e-con.wt-grid-4,
.e-con-boxed.wt-grid-4,
.wt-grid-4 > .e-con-inner,
.wt-grid-4 > .elementor-container,
.wt-grid-4 > .elementor-widget-wrap {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 100% !important;
	align-items: start !important;
}
.wt-grid-4 > *,
.wt-grid-4 > .e-con-inner > * {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 1 auto !important;
}
@media (max-width: 900px) {
	.wt-grid-4,
	.e-con.wt-grid-4,
	.wt-grid-4 > .e-con-inner {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 600px) {
	.wt-grid-4,
	.e-con.wt-grid-4,
	.wt-grid-4 > .e-con-inner {
		grid-template-columns: 1fr !important;
	}
}

/* wt-row: buttons or chips inline, wrap on small screens */
.wt-row,
.e-con.wt-row,
.wt-row > .e-con-inner,
.wt-row > .elementor-container,
.wt-row > .elementor-widget-wrap {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
	align-items: center !important;
	width: auto !important;
}
.wt-row-center,
.e-con.wt-row-center,
.wt-row-center > .e-con-inner {
	justify-content: center !important;
}
.wt-row > *,
.wt-row > .e-con-inner > * {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: 100% !important;
}

/* Elementor Button widget — ensure it doesn't stretch to full width in .wt-row */
.wt-row .elementor-widget-button,
.wt-row-center .elementor-widget-button {
	width: auto !important;
	flex: 0 0 auto !important;
}

/* Stat counter widget spacing — force widget to fill its grid cell */
.wt-grid-4 .elementor-widget[data-widget_type="webtech-stat-counter.default"],
.wt-grid-4 .elementor-widget {
	width: 100% !important;
}
.wt-stat {
	text-align: center;
	padding: 8px;
}
.wt-stat__value {
	display: block;
	font-family: var(--wt-font-display);
	font-size: clamp(40px, 5vw, 72px);
	font-weight: 800;
	line-height: 1;
	color: var(--wt-amber);
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}
.wt-stat__label {
	display: block;
	font-family: var(--wt-font-display);
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Bento card link (Explore Growth / Explore Tech / etc) — always primary */
.wt-bento-card .wt-bento-card__cta,
.wt-bento-card a.wt-bento-card__cta {
	color: var(--wt-primary) !important;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.wt-bento-card--inverted .wt-bento-card__cta,
.wt-bento-card--inverted a.wt-bento-card__cta {
	color: var(--wt-amber) !important;
}

/* Hero chips container — larger, more distinct positioning */
.wt-hero-chips {
	min-height: 480px !important;
}
.wt-hero-chips .wt-glass-card {
	background: rgba(255, 255, 255, 0.85) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border: 1px solid rgba(255, 255, 255, 0.6) !important;
	border-radius: 16px !important;
	box-shadow: 0 8px 32px rgba(0, 40, 142, 0.12) !important;
	padding: 16px 20px !important;
	min-width: 200px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	z-index: 2 !important;
}
.wt-hero-chips .wt-glass-card__label {
	font-family: var(--wt-font-display) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: var(--wt-primary) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	display: block !important;
}
.wt-hero-chips .wt-glass-card__value {
	font-family: var(--wt-font-display) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--wt-on-surface) !important;
	display: block !important;
}
/* Position the 3 chips distinctly, no overlap even in narrow columns */
.wt-hero-chips .wt-glass-card:nth-child(2) {
	top: 8% !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
}
.wt-hero-chips .wt-glass-card:nth-child(3) {
	top: 42% !important;
	left: 20% !important;
	right: auto !important;
	bottom: auto !important;
}
.wt-hero-chips .wt-glass-card:nth-child(4) {
	top: 74% !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
}

/* Client marquee container spacing */
.wt-client-marquee {
	padding: 32px 0 !important;
	text-align: center;
}

/* Ensure sections don't get squeezed by parent flex containers */
.elementor-widget[data-widget_type^="webtech-"] {
	width: 100% !important;
}
