/**
 * Adbrotech - Elementor Free Compatibility Stylesheet
 * 
 * Provides seamless aesthetic alignment between Elementor Free widgets/sections
 * and Adbrotech's next-generation dark enterprise design system.
 * 
 * @package Adbrotech
 */

/* -------------------------------------------------------------------------
   1. GLOBAL ELEMENTOR PAGE & CONTAINER RESETS
   ------------------------------------------------------------------------- */
body.elementor-page,
body.adbrotech-elementor-canvas-body {
	background-color: var(--bg-dark, #060913);
	color: var(--text-main, #f0f4f8);
	overflow-x: hidden;
}

.adbrotech-elementor-full-width-wrapper {
	width: 100%;
	padding-top: calc(var(--header-height, 80px) + 20px);
	padding-bottom: 60px;
	overflow-x: hidden;
}

.adbrotech-elementor-canvas-main {
	min-height: 100vh;
	background-color: var(--bg-dark, #060913);
}

.adbrotech-elementor-boxed-wrapper {
	padding-top: calc(var(--header-height, 80px) + 30px);
	padding-bottom: 80px;
}

/* Ensure Elementor full-width containers stretch cleanly */
.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: var(--container-width, 1280px);
}

.elementor-widget:not(:last-child) {
	margin-bottom: 20px;
}

/* -------------------------------------------------------------------------
   2. ELEMENTOR FREE DEFAULT WIDGETS THEME INHERITANCE
   ------------------------------------------------------------------------- */

/* Headings */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--font-heading, 'Manrope', sans-serif);
	color: var(--text-main, #ffffff);
	letter-spacing: -0.02em;
}

.elementor-widget-heading .elementor-heading-title.adbrotech-gradient-text,
.adbrotech-element-gradient-heading {
	background: var(--gradient-primary, linear-gradient(135deg, #00f0ff 0%, #7000ff 100%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* Text Editor */
.elementor-widget-text-editor {
	color: var(--text-muted, #94a3b8);
	font-family: var(--font-main, 'Inter', sans-serif);
	line-height: 1.7;
}

/* Buttons */
.elementor-widget-button .elementor-button {
	font-family: var(--font-main, 'Inter', sans-serif);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: var(--radius-sm, 8px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 28px;
}

.elementor-widget-button .elementor-button.elementor-size-md {
	padding: 14px 32px;
}

.elementor-widget-button .elementor-button.elementor-size-lg {
	padding: 18px 40px;
}

.elementor-widget-button .elementor-button:hover {
	transform: translateY(-2px);
}

/* Glassmorphism Card Wrapper for Sections/Columns */
.adbrotech-glass-card,
.elementor-column.adbrotech-glass-col > .elementor-widget-wrap {
	background: var(--card-bg, rgba(15, 23, 42, 0.65));
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-md, 16px);
	padding: 30px;
	transition: all 0.3s ease;
}

.adbrotech-glass-card:hover,
.elementor-column.adbrotech-glass-col:hover > .elementor-widget-wrap {
	border-color: var(--cyan-primary, #00f0ff);
	box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.2);
	transform: translateY(-4px);
}

/* Icon Boxes */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
	background: var(--card-bg, rgba(15, 23, 42, 0.6));
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-md, 16px);
	padding: 28px;
	transition: all 0.3s ease;
}

.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
	border-color: rgba(0, 240, 255, 0.4);
	box-shadow: 0 12px 30px rgba(0, 240, 255, 0.15);
	transform: translateY(-3px);
}

.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon {
	color: var(--cyan-primary, #00f0ff);
}

.elementor-widget-icon-box .elementor-icon-box-title {
	color: var(--text-main, #ffffff);
	font-family: var(--font-heading, 'Manrope', sans-serif);
	font-weight: 700;
	margin-top: 12px;
	margin-bottom: 8px;
}

.elementor-widget-icon-box .elementor-icon-box-description {
	color: var(--text-muted, #94a3b8);
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
   3. ADBROTECH CUSTOM ELEMENTOR WIDGETS STYLES
   ------------------------------------------------------------------------- */

/* Widget: Hero Section */
.adbrotech-el-hero-wrapper {
	position: relative;
	padding: 40px 0 60px;
	overflow: hidden;
}

.adbrotech-el-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 50px;
	align-items: center;
}

.adbrotech-el-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	background: rgba(0, 240, 255, 0.08);
	border: 1px solid rgba(0, 240, 255, 0.25);
	border-radius: 999px;
	color: var(--cyan-primary, #00f0ff);
	font-size: 0.85rem;
	font-weight: 700;
	font-family: var(--font-mono, monospace);
	text-transform: uppercase;
	margin-bottom: 20px;
}

.adbrotech-el-hero-title {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 20px;
	color: var(--text-main, #ffffff);
}

.adbrotech-el-hero-desc {
	font-size: 1.15rem;
	color: var(--text-muted, #94a3b8);
	line-height: 1.7;
	margin-bottom: 32px;
	max-width: 600px;
}

.adbrotech-el-hero-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 36px;
}

.adbrotech-el-hero-features {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
}

.adbrotech-el-hero-feat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-main, #f0f4f8);
	font-size: 0.9rem;
	font-weight: 600;
}

.adbrotech-el-hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.adbrotech-el-hero-img-wrap {
	position: relative;
	border-radius: var(--radius-lg, 24px);
	overflow: hidden;
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.adbrotech-el-hero-img-wrap img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Floating Stats Badge */
.adbrotech-el-floating-badge {
	position: absolute;
	background: rgba(10, 16, 32, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.15));
	border-radius: var(--radius-md, 14px);
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
	animation: adbrotechFloat 4s ease-in-out infinite alternate;
}

.adbrotech-el-floating-badge.badge-top {
	top: -15px;
	right: -15px;
}

.adbrotech-el-floating-badge.badge-bottom {
	bottom: -15px;
	left: -15px;
	animation-delay: 2s;
}

@keyframes adbrotechFloat {
	0% { transform: translateY(0); }
	100% { transform: translateY(-10px); }
}

/* Widget: Services Grid */
.adbrotech-el-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.adbrotech-el-service-card {
	background: var(--card-bg, rgba(15, 23, 42, 0.65));
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-md, 16px);
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.adbrotech-el-service-card:hover {
	border-color: var(--cyan-primary, #00f0ff);
	box-shadow: 0 12px 36px rgba(0, 240, 255, 0.15);
	transform: translateY(-4px);
}

.adbrotech-el-service-icon {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid rgba(0, 240, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cyan-primary, #00f0ff);
	font-size: 1.4rem;
	margin-bottom: 20px;
}

.adbrotech-el-service-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-main, #ffffff);
}

.adbrotech-el-service-desc {
	color: var(--text-muted, #94a3b8);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.adbrotech-el-service-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cyan-primary, #00f0ff);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.adbrotech-el-service-link:hover {
	gap: 12px;
}

/* Widget: Portfolio Grid */
.adbrotech-el-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 28px;
}

.adbrotech-el-portfolio-card {
	background: var(--card-bg, rgba(15, 23, 42, 0.65));
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-md, 16px);
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.adbrotech-el-portfolio-card:hover {
	border-color: var(--cyan-primary, #00f0ff);
	box-shadow: 0 16px 40px rgba(0, 240, 255, 0.15);
	transform: translateY(-5px);
}

.adbrotech-el-portfolio-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.adbrotech-el-portfolio-card:hover .adbrotech-el-portfolio-img {
	transform: scale(1.04);
}

.adbrotech-el-portfolio-img-wrap {
	overflow: hidden;
	position: relative;
}

.adbrotech-el-portfolio-body {
	padding: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.adbrotech-el-portfolio-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.adbrotech-el-tag {
	font-size: 0.75rem;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(112, 0, 255, 0.15);
	border: 1px solid rgba(112, 0, 255, 0.3);
	color: #d8b4fe;
	font-family: var(--font-mono, monospace);
}

.adbrotech-el-portfolio-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-main, #ffffff);
	margin-bottom: 10px;
}

/* Widget: Stats Counter */
.adbrotech-el-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
}

.adbrotech-el-stat-box {
	background: var(--card-bg, rgba(15, 23, 42, 0.65));
	border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-md, 16px);
	padding: 28px 20px;
	text-align: center;
	transition: all 0.3s ease;
}

.adbrotech-el-stat-box:hover {
	border-color: var(--cyan-primary, #00f0ff);
	box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
	transform: translateY(-3px);
}

.adbrotech-el-stat-num {
	font-size: clamp(2rem, 3.5vw, 2.8rem);
	font-weight: 800;
	font-family: var(--font-heading, 'Manrope', sans-serif);
	background: var(--gradient-primary, linear-gradient(135deg, #00f0ff 0%, #7000ff 100%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 8px;
	display: block;
}

.adbrotech-el-stat-label {
	font-size: 0.95rem;
	color: var(--text-muted, #94a3b8);
	font-weight: 600;
}

/* Widget: CTA Banner */
.adbrotech-el-cta-card {
	position: relative;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 16, 32, 0.95) 100%);
	border: 1px solid rgba(0, 240, 255, 0.3);
	border-radius: var(--radius-lg, 24px);
	padding: 50px 40px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.05);
	text-align: center;
}

.adbrotech-el-cta-title {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 800;
	color: var(--text-main, #ffffff);
	margin-bottom: 16px;
}

.adbrotech-el-cta-desc {
	font-size: 1.1rem;
	color: var(--text-muted, #94a3b8);
	max-width: 680px;
	margin: 0 auto 30px;
	line-height: 1.7;
}

.adbrotech-el-cta-btns {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   4. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.adbrotech-el-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
		text-align: center;
	}

	.adbrotech-el-hero-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.adbrotech-el-hero-actions,
	.adbrotech-el-hero-features {
		justify-content: center;
	}

	.adbrotech-el-cta-card {
		padding: 36px 24px;
	}
}

@media (max-width: 767px) {
	.adbrotech-elementor-full-width-wrapper,
	.adbrotech-elementor-boxed-wrapper {
		padding-top: calc(var(--header-height, 70px) + 15px);
	}

	.adbrotech-el-hero-title {
		font-size: 2.2rem;
	}

	.adbrotech-el-hero-actions {
		flex-direction: column;
		width: 100%;
	}

	.adbrotech-el-hero-actions .btn {
		width: 100%;
	}

	.adbrotech-el-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.adbrotech-el-stats-grid {
		grid-template-columns: 1fr;
	}
}
