/*
Theme Name: Nhà Việt Xanh
Theme URI: https://nhavietxanh.com.vn/
Author: Nhà Việt Xanh
Description: Theme viết tay cho Nhà Việt Xanh — phong cách "tạp chí kiến trúc": nền kem, chữ serif Lora, số khối lớn, ảnh khung lệch. Dữ liệu gom trong inc/data.php, schema JSON-LD, form lưu đơn, nút liên hệ nổi, không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nhavietxanh-dongnai
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây (số đo lấy từ phan-tich/lendecor.vn/thong-so.md)
   ========================================================================== */
:root {
	--c-primary: #0a0a0a;
	--c-primary-dark: #000000;
	--c-accent: #8a7a66;
	--c-bg: #ffffff;
	--c-bg-alt: #f4f0ec;
	--c-bg-dark: #0a0a0a;
	--c-text: #1a1a1a;
	--c-text-muted: #575757;
	--c-text-invert: #ffffff;
	--c-border: #ddd5cc;
	--c-num: #d9d1c7;

	--f-body: "Lora", Georgia, "Times New Roman", serif;
	--f-heading: "Lora", Georgia, "Times New Roman", serif;

	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
	--fs-h2: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
	--fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
	--fs-num: clamp(5.5rem, 3rem + 9vw, 11rem);

	--radius: 0;
	--radius-sm: 0;
	--radius-pill: 999px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--shadow-deep: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.1);

	--space-section: clamp(4rem, 2.5rem + 5vw, 7.5rem);
	--container: 1250px;
	--gutter: 16px;
	--header-h: 72px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.75; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 600; line-height: 1.3; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }
.justify, .justify p { text-align: justify; text-align-last: left; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__eyebrow { display: inline-block; margin-bottom: 0.5rem; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.8); }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.split { display: grid; gap: 48px; align-items: center; }
.split__text > :last-child { margin-bottom: 0; }

