/*
Theme Name: Homeauto
Theme URI: https://homeauto.vn/
Author: Nhà Thông Minh Homeauto
Description: Theme tự code cho Nhà Thông Minh Homeauto — thiết kế & thi công nhà thông minh, tích hợp AI.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeauto
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--brand: #1246ab;
	--brand-hover: #0e3d8f;
	--brand-dark: #0b3d91;
	--ink: #242424;
	--body: #1e1e1e;
	--muted: #777777;
	--accent: #ffa600;
	--accent-2: #fa8000;
	--danger: #cb2027;
	--surface: #f1f1f1;
	--surface-2: #f1f3f8;
	--line: #e5e7eb;
	--white: #ffffff;

	--font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-display: "Mulish", "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--radius: 0;
	--container: 1200px;
	--gutter: 20px;
	--header-h: 76px;
	--shadow: 0 10px 30px rgba(18, 70, 171, .10);
	--transition: .2s ease;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--brand-hover); }

button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	padding: 12px 20px; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--white); color: var(--brand);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--ink);
	line-height: 1.25;
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
h5, h6 { font-family: var(--font-sans); font-weight: 700; color: var(--ink); margin: 0 0 .6em; }

h1 { font-size: clamp(2rem, 4vw, 2.875rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.375rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

strong, b { font-weight: 700; }
small { font-size: .875em; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-soft { background: var(--surface-2); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand);
}
.section-head .eyebrow::before {
	content: "";
	display: inline-block;
	width: 24px; height: 2px;
	margin-right: 10px;
	vertical-align: middle;
	background: var(--accent-2);
}
.section-head h2 {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 12px;
}
.section-head h2::before,
.section-head h2::after {
	content: "";
	width: 44px;
	height: 2px;
	background: var(--line);
}
.section-head p { color: var(--muted); margin: 0; }
.section-head.is-left { margin-left: 0; text-align: left; }

/* Grid: mobile 1 cột, tablet 2, desktop theo số */
.grid-2, .grid-3, .grid-4 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 640px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   5. Components
   ========================================================================== */
/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: var(--font-sans);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	border: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
	white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-primary:hover,
.btn-primary:focus { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--white); }

.btn-outline { background: transparent; border-color: #333; color: #333; }
.btn-outline:hover,
.btn-outline:focus { background: #333; color: var(--white); }

.btn-light { background: var(--white); border-color: var(--white); color: var(--brand); }
.btn-light:hover,
.btn-light:focus { background: var(--surface-2); border-color: var(--surface-2); color: var(--brand-hover); }

.btn-accent { background: var(--accent-2); border-color: var(--accent-2); color: var(--white); }
.btn-accent:hover,
.btn-accent:focus { background: var(--accent); border-color: var(--accent); color: var(--white); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }

/* Card */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 0;
	transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card-media {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--surface-2) 0%, #dfe6f5 100%);
	color: var(--brand);
	overflow: hidden;
}
.card-media svg { width: 64px; height: 64px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.card-title { font-size: 1.125rem; margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }
.card-text { color: var(--muted); font-size: .9375rem; }
.card-footer { margin-top: auto; padding-top: 12px; }

/* Badge */
.badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var(--surface-2);
	color: var(--brand);
	border-radius: 0;
}
.badge-accent { background: var(--accent-2); color: var(--white); }
.badge-danger { background: var(--danger); color: var(--white); }

/* Icon box */
.icon-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	height: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.icon-box:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.icon-box .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	background: var(--brand);
	color: var(--white);
}
.icon-box .icon svg { width: 28px; height: 28px; }
.icon-box h3 { font-size: 1.125rem; margin: 4px 0 0; }
.icon-box p { color: var(--muted); margin: 0; font-size: .9375rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.check-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand); }

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Top bar */
.topbar {
	display: none;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
	font-size: .8125rem;
	color: var(--muted);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.topbar-item svg { width: 14px; height: 14px; color: var(--brand); }
.topbar a:hover { color: var(--brand); }
@media (min-width: 1024px) { .topbar { display: block; } }

/* Main bar */
.header-main .container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}
.header-left { justify-self: start; display: flex; align-items: center; }
.store-link {
	display: none;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--ink);
}
.store-link svg { width: 18px; height: 18px; color: var(--brand); }
.store-link:hover { color: var(--brand); }
.header-logo { justify-self: center; }

