/*
Theme Name: Nệm Kymdan Hà Nội
Theme URI: https://nemkymdanhanoi.com/
Author: Yêu Nệm
Description: Theme gốc viết tay cho web dịch vụ/sản phẩm: dữ liệu gom trong inc/data.php, schema JSON-LD, form liên hệ 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: nemkymdanhanoi
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   ========================================================================== */
:root {
	--c-primary: #06493A;
	--c-primary-dark: #043a2e;
	--c-accent: #C9A24B;
	--c-bg: #ffffff;
	--c-accent-dark: #8a6d1f;
	--c-soft: #80C683;
	--c-bg-alt: #F2FFF2;
	--c-bg-dark: #06493A;
	--c-text: #12302A;
	--c-text-muted: #4d6660;
	--c-text-invert: #ffffff;
	--c-border: #d9e8dd;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Playfair Display", Georgia, serif;
	--f-script: "Dancing Script", "Brush Script MT", cursive;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.0625rem;
	--fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	--fs-h2: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
	--fs-h1: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem);

	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--shadow: 0 8px 24px rgba(6, 73, 58, 0.12);
	--shadow-lg: 0 16px 40px rgba(6, 73, 58, 0.16);

	--space-section: clamp(3.25rem, 2.2rem + 4vw, 5.5rem);
	--container: 1230px;
	--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.65; 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-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.2; 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: 3px solid var(--c-accent); outline-offset: 2px; }
.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; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { 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: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__eyebrow { display: inline-block; margin-bottom: 0.5rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-dark); }
.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; }

/* ==========================================================================
   3. Nút
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: var(--c-text-invert); }
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-text-invert); }
.btn--accent { background: var(--c-accent); color: #06302a; }
.btn--accent:hover { color: #06302a; filter: brightness(1.05); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--f-heading); font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.35rem); font-weight: 700; line-height: 1.2; color: var(--c-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-logo img { max-height: 52px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-text); position: relative; transition: transform 0.2s; }
.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; background: var(--c-bg); padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 400; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--c-primary); }
.header-cta { display: none; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { position: relative; display: flex; align-items: center; min-height: min(88vh, 760px); padding-block: 80px; 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; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25)); }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__badge { display: inline-block; margin-bottom: 1rem; padding: 6px 14px; border: 1px solid var(--c-accent); border-radius: var(--radius-pill); color: var(--c-accent); font-size: var(--fs-sm); }
.hero__lead { font-size: var(--fs-lg); opacity: 0.9; }
.hero__price { margin: 1.25rem 0 1.75rem; font-size: 1.25rem; }
.hero__price strong { color: var(--c-accent); font-size: 1.6rem; }

/* ==========================================================================
   6. Thẻ (dịch vụ, sản phẩm, bài viết)
   ========================================================================== */
.card { display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: var(--c-bg-alt); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.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-weight: 600; color: var(--c-primary); }

/* ==========================================================================
   7. Bảng giá
   ========================================================================== */
.pricing { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.pricing--featured { border: 2px solid var(--c-primary); box-shadow: var(--shadow); }
.pricing__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: var(--fs-sm); white-space: nowrap; }
.pricing__name { margin-bottom: 0.25rem; }
.pricing__price { font-family: var(--f-heading); font-size: 2rem; font-weight: 700; color: var(--c-primary); }
.pricing__unit { font-size: var(--fs-sm); color: var(--c-text-muted); }
.pricing__items { margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.pricing__items li { padding: 6px 0 6px 24px; border-bottom: 1px dashed var(--c-border); position: relative; }
.pricing__items li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700; }
.pricing .btn { margin-top: auto; }

/* ==========================================================================
   8. Lý do, quy trình, FAQ, album
   ========================================================================== */
.feature { padding: 24px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-border); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-primary); font-size: 1.5rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: 0.25em; font-size: var(--fs-lg); font-family: var(--f-body); }
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-weight: 600; font-size: var(--fs-lg); color: inherit; cursor: pointer; }
.faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 18px; color: var(--c-text-muted); }
.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; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.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; }

/* ==========================================================================
   9. Form
   ========================================================================== */
