/* =========================================================
   Xưởng Giá Gốc – phong cách minimal
   Màu thương hiệu: #F7931E · #E57505 · #412213
   Font tiêu đề: Blacker Sans Display (nếu máy có / tự host),
   dự phòng Cormorant Garamond. Font nội dung: Be Vietnam Pro.
   ========================================================= */
@font-face {
  font-family: "Blacker Sans Display";
  src: local("Blacker Sans Display"), local("BlackerSansDisplay-Regular");
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #F7931E;
  --orange-deep: #E57505;
  --brown: #412213;
  --ink: #2b1a10;
  --text: #4a3428;
  --muted: #8a7366;
  --bg: #ffffff;
  --bg-soft: #fbf7f2;
  --line: #eee4d9;
  --line-strong: #dccbbb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(65, 34, 19, .04), 0 8px 24px rgba(65, 34, 19, .06);
  --font-display: "Blacker Sans Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 .9rem; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 62ch; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--brown);
  background: var(--brown); color: #fff; font: 600 .95rem/1 var(--font-body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brown); border-color: var(--brown); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--brown); white-space: nowrap; }
.link-more:hover svg { transform: translateX(3px); }
.link-more svg { transition: transform .2s; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--brown); letter-spacing: -.01em; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--text); }
.main-nav a:hover { color: var(--brown); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--brown); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brown); font-size: .95rem; white-space: nowrap; }
.header-phone svg { color: var(--orange-deep); }
.quote-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--orange); color: var(--brown); font-size: .72rem; font-weight: 700;
}
.quote-count[hidden] { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; color: var(--brown); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-mobile-only { display: none; }

/* ---------- breadcrumbs & page head ---------- */
.crumbs { padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--orange-deep); }
.page-head { padding-top: 36px; padding-bottom: 28px; }
.page-head h1 { margin-bottom: 16px; max-width: 30ch; }
.page-head.center h1 { margin-inline: auto; }
.page-head.center .lead { margin-inline: auto; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 24px 0 72px; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 a:hover { color: var(--orange-deep); }
.section-sub { color: var(--text); max-width: 68ch; margin: -18px 0 36px; }
.section-head .section-sub { margin: 0; flex-basis: 100%; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg, .note svg, .check-list svg { color: var(--orange-deep); stroke-width: 2.4; }
.hero-media { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .95; }
.hero-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hm-a { grid-row: 1 / 3; }

/* ---------- cards ---------- */
.card-link { display: block; height: 100%; }
.card-media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 14px; }
.card-media.ratio-4x3 { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.card-link:hover .card-title { color: var(--orange-deep); }
.card-meta { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.card-text { font-size: .93rem; margin: 8px 0 0; color: var(--text); }
.project-card .eyebrow { margin-bottom: 6px; }
.project-card .card-title { font-size: 1.12rem; }

.line-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.cat-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-body { padding: 20px 22px 22px; }
.cat-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.cat-body p { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.cat-count { font-size: .8rem; font-weight: 600; color: var(--orange-deep); letter-spacing: .02em; }

/* ---------- promises / steps ---------- */
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.promise-grid li { background: #fff; padding: 28px 24px; }
.promise-grid h3 { margin: 10px 0 8px; }
.promise-grid p { font-size: .92rem; margin: 0; }
.promise-no, .step-no { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--orange); line-height: 1; }
.section-soft .promise-grid li { background: var(--bg); }
.promise-grid li.promise-cta { padding: 0; background: var(--brown); }
.promise-cta a { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; height: 100%; padding: 28px 24px; color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.promise-cta a:hover { background: var(--orange-deep); color: #fff; }
.promise-cta svg { width: 28px; height: 28px; color: var(--orange); }
.promise-cta a:hover svg { color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.steps li:first-child { border-top-color: var(--orange); }
.steps h3 { margin: 12px 0 8px; }
.steps p { font-size: .92rem; margin: 0; }

/* ---------- occasions / chips ---------- */
.occasion-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.occasion-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 500; color: var(--ink); transition: border-color .2s; }
.occasion-list a:hover { border-color: var(--orange-deep); color: var(--orange-deep); }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: #fff; }
.chip-nav a:hover { border-color: var(--orange-deep); }

/* ---------- clients ---------- */
.client-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-grid li { display: grid; place-items: center; flex: 0 1 200px; height: 104px; padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.client-grid img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.client-grid li:hover img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--orange-deep); border-bottom: 2px solid var(--orange-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brown); color: #f4e9df; padding: 64px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 56ch; color: #e9d9cb; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: var(--orange); border-color: var(--orange); color: var(--brown); }
.cta-band .btn:hover { background: #fff; border-color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.gallery-zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-zoom:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: -2px; }
.gallery-img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.gallery-thumbs button { all: unset; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--bg-soft); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--orange-deep); }
.gallery-thumbs button:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 18px; }
.product-info .eyebrow a:hover { text-decoration: underline; }
.specs { margin: 28px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--ink); font-size: .92rem; }
.specs dd { margin: 0; font-size: .95rem; }
.mini-h { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.uses ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); font-size: .88rem; color: var(--ink); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-actions .btn.is-added { background: var(--bg-soft); color: var(--brown); border-color: var(--line-strong); }
.note { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); margin: 18px 0 0; }
.tip { border-left: 3px solid var(--orange); padding: 6px 0 6px 24px; }
.tip-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 6px; }
.tip p:last-child { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; color: var(--ink); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(30, 16, 9, .86); }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; border-radius: 8px; margin: auto; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--brown); display: grid; place-items: center; cursor: pointer; }

