/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/
	Description: Hello Elementor adapted for the HAITECH website.
	Author: Elementor Team
	Version: 3.5.1
	Requires at least: 6.0
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	Text Domain: hello-elementor
*/

:root {
	--haitech-black: #1A1A1A;
	--haitech-surface: #242424;
	--haitech-surface-soft: #303030;
	--haitech-green: #00A200;
	--haitech-green-deep: #1B5C20;
	--haitech-green-bright: #00CD2C;
	--haitech-white: #FFFFFF;
	--haitech-card-light: #F5F5F2;
	--haitech-card-hover: #F1F2EE;
	--haitech-icon-surface: #E9EAE5;
	--haitech-expand-surface: #EEF4EE;
	--haitech-eyebrow: #2F7A38;
	--haitech-text-dark: #1A1A1A;
	--haitech-text-muted: #5F625E;
	--haitech-lime: #B7FF1A;
	--haitech-cyan: #19CFFF;
	--haitech-violet: #8B5CFF;
	--haitech-coral: #FF6257;

	--haitech-container: 1800px;
	--haitech-text-container: 720px;
	--haitech-radius-button: 11px;
	--haitech-radius-card: 18px;
	--haitech-radius-demo: 22px;

	--e-global-color-primary: #00A200;
	--e-global-color-secondary: #1A1A1A;
	--e-global-color-text: #FFFFFF;
	--e-global-color-accent: #00CD2C;
	--e-global-typography-primary-font-family: "DM Sans", sans-serif;
	--e-global-typography-secondary-font-family: "DM Sans", sans-serif;
	--e-global-typography-text-font-family: "DM Sans", sans-serif;
	--e-global-typography-accent-font-family: "DM Sans", sans-serif;
}

html {
	scroll-behavior: smooth;
	background: var(--haitech-surface);
}

body {
	margin: 0;
	background: var(--haitech-surface);
	color: var(--haitech-white);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: "DM Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	font-family: "DM Sans", sans-serif;
	color: inherit;
	font-weight: 600;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(40px, 5vw, 72px);
	line-height: 1;
}

h2 {
	font-size: clamp(32px, 3.6vw, 56px);
	line-height: 1.08;
}

h3 {
	font-size: clamp(24px, 2.2vw, 32px);
	line-height: 1.12;
}

p {
	margin-top: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--haitech-green-bright);
	outline-offset: 3px;
}

.haitech-container {
	width: min(calc(100% - clamp(96px, 12vw, 236px)), var(--haitech-container));
	margin-inline: auto;
}

.haitech-prose {
	max-width: var(--haitech-text-container);
}

