/* CSS dùng chung cho mọi trang woodenhouserealty.com (tách từ index.html ngày 2/12/2026). */
:root {
  --bg: #F5F0E8;
  --bg-alt: #EAE2D6;
  --border: #D8CBB8;
  --accent: #7E5232;
  --accent-dark: #633F24;
  --ink: #2C221B;
  --muted: #6E6259;
  --muted-alt: #594E46;
  --gold-soft: #C9A27A;
  --gutter: 16px;
  --max-w: 1120px;
  --radius: 4px;
  --ease: 0.2s ease;
  --font-serif: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
a, button { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
}
h1, h2 { text-wrap: balance; }
h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.25rem, 4.2vw, 3.35rem); line-height: 1.22; letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.28; letter-spacing: -0.015em;
}
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
.lead { color: var(--muted-alt); font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand picture { display: flex; }
.brand img { height: 25px; width: auto; }
.nav-links { display: none; align-items: center; gap: 26px; font-size: 14px; color: var(--muted-alt); }
.nav-links a { text-decoration: none; transition: color var(--ease); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 2px;
  transition: background var(--ease), color var(--ease);
}
.lang-btn[aria-pressed="true"],
.lang-btn[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
/* Nút VI/EN là link sang URL của từng bản (2/12/2026): giữ đúng dáng nút cũ */
a.lang-btn { display: inline-block; text-decoration: none; line-height: normal; }
.btn.header-cta { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }
.btn-light-outline { background: transparent; color: var(--bg); border-color: var(--border); }
.btn-light-outline:hover { background: rgba(245, 240, 232, 0.12); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted-alt);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 100px); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head p { margin-top: 12px; color: var(--muted-alt); }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .lead { margin-bottom: 24px; max-width: 520px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-group .btn { flex: 1 1 160px; }
.hero-sublink { margin-top: 16px; }
.hero-media { margin: 0; }
.hero-frame {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Pillars */
.pillars-grid { display: grid; gap: 24px; }
.pillar { padding-top: 18px; border-top: 1px solid var(--border); }
.pillar-num { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted-alt); }

/* Projects */
.projects-grid { display: grid; gap: 24px; }
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-thumb img { transform: scale(1.025); }
.project-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.project-dev {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.project-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.375rem; line-height: 1.35; letter-spacing: -0.01em;
}
.project-body p { color: var(--muted-alt); margin-bottom: 18px; flex: 1; }
.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.project-filter-link {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted-alt);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--ease), color var(--ease);
}
.project-filter-link:hover { color: var(--ink); border-color: var(--ink); }
.project-actions .text-link {
  color: var(--accent);
  font-weight: 600;
  border-color: var(--accent);
}
.project-actions .text-link:hover { color: var(--ink); border-color: var(--ink); }

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted-alt);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.gallery-item[hidden] { display: none; }
.gallery-trigger {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.gallery-trigger img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-trigger:hover img { transform: scale(1.025); }
.gallery-trigger img[src*="cr-guong-vom"] { object-position: center 30%; }
.gallery-trigger img[src*="cr-sofa.webp"] { object-position: center 78%; }
.gallery-trigger img[src*="cr-tu-vao"] { object-position: center 60%; }
/* Khung vuông cắt từ ảnh 4:3 nên object-position dọc không có tác dụng; phóng nhẹ, neo đáy để bớt trần và máy lạnh */
.gallery-trigger img[src*="srr-phong-khach"] { scale: 1.3; transform-origin: 40% 100%; }
.gallery-cap {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted-alt);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.gallery-cap strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* Process */
.steps-grid { display: grid; gap: 20px; }
.step-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted-alt); }