.form { display: grid; gap: 16px; padding: 24px; background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 4px; font-weight: 500; font-size: var(--fs-sm); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); 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; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--fs-sm); color: var(--c-text-muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   10. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { padding-block: 48px; background: var(--c-bg-alt); }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 8px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 780px; 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 img { border-radius: var(--radius-sm); }
.entry h2 { margin-top: 1.6em; }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ==========================================================================
   11. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 56px; background: var(--c-primary); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .btn-group { justify-content: center; }
.site-footer { padding-top: 56px; background: var(--c-bg-dark); color: rgba(255, 255, 255, 0.82); font-size: var(--fs-sm); }
.site-footer a { color: inherit; }
.site-footer h3 { color: #fff; font-size: var(--fs-lg); font-family: var(--f-body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__bottom { margin-top: 40px; padding-block: 20px; padding-bottom: 88px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }

/* ==========================================================================
   12. Nút liên hệ nổi — mobile: thanh dưới đáy; desktop: cột nút tròn góc phải
   ========================================================================== */
.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-bg); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-contact__phone { background: var(--c-primary); }
.float-contact__zalo { background: #0068ff; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
@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); }
	.nav-toggle { display: none; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 4px; }
	.primary-nav a { padding: 10px 12px; border: 0; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px 0; background: var(--c-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.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; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 8px 16px; white-space: nowrap; }
	.primary-nav a { white-space: nowrap; }
	.header-cta { display: inline-flex; }
	.float-contact { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: var(--shadow); }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 20px; }
}

/* ==========================================================================
   14. Phong cách web: đầu trang, thanh menu, hero, các khối riêng
   ========================================================================== */
