/*
 * EZTECH Elementor Widgets: base styles.
 * Everything is scoped under .eztech-w / .eztech-* — no global resets.
 * Design tokens measured on https://eztech.vn/ (16/11/2026).
 */

/* Fonts (SIL OFL 1.1). Names are namespaced so they never clash with the theme's fonts. */
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-vietnamese-400-normal.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/roboto-vietnamese-500-normal.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-vietnamese-700-normal.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "EZ Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "EZ Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-vietnamese-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "EZ Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Dark page background on any page that uses EZTECH widgets (zero specificity: any Elementor/theme background overrides it). */
:where(body:has(.eztech-w)) {
	background-color: #030d0a;
}

/* Tokens + widget root */
.eztech-w {
	--ez-bg: #030d0a;
	--ez-bg-header: #0a0b0d;
	--ez-text: #fff;
	--ez-text-light: #f8f9fa;
	--ez-muted: rgba(187, 208, 202, 0.8);
	--ez-primary: #49d493;
	--ez-btn-second: #3e9d7c;
	--ez-btn-dark: #464646;
	--ez-card-bg: rgba(28, 41, 37, 0.2);
	--ez-card-radius: 15px;
	--ez-gradient: linear-gradient(134.69deg, #b5db6b 0%, #35d29a 99.74%);
	--ez-font-body: "EZ Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
	--ez-font-head: "EZ Montserrat", sans-serif;

	box-sizing: border-box;
	color: var(--ez-text);
	font-family: var(--ez-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}
.eztech-w *,
.eztech-w *::before,
.eztech-w *::after {
	box-sizing: border-box;
}
.eztech-w :is(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
	margin: 0;
	padding: 0;
}
.eztech-w :is(ul, ol) {
	list-style: none;
}
.eztech-w img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}
.eztech-w a {
	text-decoration: none;
}
.eztech-w :is(h1, h2, h3, h4) {
	font-family: var(--ez-font-head);
	line-height: 1.2;
}
.eztech-w :focus-visible {
	outline: 2px solid var(--ez-primary);
	outline-offset: 2px;
}

.eztech-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 12px;
}
.eztech-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Gradient text */
.eztech-gradient-text {
	background-image: var(--ez-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* Section heading (title + subtitle) */
.eztech-section-head {
	margin-bottom: 3rem;
}
.eztech-section-head--center {
	text-align: center;
}
.eztech-section-head--start {
	text-align: left;
	margin-bottom: 1rem;
}
.eztech-section-title {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem !important;
}
.eztech-section-title--md {
	font-size: calc(1.325rem + 0.9vw);
}
.eztech-section-title--lg {
	font-size: calc(1.425rem + 2.1vw);
}
@media (min-width: 1200px) {
	.eztech-section-title--md {
		font-size: 2rem;
	}
	.eztech-section-title--lg {
		font-size: 3rem;
	}
}
.eztech-section-subtitle {
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--ez-muted);
}

/* Buttons */
.eztech-btn {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, filter 0.2s ease;
}
.eztech-btn--second {
	background-color: var(--ez-btn-second);
}
.eztech-btn--second:hover {
	filter: brightness(0.9);
}
.eztech-btn--dark {
	background-color: var(--ez-btn-dark);
}
.eztech-btn--dark:hover {
	filter: brightness(0.85);
}

/* Reveal on scroll (only hides content when JS will reveal it) */
.eztech-js .eztech-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.eztech-js .eztech-reveal.is-visible {
	opacity: 1;
	transform: none;
}
.elementor-editor-active .eztech-reveal {
	opacity: 1 !important;
	transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.eztech-js .eztech-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
body.eztech-no-scroll {
	overflow: hidden;
}