/* Wider HAITECH content frame — aligned with the current haitech.io layout. */
body:not([class*="elementor-page-"]) .site-main,
body:not([class*="elementor-page-"]) main.site-main,
.page-header .entry-title {
	max-width: var(--haitech-container) !important;
	width: min(calc(100% - clamp(96px, 12vw, 236px)), var(--haitech-container)) !important;
	margin-inline: auto !important;
	padding-inline: 0 !important;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed > .e-con-inner {
	--container-max-width: var(--haitech-container);
	max-width: var(--haitech-container);
}

.haitech-display-accent {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-style: italic;
	letter-spacing: -0.035em;
}

.haitech-eyebrow {
	color: var(--haitech-green-bright);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.haitech-light {
	background: var(--haitech-white);
	color: var(--haitech-text-dark);
}

.haitech-card-dark {
	background: var(--haitech-surface-soft);
	border-radius: var(--haitech-radius-card);
}

.haitech-card-light {
	background: var(--haitech-card-light);
	color: var(--haitech-text-dark);
	border-radius: var(--haitech-radius-card);
}

.haitech-btn,
.elementor-button {
	min-height: 50px;
	border-radius: var(--haitech-radius-button);
	font-size: 16px;
	font-weight: 500;
	transition: box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
}

.haitech-btn--primary,
.elementor-button {
	background: var(--haitech-green);
	color: var(--haitech-black);
}

.haitech-btn--primary:hover,
.elementor-button:hover {
	box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 24px rgba(255,255,255,.24);
}

.haitech-btn--secondary {
	background: transparent;
	color: var(--haitech-white);
	border: 1px solid rgba(255,255,255,.24);
}

.haitech-btn--secondary:hover {
	border-color: rgba(255,255,255,.58);
	box-shadow: 0 0 22px rgba(255,255,255,.14);
}

#site-header.haitech-site-header {
	border-bottom: 1px solid rgba(255,255,255,.07);
}

.site-header .header-inner.haitech-header-inner,
.haitech-header-inner {
	width: min(calc(100% - clamp(96px, 12vw, 236px)), var(--haitech-container)) !important;
	max-width: var(--haitech-container) !important;
	min-height: 84px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.haitech-site-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.haitech-site-logo img {
	display: block;
	max-width: 100%;
}

.haitech-header-slot {
	min-width: 1px;
	min-height: 1px;
	flex: 1 1 auto;
}

#site-footer.haitech-site-footer {
	width: 100%;
	background: var(--haitech-black);
	border-top: 1px solid rgba(255,255,255,.07);
}

.site-footer .footer-inner.haitech-footer-inner,
.haitech-footer-inner {
	width: min(calc(100% - clamp(96px, 12vw, 236px)), var(--haitech-container)) !important;
	max-width: var(--haitech-container) !important;
	min-height: 220px;
	margin-inline: auto;
	padding-block: 52px 64px;
}

.haitech-footer-logo {
	display: inline-flex;
	align-items: center;
}

.haitech-footer-logo img {
	display: block;
	width: 210px;
	max-width: 100%;
	height: auto;
}

.haitech-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .6s ease, transform .6s ease;
}

.haitech-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.haitech-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 1024px) {
	.haitech-container,
	.haitech-header-inner,
	.haitech-footer-inner {
		width: calc(100% - 64px);
	}
}

@media (max-width: 767px) {
	body {
		font-size: 17px;
		line-height: 1.58;
	}

	.haitech-container,
	.haitech-header-inner,
	.haitech-footer-inner {
		width: calc(100% - 40px);
	}

	.haitech-header-inner {
		min-height: 72px;
	}

	.haitech-site-logo img,
	.haitech-footer-logo img {
		width: 178px;
	}

	.haitech-footer-inner {
		min-height: 180px;
		padding-block: 40px 52px;
	}

	.haitech-eyebrow {
		font-size: 14px;
	}
}

#site-header.haitech-site-header {
	z-index:100;
	width:100%;
	background:#242424 !important;
	border:0 !important;
	padding:20px 0 0;
}

body #site-header .header-inner.haitech-header-inner,
body .haitech-header-inner {
	width:min(calc(100% - clamp(96px,12vw,236px)),1800px) !important;
	max-width:1800px !important;
	min-height:86px;
	margin-inline:auto !important;
	padding:0 34px !important;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:32px;
	background:#000000;
	border:0 !important;
	border-radius:32px;
	box-sizing:border-box;
}

.haitech-site-logo img {
	width:180px;
	height:auto;
}

.haitech-btn--primary,
.elementor-button {
	border:0 !important;
}

@media(max-width:767px){
	#site-header.haitech-site-header{padding-top:14px;}
	body #site-header .header-inner.haitech-header-inner,
	body .haitech-header-inner{
		width:calc(100% - 40px) !important;
		min-height:70px;
		padding:0 22px !important;
		border-radius:26px;
	}
	.haitech-site-logo img{width:160px;}
}

/* Sticky HAITECH header on scroll */
#site-header.haitech-site-header{
	position:sticky;
	top:0;
	transition:padding .28s ease, background-color .28s ease, backdrop-filter .28s ease;
}

#site-header.haitech-site-header.is-scrolled{
	padding-top:8px;
	background:rgba(0,0,0,.80) !important;
	-webkit-backdrop-filter:blur(18px);
	backdrop-filter:blur(18px);
}

#site-header.haitech-site-header.is-scrolled .haitech-header-inner{
	background:transparent !important;
}

@media(max-width:767px){
	#site-header.haitech-site-header.is-scrolled{
		padding-top:6px;
		-webkit-backdrop-filter:blur(14px);
		backdrop-filter:blur(14px);
	}
}