.section--dark h2, .section--dark h3 { color: #fff; }
.section h2, .page-hero h1 { color: var(--c-primary); }
.section--dark h2 { color: #fff; }
.section__head h2::after, .about h2::after { content: ""; display: block; width: 88px; height: 2px; margin: 0.6rem auto 0; background: linear-gradient(90deg, var(--c-accent), transparent); }
.about h2::after { margin-left: 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: none; }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: var(--header-h); }
.site-header__social { display: none; }
.site-logo-img { display: block; width: auto; height: 52px; }
.site-header__logo { grid-column: 1; }
.header-call { grid-column: 2 / 4; justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: #06302a; }
.header-call svg { width: 20px; height: 20px; fill: currentColor; }
.header-call span { display: none; }
.nav-toggle { position: absolute; right: var(--gutter); top: calc((var(--header-h) - 44px) / 2); }
.site-header .container { position: relative; }
.header-call { margin-right: 52px; }
.nav-bar .primary-nav { z-index: 90; }

.hero { min-height: min(84vh, 640px); padding-block: 72px 64px; text-align: center; }
.hero::after { background: linear-gradient(180deg, rgba(4, 46, 37, 0.78), rgba(4, 46, 37, 0.72)); }
.hero__content { max-width: 880px; margin-inline: auto; }
.hero__script { margin: 0 0 0.1em; font-family: var(--f-script); font-weight: 700; font-size: clamp(1.9rem, 0.9rem + 5vw, 5.6rem); line-height: 1.15; color: var(--c-accent); }
.hero h1 { color: #fff; text-wrap: balance; }
.hero__lead { max-width: 680px; margin-inline: auto; text-wrap: balance; }
.hero__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; width: fit-content; max-width: 100%; margin: 1.25rem auto 1.75rem; padding: 12px 24px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 28px; background: rgba(255, 255, 255, 0.1); }
.hero__checks li { font-weight: 600; }
.hero__checks li::before { content: "✓"; margin-right: 8px; color: var(--c-accent); }
.hero .btn-group { justify-content: center; }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.about { display: grid; gap: 32px; align-items: center; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about__text p { text-align: justify; text-align-last: left; color: var(--c-text-muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.5rem 0; }
.stat { padding: 14px; border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); background: var(--c-bg-alt); }
.stat__num { font-family: var(--f-heading); font-size: 1.4rem; font-weight: 700; color: var(--c-primary); }
.stat__label { font-size: 0.8125rem; line-height: 1.35; color: var(--c-text-muted); }

.section--dark .feature { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); text-align: center; color: rgba(255, 255, 255, 0.86); }
.section--dark .feature p { margin: 0; font-size: var(--fs-sm); }
.section--dark .feature__icon { margin-inline: auto; background: rgba(201, 162, 75, 0.16); border: 1px solid var(--c-accent); color: var(--c-accent); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mosaic { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; display: block; min-height: 250px; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; box-shadow: var(--shadow); background: var(--c-bg-dark); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 14% center; transition: transform 0.35s; }
.tile--wide img { object-position: 30% center; }
.tile:hover img { transform: scale(1.04); }
.tile:hover { color: #fff; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 46, 37, 0) 35%, rgba(4, 46, 37, 0.9) 100%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; text-align: center; }
.tile__body h3 { margin-bottom: 0.25em; color: #fff; }
.tile__body p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; }

.levels { display: grid; gap: 16px; }
.level { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); text-align: center; }
.level__name { font-family: var(--f-heading); font-size: 2rem; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.level__for { margin: 0.4rem 0; font-weight: 600; color: var(--c-accent-dark); }
.level p:last-child { margin: 0; color: var(--c-text-muted); }
.note { max-width: 860px; margin: 1.75rem auto 0; padding: 14px 18px; border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); background: #fff; color: var(--c-text-muted); font-size: var(--fs-sm); }
.section:not(.section--alt) .note { background: var(--c-bg-alt); }

.pricing { box-shadow: var(--shadow); }
.pricing--featured { border-color: var(--c-accent); box-shadow: var(--shadow-lg); }
.pricing__tag { background: var(--c-accent); color: #06302a; }
.pricing__list { color: var(--c-text-muted); font-size: var(--fs-sm); }
.pricing__price { font-size: 1.75rem; }
.pricing__from { display: block; font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-muted); }
.pricing .btn--ghost { color: var(--c-primary); }

.steps--grid { display: grid; gap: 16px; }
.steps--grid li { padding: 22px 22px 22px 76px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.steps--grid li::before { left: 20px; top: 22px; background: var(--c-accent); color: #06302a; }
.steps--grid h3 { font-family: var(--f-heading); color: var(--c-primary); }
.steps--grid p { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }

.checklist { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.checklist li { position: relative; padding: 6px 0 6px 26px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent-dark); font-weight: 700; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__text > p { text-align: justify; text-align-last: left; }

.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); box-shadow: 0 3px 10px rgba(6, 73, 58, 0.07); }
.review__stars { color: var(--c-accent-dark); letter-spacing: 2px; }
.review blockquote { flex: 1; margin: 0.6rem 0 1rem; color: var(--c-text); }
.review figcaption { font-weight: 600; color: var(--c-primary); }
.review small { display: block; font-weight: 400; color: var(--c-text-muted); }
.reviews__foot { margin-top: 1rem; text-align: center; font-size: var(--fs-sm); }

.projects { display: grid; gap: 24px; padding: 28px 20px; border-radius: 28px; background: var(--c-bg-alt); }
.projects__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: var(--fs-sm); font-weight: 500; }
.projects__badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.projects__text h2 { margin: 0.8rem 0 0; color: var(--c-primary); font-size: clamp(1.4rem, 1.15rem + 0.7vw, 1.75rem); }
.projects__text h2::after { content: ""; display: block; width: 88px; height: 2px; margin-top: 0.8rem; background: linear-gradient(90deg, var(--c-accent), transparent); }
.projects__text p { margin: 1rem 0 1.4rem; color: var(--c-text); }
.projects__text .btn { background: var(--c-primary); color: #fff; }
.projects__slider { position: relative; min-width: 0; }
.projects__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 12px; }
.projects__track::-webkit-scrollbar { display: none; }
.project { scroll-snap-align: start; margin: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 3px 10px rgba(6, 73, 58, 0.08); }
.project img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.project figcaption { padding: 10px 10px 12px 30px; position: relative; font-size: 0.875rem; line-height: 1.35; }
.project figcaption svg { position: absolute; left: 9px; top: 11px; width: 16px; height: 16px; fill: var(--c-accent-dark); }
.project strong { display: block; color: var(--c-primary); font-weight: 600; }
.project span { display: block; margin-top: 3px; color: var(--c-text-muted); font-size: 0.75rem; }
.slider-btn { position: absolute; top: 38%; z-index: 2; display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--c-primary); box-shadow: var(--shadow); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.slider-btn svg, .projects__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:disabled { cursor: default; }
#danh-gia { padding-bottom: 3rem; }
#cong-trinh { padding-top: 0; }
.slider-btn--prev { left: -14px; }
.slider-btn--next { right: -14px; }
.slider-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.slider-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider-dots button::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: var(--c-soft); opacity: 0.55; }
.slider-dots button[aria-current="true"]::before { background: var(--c-primary); opacity: 1; }

.section--dark .section__eyebrow { color: var(--c-accent); }
.section--dark .btn--ghost { color: #fff; }
.form .btn--primary { width: 100%; }

.cta-band { background: var(--c-bg-dark); }
.cta-band h2 { font-family: var(--f-script); font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); color: var(--c-accent); }
.site-footer { background: #043a2e; }
.site-footer__logo { width: auto; height: 60px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.site-footer__note { opacity: 0.8; }
.float-contact__book { background: var(--c-accent); color: #06302a; }
.float-contact__book:hover { color: #06302a; }

@media (min-width: 768px) {
	.about { grid-template-columns: 1fr 1fr; gap: 48px; }
	.stats { grid-template-columns: repeat(4, 1fr); }
	.levels { grid-template-columns: repeat(3, 1fr); }
	.mosaic { grid-template-columns: repeat(6, 1fr); }
	.tile { grid-column: span 2; }
	.tile--wide { grid-column: span 3; min-height: 320px; }
	.steps--grid { grid-template-columns: repeat(2, 1fr); }
	.projects__track { grid-auto-columns: calc(50% - 8px); }
	.slider-btn { display: grid; }
	.reviews { grid-auto-columns: calc(50% - 8px); }
	.site-footer .grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
}
@media (min-width: 1024px) {
	:root { --header-h: 112px; }
	.site-header { position: relative; }
	.site-header__social { display: flex; gap: 14px; grid-column: 1; }
	.site-header__social a { font-size: var(--fs-sm); color: var(--c-primary); text-decoration: none; }
	.site-header__logo { grid-column: 2; }
	.site-header__inner { align-items: start; padding-top: 10px; }
	.site-logo-img { height: 70px; }
	.site-header__social { padding-top: 12px; }
	.header-call { grid-column: 3; width: auto; height: 48px; margin-right: 0; padding: 0 22px; gap: 10px; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35); }
	.header-call span { display: inline; }
	.nav-bar { position: sticky; top: 34px; z-index: 110; height: 0; transform: translateY(-26px); }
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.nav-bar .container { display: flex; justify-content: center; }
	.nav-bar .primary-nav { width: 100%; height: 52px; border-radius: var(--radius-pill); background: var(--c-bg-dark); box-shadow: var(--shadow-lg); display: flex; justify-content: center; align-items: center; }
	.nav-bar .primary-nav > div > ul, .nav-bar .primary-nav > ul { gap: 2px; }
	.nav-bar .primary-nav > ul > li > a, .nav-bar .primary-nav > div > ul > li > a { padding: 14px 16px; color: #fff; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; }
	.nav-bar .primary-nav > ul > li.current-menu-item > a, .nav-bar .primary-nav > ul > li > a:hover { color: var(--c-accent); }
	.nav-bar .sub-menu a { color: var(--c-text); }
	.hero { padding-block: 104px 64px; }
	.page-hero { padding-block: 84px 48px; }
	.steps--grid { grid-template-columns: repeat(4, 1fr); }
	.steps--grid li { padding: 70px 20px 22px; }
	.reviews { grid-auto-columns: calc(33.333% - 11px); }
	.projects { grid-template-columns: 370px minmax(0, 1fr); align-items: center; gap: 30px; padding: 40px 36px; }
	.projects__track { grid-auto-columns: calc(33.333% - 11px); }
	.float-contact__book { display: none; }
}
@media (min-width: 1320px) {
	.projects { margin-inline: -44px; }
}
@media (min-width: 1400px) {
	/* Đo theo hình chủ web gửi, khổ 1586px */
	#danh-gia .container { max-width: 1342px; }
	#danh-gia { padding-bottom: 1.4rem; }
	#danh-gia .section__head { max-width: 860px; margin-bottom: 1.35rem; }
	#danh-gia .section__head h2 { font-size: 2.6rem; color: var(--c-primary-dark); }
	#danh-gia .section__lead { font-size: 1.125rem; letter-spacing: 0.01em; }
	#danh-gia .reviews { grid-auto-columns: calc(33.333% - 13.4px); gap: 20px; padding: 2px 2px 8px; }
	.review { padding: 26px; }
	.review__stars { font-size: 1.15rem; line-height: 1.3; }
	.review blockquote { margin: 0.55rem 0 0.7rem; font-size: 1.09rem; line-height: 1.46; }
	.review figcaption { font-size: 1.1rem; line-height: 1.35; }
	.review small { margin-top: 4px; font-size: 0.95rem; }
	.reviews__foot { margin-top: 0.6rem; font-size: 1.0625rem; font-weight: 500; }
	#cong-trinh .container { max-width: 1450px; }
	.projects { margin-inline: 0; grid-template-columns: 377px minmax(0, 1fr); gap: 40px; padding: 41px 41px 42px; }
	.projects__badge { padding: 9px 18px; font-size: 0.9375rem; }
	.projects__text h2 { margin-top: 1.05rem; font-size: 1.9rem; line-height: 1.3; color: var(--c-primary-dark); }
	.projects__text h2::after { margin-top: 0.95rem; }
	.projects__text p { margin: 1.05rem 0 1.25rem; font-size: 1.03rem; line-height: 1.5; }
	.projects__text .btn { min-height: 48px; padding: 10px 32px; font-size: 0.97rem; }
	.projects__track { grid-auto-columns: calc(33.333% - 13.4px); gap: 20px; padding: 0 0 12px; }
	.project img { aspect-ratio: 286 / 219; }
	.project figcaption { padding: 11px 8px 11px 37px; font-size: 0.97rem; }
	.project figcaption svg { left: 17px; top: 13px; width: 17px; height: 17px; }
	.project strong { white-space: nowrap; }
	.project span { margin-top: 5px; font-size: 0.775rem; white-space: nowrap; }
	.slider-btn { top: 118px; }
	.slider-btn--prev { left: -21px; }
	.slider-btn--next { right: -21px; }
}
/* Hero có ảnh nệm: không để chữ che nệm. Khổ nhỏ: ảnh trên, chữ dưới nền xanh. Khổ lớn: chữ đè phần tường, giường sáng rõ. */
@media (max-width: 1279px) {
	.hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0; background: var(--c-bg-dark); }
	.hero::after { display: none; }
	.hero > .container { padding-block: 40px 36px; }
	.hero__bg { position: static; height: auto; aspect-ratio: 1672 / 941; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.hero__bg { padding-top: 0; }
}
@media (min-width: 1280px) {
	.hero { align-items: flex-start; height: clamp(620px, calc(100vh - 113px), 56.28vw); min-height: 0; padding-block: 50px 0; }
	.hero__bg { object-position: 50% 88%; }
	.hero::after { background: linear-gradient(180deg, rgba(4, 46, 37, 0.74) 0, rgba(4, 46, 37, 0.66) 320px, rgba(4, 46, 37, 0.28) 385px, rgba(4, 46, 37, 0) 450px); }
	.hero__content { max-width: 960px; }
	.hero__script { font-size: clamp(3.6rem, 5vw, 5rem); line-height: 1.1; }
	.hero h1 { margin-bottom: 0.3em; }
	.hero__lead { max-width: none; margin-bottom: 0; }
	.hero__checks { margin: 0.8rem auto 1rem; padding: 9px 22px; }
	.hero .btn { min-height: 46px; padding: 9px 22px; }
}
/* Hai thẻ dòng nệm lớn: giữ trọn ảnh 2:1, không che hình cận lõi ở góc phải */
.tile--wide img { object-position: center; }
@media (max-width: 1023px) {
	.tile--wide { min-height: 0; }
	.tile--wide img { position: static; height: auto; aspect-ratio: 2 / 1; }
	.tile--wide::after { display: none; }
	.tile--wide .tile__body { position: static; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.tile--wide { min-height: 0; }
}
@media (min-width: 1024px) {
	.tile--wide { min-height: 0; aspect-ratio: 2 / 1; }
	.tile--wide::after { background: linear-gradient(180deg, rgba(4, 46, 37, 0) 42%, rgba(4, 46, 37, 0.92) 100%); -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 70%); mask-image: linear-gradient(90deg, #000 50%, transparent 70%); }
	.tile--wide .tile__body { right: 36%; padding: 18px 0 18px 24px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
