/*
Theme Name: Đà Lạt Paper
Theme URI: https://dalatpaper.com/
Author: Đà Lạt Paper
Description: Theme viết tay cho Đà Lạt Paper – chi nhánh Đà Lạt của Thế Giới Giấy. Phong cách giấy kraft, vàng mù tạt, nâu socola; dữ liệu gom trong inc/data.php và inc/products.php; schema JSON-LD; form báo giá lưu đơn; không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: dalat-paper
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   ========================================================================== */
:root {
	--c-primary: #551b15;        /* nâu socola: tiêu đề, nút chính */
	--c-primary-dark: #3f130f;
	--c-accent: #f5c01b;         /* vàng mù tạt: header, hero, nút nhấn */
	--c-accent-soft: #f9dc82;    /* khung thẻ vàng nhạt */
	--c-cream: #f6efe2;          /* nền khăn giấy */
	--c-cream-2: #f1e6d0;
	--c-kraft: #e6cc98;          /* nền giấy kraft */
	--c-kraft-dark: #c7a56d;     /* footer */
	--c-espresso: #3a1e14;       /* nền tối, khung hero */
	--c-bg: #ffffff;
	--c-bg-alt: var(--c-cream);
	--c-bg-dark: var(--c-espresso);
	--c-text: #3d2b25;
	--c-text-muted: #6e5a50;
	--c-text-invert: #fbf5ea;
	--c-border: #e3d4b8;

	--f-body: "Lora", Georgia, "Times New Roman", serif;
	--f-heading: "Paytone One", "Arial Black", system-ui, sans-serif;
	--f-script: "Dancing Script", "Brush Script MT", cursive;

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

	--radius: 12px;
	--radius-lg: 20px;
	--radius-sm: 8px;
	--radius-pill: 999px;
	--shadow: 0 12px 30px rgba(58, 30, 20, 0.12);
	--shadow-sm: 0 4px 14px rgba(58, 30, 20, 0.08);

	--space-section: clamp(3.25rem, 2.4rem + 3.5vw, 5.5rem);
	--container: 1240px;
	--gutter: 16px;
	--header-h: 84px;

	--tex-tissue: url("assets/img/van-khan-giay.webp");
	--tex-kraft: url("assets/img/van-kraft.webp");
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.7; color: var(--c-text); background: var(--c-cream) var(--tex-tissue) repeat; background-size: 512px; background-blend-mode: multiply; 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); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; color: var(--c-primary); }
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; }
strong { font-weight: 700; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--tissue { background: var(--c-cream) var(--tex-tissue) repeat; background-size: 512px; background-blend-mode: multiply; }
.section--tissue-alt { background: var(--c-cream-2) var(--tex-tissue) repeat; background-size: 512px; background-blend-mode: multiply; }
.section--kraft { background: var(--c-kraft) var(--tex-kraft) repeat; background-size: 384px; background-blend-mode: multiply; }
.section--alt { background-color: var(--c-bg-alt); }
.section--dark { background: var(--c-espresso) var(--tex-kraft) repeat; background-size: 384px; background-blend-mode: multiply; color: var(--c-text-invert); }
.section--dark h2, .section--dark h3 { color: var(--c-accent); }
.section--photo { color: var(--c-text-invert); background: linear-gradient(rgba(42, 20, 12, 0.86), rgba(42, 20, 12, 0.92)), var(--bg-photo, none) center / cover no-repeat, var(--c-espresso); }
.section--photo h2 { color: var(--c-accent); }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section h2 { text-transform: uppercase; letter-spacing: 0.01em; }
.section .entry h2 { text-transform: none; letter-spacing: 0; }
.section__eyebrow { display: inline-block; margin-bottom: 0.4rem; font-weight: 700; font-size: 1rem; color: var(--c-primary); }
.section--dark .section__eyebrow, .section--photo .section__eyebrow { color: var(--c-accent); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section--dark .section__lead, .section--photo .section__lead { color: rgba(251, 245, 234, 0.82); }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.center-cta { margin-top: 2.25rem; text-align: center; }
.note { font-size: var(--fs-sm); color: var(--c-text-muted); font-style: italic; }

/* ==========================================================================
   3. Nút, chip, icon tròn
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 26px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 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: var(--c-primary); }
.btn--accent:hover { color: var(--c-primary); box-shadow: 0 6px 18px rgba(245, 192, 27, 0.35); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group--center { justify-content: center; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary); color: #fff; text-decoration: none; transition: transform 0.2s; }
.icon-btn:hover { color: #fff; transform: translateY(-2px); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn .icon--zalo { width: 30px; height: 30px; }
.icon-btn--accent { background: var(--c-accent); color: var(--c-primary); }
.icon-btn--accent:hover { color: var(--c-primary); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips__label { font-weight: 700; color: var(--c-primary); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--c-primary); border-radius: var(--radius-pill); background: transparent; color: var(--c-primary); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { background: rgba(85, 27, 21, 0.08); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); color: var(--c-text-invert); }
.chips--nav { margin-top: 1.25rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tags li { padding: 4px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.7); color: var(--c-primary); font-size: 0.9rem; font-weight: 600; }

.checklist { list-style: none; margin: 0 0 1rem; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.checklist .icon { color: var(--c-primary); margin-top: 4px; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ==========================================================================
   4. Header — thanh trắng bo tròn nổi trên nền vàng
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; padding-block: 10px; background: var(--c-accent); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(58, 30, 20, 0.14); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 6px 10px 6px 16px; background: #fff; border-radius: 40px; }
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--c-primary); text-decoration: none; }
.site-logo:hover { color: var(--c-primary); }
.site-logo__mark { width: 44px; height: 44px; flex: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__name { font-family: var(--f-script); font-size: 1.65rem; font-weight: 700; white-space: nowrap; }
.site-logo__sub { margin-top: 3px; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); white-space: nowrap; }
.custom-logo-link img { max-height: 56px; width: auto; }

.nav-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--c-primary); font-size: 1rem; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: var(--c-primary); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--c-cream) var(--tex-tissue); background-blend-mode: multiply; padding: 16px var(--gutter) 96px; 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-primary); font-weight: 600; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; 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; text-transform: none; font-size: 1rem; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--c-primary-dark); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.primary-nav__contact { margin-top: 24px; }
.header-actions { display: none; align-items: center; gap: 8px; }

/* ==========================================================================
   5. Hero — khung nâu bo góc trên nền vàng
   ========================================================================== */
.hero { padding: 6px 0 28px; background: var(--c-accent); }
.hero__panel { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(ellipse at 70% 30%, #5a3222 0%, var(--c-espresso) 65%); color: var(--c-text-invert); }
.hero__media { position: relative; height: 240px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero__stack { position: absolute; top: 14px; right: 16px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; margin: 0; font-family: var(--f-heading); font-size: 1.9rem; line-height: 0.95; color: #e3c98f; text-transform: lowercase; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.hero__content { position: relative; z-index: 1; padding: 0 20px 28px; margin-top: -24px; }
.hero__script { margin: 0 0 0.35rem; font-family: var(--f-script); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: #f3e3b8; }
.hero__title { margin-bottom: 0.8rem; font-family: var(--f-body); font-size: 1.12rem; font-weight: 700; line-height: 1.45; letter-spacing: 0.01em; color: var(--c-accent); text-transform: uppercase; }
.hero__lead { color: rgba(251, 245, 234, 0.88); font-size: 1rem; }
.hero .btn-group { margin-top: 1.25rem; }
.hero .btn--ghost { color: var(--c-text-invert); }
.hero__segments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero__segments a { display: inline-block; padding: 7px 16px; border-radius: var(--radius-pill); background: #fff; color: var(--c-primary); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.hero__segments a:hover { background: var(--c-primary); color: #fff; }

/* ==========================================================================
   6. Giới thiệu, số liệu
   ========================================================================== */
.about { display: grid; gap: 40px; }
.about__text h2 { text-transform: uppercase; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about__img img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.about__img--2 { margin-top: 56px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; padding: 14px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.65); border: 1px solid var(--c-border); }
.stats strong { font-family: var(--f-heading); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: var(--c-primary); }
.stats span { font-size: 0.82rem; line-height: 1.35; color: var(--c-text-muted); margin-top: 4px; }

/* ==========================================================================
   7. Thẻ: nhóm khách (ảnh + nhãn trắng), khung vàng, sản phẩm
   ========================================================================== */
.seg-card__link { display: block; overflow: hidden; border-radius: var(--radius); background: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.seg-card__link:hover { transform: translateY(-4px); }
.seg-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seg-card__label { margin: 0; padding: 14px 12px; font-family: var(--f-body); font-size: 1rem; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-primary) !important; }
.seg-card__text { margin: 14px 4px 0; font-size: 0.95rem; color: rgba(251, 245, 234, 0.85); }
.grid--seg { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 599px) {
	.seg-card__text { display: none; }
	.seg-card__label { padding: 10px 6px; font-size: 0.85rem; }
	.frame-card__media img { aspect-ratio: 16 / 9; }
	.steps li { padding-left: 58px; }
}

.frame-card { display: flex; flex-direction: column; padding: 14px; border-radius: 6px; background: linear-gradient(160deg, #fbe39b, var(--c-accent-soft)); transition: transform 0.2s, box-shadow 0.2s; }
.frame-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.frame-card__media { display: block; overflow: hidden; }
.frame-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 14px; background: #fff; }
.frame-card__title { margin-bottom: 0.4em; font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.frame-card__title a { color: var(--c-primary); text-decoration: none; }
.frame-card__title a:hover { text-decoration: underline; }
.frame-card__body p, .frame-card__text { font-size: 0.93rem; color: var(--c-text-muted); }
.frame-card__text p { margin: 0 0 0.6em; }
.frame-card__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--c-primary); }

.grid--products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); transition: box-shadow 0.2s, transform 0.2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product[hidden] { display: none; }
.product__media { position: relative; background: #fff; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.product__badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-primary); font-size: 0.75rem; font-weight: 700; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; border-top: 1px dashed var(--c-border); }
.product__code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-text-muted); }
.product__name { margin: 2px 0 8px; font-family: var(--f-body); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--c-primary); }
.product__specs { margin: 0 0 8px; padding: 0; list-style: none; font-size: 0.85rem; line-height: 1.45; }
.product__specs li { margin-bottom: 3px; }
.product__specs span { color: var(--c-text-muted); }
.product__for { margin-bottom: 8px; font-size: 0.8rem; line-height: 1.4; color: var(--c-text-muted); }
.product__more { margin-bottom: 12px; font-size: 0.85rem; }
.product__more summary { cursor: pointer; font-weight: 700; color: var(--c-primary); }
.product__more dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; }
.product__more dt { color: var(--c-text-muted); }
.product__more dd { margin: 0; }
.product__cta { margin-top: auto; width: 100%; }

.product-group { margin-bottom: 3.5rem; }
.product-group:last-child { margin-bottom: 0; }
.product-group__head { max-width: 760px; margin-bottom: 1.5rem; }
.product-group__head h2 { text-transform: uppercase; margin-bottom: 0.3em; }
.product-group__head p { color: var(--c-text-muted); margin-bottom: 0.4em; }
[data-product-filter] { margin-bottom: 2rem; }

/* ==========================================================================
   8. Lý do, 5 KHÔNG, in logo, quy trình, FAQ
   ========================================================================== */
.feature { padding: 24px; border-radius: var(--radius); background: rgba(255, 250, 240, 0.8); border: 1px solid rgba(85, 27, 21, 0.12); }
.feature__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 50%; background: var(--c-primary); color: var(--c-accent); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.1rem; }
.feature p { font-size: 0.95rem; color: var(--c-text-muted); margin: 0; }

.five-no { margin-top: 2.5rem; padding: 22px; border-radius: var(--radius-lg); background: var(--c-primary); color: var(--c-text-invert); text-align: center; }
.five-no__title { margin-bottom: 14px; font-size: 1.1rem; }
.five-no__title strong { color: var(--c-accent); font-family: var(--f-heading); font-weight: 400; letter-spacing: 0.03em; }
.five-no__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 0; padding: 0; list-style: none; counter-reset: no; }
.five-no__list li { display: inline-flex; align-items: center; gap: 8px; counter-increment: no; font-weight: 600; font-size: 0.95rem; }
.five-no__list li::before { content: counter(no); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary); font-weight: 700; font-size: 0.85rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.duo img:nth-child(2) { margin-top: 40px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 66px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent); color: var(--c-primary); font-family: var(--f-heading); font-size: 1.2rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; border-left: 2px dashed rgba(85, 27, 21, 0.3); }
.steps h3 { margin-bottom: 0.2em; font-size: var(--fs-lg); font-family: var(--f-body); font-weight: 700; }
.steps p { margin: 0; color: var(--c-text-muted); }

.faq { max-width: 860px; margin-inline: auto; }
.faq__item { margin-bottom: 10px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.75); border: 1px solid var(--c-border); }
.faq__h { margin: 0; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: none; text-align: left; font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; color: var(--c-primary); cursor: pointer; }
.faq__q::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); font-size: 1.2rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 16px; color: var(--c-text); }
.faq__a p:last-child { margin-bottom: 0; }
.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 + văn phòng
   ========================================================================== */