/* Espresso CTA & Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 calc(96px + env(safe-area-inset-bottom, 0px));
}
.footer-cta { max-width: 640px; padding-bottom: 44px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 24px; }
.footer-cta h2 { color: var(--bg); margin-bottom: 14px; }
.footer-cta p { color: var(--border); margin-bottom: 24px; }
.footer-cta .text-link { color: var(--border); border-color: rgba(216, 203, 184, 0.35); margin-top: 16px; }
.footer-cta .text-link:hover { color: var(--bg); border-color: var(--bg); }
.footer-meta {
  border-top: 1px solid rgba(216, 203, 184, 0.22);
  padding-top: 28px;
  display: grid;
  gap: 20px;
  font-size: 13.5px;
  color: var(--border);
}
.meta-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { text-decoration: none; border-bottom: 1px solid rgba(216, 203, 184, 0.3); padding-bottom: 1px; }
.footer-links a:hover { color: var(--bg); border-color: var(--bg); }
.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 203, 184, 0.14);
  font-size: 12.5px;
  color: rgba(216, 203, 184, 0.85);
}

/* Sticky Mobile Bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}
.mobile-bar .btn { min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500; }
.mobile-bar .btn-secondary:hover { background: transparent; color: var(--ink); }
/* Chỉ ẩn khi JS đã chạy (gắn .js-bar lên <html>); JS hỏng thì thanh vẫn hiện như cũ */
.js-bar .mobile-bar {
  transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform 240ms ease, opacity 200ms ease, visibility 0s linear 240ms;
}
.js-bar .mobile-bar.is-shown {
  transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible;
  transition-delay: 0s;
}

/* Hiện nhẹ theo từng khối: JS chỉ gắn .reveal khi có IntersectionObserver, nên tắt JS vẫn thấy đủ nội dung */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(26, 20, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-panel {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid rgba(216, 203, 184, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(216, 203, 184, 0.18);
  color: var(--bg);
  font-size: 13.5px;
}
.lightbox-close {
  border: 1px solid rgba(216, 203, 184, 0.35);
  background: transparent;
  color: var(--bg);
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.lightbox-body {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1B1511;
}
.lightbox-body img { max-height: 70vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-foot {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(216, 203, 184, 0.18);
  font-size: 13px;
  color: var(--border);
}

/* Trang dự án (2/12/2026): link trong thẻ dự án, breadcrumb, bảng giá, dữ kiện, hỏi đáp */
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card h3 a:hover { color: var(--accent); }
a.project-filter-link { display: inline-block; line-height: normal; text-decoration: none; }
.breadcrumb { padding-top: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid var(--border); }
.breadcrumb a:hover { color: var(--ink); border-color: var(--ink); }
.page-hero { padding-top: 20px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.price-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table thead th {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-alt);
}
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { font-weight: 600; }
.price-note, .price-empty, .src-note { margin-top: 14px; font-size: 13.5px; color: var(--muted-alt); max-width: 720px; }
.price-empty { font-size: 1rem; color: var(--ink); }
.src-note a, .prose a { color: var(--accent); }
.section-cta { margin-top: 28px; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0; }
.prose { max-width: 720px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.fee-figure { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.3; margin-bottom: 10px; }
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--border); }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { margin-bottom: 6px; }
.faq-item p { color: var(--muted-alt); }
.photo-pair { display: grid; gap: 20px; }
.photo-pair figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted-alt); border-top: 1px solid var(--border); }
.notfound { padding: clamp(56px, 9vw, 120px) 0; }
.notfound h1 { margin-bottom: 14px; }
.notfound .lead + .lead { margin-top: 6px; }
.notfound .cta-group { margin-top: 28px; }
.notfound-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (max-width: 599px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th { padding: 0 0 6px; border: 0; font-size: 1rem; }
  .price-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .price-table td::before { content: attr(data-label); color: var(--muted); font-size: 13.5px; }
}
@media (min-width: 768px) {
  .facts > div { grid-template-columns: 220px 1fr; gap: 24px; }
  .photo-pair { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  .eyebrow { font-size: 0.6875rem; letter-spacing: 0.08em; }
}
@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .header-inner { height: 72px; }
  .brand img { height: 32px; }
  .nav-links { display: flex; }
  .btn.header-cta { display: inline-flex; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .cta-group .btn { flex: 0 0 auto; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-meta { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .site-footer { padding: 72px 0 48px; }
  .mobile-bar { display: none; }
}
@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .step-card { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal, .project-thumb img, .gallery-trigger img, a, button { transition: none; transform: none !important; opacity: 1; }
}
