/*
Theme Name: Thành Tùng Demo
Theme URI: https://xedienthanhtung.com/
Description: Giao diện trang chủ demo cho Hệ Thống Xe Điện Thành Tùng.
Author: Sophie Levy
Template: flatsome
Version: 1.0.0
Text Domain: thanh-tung-demo
*/

:root {
	--tt-green: #16a34a;
	--tt-green-dark: #08783a;
	--tt-lime: #d9f99d;
	--tt-orange: #f97316;
	--tt-ink: #102a1d;
	--tt-muted: #64756b;
	--tt-soft: #f3f8f4;
	--tt-line: #dfe9e2;
	--tt-white: #fff;
}

html { scroll-behavior: smooth; }
body.tt-home { margin: 0; color: var(--tt-ink); background: #fff; font-family: "Inter", "Segoe UI", Arial, sans-serif; }
.tt-home *, .tt-home *::before, .tt-home *::after { box-sizing: border-box; }
.tt-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.tt-announcement { padding: 9px 20px; color: #fff; background: #073d24; font-size: 13px; text-align: center; }
.tt-announcement strong { color: #fef08a; }
.tt-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(12, 74, 41, .09); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.tt-header__inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.tt-logo { display: block; width: 230px; flex: 0 0 auto; }
.tt-logo img { display: block; width: 100%; height: auto; }
.tt-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.tt-nav a { color: #173f2a; text-decoration: none; font-size: 14px; font-weight: 750; }
.tt-nav a:hover { color: var(--tt-green); }
.tt-header__call { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 12px; color: #fff !important; background: var(--tt-orange); box-shadow: 0 8px 20px rgba(249,115,22,.23); }
.tt-header__call svg { width: 18px; }
.tt-menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: #fff; background: var(--tt-green); font-size: 22px; }

.tt-hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: #0a4f2c; }
.tt-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,34,18,.94) 0%, rgba(5,55,28,.82) 42%, rgba(4,34,18,.14) 75%); }
.tt-hero__content { position: relative; z-index: 2; max-width: 660px; padding: 84px 0 110px; color: #fff; }
.tt-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tt-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a3e635; box-shadow: 0 0 0 5px rgba(163,230,53,.14); }
.tt-hero h1 { max-width: 650px; margin: 20px 0 18px; color: #fff; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; }
.tt-hero h1 span { color: #bef264; }
.tt-hero p { max-width: 590px; margin: 0; color: #dcebe1; font-size: 18px; line-height: 1.65; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tt-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.tt-btn:hover { transform: translateY(-2px); }
.tt-btn--orange { color: #fff; background: var(--tt-orange); box-shadow: 0 12px 30px rgba(249,115,22,.3); }
.tt-btn--light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.tt-hero__stats { position: absolute; z-index: 3; right: max(20px, calc((100vw - 1180px)/2)); bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(135px,1fr)); color: #fff; background: var(--tt-green); border-radius: 20px 20px 0 0; overflow: hidden; }
.tt-hero__stat { min-width: 150px; padding: 20px 24px; border-right: 1px solid rgba(255,255,255,.18); }
.tt-hero__stat:last-child { border-right: 0; }
.tt-hero__stat strong { display: block; font-size: 25px; line-height: 1; }
.tt-hero__stat span { display: block; margin-top: 7px; color: #dcfce7; font-size: 12px; }

.tt-section { padding: 88px 0; }
.tt-section--soft { background: var(--tt-soft); }
.tt-section--dark { color: #fff; background: #082f1c; }
.tt-section-head { max-width: 720px; margin-bottom: 34px; }
.tt-section-head--center { margin-inline: auto; text-align: center; }
.tt-overline { display: block; margin-bottom: 10px; color: var(--tt-green); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tt-section--dark .tt-overline { color: #bef264; }
.tt-section h2 { margin: 0; color: var(--tt-ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.tt-section--dark h2 { color: #fff; }
.tt-section-head p { margin: 14px 0 0; color: var(--tt-muted); font-size: 16px; line-height: 1.65; }
.tt-section--dark .tt-section-head p { color: #bfdbc9; }

.tt-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tt-category { position: relative; min-height: 215px; padding: 24px; border: 1px solid var(--tt-line); border-radius: 20px; overflow: hidden; color: var(--tt-ink); background: #fff; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tt-category:hover { transform: translateY(-5px); border-color: #86d59e; box-shadow: 0 18px 38px rgba(8,82,40,.1); }
.tt-category__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--tt-green-dark); background: #dcfce7; font-size: 26px; }
.tt-category:nth-child(2) .tt-category__icon { color: #c2410c; background: #ffedd5; }
.tt-category:nth-child(3) .tt-category__icon { color: #0369a1; background: #e0f2fe; }
.tt-category:nth-child(4) .tt-category__icon { color: #7e22ce; background: #f3e8ff; }
.tt-category h3 { margin: 30px 0 5px; font-size: 19px; }
.tt-category p { margin: 0; color: var(--tt-muted); font-size: 13px; }
.tt-category__arrow { position: absolute; right: 22px; bottom: 20px; font-size: 22px; }

.tt-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tt-product { position: relative; border: 1px solid var(--tt-line); border-radius: 22px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.tt-product:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(7,55,29,.12); }
.tt-product__image { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f6f7f6; }
.tt-product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tt-product:hover .tt-product__image img { transform: scale(1.04); }
.tt-badge { position: absolute; top: 15px; left: 15px; z-index: 2; padding: 6px 9px; border-radius: 7px; color: #fff; background: var(--tt-orange); font-size: 11px; font-weight: 800; }
.tt-product__body { padding: 20px; }
.tt-product__brand { color: var(--tt-green); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.tt-product h3 { margin: 6px 0 15px; font-size: 18px; }
.tt-product__meta { display: flex; gap: 10px; margin-bottom: 16px; color: var(--tt-muted); font-size: 12px; }
.tt-product__price { display: flex; align-items: baseline; gap: 9px; }
.tt-product__price strong { color: #df4f0b; font-size: 20px; }
.tt-product__price del { color: #9ba8a0; font-size: 12px; }
.tt-products-note { margin: 24px 0 0; color: var(--tt-muted); font-size: 12px; text-align: center; }

.tt-benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.tt-benefit { padding: 24px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(255,255,255,.055); }
.tt-benefit__num { color: #bef264; font-size: 12px; font-weight: 850; }
.tt-benefit h3 { margin: 24px 0 8px; color: #fff; font-size: 18px; }
.tt-benefit p { margin: 0; color: #b9d3c2; font-size: 13px; line-height: 1.65; }

.tt-showroom { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 24px 65px rgba(15,60,34,.1); }
.tt-showroom__image { min-height: 500px; }
.tt-showroom__image img { width: 100%; height: 100%; object-fit: cover; }
.tt-showroom__content { padding: 58px; display: flex; flex-direction: column; justify-content: center; }
.tt-showroom__content h2 { margin-bottom: 18px; }
.tt-checks { display: grid; gap: 13px; margin: 20px 0 28px; padding: 0; list-style: none; }
.tt-checks li { display: flex; align-items: flex-start; gap: 10px; color: #395244; }
.tt-checks li::before { content: "✓"; width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--tt-green); font-size: 12px; font-weight: 900; }

.tt-warranty { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg,#0b7138,#16a34a); }
.tt-warranty::before { content: ""; position: absolute; width: 460px; height: 460px; right: -100px; top: -200px; border: 80px solid rgba(255,255,255,.07); border-radius: 50%; }
.tt-warranty__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.tt-warranty h2 { color: #fff; }
.tt-warranty p { max-width: 650px; margin: 14px 0 0; color: #dcfce7; }
.tt-warranty .axd-button-trigger { min-height: 54px !important; padding: 0 22px !important; border: 0 !important; border-radius: 12px !important; color: #143520 !important; background: #fff !important; font-weight: 850 !important; box-shadow: 0 14px 30px rgba(4,50,24,.2) !important; }

.tt-footer { padding: 60px 0 20px; color: #b7c8bd; background: #061f13; }
.tt-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 60px; }
.tt-footer__logo { width: 220px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.tt-footer h3 { margin: 0 0 17px; color: #fff; font-size: 15px; }
.tt-footer p, .tt-footer li, .tt-footer a { color: #b7c8bd; font-size: 13px; line-height: 1.8; }
.tt-footer ul { margin: 0; padding: 0; list-style: none; }
.tt-footer a { text-decoration: none; }
.tt-footer__bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.tt-float-call { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--tt-orange); box-shadow: 0 10px 28px rgba(249,115,22,.42); text-decoration: none; animation: ttPulse 2.2s infinite; }
.tt-float-call svg { width: 24px; }
@keyframes ttPulse { 0%,100%{box-shadow:0 10px 28px rgba(249,115,22,.42),0 0 0 0 rgba(249,115,22,.25)} 50%{box-shadow:0 10px 28px rgba(249,115,22,.42),0 0 0 13px rgba(249,115,22,0)} }

@media (max-width: 980px) {
	.tt-nav { position: fixed; inset: 112px 20px auto; display: none; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--tt-line); border-radius: 16px; background: #fff; box-shadow: 0 20px 45px rgba(4,45,22,.16); }
	.tt-nav.is-open { display: flex; }
	.tt-nav a { padding: 12px 10px; }
	.tt-menu-toggle { display: block; margin-left: auto; }
	.tt-header__call { display: none !important; }
	.tt-hero { min-height: 620px; }
	.tt-hero__content { padding-bottom: 150px; }
	.tt-hero__stats { right: 20px; left: 20px; }
	.tt-categories, .tt-benefits { grid-template-columns: repeat(2,1fr); }
	.tt-showroom { grid-template-columns: 1fr; }
	.tt-showroom__image { min-height: 380px; }
}

@media (max-width: 720px) {
	.tt-container { width: min(100% - 28px, 1180px); }
	.tt-header__inner { min-height: 72px; }
	.tt-logo { width: 185px; }
	.tt-nav { inset: 102px 14px auto; }
	.tt-hero { min-height: auto; align-items: flex-start; }
	.tt-hero__bg { opacity: .44; }
	.tt-hero::after { background: linear-gradient(90deg,rgba(4,34,18,.96),rgba(5,55,28,.78)); }
	.tt-hero__content { padding: 70px 0 175px; }
	.tt-hero h1 { font-size: 44px; }
	.tt-hero p { font-size: 16px; }
	.tt-actions { flex-direction: column; align-items: stretch; }
	.tt-hero__stats { grid-template-columns: repeat(3,1fr); right: 0; left: 0; border-radius: 0; }
	.tt-hero__stat { min-width: 0; padding: 16px 9px; text-align: center; }
	.tt-hero__stat strong { font-size: 20px; }
	.tt-section { padding: 64px 0; }
	.tt-categories, .tt-products, .tt-benefits, .tt-footer__grid { grid-template-columns: 1fr; }
	.tt-category { min-height: 180px; }
	.tt-showroom__image { min-height: 280px; }
	.tt-showroom__content { padding: 30px 24px; }
	.tt-warranty__inner { grid-template-columns: 1fr; }
	.tt-footer__grid { gap: 32px; }
	.tt-footer__bottom { flex-direction: column; }
}
