:root {
  --kem: #f6f0e8;
  --kem-dam: #ece2d5;
  --nau: #3a2a20;
  --nau-nhat: #6d5a4c;
  --vang: #b48a5a;
  --vang-nhat: #d9bf9a;
  --trang: #fffdf9;
  --vien: rgba(58, 42, 32, .12);
  --chu-tieu-de: "Cormorant Garamond", "Times New Roman", serif;
  --chu: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --bo-goc: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--chu);
  font-weight: 300;
  color: var(--nau);
  background: var(--kem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.khung { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--chu-tieu-de); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.nhan {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--vang);
  font-weight: 500;
  margin-bottom: 14px;
}

/* Nút */
.nut {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--vang);
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid var(--vang);
  transition: background .25s, color .25s, transform .25s;
}
.nut:hover { background: #9d7547; border-color: #9d7547; transform: translateY(-2px); }
.nut-vien { background: transparent; border-color: rgba(255,255,255,.55); }
.nut-vien:hover { background: #fff; color: var(--nau); border-color: #fff; }
.nut-vien-toi { background: transparent; color: var(--nau); border-color: var(--nau); }
.nut-vien-toi:hover { background: var(--nau); color: #fff; border-color: var(--nau); }
.nut-nho { padding: 10px 22px; font-size: .88rem; }

/* Đầu trang */
.dau-trang {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.dau-trang-trong { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { position: relative; width: 190px; flex-shrink: 0; }
.logo img { width: 100%; transition: opacity .3s; }
.logo .logo-toi { position: absolute; inset: 0; opacity: 0; }
.menu { display: flex; align-items: center; gap: 30px; margin-left: auto; color: #fff; }
.menu a { font-size: .92rem; font-weight: 400; position: relative; }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: currentColor; transition: width .25s;
}
.menu a:hover::after { width: 100%; }
.ngon-ngu {
  display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px;
}
.ngon-ngu button {
  background: none; border: 0; color: inherit; border-radius: 999px;
  padding: 3px 9px; font: 500 .72rem var(--chu); letter-spacing: .08em; cursor: pointer; opacity: .7;
  transition: background .2s, color .2s, opacity .2s;
}
.ngon-ngu button:hover { opacity: 1; }
.ngon-ngu button.dang-chon { background: #fff; color: var(--nau); opacity: 1; }
.dau-trang.cuon .ngon-ngu button.dang-chon, .dau-trang.mo .ngon-ngu button.dang-chon { background: var(--nau); color: #fff; }
.nut-menu { display: none; }

.dau-trang.cuon { background: rgba(246, 240, 232, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--vien); }
.dau-trang.cuon .logo-sang { opacity: 0; }
.dau-trang.cuon .logo-toi { opacity: 1; }
.dau-trang.cuon .menu { color: var(--nau); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-anh {
  position: absolute; inset: 0;
  background-size: cover; background-position: 62% center;
  transform: scale(1.08);
  animation: thu-nho 14s ease-out forwards;
}
@keyframes thu-nho { to { transform: scale(1); } }
.hero-phu {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,18,13,.92) 0%, rgba(26,18,13,.7) 42%, rgba(26,18,13,.25) 100%),
    linear-gradient(0deg, rgba(26,18,13,.6) 0%, transparent 35%);
}
.hero-noi-dung { position: relative; padding: 120px 0 170px; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); max-width: 11ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--vang-nhat); }
.hero .nhan { color: var(--vang-nhat); }
.hero-mo-ta { max-width: 460px; font-size: 1.08rem; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-nut { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-noi-dung > * { opacity: 0; transform: translateY(24px); animation: hien .9s ease forwards; }
.hero-noi-dung > *:nth-child(2) { animation-delay: .15s; }
.hero-noi-dung > *:nth-child(3) { animation-delay: .3s; }
.hero-noi-dung > *:nth-child(4) { animation-delay: .45s; }
@keyframes hien { to { opacity: 1; transform: none; } }

.hero-thong-tin {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(26,18,13,.35); backdrop-filter: blur(6px);
}
.hero-thong-tin-trong { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-thong-tin-trong > div { padding: 22px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-thong-tin-trong > div + div { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-thong-tin span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vang-nhat); }
.hero-thong-tin strong { font-weight: 400; font-size: .98rem; }

/* Phần chung */
.phan { padding: 120px 0; }
.tieu-de-phan { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.tieu-de-phan p:last-child { color: var(--nau-nhat); }

/* Dịch vụ */
.luoi-dich-vu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.the-dich-vu {
  background: var(--trang);
  border-radius: var(--bo-goc);
  overflow: hidden;
  border: 1px solid var(--vien);
  transition: transform .35s, box-shadow .35s;
}
.the-dich-vu:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(58,42,32,.35); }
.the-dich-vu .anh { aspect-ratio: 4 / 3; overflow: hidden; }
.the-dich-vu .anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.the-dich-vu:hover .anh img { transform: scale(1.06); }
.the-dich-vu .chu { padding: 26px 28px 30px; }
.the-dich-vu h3 { font-size: 1.75rem; margin-bottom: 8px; }
.the-dich-vu p { color: var(--nau-nhat); font-size: .95rem; min-height: 3.2em; }
.the-dich-vu .gia {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vien);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500; color: var(--vang);
}
.the-dich-vu .gia a { font-size: .85rem; color: var(--nau); font-weight: 400; }
.the-dich-vu .gia a:hover { color: var(--vang); }

/* Khung ảnh mẫu khi chưa có ảnh */
.anh-mau {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.7), transparent 55%),
    linear-gradient(135deg, var(--kem-dam), #dcc9b2);
  color: var(--vang);
}
.anh-mau svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

/* Giới thiệu */
.phan-gioi-thieu { background: var(--nau); color: #fff; }
.gioi-thieu { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.gioi-thieu-anh { border-radius: var(--bo-goc); overflow: hidden; aspect-ratio: 5 / 4; }
.gioi-thieu-anh img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.gioi-thieu-chu > p:not(.nhan) { color: rgba(255,255,255,.75); margin-bottom: 34px; }
.diem-manh { list-style: none; display: grid; gap: 18px; }
.diem-manh li { display: flex; flex-direction: column; padding-left: 22px; border-left: 2px solid var(--vang); }
.diem-manh strong { font-weight: 500; }
.diem-manh span { color: rgba(255,255,255,.6); font-size: .92rem; }

/* Thư viện */
.luoi-thu-vien { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.luoi-thu-vien > div { border-radius: 14px; overflow: hidden; }
.luoi-thu-vien > div:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.luoi-thu-vien > div:nth-child(4) { grid-row: span 2; }
.luoi-thu-vien img { width: 100%; height: 100%; object-fit: cover; }

/* Liên hệ */
.phan-lien-he { background: var(--kem-dam); }
.lien-he { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: stretch; }
.the-gio { background: var(--trang); border-radius: var(--bo-goc); padding: 48px; }
.bang-gio { list-style: none; margin: 26px 0 30px; }
.bang-gio li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px dashed var(--vien);
}
.bang-gio li.hom-nay { color: var(--vang); font-weight: 500; }
.bang-gio li.hom-nay span:first-child::after { content: " •"; }
.thong-tin-lien-he { display: grid; gap: 14px; margin-bottom: 30px; }
.thong-tin-lien-he p { display: flex; flex-direction: column; }
.thong-tin-lien-he span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vang); }
.thong-tin-lien-he strong { font-weight: 400; }
.ban-do { border-radius: var(--bo-goc); overflow: hidden; min-height: 420px; background: #d8c8b4; }
.ban-do iframe { width: 100%; height: 100%; border: 0; display: block; }
.ban-do-trong { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--nau-nhat); }
.ban-do-trong svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* Chân trang */
.chan-trang { background: #261b14; color: rgba(255,255,255,.7); padding: 56px 0 40px; }
.chan-trang-trong { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.logo-chan { width: 230px; opacity: .95; }
.mang-xa-hoi { display: flex; gap: 12px; }
.mang-xa-hoi a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.mang-xa-hoi a:hover { background: var(--vang); border-color: var(--vang); }
.mang-xa-hoi svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.ban-quyen { font-size: .82rem; }

/* Nút gọi nổi trên điện thoại */
.goi-noi {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--vang); display: none; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(58,42,32,.5);
}
.goi-noi svg { width: 24px; height: 24px; fill: #fff; }
.goi-noi::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--vang); animation: song 2s infinite;
}
@keyframes song { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Hiện dần khi cuộn */
.hien-dan { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.hien-dan.da-hien { opacity: 1; transform: none; }

/* Máy tính bảng */
@media (max-width: 980px) {
  .luoi-dich-vu { grid-template-columns: repeat(2, 1fr); }
  .gioi-thieu, .lien-he { grid-template-columns: 1fr; gap: 40px; }
  .luoi-thu-vien { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .luoi-thu-vien > div:nth-child(4) { grid-row: span 1; }
}

/* Điện thoại */
@media (max-width: 760px) {
  .phan { padding: 80px 0; }
  .dau-trang-trong { height: 70px; }
  .logo { width: 150px; }
  .dau-trang > .khung > .nut-nho { display: none; }
  .nut-menu {
    display: flex; flex-direction: column; gap: 7px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nut-menu span { width: 26px; height: 1.5px; background: #fff; transition: transform .3s, background .3s; }
  .dau-trang.cuon .nut-menu span, .dau-trang.mo .nut-menu span { background: var(--nau); }
  .dau-trang.mo .nut-menu span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .dau-trang.mo .nut-menu span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--kem); color: var(--nau);
    padding: 10px 20px 24px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--vien); font-size: 1rem; }
  .menu a::after { display: none; }
  .ngon-ngu { margin-top: 16px; }
  .ngon-ngu button { padding: 6px 14px; font-size: .8rem; }
  .dau-trang.mo { background: var(--kem); }
  .dau-trang.mo .logo-sang { opacity: 0; }
  .dau-trang.mo .logo-toi { opacity: 1; }
  .dau-trang.mo .menu { opacity: 1; transform: none; pointer-events: auto; }

  .hero { align-items: flex-end; }
  .hero-anh { background-position: 22% center; }
  .hero-phu { background: linear-gradient(0deg, rgba(26,18,13,.95) 0%, rgba(26,18,13,.75) 55%, rgba(26,18,13,.35) 100%); }
  .hero-noi-dung { padding: 120px 0 40px; }
  .hero-thong-tin { position: relative; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-thong-tin-trong { grid-template-columns: 1fr; }
  .hero-thong-tin-trong > div { padding: 14px 0; }
  .hero-thong-tin-trong > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }

  .luoi-dich-vu { grid-template-columns: 1fr; gap: 20px; }
  .the-gio { padding: 32px 24px; }
  .ban-do { min-height: 300px; }
  .luoi-thu-vien { grid-auto-rows: 150px; gap: 10px; }
  .goi-noi { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-noi-dung > *, .hien-dan { opacity: 1; transform: none; }
}
