/* =====================================================================
   VISTALAGO HOTEL — tông nâu Vistalago, chữ mảnh, gradient ấm
   Đổi màu thương hiệu tại :root
   ===================================================================== */
:root {
  --brown-950: #1f1611;
  --brown-900: #2e211a;
  --brown-800: #44312a;
  --brown-700: #5a3e2e;
  --brown: #7b5640;          /* nâu Vistalago — màu chủ đạo */
  --brown-400: #a07a5f;
  --gold: #c8a47a;
  --gold-light: #e6cfae;
  --cream: #f8f4ee;
  --sand: #efe6da;
  --ink: #2e211a;
  --muted: #7d6b5f;
  --line: rgba(123, 86, 64, .18);

  --grad-brand: linear-gradient(120deg, #44312a 0%, #7b5640 48%, #b08a66 100%);
  --grad-gold: linear-gradient(120deg, #a37a55 0%, #c8a47a 50%, #e2c59c 100%);
  --grad-cream: linear-gradient(180deg, #f8f4ee 0%, #efe6da 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 300 16px/1.8 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- typography ---------- */
.label {
  font: 400 .72rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  color: var(--brown); margin: 0 0 14px;
}
.label.light { color: var(--gold-light); }
.h2 {
  font: 300 clamp(2.2rem, 4.6vw, 3.6rem)/1.1 var(--serif); letter-spacing: .01em;
  margin: 0 0 18px; color: var(--brown-900);
}
.h2.light { color: #fff; }
.h3 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.2 var(--serif); margin: 0 0 14px; color: var(--brown-900); }
.divider { display: block; width: 64px; height: 1px; background: var(--grad-gold); margin: 0 auto 26px; }
.divider.left { margin-left: 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  font: 400 .76rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  background: var(--grad-brand); background-size: 160% 100%; background-position: 0 0; color: #fff;
  transition: background-position .5s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 30px -12px rgba(68, 49, 42, .55); }
.btn-gold { background: var(--grad-gold); background-size: 160% 100%; color: var(--brown-950); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-sm { padding: 12px 22px; font-size: .7rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brown); border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.link-arrow .ic { width: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .4s, color .4s, box-shadow .4s; }
.topbar { font-size: .76rem; border-bottom: 1px solid rgba(255, 255, 255, .15); transition: max-height .4s var(--ease), opacity .3s; max-height: 40px; overflow: hidden; }
.topbar-in { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; opacity: .85; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 14px; height: 14px; }
.topbar-right { gap: 22px !important; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; transition: height .4s var(--ease); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 300 1.9rem/1 var(--serif); letter-spacing: .32em; text-transform: uppercase; }
.brand-sub { font-size: .6rem; letter-spacing: .42em; text-transform: uppercase; margin-top: 7px; opacity: .8; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn .ic { width: 26px; height: 26px; }

.site-header.solid, .is-inner .site-header {
  background: rgba(248, 244, 238, .96); color: var(--brown-900); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .topbar { max-height: 0; opacity: 0; border: 0; }
.site-header.solid .header-in { height: 70px; }
.is-inner .topbar { border-color: var(--line); }

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); padding: 100px 36px 36px;
    flex-direction: column; gap: 6px; background: var(--brown-900); color: #fff;
    transform: translateX(100%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav a { font-size: .85rem; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-header.open .nav { transform: none; }
  .site-header.open .menu-btn { color: #fff; position: relative; z-index: 2; }
  .header-cta .btn { display: none; }
  /* backdrop-filter làm menu fixed bị giới hạn trong header -> tắt trên mobile */
  .site-header.solid, .is-inner .site-header { backdrop-filter: none; background: var(--cream); }
  .topbar-right a:last-child { display: none; }
}
@media (max-width: 600px) { .topbar { display: none; } .brand-name { font-size: 1.5rem; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero) center/cover no-repeat; transform: scale(1.06);
  animation: heroZoom 16s var(--ease) forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(46, 33, 26, .5) 0%, rgba(46, 33, 26, 0) 100%),
    linear-gradient(180deg, rgba(31, 22, 17, .62) 0%, rgba(31, 22, 17, .15) 35%, rgba(31, 22, 17, .25) 62%, rgba(31, 22, 17, .8) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-in { padding-top: 90px; }
.hero-title {
  font: 300 clamp(3.2rem, 10vw, 7.6rem)/1 var(--serif); letter-spacing: .06em; margin: 0 0 22px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .25);
}
.hero-title.sm { font-size: clamp(2.6rem, 7vw, 5rem); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; margin: 0 auto 38px; opacity: .92; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; width: 1px; height: 60px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scroll-hint span { position: absolute; inset: 0; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.page-hero {
  position: relative; min-height: 68vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  padding: 160px 0 70px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 22, 17, .35), rgba(31, 22, 17, .15) 40%, rgba(46, 33, 26, .85)); }
.page-hero .hero-sub { margin: 0; text-align: left; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; }

/* ---------- sections ---------- */
section { padding: 130px 0; }
.intro { background: var(--grad-cream); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.intro-text .divider { margin-left: 0; }
.intro-img { margin: 0; position: relative; }
.intro-img img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.intro-img::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--gold); z-index: -1; }
.stats { list-style: none; padding: 34px 0 0; margin: 34px 0 0; display: flex; gap: 54px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 300 2.8rem/1 var(--serif); color: var(--brown); }
.stats span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* rooms */
.rooms { background: #fff; }
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 48px; }
.room-card { display: flex; flex-direction: column; }
.room-img { overflow: hidden; display: block; }
.room-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-card:hover .room-img img { transform: scale(1.05); }
.room-body { padding: 30px 6px 0; display: flex; flex-direction: column; flex: 1; }
.room-body .label { margin-bottom: 8px; }
.room-name { font: 400 2rem/1.15 var(--serif); margin: 0 0 10px; color: var(--brown-900); }
.room-name a:hover { color: var(--brown); }
.room-meta { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .86rem; color: var(--muted); }
.room-meta li { display: inline-flex; align-items: center; gap: 8px; }
.room-meta .ic { color: var(--brown); }
.room-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.room-actions { display: flex; align-items: center; gap: 22px; }
.price { margin: 0; font: 400 1.6rem/1 var(--serif); color: var(--brown-700); }
.price span { font: 300 .78rem var(--sans); letter-spacing: .08em; color: var(--muted); }
.price.big { font-size: 2.4rem; margin-bottom: 18px; }
.rooms.more { background: var(--cream); }
.rooms.more .room-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.rooms.more .room-name { font-size: 1.6rem; }

/* facilities */
.facilities { background: var(--cream); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; margin-bottom: 110px; }
.feature:last-child { margin-bottom: 0; }
.feature-img { margin: 0; overflow: hidden; }
.feature-img img { width: 100%; aspect-ratio: 11 / 7.6; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-text { background: #fff; padding: 64px 56px; margin-left: -90px; position: relative; box-shadow: 0 30px 60px -30px rgba(46, 33, 26, .25); }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .feature-img { order: 2; }
.feature.flip .feature-text { margin: 0 -90px 0 0; z-index: 1; }

/* booking band */
.book-band { background: var(--grad-brand); color: rgba(255, 255, 255, .88); position: relative; overflow: hidden; padding: 110px 0; }
.book-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 85% 20%, rgba(230, 207, 174, .35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(31, 22, 17, .5), transparent 50%);
}
.book-band-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.channels { display: grid; gap: 14px; }
.channel {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05);
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.channel b { font: 400 1.7rem/1 var(--serif); color: #fff; }
.channel span { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.channel:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold-light); transform: translateX(6px); }

/* gallery */
.gallery-sec { background: #fff; }
.masonry { columns: 3 300px; column-gap: 16px; }
.m-item { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 16px; cursor: zoom-in; overflow: hidden; background: var(--sand); break-inside: avoid; }
.m-item img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.m-item:hover img { transform: scale(1.04); opacity: .92; }

/* reviews */
.reviews { background: var(--sand); padding: 110px 0; }
.reviews-in { text-align: center; max-width: 720px; }
.review-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* contact */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: stretch; }
.contact-info .divider { margin-left: 0; }
.info-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic { width: 22px; height: 22px; color: var(--brown); margin-top: 3px; }
.info-list b { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.map { min-height: 440px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: sepia(.25) saturate(.85); }

/* faq */
.faq { background: #fff; }
.faq-in { max-width: 860px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 400 1.35rem/1.3 var(--serif); color: var(--brown-900); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 200 1.6rem/1 var(--sans); color: var(--brown); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--muted); }

/* room detail */
.room-detail { background: var(--cream); padding-top: 90px; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }
.detail-main .h3 { margin-top: 56px; }
.facts { list-style: none; padding: 0 0 40px; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts .ic { width: 26px; height: 26px; color: var(--brown); margin-bottom: 8px; }
.facts b { font: 400 1.3rem/1.2 var(--serif); }
.facts span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.amen li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.amen .ic { width: 22px; height: 22px; color: var(--brown); }
.room-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.room-gallery .m-item { margin: 0; }
.room-gallery img { aspect-ratio: 10 / 7; object-fit: cover; }
.notes { padding-left: 18px; color: var(--muted); }
.book-card { position: sticky; top: 100px; background: #fff; padding: 40px 34px; box-shadow: 0 30px 70px -35px rgba(46, 33, 26, .35); border-top: 2px solid; border-image: var(--grad-gold) 1; }
.call-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--brown); letter-spacing: .08em; }

/* booking options (modal + card) */
.book-options { display: grid; gap: 12px; margin: 24px 0 20px; }
.book-opt {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding: 18px 22px; border: 1px solid var(--line); background: #fff; margin-bottom: 10px;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.book-opt .ch-name { font: 400 1.35rem/1.2 var(--serif); color: var(--brown-900); }
.book-opt .ch-sub { grid-column: 1; font-size: .78rem; color: var(--muted); }
.book-opt .ic { grid-row: 1 / span 2; grid-column: 2; color: var(--brown); transition: transform .3s var(--ease); }
.book-opt:hover { border-color: var(--brown); background: var(--cream); }
.book-opt:hover .ic { transform: translateX(4px); }
.book-opt.direct { background: var(--grad-brand); border: 0; }
.book-opt.direct .ch-name, .book-opt.direct .ch-sub, .book-opt.direct .ic { color: #fff; }

/* modal & lightbox */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(31, 22, 17, .72); backdrop-filter: blur(4px); animation: fade .3s; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-box { position: relative; width: min(500px, 100%); max-height: 92vh; overflow: auto; background: var(--cream); padding: 46px 40px 34px; animation: rise .45s var(--ease); }
.modal-title { font: 300 2.4rem/1.1 var(--serif); margin: 0 0 12px; }
.modal-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; cursor: pointer; padding: 6px; color: inherit; }
.modal-x .ic { width: 24px; height: 24px; }
.lightbox { color: #fff; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; animation: rise .45s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* footer */
.site-footer { background: var(--brown-950); color: rgba(255, 255, 255, .66); font-size: .9rem; padding: 90px 0 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-gold); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.site-footer .brand, .footer-top a.brand { display: flex; color: #fff; margin-bottom: 22px; padding: 0; }
.footer-brand p { max-width: 340px; }
.f-title { font: 400 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 22px; }
.footer-top a { display: block; padding: 5px 0; transition: color .3s; }
.footer-top a:hover { color: #fff; }
.socials { display: flex; gap: 18px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.footer-bottom a { color: var(--gold-light); }

/* mobile bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; position: fixed; inset: auto 0 0; z-index: 40;
    background: var(--brown-950); color: #fff; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
  }
  .mobile-bar a, .mobile-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); border: 0; background: none; cursor: pointer;
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .mobile-bar button { background: var(--grad-gold); color: var(--brown-950); font-size: .74rem; }
  body { padding-bottom: 64px; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .scroll-hint span { animation: none; }
}

/* 404 */
.notfound { padding: 220px 0 140px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  section { padding: 96px 0; }
  .intro-grid, .book-band-in, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 56px; }
  .intro-img { max-width: 560px; }
  .feature, .feature.flip { grid-template-columns: 1fr; margin-bottom: 72px; }
  .feature.flip .feature-img { order: 0; }
  .feature-text, .feature.flip .feature-text { margin: -60px 24px 0; padding: 44px 34px; }
  .rooms.more .room-grid { grid-template-columns: repeat(2, 1fr); }
  .book-card { position: static; }
}
@media (max-width: 700px) {
  .room-grid, .rooms.more .room-grid { grid-template-columns: 1fr; gap: 56px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .amen { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .stats b { font-size: 2.2rem; }
  .intro-img::before { inset: 16px -12px -16px 16px; }
  .feature-text, .feature.flip .feature-text { margin: -40px 12px 0; padding: 34px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .modal-box { padding: 42px 24px 28px; }
}