/* ---------- project detail ---------- */
.project-detail { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.project-story { position: sticky; top: calc(var(--header-h) + 20px); }
.project-story p { margin-bottom: 28px; }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.check-list svg { transform: translateY(3px); }
.tag-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-links a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; }
.tag-links a:hover { border-color: var(--orange-deep); }
.masonry { columns: 2; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose p { font-size: 1.05rem; }
.slogan { font-family: var(--font-display); font-size: 1.8rem !important; color: var(--orange-deep); line-height: 1.3; margin: 28px 0; }
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.values strong { color: var(--ink); }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.about-media figure:first-child { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.quote-form legend { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 16px; padding: 0; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(229,117,5,.15); }
.quote-form [aria-invalid="true"] { border-color: #c0392b; }
.quote-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.quote-empty { font-size: .93rem; color: var(--muted); padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); margin: 0; }
.quote-empty a { color: var(--orange-deep); text-decoration: underline; }
.quote-item { display: grid; grid-template-columns: 56px 1fr 110px 40px; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.quote-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.quote-item .qi-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.quote-item input { min-height: 40px; padding: 8px 10px; }
.quote-item .qi-remove { all: unset; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; color: var(--muted); }
.quote-item .qi-remove:hover { background: var(--bg-soft); color: var(--brown); }
.quote-add { display: flex; gap: 10px; }
.quote-add input { flex: 1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-error { color: #b03a2e; font-weight: 500; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card .mini-h { margin-top: 4px; }
.contact-card .check-list { font-size: .93rem; margin-bottom: 20px; }
.map { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { width: 96px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-h { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-contact svg { color: var(--orange-deep); transform: translateY(3px); }
.footer-contact a { font-weight: 500; color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; color: var(--muted); font-size: .85rem; }

/* ---------- mobile bar & toast ---------- */
.mobile-bar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--brown); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px);
}
.toast[hidden] { display: none; }
.toast a { color: var(--orange); font-weight: 600; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .line-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 16px 0 56px; }
  .hero { padding: 32px 0 56px; }
  .hero-in, .product, .project-detail, .about-grid, .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery, .project-story, .contact-card { position: static; }
  .cat-grid, .project-grid, .occasion-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: #fff; padding: 16px; margin: 0; z-index: 70;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-mobile-only { display: block; }
  .nav-contact a { display: flex; align-items: center; gap: 10px; padding: 20px 8px; font-weight: 600; color: var(--brown); }
  .header-actions .btn { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--brown); border: 1px solid var(--line-strong); }
  .mobile-bar a.is-primary { background: var(--brown); color: #fff; border-color: var(--brown); }
  body { padding-bottom: 72px; }
  .toast { bottom: 88px; }
}
@media (max-width: 640px) {
  .line-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .project-grid, .occasion-list, .promise-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-media { aspect-ratio: 1; }
  .cat-body { padding: 12px 14px 14px; }
  .cat-body h3 { font-size: .98rem; }
  .cat-body p { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { flex-direction: column; gap: 0; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .values li { grid-template-columns: 1fr; gap: 2px; }
  .quote-item { grid-template-columns: 48px 1fr 40px; }
  .quote-item img { width: 48px; height: 48px; }
  .quote-item .qi-qty { grid-column: 2 / 3; }
  .brand-name { font-size: 1.25rem; }
  .section-head { margin-bottom: 24px; }
  .card-title { font-size: .95rem; }
  .masonry { columns: 1; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   LUXE – bảng màu sang trọng & chuyển động
   ========================================================= */
:root {
  --espresso: #1e100a;
  --espresso-2: #2b170d;
  --cream: #faf3ea;
  --champagne: #f4e4cf;
  --gold-1: #ffb85c;
  --gold-grad: linear-gradient(120deg, #ffc277 0%, #F7931E 38%, #E57505 70%, #c45f00 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --bg-soft: #faf3ea;
  --line: #efe2d2;
}
body { background: #fffdfa; }
::selection { background: var(--orange); color: var(--espresso); }

/* Tiêu đề phụ có vạch vàng */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

/* Chữ ánh kim */
.hero h1 em, .promise-no, .step-no, .hero-stats strong, .slogan {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nút: nổi nhẹ, phủ ánh kim khi rê chuột, gợn sóng khi bấm */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(229,117,5,.55); }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--gold-grad); opacity: 0; z-index: -1; transition: opacity .35s; }
.btn:not(.btn-ghost):hover { background: var(--brown); border-color: transparent; color: var(--espresso); }
.btn:not(.btn-ghost):hover::after { opacity: 1; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); pointer-events: none; animation: ripple .6s var(--ease-out); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header ---------- */
.site-header { background: rgba(255,253,250,.88); animation: dropIn .8s var(--ease-out) both; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(30,16,10,.35); }
@keyframes dropIn { from { transform: translateY(-100%); } }

/* ---------- Hero espresso ---------- */
.hero-lux {
  position: relative; overflow: hidden; color: #eadbcb; padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(247,147,30,.22), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(229,117,5,.16), transparent 60%),
    linear-gradient(160deg, var(--espresso) 0%, var(--espresso-2) 55%, var(--brown) 100%);
}
.hero-watermark { position: absolute; right: -60px; bottom: -80px; width: 460px; opacity: .06; filter: grayscale(1) brightness(3); pointer-events: none; animation: slowSpin 120s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.hero-lux .hero-in { position: relative; }
.hero-lux h1 { color: #fff8f0; }
.hero-lux .lead { color: #dcc8b6; }
.hero-lux .eyebrow { color: var(--gold-1); }
.hero-lux .hero-points { color: #e7d6c5; }
.hero-lux .hero-points svg { color: var(--gold-1); }
.hero-lux .btn:not(.btn-ghost) { background: var(--gold-grad); color: var(--espresso); border-color: transparent; }
.hero-lux .btn:not(.btn-ghost)::after { background: #fff; }
.hero-lux .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero-lux .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: var(--gold-1); }
.hero-lux .hero-media figure { box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.hero-stats {
  list-style: none; margin: 64px 0 0; padding: 28px 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,194,119,.18); position: relative;
}
.hero-stats li { display: flex; flex-direction: column; gap: 6px; }
.hero-stats strong { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 600; line-height: 1; }
.hero-stats span { font-size: .88rem; color: #cbb59f; }

/* Mở trang: chữ trồi lên lần lượt, ảnh mở rèm */
.hero-text > * { animation: riseIn 1s var(--ease-out) both; }
.hero-text > :nth-child(1) { animation-delay: .15s; }
.hero-text > :nth-child(2) { animation-delay: .28s; }
.hero-text > :nth-child(3) { animation-delay: .42s; }
.hero-text > :nth-child(4) { animation-delay: .56s; }
.hero-text > :nth-child(5) { animation-delay: .7s; }
.hero-media figure { animation: curtain 1.3s var(--ease-out) both; }
.hero-media .hm-a { animation-delay: .25s; }
.hero-media .hm-b { animation-delay: .45s; }
.hero-media .hm-c { animation-delay: .65s; }
.hero-media img { animation: kenBurns 1.8s var(--ease-out) both; }
.hero-stats li { animation: riseIn .9s var(--ease-out) both; }
.hero-stats li:nth-child(1) { animation-delay: .8s; } .hero-stats li:nth-child(2) { animation-delay: .9s; }
.hero-stats li:nth-child(3) { animation-delay: 1s; } .hero-stats li:nth-child(4) { animation-delay: 1.1s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } }
@keyframes curtain { from { clip-path: inset(100% 0 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes kenBurns { from { transform: scale(1.18); } }

/* ---------- Đầu trang con: dải kem tràn viền ---------- */
.crumbs:has(+ .page-head), .page-head {
  background: var(--cream); box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax);
}
.page-head { padding-bottom: 48px; margin-bottom: 24px; }
.page-head > * { animation: riseIn .9s var(--ease-out) both; }
.page-head > :nth-child(2) { animation-delay: .1s; } .page-head > :nth-child(3) { animation-delay: .2s; } .page-head > :nth-child(4) { animation-delay: .3s; }
.product-info > *, .gallery { animation: riseIn .9s var(--ease-out) both; }
.product-info > :nth-child(2) { animation-delay: .08s; } .product-info > :nth-child(3) { animation-delay: .16s; }
.product-info > :nth-child(4) { animation-delay: .24s; } .product-info > :nth-child(n+5) { animation-delay: .32s; }

/* ---------- Khối tối sang trọng ---------- */
.section-dark {
  background: radial-gradient(800px 400px at 100% 0, rgba(247,147,30,.14), transparent 60%), linear-gradient(170deg, var(--espresso), var(--espresso-2));
  color: #dcc8b6;
}
.section-dark h2, .section-dark h3 { color: #fff8f0; }
.section-dark .promise-grid { background: rgba(255,194,119,.14); border-color: rgba(255,194,119,.14); }
.section-dark .promise-grid li { background: var(--espresso); transition: background .4s; }
.section-dark .promise-grid li:hover { background: #26150c; }
.section-dark .promise-grid p { color: #cbb59f; }
.section-dark .promise-grid li.promise-cta { background: var(--gold-grad); }
.section-dark .promise-cta a, .section-dark .promise-cta svg { color: var(--espresso); }
.section-dark .promise-cta a:hover { background: rgba(255,255,255,.2); color: var(--espresso); }
.promise-cta svg { transition: transform .3s var(--ease-out); }
.promise-cta a:hover svg { transform: translateX(6px); }

/* ---------- Thẻ: nổi nhẹ khi rê chuột ---------- */
.cat-card, .card-media { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.cat-card { position: relative; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(65,34,19,.35); border-color: var(--champagne); }
.card-link:hover .card-media { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(65,34,19,.4); }
.cat-card::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.cat-card:hover::after { transform: scaleX(1); }
.steps li:first-child { border-top-color: var(--orange); }
.occasion-list a svg { transition: transform .3s var(--ease-out); }
.occasion-list a:hover svg { transform: translateX(5px); }
.occasion-list a:hover { box-shadow: 0 12px 28px -18px rgba(229,117,5,.6); }
.tip { border-left: 0; padding-left: 28px; position: relative; }
.tip::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--gold-grad); }

/* ---------- Hiện dần khi cuộn ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in, .js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-done > * { transition-delay: 0s; }

/* ---------- Dải logo khách hàng chạy vòng ---------- */
.section-clients { overflow: hidden; }
.marquee {
  --gap: 18px; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 4px; }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gap); width: max-content; animation: marquee 42s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li {
  flex: none; width: 190px; height: 96px; display: grid; place-items: center; padding: 18px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.marquee li:hover { border-color: var(--champagne); box-shadow: 0 14px 30px -20px rgba(65,34,19,.4); transform: translateY(-3px); }
.marquee img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- Bấm mở: FAQ, menu, lightbox, gallery ---------- */
.faq summary { transition: color .3s; }
.faq summary:hover, .faq details[open] summary { color: var(--orange-deep); }

.main-nav.is-open li, .main-nav.is-open .nav-contact { animation: slideIn .55s var(--ease-out) both; }
.main-nav.is-open li:nth-child(1) { animation-delay: .04s; } .main-nav.is-open li:nth-child(2) { animation-delay: .08s; }
.main-nav.is-open li:nth-child(3) { animation-delay: .12s; } .main-nav.is-open li:nth-child(4) { animation-delay: .16s; }
.main-nav.is-open li:nth-child(5) { animation-delay: .2s; } .main-nav.is-open .nav-contact { animation-delay: .26s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }

.lightbox[open] { animation: zoomIn .45s var(--ease-out); }
.lightbox[open]::backdrop { animation: fadeIn .35s ease; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } }
@keyframes fadeIn { from { opacity: 0; } }
.gallery-img.is-swapping { animation: swapIn .5s var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: scale(1.04); } }
.gallery-thumbs button { transition: transform .3s var(--ease-out), border-color .3s; }
.gallery-thumbs button:hover { transform: translateY(-3px); }
.quote-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); } }
.toast:not([hidden]) { animation: toastIn .5s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.quote-item { animation: riseIn .5s var(--ease-out) both; }

/* Chuyển trang mượt (Chrome/Edge): trang cũ mờ đi, trang mới trồi lên */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .3s ease both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- CTA & footer tông espresso ---------- */
.cta-band { background: radial-gradient(700px 360px at 90% 50%, rgba(247,147,30,.25), transparent 60%), linear-gradient(120deg, var(--espresso), var(--brown)); }
.cta-band .btn:not(.btn-ghost) { background: var(--gold-grad); border-color: transparent; color: var(--espresso); }
.cta-band .btn:not(.btn-ghost)::after { background: #fff; }
.site-footer { background: var(--espresso); color: #bfa894; border-top: 1px solid rgba(255,194,119,.12); }
.site-footer a { color: #ead9c7; }
.site-footer a:hover { color: var(--gold-1); }
.site-footer .footer-h { color: var(--gold-1); }
.site-footer .footer-contact a { color: #fff3e6; }
.site-footer .footer-contact svg { color: var(--gold-1); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 48px; margin: 0; }
.footer-logo span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #fff8f0; }
.site-footer .muted { color: #9c8572; }
.footer-bottom { border-top-color: rgba(255,194,119,.12); color: #8f7866; }

@media (max-width: 900px) {
  .hero-lux { padding-top: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; row-gap: 22px; }
  .hero-watermark { width: 300px; right: -80px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-reverse { display: none; }
  .hero-media figure { clip-path: none !important; }
}
