/* AG — Công ty TNHH Quản trị Tài chính AG
   Bố cục học từ tavitax.com; màu lấy từ logo AG. Class tiền tố ag-.
   Responsive theo mốc Flatsome: 849px (tablet) / 549px (mobile). */

:root {
	--ag-navy: #1f3d7a;
	--ag-navy-2: #13285a;
	--ag-navy-3: #0f1e3d;
	--ag-gold: #c9a247;
	--ag-gold-2: #a87f2a;
	--ag-gold-soft: #faf6ee;
	--ag-ink: #0f1e3d;
	--ag-text: #334155;
	--ag-mute: #64748b;
	--ag-line: #e2e8f0;
	--ag-line-2: #f1f5f9;
	--ag-bg-2: #f8fafc;
	--ag-radius: 20px;
	--ag-shadow: 0 1px 2px rgba(15, 30, 61, .04), 0 10px 30px -12px rgba(15, 30, 61, .12);
}

body { color: var(--ag-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--ag-ink); letter-spacing: -.01em; }
[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */
.header-main { box-shadow: 0 1px 0 var(--ag-line); }
.header-nav-main.nav > li > a { font-size: 15px; font-weight: 500; padding: 0 2px; }
.header-nav-main.nav > li { margin: 0 14px; }
.header-nav-main.nav > li.active > a,
.header-nav-main.nav > li.current-menu-item > a { color: var(--ag-navy); }
.header-button .button { text-transform: none; letter-spacing: 0; font-weight: 700; padding: 0 22px; box-shadow: 0 6px 16px -6px rgba(31, 61, 122, .55); }
.stuck .header-main { box-shadow: 0 6px 20px -12px rgba(15, 30, 61, .25); }

/* ---------- Thành phần chung ---------- */
.ag-kicker {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
	color: var(--ag-gold-2); margin-bottom: 14px;
}
.ag-kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.ag-kicker--center::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.ag-kicker--gold { color: var(--ag-gold); }

.ag-h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.12; font-weight: 700; margin-bottom: 24px; }
.ag-h1 em, .ag-h2 em { font-style: italic; color: var(--ag-gold-2); }
.ag-h1--page { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.ag-h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; font-weight: 700; margin-bottom: 18px; }
.ag-h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.ag-sub { font-size: 17px; line-height: 1.7; color: var(--ag-mute); }

.ag-head { margin-bottom: 40px; }
.ag-head--center { margin-left: auto !important; margin-right: auto !important; /* thắng float/margin của .col Flatsome */ text-align: center; float: none; }
.ag-head--center .col-inner { text-align: center; }

.ag-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ag-actions--center { justify-content: center; }
.ag-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: 999px;
	font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
	border: 1.5px solid transparent; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.ag-btn:hover { transform: translateY(-2px); }