/* Logo */
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1;
	color: var(--ink);
	letter-spacing: -.02em;
}
.site-logo:hover { color: var(--ink); }
.site-logo .logo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: var(--brand);
	color: var(--white);
}
.site-logo .logo-icon svg { width: 24px; height: 24px; }
.site-logo .logo-accent { color: var(--brand); }
.custom-logo { max-height: 52px; width: auto; }
.site-logo .logo-img { max-height: 48px; width: auto; height: auto; display: block; }

/* Primary nav */
.primary-nav { flex: 1; display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul,
.primary-nav .menu { display: flex; align-items: center; justify-content: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 10px 14px;
	font-weight: 600;
	font-size: .9375rem;
	color: var(--ink);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { color: var(--brand); }
/* Dropdown cấp 2 */
.primary-nav .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 220px;
	padding: 8px 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 2px solid var(--brand);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 8px 18px; font-weight: 400; }

/* Header actions */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-hotline {
	display: none;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	line-height: 1.2;
}
.header-hotline .hotline-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--accent-2);
	color: var(--white);
}
.header-hotline .hotline-icon svg { width: 20px; height: 20px; }
.header-hotline small { display: block; font-size: .75rem; color: var(--muted); }
.header-hotline strong { font-family: var(--font-display); font-size: 1.0625rem; color: var(--danger); }
.header-hotline:hover strong { color: var(--brand); }

/* Nav row (dưới logo) */
.header-nav {
	display: none;
	border-top: 1px solid var(--line);
	background: var(--white);
}
.header-nav .container {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 56px;
}
.header-nav .primary-nav { flex: 1; }

/* Mega menu */
.mega-wrap { position: static; }
.mega-toggle { display: none; }
.mega-toggle .chev { width: 16px; height: 16px; transition: transform var(--transition); }
.mega-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega-toggle svg:first-child { width: 18px; height: 18px; }

.mega-menu {
	position: absolute;
	left: 0; right: 0;
	top: 100%;
	background: var(--white);
	border-top: 2px solid var(--brand);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
	padding: 28px 0;
	z-index: 90;
}
.mega-menu[hidden] { display: none; }
.mega-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mega-menu-head h2 { font-size: 1.125rem; margin: 0; }
.mega-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
@media (min-width: 768px) { .mega-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mega-grid { grid-template-columns: repeat(4, 1fr); } }
.mega-grid a {
	display: flex; align-items: center; gap: 12px;
	padding: 16px;
	height: 100%;
	background: var(--white);
	color: var(--ink);
	font-weight: 600;
}
.mega-grid a:hover { background: var(--surface-2); color: var(--brand); }
.mega-grid .mega-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--surface-2);
	color: var(--brand);
}
.mega-grid a:hover .mega-icon { background: var(--brand); color: var(--white); }
.mega-grid .mega-icon svg { width: 22px; height: 22px; }
.mega-grid .mega-count { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.mega-empty { color: var(--muted); margin: 0; }

/* Hamburger */
.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	background: var(--brand);
	color: var(--white);
	border: 0;
}
.menu-toggle:hover { background: var(--brand-hover); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
	position: absolute;
	left: 0; right: 0; top: 100%;
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	background: var(--white);
	border-top: 1px solid var(--line);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
	z-index: 95;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
	display: block;
	padding: 14px var(--gutter);
	border-bottom: 1px solid var(--line);
	font-weight: 600;
	color: var(--ink);
}
.mobile-menu li a:hover,
.mobile-menu .current-menu-item > a { color: var(--brand); background: var(--surface-2); }
.mobile-menu .sub-menu a { padding-left: calc(var(--gutter) + 16px); font-weight: 400; }
.mobile-menu-title {
	margin: 0;
	padding: 14px var(--gutter) 6px;
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.mobile-menu-cats a { display: flex !important; align-items: center; gap: 10px; }
.mobile-menu-cats svg { width: 18px; height: 18px; color: var(--brand); }
.mobile-menu-cta { padding: 16px var(--gutter) 24px; display: grid; gap: 10px; }

body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
	.header-main .container { grid-template-columns: auto auto 1fr; }
	.header-logo { order: 1; justify-self: start; }
	.header-left { order: 2; justify-self: start; }
	.header-actions { order: 3; justify-self: end; }
	.store-link { display: inline-flex; }
	.header-nav { display: block; }
	.primary-nav { display: block; }
	.mega-toggle { display: inline-flex; }
	.header-hotline { display: inline-flex; }
	.menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
	.header-hotline { display: inline-flex; }
	.header-hotline small { display: none; }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
	background: #132c4f;
	color: rgba(255, 255, 255, .78);
	font-size: .9375rem;
}
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--accent); }
.footer-main { padding: 64px 0 40px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; } }