/* Đường kẻ chéo mảnh góc trên trái — nét trang trí của mẫu */
.deco-lines { overflow: hidden; }
.deco-lines::before { content: ""; position: absolute; top: 0; left: 0; width: min(330px, 55vw); height: min(330px, 55vw); opacity: 0.8; pointer-events: none;
	background:
		linear-gradient(to top right, transparent calc(50% - 0.5px), #cfc6bb 50%, transparent calc(50% + 0.5px)) 0 0 / 100% 100% no-repeat,
		linear-gradient(to top right, transparent calc(50% - 0.5px), #cfc6bb 50%, transparent calc(50% + 0.5px)) -90px -90px / 100% 100% no-repeat; }
.deco-lines > .container { position: relative; }

/* ==========================================================================
   3. Tiêu đề khối kiểu tạp chí: số lớn mờ + H2 in hoa + gạch ngắn
   ========================================================================== */
.mag-head { position: relative; margin-bottom: 2rem; }
.mag-head__num { position: absolute; z-index: 0; top: -0.62em; left: -0.06em; font-family: var(--f-heading); font-size: var(--fs-num); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--c-num); pointer-events: none; user-select: none; }
.section--alt .mag-head__num { color: #ddd5cb; }
.mag-head__title { position: relative; z-index: 1; margin: 0; padding-top: 0.2em; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.45; }
.mag-head__rule { position: relative; z-index: 1; display: block; width: 110px; height: 2px; margin: 1.1rem 0 0; background: var(--c-primary); }
.mag-head__lead { position: relative; z-index: 1; margin: 1.25rem 0 0; color: var(--c-text-muted); font-size: var(--fs-lg); }
.mag-head--center { max-width: 820px; margin-inline: auto; margin-bottom: 3rem; text-align: center; }
.mag-head--center .mag-head__num { left: 50%; transform: translateX(-50%); }
.mag-head--center .mag-head__rule { margin-inline: auto; }
.mag-lead-italic { font-style: italic; font-size: var(--fs-lg); color: var(--c-text-muted); }

/* ==========================================================================
   4. Nút — đen, bo tròn hẳn, chữ in hoa nhỏ (như mẫu)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 30px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: var(--c-text-invert); }
.btn--primary:hover { background: #2a2a2a; color: var(--c-text-invert); box-shadow: var(--shadow-deep); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { color: #fff; filter: brightness(1.08); }
.btn--ghost { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { color: var(--c-primary); background: var(--c-bg-alt); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--c-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.split__text .btn { margin-top: 1rem; }

/* ==========================================================================
   5. Header: menu trái — logo giữa — liên hệ phải
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-logo { grid-column: 2; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--c-primary); }
.site-logo__img { height: 50px; width: auto; transition: height 0.3s; }
.site-logo__img--light { display: none; }
.site-logo__text { font-family: var(--f-heading); font-size: 1.25rem; font-weight: 600; }
.site-header__right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.04em; }
.header-phone svg { width: 20px; height: 20px; fill: currentColor; }
.header-phone span, .header-cta { display: none; }
.nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.25s, background 0.25s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--c-bg-alt); padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s; color: var(--c-text); }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) { display: block; padding: 14px 0; color: var(--c-text); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a:not(.btn), .primary-nav .children a:not(.btn) { padding-left: 16px; text-transform: none; letter-spacing: 0; }
.primary-nav .current-menu-item > a, .primary-nav a:not(.btn):hover { color: var(--c-accent); }
.primary-nav__call { margin-top: 24px; width: 100%; }

/* Header trong suốt đè ảnh ở trang chủ */
.site-header--overlay { position: fixed; left: 0; right: 0; }
html:not(.nav-open) .site-header--overlay:not(.is-scrolled) { background: transparent; border-color: transparent; color: #fff; }
html:not(.nav-open) .site-header--overlay:not(.is-scrolled) .site-logo__img--dark { display: none; }
html:not(.nav-open) .site-header--overlay:not(.is-scrolled) .site-logo__img--light { display: block; }
.site-header--overlay:not(.is-scrolled) .site-logo__img { height: 62px; }
.admin-bar .site-header--overlay { top: 46px; }

/* ==========================================================================
   6. Hero — ảnh toàn màn hình, chữ góc dưới trái
   ========================================================================== */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(560px, min(100svh, 920px)); padding: calc(var(--header-h) + 48px) 0 88px; color: var(--c-text-invert); background: var(--c-bg-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ảnh bìa chuyển động: ảnh mới hiện dần ĐÈ LÊN ảnh cũ (ảnh cũ vẫn rõ bên dưới) → không bị 2 ảnh cùng mờ chồng nhau.
   Không phóng to: ảnh luôn vừa khung, giữ nét. */
[data-hero-slider] .hero__bg { opacity: 0; transition: opacity 1.2s ease; }
[data-hero-slider] .hero__bg.is-active { opacity: 1; }
/* Lớp phủ tối luôn nằm TRÊN ảnh, chữ + nút trên lớp phủ → chữ trắng luôn đọc rõ */
.hero__dots { z-index: 3 !important; }
/* Máy tính: khung ảnh bìa đúng tỉ lệ 16:9 của ảnh → hiện đủ chiều rộng, không bị cắt hai bên */
@media (min-width: 1024px) {
	.hero { min-height: 0; aspect-ratio: 16 / 9; padding-top: calc(var(--header-h) + 32px); padding-bottom: 96px; }
}
.hero__dots { position: absolute; z-index: 2; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; gap: 2px; } /* mobile: nằm trên thanh liên hệ dưới đáy */
@media (min-width: 1024px) { .hero__dots { bottom: 24px; } }
[data-hero-slider] .hero__scroll { display: none !important; } /* có chấm chọn ảnh thì bỏ biểu tượng cuộn */
.hero__dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; } /* vùng bấm 28px cho điện thoại */
.hero__dot::before { content: ""; width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; transition: background 0.3s, transform 0.3s; }
.hero__dot.is-active::before { background: #fff; transform: scale(1.25); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background:
	linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%),
	linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.72) 100%); }
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero__badge { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.92; }
.hero__badge::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero__title { font-weight: 500; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero__lead { max-width: 620px; font-size: var(--fs-lg); opacity: 0.92; margin-bottom: 2rem; }
.hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 24px; display: none; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: nvx-scroll 1.8s infinite; }
@keyframes nvx-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   7. Số liệu
   ========================================================================== */
.stats { background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats__item { display: flex; flex-direction: column; align-items: center; padding: 28px 8px; text-align: center; }
.stats__item:nth-child(odd) { border-right: 1px solid var(--c-border); }
.stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
.stats__num { font-family: var(--f-heading); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); font-weight: 500; line-height: 1.2; }
.stats__label { margin-top: 4px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }

/* ==========================================================================
   8. Dự án — lưới 2 cột ảnh
   ========================================================================== */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.project-card { position: relative; margin: 0; overflow: hidden; background: #ddd; }
.project-card a { display: block; color: #fff; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 0.78rem; line-height: 1.4; letter-spacing: 0.04em; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }

/* ==========================================================================
   9. Ảnh có khung lệch + bóng sâu
   ========================================================================== */
.framed { position: relative; isolation: isolate; margin: 24px 24px 0 0; }
.framed img { position: relative; z-index: 1; width: 100%; box-shadow: var(--shadow-deep); }
.framed::before { content: ""; position: absolute; z-index: 0; inset: -24px -24px 24px 24px; border: 1px solid var(--c-primary); }
.framed--left { margin: 24px 0 0 24px; }
.framed--left::before { inset: -24px 24px 24px -24px; }
.framed--tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Giá trị cốt lõi */
.values { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 4rem; border-top: 1px solid var(--c-border); }
.values__item { padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.values__item h3 { margin-bottom: 0.3em; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.values__item p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* ==========================================================================
   10. Dịch vụ — thẻ ảnh lớn, chú thích căn giữa
   ========================================================================== */
.service-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.service-card__media { display: block; overflow: hidden; }
.service-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease, filter 0.6s; }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding: 22px 8px 0; text-align: center; }
.service-card__title { margin-bottom: 0.4em; font-size: var(--fs-h3); }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a:hover { color: var(--c-accent); }
.service-card__body p { max-width: 520px; margin-inline: auto; color: var(--c-text-muted); font-size: 0.95rem; }

/* Thẻ dùng chung (trang con, bài viết) */
.card { display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-border); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card__title { margin-bottom: 0.4em; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); }
.card__meta { margin-top: auto; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary); }

/* ==========================================================================
   11. Bảng giá
   ========================================================================== */
.price-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 40px 30px 32px; background: var(--c-bg-alt); }
.price-card--featured { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-deep); }
.price-card__tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 16px; border-radius: var(--radius-pill); background: var(--c-accent); color: #fff; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.price-card__name { margin-bottom: 0.2em; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-card__note { font-size: 0.875rem; font-style: italic; color: var(--c-text-muted); }
.price-card--featured .price-card__note { color: rgba(255, 255, 255, 0.7); }
.price-card__rows { margin: 0.5rem 0 1.25rem; }
.price-card__rows div { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.price-card--featured .price-card__rows div { border-color: rgba(255, 255, 255, 0.18); }
.price-card__rows dt { font-size: 0.875rem; color: inherit; opacity: 0.75; }
.price-card__rows dd { margin: 2px 0 0; font-family: var(--f-heading); font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
.price-card__rows small { margin-left: 4px; font-size: 0.875rem; font-weight: 400; opacity: 0.7; }
.price-card__items { margin: 0 0 1.75rem; padding: 0; list-style: none; font-size: 0.95rem; }
.price-card__items li { position: relative; padding: 5px 0 5px 22px; }
.price-card__items li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 1px; background: currentColor; }
.price-card .btn { margin-top: auto; }
.price-card--featured .btn--primary { background: #fff; color: var(--c-primary); }
.price-promo { max-width: 860px; margin: 2.5rem auto 0; padding: 18px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); text-align: center; font-style: italic; color: var(--c-text-muted); }
.price-promo strong { font-style: normal; color: var(--c-text); }

/* ==========================================================================
   12. Quy trình, đánh giá, FAQ, album
   ========================================================================== */
.process { display: grid; gap: 32px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.process__step { padding-top: 20px; border-top: 1px solid var(--c-primary); }
.process__num { display: block; margin-bottom: 0.4rem; font-family: var(--f-heading); font-size: 3.25rem; font-style: italic; line-height: 1; color: var(--c-accent); }
.process__step h3 { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.process__step p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; text-align: justify; text-align-last: left; }

.quotes { display: grid; gap: 24px; }
.quote { position: relative; margin: 0; padding: 56px 36px 36px; background: var(--c-bg-alt); }
.quote__mark { position: absolute; top: 4px; left: 28px; font-family: var(--f-heading); font-size: 6rem; line-height: 1; color: var(--c-num); }
.quote blockquote { position: relative; margin: 0 0 1.5rem; font-size: var(--fs-lg); font-style: italic; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { font-size: 0.875rem; color: var(--c-text-muted); }

.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--c-primary); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 0; border: 0; background: none; text-align: left; font-family: var(--f-heading); font-weight: 500; font-size: var(--fs-lg); color: inherit; cursor: pointer; }
.faq__q::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 300; line-height: 1; transition: transform 0.25s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 20px; color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.faq__a[hidden] { display: none; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   13. Nhận tư vấn + form
   ========================================================================== */
.quick-contact { display: grid; gap: 10px; max-width: 380px; margin: 1.5rem 0 2rem; }
.quick-contact__btn { display: block; padding: 11px 20px; border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-text); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; text-decoration: none; transition: background 0.25s, color 0.25s; }
.quick-contact__btn:hover { background: var(--c-primary); color: #fff; }
.form { display: grid; gap: 16px; padding: 28px; background: var(--c-bg-alt); color: var(--c-text); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 4px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: 0; background: #fff; color: var(--c-text); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.8rem; font-style: italic; color: var(--c-text-muted); }
.notice { padding: 14px 18px; margin-bottom: 16px; }
.notice--ok { background: #e9f3ea; color: #1d5b2c; }
.notice--err { background: #fbecec; color: #8b1c1c; }

/* ==========================================================================
   14. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--c-bg-alt); text-align: center; overflow: hidden; }
.page-hero h1 { max-width: 900px; margin-inline: auto; text-wrap: balance; }
.page-hero p { max-width: 720px; margin-inline: auto; color: var(--c-text-muted); }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 12px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.entry { max-width: 800px; margin-inline: auto; }
/* Canh đều đoạn văn dài cho cân đối; dòng cuối canh trái; ô bảng/chú thích ảnh giữ canh trái. */
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.entry h3 { margin-top: 1.4em; }
.entry figure { margin: 2em 0; }
.entry img { display: block; margin: 1.5em auto; height: auto; }
.entry .video-embed { position: relative; margin: 2em 0; aspect-ratio: 16 / 9; background: #000; }
.entry .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry figcaption { margin-top: 8px; font-size: 0.875rem; font-style: italic; color: var(--c-text-muted); text-align: center; }
.entry blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 2px solid var(--c-primary); background: var(--c-bg-alt); font-style: italic; }
.entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry th, .entry td { padding: 12px; border: 1px solid var(--c-border); text-align: left; }
.entry th { background: var(--c-bg-alt); font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-border); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Trang liên hệ */
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--c-border); text-align: left; }
.contact-list strong { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); }

/* ==========================================================================
   15. CTA + Footer (nền kem, 3 cột, logo giữa — như mẫu)
   ========================================================================== */
.cta-band { padding-block: 64px; background: var(--c-primary); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; text-transform: uppercase; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--accent { background: #fff; color: var(--c-primary); }
.site-footer { padding-top: 64px; background: var(--c-bg-alt); color: var(--c-text); font-size: 0.925rem; border-top: 1px solid var(--c-border); }
.site-footer a { color: inherit; }
.site-footer h3 { margin-bottom: 1rem; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li span { color: var(--c-text-muted); }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.site-footer__brand { text-align: center; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 92px; width: auto; margin-inline: auto; }
.site-footer__tagline { margin: 14px 0 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer__slogan { margin: 12px 0 16px; font-style: italic; color: var(--c-text-muted); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social a { padding: 6px 16px; border: 1px solid var(--c-primary); border-radius: var(--radius-pill); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.social a:hover { background: var(--c-primary); color: #fff; }
.site-footer__legal { font-size: 0.8rem; color: var(--c-text-muted); }
.site-footer__menu { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.site-footer__menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.site-footer__menu li { margin: 0; }
.site-footer__menu a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.site-footer__bottom { padding: 16px var(--gutter) 88px; text-align: center; font-size: 0.8rem; color: var(--c-text-muted); }

/* ==========================================================================
   16. Nút liên hệ nổi — mobile: thanh đen dưới đáy; desktop: nút tròn đen viền mờ (như mẫu)
   ========================================================================== */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-primary); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-decoration: none; }
.float-contact__btn + .float-contact__btn { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-contact__phone, .float-contact__mess { background: var(--c-primary); }
/* Nút Zalo: màu xanh nhận diện của Zalo + chữ "Zalo" → khách nhận ra ngay */
.float-contact__zalo, .float-contact__zalo:hover { background: #0068ff; }
.float-contact__zalo-mark { font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; text-transform: none; line-height: 1; }

/* ==========================================================================
   Tìm kiếm: ô bo tròn, kính lúp bên phải; nút kính lúp trên đầu trang mở thanh tìm kiếm
   ========================================================================== */
.search-box { position: relative; display: flex; align-items: center; width: 100%; max-width: 640px; }
.search-box__input { width: 100%; min-height: 50px; padding: 12px 56px 12px 22px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-text); font-size: 1rem; -webkit-appearance: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box__input::placeholder { color: #8a8a8a; }
.search-box__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06); }
.search-box__input::-webkit-search-cancel-button { display: none; }
.search-box__btn { position: absolute; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--c-text-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.search-box__btn:hover { background: var(--c-primary); color: #fff; }
.search-box__btn svg { width: 20px; height: 20px; fill: currentColor; }
.header-search-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.header-search-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.header-search-toggle:hover { background: rgba(127, 127, 127, 0.15); }
.header-search { position: absolute; left: 0; right: 0; top: 100%; padding: 18px 0; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
.header-search[hidden] { display: none; }
.header-search .search-box { margin-inline: auto; }
.page-hero__search { display: flex; justify-content: center; margin-top: 1.5rem; }
.search-count { margin: 1rem 0 0; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.search-empty { max-width: 720px; margin-inline: auto; text-align: center; }
.search-empty p { color: var(--c-text-muted); }
.search-empty .btn-group { justify-content: center; margin-top: 1.5rem; }

/* ==========================================================================
   Trang bài dự án — kiểu tạp chí: chữ to dễ đọc, cột phải ghim theo khi cuộn
   ========================================================================== */
.post-hero { text-align: center; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.post-hero h1 { max-width: 980px; margin: 0.4em auto 0.5em; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.85rem); line-height: 1.3; }
.post-hero__cat { display: inline-block; margin-top: 0.5rem; padding: 5px 16px; border: 1px solid var(--c-primary); border-radius: var(--radius-pill); color: var(--c-primary); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.post-hero__cat:hover { background: var(--c-primary); color: #fff; }
.post-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; font-size: 0.875rem; font-style: italic; color: var(--c-text-muted); }
.post-section { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.post-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.post-entry { max-width: 780px; margin: 0; font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.125rem); line-height: 1.9; color: #2b2b2b; }
.post-entry > *:first-child { margin-top: 0; }
.post-entry p { margin: 0 0 1.25em; }
.post-entry strong { color: var(--c-text); font-weight: 600; }
.post-entry a { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 4px; }
.post-entry a:hover { color: var(--c-accent); }
.post-entry h2 { position: relative; margin: 2.2em 0 0.8em; padding-top: 0.9em; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); line-height: 1.4; }
.post-entry h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: var(--c-primary); }
.post-entry h3 { margin: 1.8em 0 0.6em; font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.45; }
.post-entry h4 { margin: 1.5em 0 0.5em; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.post-entry ul, .post-entry ol { margin: 0 0 1.5em; padding-left: 0; list-style: none; }
.post-entry ul li { position: relative; margin-bottom: 0.45em; padding-left: 26px; }
.post-entry ul li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 12px; height: 1px; background: var(--c-accent); }
.post-entry ol { counter-reset: ol; }
.post-entry ol li { position: relative; margin-bottom: 0.45em; padding-left: 34px; counter-increment: ol; }
.post-entry ol li::before { content: counter(ol) "."; position: absolute; left: 0; font-style: italic; color: var(--c-accent); }
.post-entry img { width: 100%; margin: 2em 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.post-entry p > img { margin: 0.75em 0; }
.post-entry .video-embed { margin: 0 0 2.25em; box-shadow: var(--shadow-deep); }
.post-entry .video-embed + .video-embed { margin-top: -0.75em; }
.post-entry hr { margin: 2.5em auto; width: 80px; border: 0; border-top: 1px solid var(--c-border); }
.post-entry blockquote { margin: 2em 0; padding: 1.25em 1.5em; border-left: 2px solid var(--c-primary); background: var(--c-bg-alt); font-size: 1.1em; font-style: italic; }
.post-end { margin-top: 3em; padding: 2em 2em 1.75em; background: var(--c-bg-alt); text-align: center; }
.post-end__title { margin-bottom: 0.4em !important; font-family: var(--f-heading); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.post-end .btn-group { justify-content: center; }
.post-end a.btn { text-decoration: none; }
.post-sidebar { display: none; }
.side-box { margin-bottom: 20px; padding: 26px 24px; background: var(--c-bg-alt); }
.side-box p { font-size: 0.95rem; }
.side-box__title { margin-bottom: 0.6em !important; font-family: var(--f-heading); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.side-box--dark { background: var(--c-primary); color: #fff; }
.side-box--dark p { color: rgba(255, 255, 255, 0.8); }
.side-box--dark .side-box__title { color: #fff; }
.side-box .btn { width: 100%; margin-top: 10px; }
.side-price__name { margin: 1em 0 0.3em !important; font-size: 0.78rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }
.side-price { margin: 0; padding: 0; list-style: none; }
.side-price li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--c-border); font-size: 0.875rem; }
.side-price strong { white-space: nowrap; font-family: var(--f-heading); }
.side-box__link { display: inline-block; margin-top: 14px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 1024px) {
	.post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
	.post-sidebar { display: block; align-self: stretch; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.post-sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
	.project-grid { gap: 16px; }
	.process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
	:root { --gutter: 28px; --header-h: 84px; }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(4, 1fr); }
	.stats__item { padding: 36px 8px; border-bottom: 0 !important; border-right: 1px solid var(--c-border); }
	.stats__item:last-child { border-right: 0; }
	.service-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
	.values { grid-template-columns: repeat(4, 1fr); }
	.values__item { padding: 28px 24px 0; border-bottom: 0; border-right: 1px solid var(--c-border); }
	.values__item:first-child { padding-left: 0; }
	.values__item:last-child { border-right: 0; }
	.site-footer__grid { grid-template-columns: 1fr auto 1fr; gap: 56px; }
	.site-footer__grid > :last-child { text-align: right; }
	.site-logo__img { height: 58px; }
	.site-header--overlay:not(.is-scrolled) .site-logo__img { height: 76px; }
	.header-phone span { display: inline; }
	.hero { padding-bottom: 112px; }
	.hero__scroll { display: block; }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.split { gap: 72px; }
	.split--4-8 { grid-template-columns: 4fr 8fr; }
	.split--5-7 { grid-template-columns: 5fr 7fr; }
	.split--6-6 { grid-template-columns: 1fr 1fr; gap: 96px; }
	.split--7-5 { grid-template-columns: 7fr 5fr; gap: 96px; }
	.split--4-8 .split__text, .split--5-7 .split__text { padding-top: 2rem; align-self: start; }
	.process { grid-template-columns: repeat(4, 1fr); }
	.price-grid { grid-template-columns: repeat(3, 1fr); }
	.price-card--featured { transform: translateY(-16px); }
	.nav-toggle { display: none; }
	.primary-nav { grid-column: 1; grid-row: 1; position: static; transform: none; padding: 0; overflow: visible; background: none; color: inherit; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a:not(.btn) { padding: 10px 11px; border: 0; color: inherit; font-size: 0.8rem; letter-spacing: 0.1em; white-space: nowrap; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px 0; background: var(--c-bg-alt); color: var(--c-text); box-shadow: var(--shadow-deep); opacity: 0; visibility: hidden; transform: translateY(8px); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s; }
	.primary-nav .sub-menu a:not(.btn), .primary-nav .children a:not(.btn) { padding: 9px 20px; color: var(--c-text); text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
	.primary-nav__call { display: none; }
	.header-cta { display: inline-flex; min-height: 42px; padding: 8px 22px; font-size: 0.75rem; }
	html:not(.nav-open) .site-header--overlay:not(.is-scrolled) .header-cta { background: #fff; color: var(--c-primary); }
	.float-contact { left: auto; right: 22px; bottom: 22px; grid-auto-flow: row; gap: 14px; background: none; box-shadow: none; }
	.float-contact__btn { width: 54px; height: 54px; min-height: 0; border-radius: 50%; box-shadow: 0 0 0 5px rgba(10, 10, 10, 0.15), var(--shadow-deep); }
	.float-contact__btn + .float-contact__btn { border-left: 0; }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 20px; }
	.admin-bar .site-header--overlay { top: 32px; }
}
@media (min-width: 1280px) {
	.primary-nav a:not(.btn) { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