.ag-btn--primary { background: var(--ag-navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 61, 122, .7); }
.ag-btn--primary:hover { background: var(--ag-navy-2); color: #fff; }
.ag-btn--gold { background: var(--ag-gold); color: var(--ag-navy-3); box-shadow: 0 10px 24px -10px rgba(201, 162, 71, .8); }
.ag-btn--gold:hover { background: #d6b25a; color: var(--ag-navy-3); }
.ag-btn--ghost { background: #fff; color: var(--ag-ink); border-color: var(--ag-line); box-shadow: var(--ag-shadow); }
.ag-btn--ghost:hover { color: var(--ag-navy); border-color: var(--ag-navy); }
.ag-btn--outline { background: transparent; color: var(--ag-navy); border-color: var(--ag-navy); }
.ag-btn--outline:hover { background: var(--ag-navy); color: #fff; }
.ag-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.ag-btn--ghost-light:hover { border-color: #fff; color: #fff; }
.ag-btn--block { width: 100%; }

.ag-pill {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--ag-navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.ag-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ag-navy); }
.ag-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-ico--box { width: 52px; height: 52px; border-radius: 14px; background: #eef2fa; border: 1px solid #dbe3f3; }
.ag-ico--box svg { width: 24px; height: 24px; }

.ag-card {
	height: 100%; background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
	padding: 32px; box-shadow: var(--ag-shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ag-card:hover { transform: translateY(-4px); border-color: #cdd7ea; box-shadow: 0 20px 40px -18px rgba(15, 30, 61, .25); }
.ag-cards > .col { padding-bottom: 24px; }
.ag-cards .col-inner { height: 100%; }

.ag-check { list-style: none; margin: 0; padding: 0; }
/* Flatsome thụt li trong .col-inner ul */
.ag-check li, .ag-contact-list li, .ag-footer__links li, .ag-footer__info li { margin-left: 0 !important; }
.ag-check li { position: relative; margin: 0 0 10px; padding-left: 28px; font-size: 15px; color: var(--ag-text); }
.ag-check li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
	border: 1.5px solid var(--ag-gold); background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87f2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- 01 Hero ---------- */
.ag-hero { overflow: hidden; }
.ag-hero .section-bg {
	background:
		radial-gradient(60% 70% at 92% 10%, rgba(31, 61, 122, .12), transparent 60%),
		radial-gradient(45% 60% at 70% 100%, rgba(201, 162, 71, .16), transparent 60%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important; /* thắng bg_color inline của section */
}
.ag-hero .section-content::before {
	content: ""; position: absolute; right: -120px; top: 40px; width: 720px; height: 420px; pointer-events: none; opacity: .5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 420'%3E%3Cpath d='M10 410C190 230 420 120 710 90 470 150 280 260 120 410z' fill='%23c9a247' fill-opacity='.18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ag-hero .section-content { position: relative; }
.ag-badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; margin-bottom: 26px;
	border: 1px solid #dbe3f3; border-radius: 999px; background: rgba(255, 255, 255, .8);
	font-size: 13px; font-weight: 700; color: var(--ag-navy);
}
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-gold); box-shadow: 0 0 0 4px rgba(201, 162, 71, .2); }
.ag-hero-lead { border-left: 3px solid var(--ag-gold); padding-left: 20px; max-width: 560px; }
.ag-hero-lead p { font-size: 18px; line-height: 1.7; color: var(--ag-text); margin-bottom: 8px; }
.ag-hero-lead strong { color: var(--ag-ink); }

.ag-contact-card {
	position: relative; background: var(--ag-navy-2); color: #fff; border-radius: 24px; padding: 34px;
	box-shadow: 0 30px 60px -24px rgba(19, 40, 90, .6); overflow: hidden;
}
.ag-contact-card::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
	border: 30px solid rgba(201, 162, 71, .14);
}
.ag-contact-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ag-gold); margin-bottom: 18px; }
.ag-contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.ag-contact-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; }
.ag-contact-list small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ag-mute); margin-bottom: 2px; }
.ag-contact-list a, .ag-contact-list span { font-size: 15px; font-weight: 500; color: var(--ag-ink); word-break: break-word; }
.ag-contact-list .ag-ico { width: 40px; height: 40px; border-radius: 12px; background: #eef2fa; }
.ag-contact-card .ag-contact-list small { color: rgba(255, 255, 255, .6); }
.ag-contact-card .ag-contact-list a, .ag-contact-card .ag-contact-list span { color: #fff; }
.ag-contact-card .ag-ico { background: rgba(255, 255, 255, .08); color: var(--ag-gold); }

/* ---------- 02 Số liệu ---------- */
.ag-stats { border-top: 1px solid var(--ag-line); border-bottom: 1px solid var(--ag-line); }
.ag-stats-row > .col { padding-bottom: 0; }
.ag-stat { text-align: center; padding: 12px 8px; }
.ag-stat strong { display: block; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 700; color: var(--ag-navy); }
.ag-stat span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-text); }

/* ---------- 03 Ưu đãi ---------- */
.ag-promo { border-bottom: 1px solid #efe4c8; }
.ag-promo .section-bg { background: linear-gradient(90deg, #fbf7ec, #fffdf8 50%, #f8f1de) !important; /* thắng bg_color inline */ }
.ag-promo__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--ag-mute); margin-bottom: 10px; }
.ag-promo__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.ag-promo__text { color: var(--ag-mute); margin-bottom: 0; }
.ag-promo__cta .ag-actions { margin-top: 0; }
.ag-actions--end { justify-content: flex-end; }

/* ---------- 04 Giới thiệu ---------- */
.ag-about { border-bottom: 1px solid var(--ag-line-2); }
.ag-about-row { max-width: none !important; /* panel full-bleed sát mép phải */ }
/* padding đặt trên .col vì row padding="0px" của Flatsome ghi đè .col-inner */
.col.ag-about-copy { display: flex; align-items: center; padding: 96px 48px 96px max(24px, calc((100vw - 1200px) / 2 + 15px)); }
.ag-about__lead { font-size: 16px; line-height: 1.75; color: var(--ag-mute); max-width: 440px; }

.ag-about-panels { padding: 0 !important; /* panel sát mép như thiết kế */ }
.ag-about-panels .col-inner { height: 100%; }
.ag-pillars { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; min-height: 560px; }
.ag-pillar {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
	padding: 40px clamp(20px, 2.2vw, 36px); outline: none; cursor: default;
	background: linear-gradient(180deg, var(--ag-navy) 0%, var(--ag-navy-2) 100%); color: #fff;
	border-left: 1px solid rgba(255, 255, 255, .1); transition: filter .35s;
}
.ag-pillar:nth-child(2) { background: linear-gradient(180deg, #24468a 0%, #162f66 100%); }
.ag-pillar:nth-child(3) { background: linear-gradient(180deg, #2a4f97 0%, #1a3672 100%); }
.ag-pillar::before { content: ""; position: absolute; left: clamp(20px, 2.2vw, 36px); top: 36px; width: 40px; height: 3px; background: var(--ag-gold); transition: width .4s; }
.ag-pillar__no { position: absolute; right: 20px; top: 20px; font-size: 64px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .08); transition: color .4s; }
.ag-pillar__inner { position: relative; transform: translateY(12px); transition: transform .5s ease; }
.ag-pillar__body { max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0; transition: max-height .5s ease, opacity .4s ease, margin .5s ease; }
.ag-pillar__body p { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .78); margin-bottom: 16px; }
.ag-pillar__body ul { list-style: none; margin: 0; padding: 0; }
.ag-pillar__body li { position: relative; margin: 0 0 10px !important; /* Flatsome thụt li */ padding-left: 22px; font-size: 14px; color: #fff; }
.ag-pillar__body li::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ag-gold); }
.ag-pillar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ag-pillar__head h3 { margin: 0; font-size: clamp(22px, 1.9vw, 26px); font-weight: 700; white-space: nowrap; color: #fff; transition: color .3s; }
.ag-pillar__arrow { flex: none; width: 22px; height: 22px; fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .3s; }
.ag-pillar:hover, .ag-pillar:focus { filter: brightness(1.12); }
.ag-pillar:hover::before, .ag-pillar:focus::before { width: 64px; }
.ag-pillar:hover .ag-pillar__no, .ag-pillar:focus .ag-pillar__no { color: rgba(201, 162, 71, .22); }
.ag-pillar:hover .ag-pillar__inner, .ag-pillar:focus .ag-pillar__inner { transform: none; }
.ag-pillar:hover .ag-pillar__body, .ag-pillar:focus .ag-pillar__body { max-height: 320px; opacity: 1; margin-bottom: 22px; }
.ag-pillar:hover h3, .ag-pillar:focus h3 { color: var(--ag-gold); }
.ag-pillar:hover .ag-pillar__arrow, .ag-pillar:focus .ag-pillar__arrow { stroke: var(--ag-gold); transform: translateX(4px); }

/* ---------- 05 Dịch vụ ---------- */
.ag-service__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ag-line-2); }
.ag-service__head small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-gold-2); }
.ag-service__head h3 { font-size: 22px; margin: 0; }
.ag-service--highlight { border-color: #ead9ad; background: linear-gradient(180deg, #fffdf7, #fff); }
.ag-service--highlight .ag-ico--box { background: #fbf3df; border-color: #efdfb5; color: var(--ag-gold-2); }

/* ---------- 06 Vì sao ---------- */
.ag-why-card .ag-ico--box { margin-bottom: 22px; }
.ag-why-card h3 { font-size: 20px; margin-bottom: 10px; }
.ag-why-card p { font-size: 15px; line-height: 1.7; color: var(--ag-mute); margin: 0; }

/* ---------- CTA / page header (nền navy) ---------- */
.ag-cta.dark .ag-h2, .ag-pagehead .ag-h1 { color: #fff; }
.ag-cta.dark .ag-sub, .ag-pagehead .ag-sub { color: rgba(255, 255, 255, .72); }
.ag-cta .ag-head, .ag-pagehead .ag-head { margin-bottom: 0; }
.ag-cta.dark .section-bg, .ag-pagehead .section-bg {
	background:
		radial-gradient(50% 80% at 100% 0%, rgba(201, 162, 71, .18), transparent 60%),
		radial-gradient(40% 70% at 0% 100%, rgba(42, 79, 151, .55), transparent 60%),
		var(--ag-navy-2) !important; /* thắng bg_color inline */
}
.ag-cta:not(.dark) .ag-h2 { color: var(--ag-ink); }

/* ---------- Báo giá ---------- */
.ag-offer {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 22px; margin-bottom: 36px;
	border: 1px solid #efdfb5; border-radius: 16px; background: var(--ag-gold-soft);
}
.ag-offer p { margin: 0; color: var(--ag-ink); }
.ag-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ag-line); border-radius: 16px; box-shadow: var(--ag-shadow); }
.ag-table { width: 100%; min-width: 820px; margin: 0; border-collapse: collapse; font-size: 15px; }
.ag-table th {
	background: var(--ag-navy-2); color: #fff; font-weight: 700; text-align: center; vertical-align: middle;
	padding: 16px 12px; border: 0; border-right: 1px solid rgba(255, 255, 255, .12); text-transform: none; letter-spacing: 0; font-size: 15px;
}
.ag-table th small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ag-table th.ag-th-gold { background: var(--ag-gold); color: var(--ag-navy-3); }
.ag-table th.ag-th-gold small { color: rgba(15, 30, 61, .7); }
.ag-table td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--ag-line); border-right: 1px solid var(--ag-line-2); color: var(--ag-text); }
.ag-table td:nth-child(1) { text-align: center; font-weight: 700; color: var(--ag-navy); }
.ag-table td:nth-child(4), .ag-table td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.ag-table tbody tr:nth-child(even) td { background: var(--ag-bg-2); }
.ag-table td.ag-td-merge { text-align: center; font-weight: 700; color: var(--ag-navy-3); background: var(--ag-gold-soft) !important; border-left: 1px solid #efdfb5; }
.ag-note { margin-top: 12px; font-size: 13px; color: var(--ag-mute); }

/* ---------- Liên hệ ---------- */
.ag-contact .col-inner { height: 100%; }
.ag-contact-info .ag-contact-list li { padding-bottom: 18px; border-bottom: 1px solid var(--ag-line-2); }
.ag-map { height: 100%; min-height: 420px; border-radius: var(--ag-radius); overflow: hidden; border: 1px solid var(--ag-line); box-shadow: var(--ag-shadow); }
.ag-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.ag-footer { border-top: 1px solid var(--ag-line); }
.ag-footer__name { font-size: 15px; font-weight: 700; color: var(--ag-ink); margin: 14px 0 6px; }
.ag-footer p { font-size: 14px; color: var(--ag-mute); }
.ag-footer__title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.ag-footer__links, .ag-footer__info { list-style: none; margin: 0; padding: 0; }
.ag-footer__links li, .ag-footer__info li { margin: 0 0 10px; font-size: 14px; color: var(--ag-mute); line-height: 1.6; }
.ag-footer__links a { color: var(--ag-text); }
.ag-footer__links a:hover, .ag-footer__info a:hover { color: var(--ag-gold-2); }
.ag-footer__info strong { color: var(--ag-ink); }
.ag-footer__info a { color: var(--ag-navy); }
.ag-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ag-gold); color: var(--ag-navy-3); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.absolute-footer { border-top: 1px solid var(--ag-line); font-size: 13px; }
.absolute-footer, .absolute-footer a { color: var(--ag-mute); }