.footer-title {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	font-size: 1.0625rem;
	color: var(--white);
}
.footer-title::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 36px; height: 2px;
	background: var(--accent-2);
}
.site-footer .site-logo { color: var(--white); margin-bottom: 16px; }
.site-footer .site-logo .logo-accent { color: var(--accent); }
.footer-brand p { margin-bottom: 20px; }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 18px 0;
	font-size: .8125rem;
	color: rgba(255, 255, 255, .6);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   8. WordPress core
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .875rem; color: var(--muted); }
.entry-content > * + * { margin-top: 1em; }

/* ==========================================================================
   9. Templates
   ========================================================================== */
.container-narrow { max-width: 880px; }

.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover,
.btn-outline-light:focus { background: var(--white); color: var(--brand); }

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 72px;
	background: linear-gradient(135deg, rgba(11, 61, 145, .9) 0%, rgba(18, 70, 171, .86) 100%), url('assets/hero.jpg') center / cover no-repeat;
	color: rgba(255, 255, 255, .88);
}
.hero-pattern {
	position: absolute;
	right: -80px; top: 50%;
	width: 560px; height: 560px;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, .12);
	pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--container); }
.hero h1 { max-width: 720px; color: var(--white); font-size: clamp(2.125rem, 5vw, 3.375rem); }
.hero-lead { max-width: 620px; font-size: 1.0625rem; margin-bottom: 28px; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	margin-bottom: 18px;
	padding: 6px 14px;
	font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
	color: var(--white);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
	list-style: none; margin: 0; padding: 24px 0 0;
	display: flex; flex-wrap: wrap; gap: 24px 48px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	max-width: 620px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--accent); }
.hero-stats span { font-size: .875rem; }
@media (max-width: 767px) { .hero-pattern { opacity: .5; right: -240px; } }

/* Features strip */
.features-strip { border-bottom: 1px solid var(--line); }
.features-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .features-grid { grid-template-columns: repeat(6, 1fr); } }
.feature-item { display: flex; gap: 12px; align-items: flex-start; padding: 24px 16px; }
.feature-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	background: var(--surface-2); color: var(--brand);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: .9375rem; margin: 0 0 2px; }
.feature-item p { font-size: .8125rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Category tiles */
.cat-tile {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 28px 16px;
	height: 100%;
	text-align: center;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--ink);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--brand); }
.cat-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px;
	background: var(--surface-2); color: var(--brand);
	transition: background var(--transition), color var(--transition);
}
.cat-tile:hover .cat-icon { background: var(--brand); color: var(--white); }
.cat-icon svg { width: 32px; height: 32px; }
.cat-name { font-weight: 700; }
.cat-count { font-size: .8125rem; color: var(--muted); }

/* Card extras */
.card-media.is-gradient,
.detail-media.is-gradient { background: linear-gradient(135deg, #0b3d91 0%, #1246ab 100%); color: var(--white); }
.card-date { font-size: .8125rem; color: var(--muted); margin-bottom: 6px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.card-link svg { width: 16px; height: 16px; }
.card-text p { margin: 0; }
.section-more { margin: 36px 0 0; text-align: center; }
.empty-note { padding: 32px; text-align: center; background: var(--surface); color: var(--muted); }

/* Split / benefits */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 56px; } }
.split-text .section-head { margin: 0 0 16px; text-align: left; }
.split-text p { color: var(--muted); margin-bottom: 24px; }
.benefit-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit-grid li { display: flex; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--line); }
.benefit-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	background: var(--brand); color: var(--white);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-grid h3 { font-size: 1rem; margin: 0 0 4px; }
.benefit-grid p { font-size: .875rem; color: var(--muted); margin: 0; }

