:root {
  --night: #11160f;
  --paper: #f5f0e7;
  --paper-2: #ebe3d5;
  --ink: #2b241d;
  --ink-soft: #6b5f52;
  --wood: #a8642c;
  --line: #d9cebd;
  --zalo: #0068ff;
  --zalo-dark: #0052cc;
  --todo-bg: #fff1c2;
  --todo-ink: #7a5300;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --mobile-bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Nút ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.5em;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}

.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: var(--zalo-dark); }
.btn-zalo:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--zalo); }

.btn-block { display: flex; width: 100%; }

/* Nút trong thẻ phòng: dạng viền, để không lẫn với nút chính */
.btn-outline {
  background: transparent;
  border: 2px solid var(--zalo);
  color: var(--zalo-dark);
}
.btn-outline:hover { background: var(--zalo); color: #fff; }

/* ---------- Màn mở đầu ---------- */

.hero {
  position: relative;
  height: 400vh;
  background: var(--night);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-canvas,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster {
  object-fit: cover;
  object-position: 64% 50%;
}

.hero-poster.is-hidden { visibility: hidden; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 10, .55) 0%, rgba(10, 14, 10, .1) 38%, rgba(10, 14, 10, 0) 60%, rgba(10, 14, 10, .45) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: clamp(72px, 14vh, 140px);
  max-width: 860px;
  color: #fff;
  will-change: opacity, transform;
}

.hero-eyebrow {
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero-tagline {
  margin: .75rem 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  letter-spacing: .08em;
}

.hero-hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Khối nội dung ---------- */

main { position: relative; }

.section-head { margin: 0 0 2.5rem; }

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--wood);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.2;
}

.rooms,
.info {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter) 0;
}

/* ---------- Phòng ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.room {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.room-media { margin: 0; }

.room-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}

.room-media figcaption {
  padding: .45rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.4;
}

.room-media figcaption a { color: inherit; text-underline-offset: 2px; }

.room-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}

.room h3 {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
}

.room-desc { margin: 0 0 .75rem; color: var(--ink-soft); }

.room-guests {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: .875rem;
  font-weight: 500;
}

.room-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .4rem;
  margin: auto 0 1rem;
  padding-top: .25rem;
}

.room-price strong {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.room-price span { color: var(--ink-soft); }

.sample {
  margin-left: .25rem;
  padding: .05rem .5rem;
  border: 1px dashed var(--ink-soft);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Thông tin ---------- */

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
  margin: 0;
}

.info-list > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.info-list dt { font-weight: 600; }
.info-list dd { margin: .25rem 0 0; }

.todo {
  display: inline-block;
  padding: 0 .35em;
  border-radius: 4px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 600;
}

/* ---------- Chân trang ---------- */

.site-footer {
  margin-top: clamp(56px, 9vw, 112px);
  padding: 48px var(--gutter) calc(40px + var(--mobile-bar-h));
  background: var(--night);
  color: #d9d4ca;
  font-size: .9375rem;
}

.site-footer > * { max-width: 1200px; margin: 0 auto .35rem; }

.site-footer .footer-name {
  margin-bottom: .75rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.site-footer .sample { border-color: #8f897e; color: #b5afa4; }

.footer-credit { margin-top: 1.25rem !important; color: #8f897e; font-size: .8125rem; }

/* ---------- Thanh đặt phòng trên điện thoại ---------- */

.mobile-bar { display: none; }

@media (max-width: 768px) {
  :root { --mobile-bar-h: 76px; }

  .hero { height: 320vh; }

  .hero-copy { top: clamp(64px, 12vh, 110px); }

  /* Trên điện thoại nút ở màn mở đầu được thay bằng thanh dính đáy */
  .hero-cta { display: none; }

  .hero-hint { bottom: calc(var(--mobile-bar-h) + 16px); }

  .room-grid,
  .info-list { grid-template-columns: 1fr; }

  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(17, 22, 15, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mobile-bar .btn { min-height: 52px; font-size: 1.0625rem; box-shadow: 0 6px 20px rgba(0, 104, 255, .35); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .hero-hint span { animation: none; }
  .btn { transition: none; }
}