/* Nút gọi nổi */
.ag-float-call {
	position: fixed; left: 20px; bottom: 20px; z-index: 99; display: inline-flex; align-items: center; gap: 10px;
	height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--ag-gold); color: var(--ag-navy-3);
	font-weight: 700; font-size: 15px; box-shadow: 0 12px 28px -10px rgba(15, 30, 61, .5);
}
@media (min-width: 850px) { .ag-float-call { display: none; } } /* desktop đã có nút trên header */
.ag-float-call:hover { color: var(--ag-navy-3); background: #d6b25a; }

/* ---------- Tablet ≤ 849px ---------- */
@media (max-width: 849px) {
	.ag-hero-aside { margin-top: 12px; }
	.ag-actions--end { justify-content: flex-start; margin-top: 18px !important; /* thắng margin-top: 0 desktop */ }
	.col.ag-about-copy { padding: 64px 24px 48px; }
	/* màn cảm ứng: luôn hiện nội dung cột */
	.ag-pillars { min-height: 0; }
	.ag-pillar { padding: 72px 24px 32px; justify-content: flex-start; }
	.ag-pillar__inner { transform: none; display: flex; flex-direction: column-reverse; /* tiêu đề lên trước */ }
	.ag-pillar__head { padding-top: 0; border-top: 0; margin-bottom: 14px; }
	.ag-pillar::before { top: 36px; }
	.ag-pillar__body { max-height: none; opacity: 1; margin-bottom: 0; }
	.ag-pillar:hover .ag-pillar__body, .ag-pillar:focus .ag-pillar__body { margin-bottom: 0; }
	.ag-pillar__arrow { display: none; }
	.ag-card { padding: 26px; }
}

/* ---------- Mobile ≤ 549px ---------- */
@media (max-width: 549px) {
	.ag-hero-lead p { font-size: 16px; }
	.ag-actions .ag-btn { width: 100%; }
	.ag-contact-card { padding: 26px 22px; }
	.ag-stat span { font-size: 11px; }
	.ag-pillars { grid-template-columns: 1fr; }
	.ag-pillar { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.ag-service__head h3 { font-size: 19px; }
	.ag-float-call { left: 14px; bottom: 14px; height: 48px; padding: 0 14px; }
	.ag-float-call span { display: none; }
}