/* Quote / báo giá band (giống kama.vn) */
.quote-band {
	padding: 64px 0;
	background: #1246ab;
	color: rgba(255, 255, 255, .9);
}
.quote-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.quote-band h2 { color: var(--white); margin-bottom: 10px; }
.quote-head p { margin: 0; }
.quote-form { max-width: 860px; margin: 0 auto; }
.quote-form .cf7-inline { display: flex; flex-wrap: wrap; gap: 14px; }
.quote-form .cf7-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: .875rem; }
.quote-form .cf7-field:nth-child(3),
.quote-form .cf7-field:nth-child(4) { flex: 1 1 100%; }
.quote-form .cf7-inline > p { flex: 1 1 100%; margin: 4px 0 0; }
.quote-form input:not([type="submit"]),
.quote-form select,
.quote-form textarea {
	width: 100%; padding: 12px 14px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff; border-radius: 0;
	font-family: inherit; font-size: .95rem;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(255, 255, 255, .6); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
	outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .18);
}
.quote-form select option { color: var(--body); }
.quote-form .req { color: var(--accent); }
.quote-form .wpcf7-submit {
	background: var(--accent-2); color: #fff; border: 0;
	font-weight: 700; padding: 14px 36px; cursor: pointer;
	text-transform: uppercase; letter-spacing: .02em;
}
.quote-form .wpcf7-submit:hover { background: var(--accent); }
.quote-form .wpcf7-response-output { margin: 12px 0 0; width: 100%; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.quote-form .wpcf7-not-valid-tip { color: #ffd9a0; font-size: .8rem; }
@media (max-width: 640px) {
	.quote-form .cf7-field { flex: 1 1 100%; }
}

/* Page header */
.page-header {
	padding: 48px 0 44px;
	background: linear-gradient(135deg, #0b3d91 0%, #1246ab 100%);
	color: rgba(255, 255, 255, .85);
}
.page-header h1 { color: var(--white); margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.page-header-desc { max-width: 720px; margin: 10px 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: .875rem; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--accent); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-link {
	padding: 8px 16px;
	font-size: .9375rem; font-weight: 600;
	border: 1px solid var(--line);
	color: var(--ink);
	background: var(--white);
}
.filter-link:hover { border-color: var(--brand); color: var(--brand); }
.filter-link.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line);
	color: var(--ink); font-weight: 600;
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* Product detail */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.detail-media {
	aspect-ratio: 4 / 3;
	display: flex; align-items: center; justify-content: center;
	background: var(--surface-2);
	overflow: hidden;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media svg { width: 120px; height: 120px; }
.detail-summary .badge { margin-bottom: 12px; }
.detail-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail-lead { color: var(--muted); font-size: 1.0625rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-content { max-width: 880px; }
.back-link { margin: 40px 0 0; font-weight: 600; }

/* Content + sidebar */
.content-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .content-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.side-box { display: grid; gap: 12px; padding: 28px; background: var(--surface); border-top: 3px solid var(--brand); }
.side-box p { margin: 0; color: var(--muted); }
.side-title { font-size: 1.25rem; margin-bottom: 4px; }
.entry-thumb { width: 100%; margin-bottom: 24px; }
.entry-meta { color: var(--muted); font-size: .9375rem; }
.entry-content img { height: auto; }
.entry-content h2 { margin-top: 1.4em; }

/* Service steps */
.service-box h3 a { color: var(--ink); }
.service-box h3 a:hover { color: var(--brand); }
.service-box .card-actions { margin-top: auto; padding-top: 8px; }
.steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr; gap: 24px;
	counter-reset: none;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent-2); }
.step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: 14px;
	font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
	background: var(--brand); color: var(--white);
}
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); background: var(--white); }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 20px;
	font-weight: 700; color: var(--ink);
	cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; color: var(--brand); transition: transform var(--transition); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Search */
.search-box { max-width: 640px; margin: 0 auto 40px; }
.search-form { display: flex; }
.search-field {
	flex: 1; min-width: 0;
	padding: 12px 16px;
	border: 2px solid var(--line); border-right: 0;
	background: var(--white);
}
.search-field:focus { border-color: var(--brand); outline: none; }

/* 404 */
.error-code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--brand); }
.error-404 .search-box { margin: 28px auto; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 7fr 5fr; align-items: start; } }
.contact-note { margin-top: 24px; padding: 16px 20px; background: var(--surface-2); border-left: 3px solid var(--accent-2); }
.contact-info { padding: 32px 28px; background: var(--surface); border-top: 3px solid var(--brand); }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--brand); color: var(--white);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--brand); outline: none; }
.contact-form input[type="submit"] {
	padding: 12px 28px;
	border: 0;
	background: var(--accent-2); color: var(--white); font-weight: 600;
	cursor: pointer;
}
.contact-form input[type="submit"]:hover { background: var(--accent); }
