/*
Theme Name: AVSteel Roof Health Check
Theme URI: https://avsteel.vn
Description: Theme con của Hello Elementor cho landing page "Đánh giá sức khỏe mái nhà xưởng" của AVSteel. Toàn bộ nội dung trang dựng bằng Elementor; theme chỉ chứa token màu, font và các chi tiết trang trí.
Author: 123Website
Author URI: https://123website.com.vn
Template: hello-elementor
Version: 1.0.0
Requires PHP: 8.0
Text Domain: avsteel
*/

:root {
	--avs-text-primary: #121a2a;
	--avs-text-secondary: #3a4558;
	--avs-text-tertiary: #66728a;
	--avs-text-inverse-muted: #c3cad6;
	--avs-text-brand: #2846ac;
	--avs-text-brand-light: #c9d4f7;
	--avs-text-warning: #d97706;
	--avs-bg-brand: #2846ac;
	--avs-bg-brand-subtle: #f1f4fd;
	--avs-bg-inverse: #07142b;
	--avs-bg-warning: #f59e0b;
	--avs-bg-warning-subtle: #fff7e6;
	--avs-border-default: #dce1e9;
	--avs-border-inverse: #132b55;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: #fff;
	color: var(--avs-text-primary);
	font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor p { margin-top: 0; }

/* ---------- Header dính đầu trang ---------- */

.avs-sticky {
	position: sticky !important;
	top: 0;
	z-index: 100;
	transition: box-shadow .2s ease;
}
.admin-bar .avs-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .avs-sticky { top: 46px; } }
.avs-sticky.avs-scrolled { box-shadow: 0 8px 24px rgba(7, 20, 43, .08); }

/* ---------- Eyebrow: chữ mono viết hoa + vạch 24px ---------- */

.avs-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
}
.avs-eyebrow .elementor-heading-title::before {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 2px;
	background: currentColor;
}
.avs-eyebrow--warning .elementor-heading-title::before { background: var(--avs-bg-warning); }

/* ---------- Hero ---------- */

.avs-hero { isolation: isolate; }
.avs-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(7, 20, 43, 0) 0%, rgba(7, 20, 43, 0) 75%, rgba(7, 20, 43, .9) 100%),
		linear-gradient(90deg, rgba(7, 20, 43, .82) 0%, rgba(7, 20, 43, .55) 38%, rgba(7, 20, 43, .12) 62%, rgba(7, 20, 43, 0) 100%);
}
.avs-hero > .e-con-inner { position: relative; z-index: 1; }
@media (max-width: 1024px) {
	.avs-hero::after { background: linear-gradient(180deg, rgba(7, 20, 43, .78) 0%, rgba(7, 20, 43, .88) 60%, rgba(7, 20, 43, .95) 100%); }
}

/* ---------- Ô icon (widget Ảnh mang class avs-iconbox) ---------- */

.avs-iconbox .elementor-widget-container,
.avs-iconbox.elementor-widget-image {
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.avs-iconbox img { display: block; }
.avs-iconbox--warning { width: 48px; height: 48px; border-radius: 12px; background: var(--avs-bg-warning-subtle); }
.avs-iconbox--brand-subtle { width: 48px; height: 48px; border-radius: 12px; background: var(--avs-bg-brand-subtle); }
.avs-iconbox--brand { width: 44px; height: 44px; border-radius: 10px; background: var(--avs-bg-brand); }
.avs-iconbox--circle-warning { width: 52px; height: 52px; border-radius: 50%; background: var(--avs-bg-warning); }

/* ---------- Nút Elementor: icon SVG màu theo thiết kế ---------- */

.elementor-button .elementor-button-icon svg { width: 20px; height: 20px; fill: none !important; }
.elementor-button .elementor-button-icon svg :is(path, line, circle, rect, polyline) { stroke: currentColor; }
.avs-btn-sm .elementor-button .elementor-button-icon svg { width: 18px; height: 18px; }
.elementor-button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }

/* ---------- Top bar ---------- */

.avs-topbar-sep {
	display: inline-block;
	width: 1px;
	height: 12px;
	margin: 0 20px;
	vertical-align: -1px;
	background: var(--avs-border-inverse);
}

/* ---------- Danh sách icon ---------- */

.elementor-icon-list-icon svg { fill: none !important; }
.avs-trust .elementor-icon-list-items { row-gap: 10px; }

/* ---------- Logo khách hàng (chữ) ---------- */

.avs-clients .elementor-icon-list-items.elementor-inline-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: 14px;
}
.avs-clients .elementor-icon-list-items.elementor-inline-items { margin: 0 !important; }
.avs-clients .elementor-icon-list-item { margin: 0 !important; }
.avs-clients .elementor-icon-list-item::after { display: none !important; }
@media (max-width: 1024px) {
	.avs-clients .elementor-icon-list-items.elementor-inline-items { justify-content: center; column-gap: 28px; }
}

/* ---------- Thẻ có hiệu ứng nhấc nhẹ khi rê chuột ---------- */

.avs-lift { transition: box-shadow .2s ease, transform .2s ease; }
.avs-lift:hover { box-shadow: 0 12px 32px rgba(7, 20, 43, .08); transform: translateY(-2px); }

/* ---------- Hàng giá trị (Vì sao chọn AVS) ---------- */

.avs-value + .avs-value { border-top: 1px solid var(--avs-border-default); }

/* ---------- Dòng chân trang ---------- */

.avs-footer-bottom a { color: inherit; text-decoration: none; }
.avs-footer-bottom a:hover { color: #fff; }
.avs-credit a { color: var(--avs-text-brand-light) !important; text-decoration: none; }
.avs-credit a:hover { color: #fff !important; }

/* ---------- Ảnh bo góc phủ kín khung ---------- */

.avs-cover-img, .avs-cover-img .elementor-widget-container { height: 100%; }
.avs-cover-img img { width: 100%; height: 100% !important; object-fit: cover; }

/* ---------- Nút gọi nổi trên di động ---------- */

@media (max-width: 767px) {
	.avs-hide-mobile { display: none !important; }
}

/* ---------- Ô số liệu ---------- */

@media (max-width: 767px) {
	.e-con.avs-stat { --padding-top: 18px; --padding-right: 16px; --padding-bottom: 18px; --padding-left: 16px; }
}