.form { display: grid; gap: 14px; padding: 24px; background: #fffdf8; color: var(--c-text); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 14px; }
.form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: var(--fs-sm); color: var(--c-primary); }
.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(245, 192, 27, 0.35); }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.8rem; color: var(--c-text-muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

.office { display: grid; gap: 24px; }
.office__map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.office__info { padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 250, 240, 0.85); }
.office__info h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.office__info p { margin-bottom: 0.6em; }

.contact-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.contact-map { display: block; width: 100%; border: 0; border-radius: var(--radius-lg); }

/* ==========================================================================
   10. Trang con, bài viết
   ========================================================================== */
.page-hero { padding: 28px 0 44px; background: var(--c-accent); }
.page-hero h1 { color: var(--c-primary); margin-bottom: 0.4em; }
.page-hero .section__lead { color: var(--c-primary); opacity: 0.85; max-width: 760px; }
.page-hero--media .split { gap: 28px; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-hero .btn--ghost { color: var(--c-primary); }
.breadcrumb { margin-bottom: 10px; font-size: var(--fs-sm); color: var(--c-primary); }
.breadcrumb a { color: inherit; }
.entry { max-width: 800px; margin-inline: auto; }
.entry--center { text-align: center; }
.entry img { border-radius: var(--radius); }
.entry h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); }
.entry h3 { margin-top: 1.4em; font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; }
.entry > :first-child { margin-top: 0; }
.entry blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--c-accent); background: rgba(255, 255, 255, 0.7); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.25em 0; font-size: 0.95rem; background: rgba(255, 255, 255, 0.75); }
.entry th, .entry td { padding: 10px 12px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry th { background: var(--c-primary); color: var(--c-text-invert); }
.entry .box { margin: 1.5em 0; padding: 18px 20px; border-radius: var(--radius); background: var(--c-accent-soft); }
.entry .box p:last-child { margin-bottom: 0; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; background: #fff; }
.page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ==========================================================================
   11. CTA + Footer (giấy kraft sẫm)
   ========================================================================== */
.cta-band { padding-block: 52px; background: var(--c-accent); color: var(--c-primary); text-align: center; }
.cta-band h2 { margin-bottom: 0.3em; text-transform: uppercase; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--accent { background: var(--c-primary); color: var(--c-text-invert); }
.site-footer { padding-top: 56px; background: var(--c-kraft-dark) var(--tex-kraft) repeat; background-size: 384px; background-blend-mode: multiply; color: #3a2218; font-size: 0.95rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--c-primary); }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__title { position: relative; margin-bottom: 1.1em; padding-bottom: 10px; font-size: 1.05rem; text-transform: uppercase; color: var(--c-primary); }
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--c-primary); }
.site-footer__legal { font-weight: 700; }
.site-footer__list, .site-footer__links { list-style: none; padding: 0; margin: 0 0 1rem; }
.site-footer__list li { display: flex; gap: 10px; margin-bottom: 10px; }
.site-footer__list .icon { margin-top: 4px; color: var(--c-primary); }
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a::before { content: "› "; font-weight: 700; }
.site-footer__small { font-size: 0.82rem; opacity: 0.85; }
.site-footer__social { display: flex; gap: 10px; margin-top: 1.25rem; }
.site-footer__bottom { margin-top: 40px; padding-block: 18px 88px; border-top: 1px solid rgba(58, 34, 24, 0.2); font-size: 0.85rem; text-align: center; }
.site-footer__menu { display: inline-flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }

/* ==========================================================================
   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.78rem; font-weight: 700; 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; }
	.hero__media { height: 320px; }
	.hero__stack { font-size: 3rem; }
}
@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); }
	.grid--products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.split--top { align-items: start; }
	#quy-trinh .split > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); }
	.about { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
	.office { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
	.office__map iframe { height: 100%; min-height: 360px; }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
	.five-no { padding: 26px 32px; }
}
@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--media-left > :first-child { order: 0; }

	/* Header */
	.nav-toggle { display: none; }
	.header-actions { display: flex; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav__contact { display: none; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a { padding: 10px 12px; border: 0; font-size: 0.9rem; 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: 8px 0; background: #fff; border-radius: var(--radius); 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 18px; }

	/* Hero: ảnh trái mờ dần, chữ xếp dọc giữa, nội dung phải */
	.hero__panel { display: grid; grid-template-columns: 1.1fr auto 1fr; align-items: center; gap: 28px; min-height: 560px; padding: 48px 56px 48px 0; }
	.hero__media { position: absolute; inset: 0 auto 0 0; width: 58%; height: auto; }
	.hero__media img { -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 98%); mask-image: linear-gradient(90deg, #000 45%, transparent 98%); }
	.hero__stack { position: relative; top: auto; right: auto; grid-column: 2; align-items: flex-start; font-size: clamp(4.2rem, 2rem + 4vw, 6.4rem); line-height: 0.92; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
	.hero__content { grid-column: 3; margin: 0; padding: 0; }
	.hero__script { font-size: 3.4rem; }
	.hero__lead { font-size: 1.05rem; }

	.grid--products { grid-template-columns: repeat(4, 1fr); }
	.page-hero { padding: 36px 0 56px; }
	.page-hero--media .split { grid-template-columns: 1.1fr 1fr; }

	.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; }
}
@media (min-width: 1200px) {
	.primary-nav a { padding: 10px 14px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
