/* Sitrine Coffee & Tea — hướng "Đêm ấm" (24/11/2026) */
:root {
  --dem: #16100c;        /* nền: espresso đêm */
  --go: #211710;         /* mặt gỗ tối */
  --go-2: #2b1f16;
  --kem: #efe4d2;        /* chữ chính: kem sữa */
  --khoi: #bba994;       /* chữ phụ */
  --den: #e9b96e;        /* ánh đèn vàng */
  --den-sang: #f6d9a3;
  --la: #8fbf78;         /* chấm "đang mở" */
  --vien: rgba(239, 228, 210, .16);
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--dem); color: var(--kem);
  font: 400 17px/1.65 var(--sans); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--den); color: var(--dem); }
:focus-visible { outline: 2px solid var(--den); outline-offset: 4px; border-radius: 2px; }
html { scrollbar-color: #4a3829 var(--dem); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dem); }
::-webkit-scrollbar-thumb { background: #4a3829; border-radius: 10px; border: 2px solid var(--dem); }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--den); color: var(--dem); padding: 10px 16px; }
.skip:focus { left: 8px; }

h2 {
  font: 400 clamp(40px, 4.6vw, 68px)/1.04 var(--serif);
  letter-spacing: -.01em; text-wrap: balance; color: var(--kem);
}
h3 { font: 500 19px/1.35 var(--sans); }

/* ---------- Nút và liên kết ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--den); color: #1b120b; text-decoration: none;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  box-shadow: 0 10px 30px -12px rgba(233, 185, 110, .55);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--den-sang); box-shadow: 0 16px 40px -14px rgba(246, 217, 163, .7); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }

.link {
  color: var(--kem); text-decoration: none; font-weight: 500;
  background: linear-gradient(var(--den), var(--den)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .4s var(--ease), color .3s;
}
.link:hover { color: var(--den-sang); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.nav.is-solid { background: rgba(22, 16, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--vien); }
.nav__brand { font: 500 30px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.nav__links { display: flex; gap: 32px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--khoi); transition: color .25s; }
.nav__links a:hover { color: var(--kem); }
.nav__end { display: flex; align-items: center; gap: 14px; }
.lang {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--vien);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; transition: border-color .25s, color .25s;
}
.lang:hover { border-color: var(--den); color: var(--den-sang); }

/* ---------- 1. Hero: quán lên đèn ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 62% 50%; filter: brightness(.82) saturate(1.02); transform-origin: 0 50%; transform: scale(1.12); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--dem) 0%, rgba(22, 16, 12, .82) 18%, rgba(22, 16, 12, 0) 48%, rgba(22, 16, 12, 0) 82%, rgba(22, 16, 12, .55) 100%),
    linear-gradient(to right, rgba(22, 16, 12, .86) 0%, rgba(22, 16, 12, .55) 34%, rgba(22, 16, 12, 0) 58%);
}
.hero__body { position: relative; width: 100%; max-width: 1360px; margin-inline: auto; padding: 0 var(--pad) clamp(36px, 6vh, 64px); }
.hero__title { font: 400 clamp(54px, 5.8vw, 84px)/.98 var(--serif); letter-spacing: -.02em; }
@media (min-width: 768px) { .hero__title .line { white-space: nowrap; } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 48ch) auto; align-items: end; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(28px, 4vh, 44px); padding-top: 28px; border-top: 1px solid var(--vien);
}
.hero__lead { color: var(--khoi); font-size: 17px; }
.hero__actions { display: flex; align-items: center; gap: 28px; }
.status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--khoi); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--khoi); }
.status.is-open .status__dot { background: var(--la); box-shadow: 0 0 0 4px rgba(143, 191, 120, .16); }

/* Khoảnh khắc lên đèn (chỉ khi có JS và không giảm chuyển động) */
html.lights .hero__photo img { filter: brightness(.14) saturate(.4); transform: scale(1.18); }
html.lights .hero__title .line > span { transform: translateY(105%); }
html.lights .hero__foot, html.lights .nav { opacity: 0; }
html.lights.lights-on .hero__photo img { filter: brightness(.82) saturate(1.02); transform: scale(1.12); transition: filter 2.6s cubic-bezier(.3, 0, .2, 1) .2s, transform 3.2s var(--ease); }
html.lights.lights-on .hero__title .line > span { transform: none; transition: transform 1.2s var(--ease); }
html.lights.lights-on .hero__title .line:nth-child(1) > span { transition-delay: .9s; }
html.lights.lights-on .hero__title .line:nth-child(2) > span { transition-delay: 1.05s; }
html.lights.lights-on .hero__title .line:nth-child(3) > span { transition-delay: 1.2s; }
html.lights.lights-on .hero__foot { opacity: 1; transition: opacity 1s ease 1.8s; }
html.lights.lights-on .nav { opacity: 1; transition: opacity 1s ease 2s, background .4s, padding .4s; }

/* ---------- 2. Một ngày ở Sitrine ---------- */
.day { --bg: #2a2018; position: relative; background: var(--bg); transition: background 1.2s ease; }
.day[data-step="1"] { --bg: #261c15; }
.day[data-step="2"] { --bg: #221911; }
.day[data-step="3"] { --bg: #1a130e; }
.day[data-step="4"] { --bg: #110c09; }
.day__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.day__text { padding-top: clamp(96px, 14vh, 140px); }
.day__item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 34rem; opacity: .26; transition: opacity .7s var(--ease); }
.day__item.is-on { opacity: 1; }
.day__item:last-child { min-height: 80vh; }
.day__time { display: block; font: 400 clamp(64px, 7vw, 96px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; color: var(--kem); transition: color .7s var(--ease), text-shadow .7s; }
.day__item.is-on .day__time { color: var(--den); text-shadow: 0 0 40px rgba(233, 185, 110, .35); }
.day__item h3 { margin: 18px 0 8px; }
.day__item p { color: var(--khoi); max-width: 44ch; }
.day__frames { position: sticky; top: 0; height: 100vh; padding: 104px 0 48px; }
.day__frames::before { content: ""; display: block; }
.day__img { position: absolute; inset: 104px 0 48px; width: 100%; height: calc(100% - 152px); object-fit: cover; border-radius: 4px; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.day__img.is-on { opacity: 1; transform: none; }
.day__img--off { background: #0b0806; }
.day__rail { display: none; }

/* ---------- 3. Thực đơn ---------- */
.menu { padding-block: clamp(96px, 14vh, 160px); }
.menu__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.menu__media { position: sticky; top: 96px; }
.menu__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--go); }
.menu__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__img.is-on { opacity: 1; transform: none; }
.menu__lead { color: var(--khoi); margin-top: 16px; }
.menu__list { margin: 40px 0 28px; border-top: 1px solid var(--vien); }
.menu__list li { border-bottom: 1px solid var(--vien); }
.dish {
  width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 22px 4px; transition: padding .4s var(--ease);
}
.dish__name { font: 500 clamp(28px, 2.6vw, 36px)/1.1 var(--serif); color: var(--kem); transition: color .3s; }
.dish__price { font-size: 15px; color: var(--khoi); font-variant-numeric: tabular-nums; }
.dish__note { grid-column: 1 / -1; font-size: 15px; color: var(--khoi); }
.dish:hover { padding-left: 12px; }
.dish:hover .dish__name, .dish.is-on .dish__name { color: var(--den); }
.dish.is-on .dish__price { color: var(--kem); }
.menu__more { color: var(--khoi); font-size: 15px; margin-bottom: 24px; max-width: 58ch; }

/* ---------- 4. Hiên tre ---------- */
.space { padding-bottom: clamp(96px, 14vh, 160px); }
.space__title { max-width: 18ch; margin-bottom: clamp(40px, 6vh, 64px); }
.space__wide { height: min(64vh, 680px); overflow: hidden; }
.space__wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.space__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(-160px, -14vh, -96px); position: relative; align-items: end; }
.space__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.space__notes { display: grid; gap: 32px; padding-bottom: 8px; }
.space__notes dt { font: 500 30px/1.15 var(--serif); color: var(--den); margin-bottom: 6px; }
.space__notes dd { color: var(--khoi); max-width: 46ch; }

/* ---------- 5. Đánh giá ---------- */
.reviews { background: var(--go); padding-block: clamp(96px, 14vh, 160px); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.reviews__head p { color: var(--khoi); margin: 16px 0 20px; }
.reviews__stage { min-height: 360px; display: flex; flex-direction: column; }
.quote blockquote { font: italic 400 clamp(28px, 3.1vw, 44px)/1.24 var(--serif); color: var(--kem); text-wrap: pretty; }
.quote figcaption { margin-top: 22px; color: var(--khoi); font-size: 15px; }
.quote.is-on { animation: quote-in .7s var(--ease); }
@keyframes quote-in { from { opacity: 0; transform: translateY(8px); } }
.reviews__pick { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.reviews__pick button { font-size: 15px; color: var(--khoi); padding: 10px 0; min-height: 44px; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.reviews__pick button:hover { color: var(--kem); }
.reviews__pick button[aria-pressed="true"] { color: var(--kem); border-bottom-color: var(--den); }

/* ---------- 6. Ghé quán: đèn theo con trỏ ---------- */
.visit { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: #0e0a07; padding-block: 120px 96px; }
.visit__scene { position: absolute; inset: 0; }
.visit__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: brightness(.45); }
.visit__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(14, 10, 7, .92) 0%, rgba(14, 10, 7, .55) 45%, rgba(14, 10, 7, .1) 100%); }
html.lamp .visit__scene img {
  filter: brightness(.95);
  -webkit-mask-image: radial-gradient(circle at var(--x, 72%) var(--y, 55%), #000 0, rgba(0, 0, 0, .6) 14vw, rgba(0, 0, 0, .24) 32vw);
          mask-image: radial-gradient(circle at var(--x, 72%) var(--y, 55%), #000 0, rgba(0, 0, 0, .6) 14vw, rgba(0, 0, 0, .24) 32vw);
}
.visit__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.visit__main h2 { font-size: clamp(48px, 6vw, 88px); max-width: 11ch; }
.visit__lead { color: var(--kem); margin: 20px 0 32px; font-size: 18px; }
.visit__facts { display: grid; gap: 22px; padding: 28px; border-radius: 6px; background: rgba(22, 16, 12, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--vien); }
.visit__facts dt { font-size: 13px; color: var(--den); font-weight: 600; margin-bottom: 2px; }
.visit__facts dd { color: var(--kem); }

/* ---------- Chân trang ---------- */
.foot { border-top: 1px solid var(--vien); padding-block: 48px 40px; }
.foot__grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: baseline; }
.foot__brand { font: 500 28px/1 var(--serif); }
.foot__brand span { font: 400 14px var(--sans); color: var(--khoi); margin-left: 8px; }
.foot__nav { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; font-size: 15px; }
.foot__nav a { color: var(--khoi); text-decoration: none; }
.foot__nav a:hover { color: var(--kem); }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--khoi); padding-top: 24px; border-top: 1px solid var(--vien); }


/* ---------- Trang thực đơn ---------- */
.carte { padding-block: 140px 112px; }
.carte__head { max-width: 46rem; }
.carte__head h1 { font: 400 clamp(52px, 6vw, 84px)/1 var(--serif); letter-spacing: -.02em; }
.carte__head p { color: var(--khoi); margin-top: 18px; }
.carte__jump {
  position: sticky; top: 68px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 40px calc(var(--pad) * -1) 56px; padding: 12px var(--pad); background: rgba(22, 16, 12, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--vien);
}
.carte__jump::-webkit-scrollbar { display: none; }
.carte__jump a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--vien); text-decoration: none; font-size: 14px; color: var(--khoi); transition: color .25s, border-color .25s; }
.carte__jump a:hover { color: var(--kem); border-color: var(--den); }
.carte__grid { columns: 2 380px; column-gap: clamp(40px, 6vw, 96px); }
.carte__group { break-inside: avoid; margin-bottom: 56px; scroll-margin-top: 140px; }
.carte__group h2 { font-size: 34px; color: var(--den); margin-bottom: 14px; }
.carte__group li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(239, 228, 210, .08); }
.carte__group li span { color: var(--kem); }
.carte__group li i { flex: 1; border-bottom: 1px dotted rgba(187, 169, 148, .35); transform: translateY(-4px); }
.carte__group li b { font-weight: 500; color: var(--khoi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte__close { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--vien); }
@media (max-width: 767px) {
  .carte { padding-top: 112px; }
  .carte__jump { top: 60px; margin-bottom: 40px; }
  .carte__close .btn { width: 100%; }
}

/* Thanh chỉ đường trên điện thoại */
.bar { display: none; }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .day__grid, .menu__grid, .reviews__grid, .visit__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .space__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1023px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__photo { position: relative; height: 58svh; min-height: 380px; }
  .hero__photo img { object-position: 62% 40%; transform: none; }
  html.lights .hero__photo img { transform: scale(1.06); }
  html.lights.lights-on .hero__photo img { transform: none; }
  .hero__shade { bottom: auto; height: 58svh; min-height: 380px; background: linear-gradient(to top, var(--dem) 0%, rgba(22, 16, 12, .4) 30%, rgba(22, 16, 12, 0) 55%, rgba(22, 16, 12, .55) 100%); }
  .hero__body { margin-top: -64px; padding-bottom: 48px; }
}
@media (max-width: 767px) {
  .hero__photo img { object-position: 50% 30%; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { padding-block: 12px; }
  .nav .btn--small { display: none; }
  .nav__brand { font-size: 26px; }
  .hero__title { font-size: clamp(40px, 11.4vw, 52px); }
  .hero__foot { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-wrap: wrap; gap: 18px 24px; }
  .hero__actions .btn { width: 100%; }

  .day__grid { grid-template-columns: 1fr; gap: 0; }
  .day__frames { order: -1; top: 0; height: 50vh; padding: 72px 0 12px; z-index: 2; background: var(--bg); transition: background 1.2s ease; }
  .day__img { inset: 72px 0 12px; height: calc(100% - 84px); }
  .day__text { padding-top: 36px; }
  .day__item { min-height: 46vh; justify-content: flex-start; padding-top: 12px; }
  .day__item:last-child { min-height: 50vh; }
  .day__time { font-size: 60px; }

  .menu__grid { grid-template-columns: 1fr; gap: 28px; }
  .menu__media { position: sticky; top: 64px; z-index: 2; }
  .menu__frame { aspect-ratio: 16 / 11; }
  .menu__list { margin-top: 28px; }
  .dish { padding-block: 18px; }

  .space__wide { height: 46vh; }
  .space__grid { grid-template-columns: 1fr; margin-top: -56px; gap: 32px; }
  .space__photo { width: 72%; aspect-ratio: 4 / 5; }

  .reviews__grid { grid-template-columns: 1fr; gap: 32px; }
  .reviews__stage { min-height: 0; }

  .visit { min-height: 0; padding-block: 96px 120px; align-items: flex-end; }
  .visit__scene img { object-position: 50% 30%; }
  .visit__scene::after { background: linear-gradient(to top, rgba(14, 10, 7, .96) 0%, rgba(14, 10, 7, .7) 55%, rgba(14, 10, 7, .25) 100%); }
  .visit__grid { grid-template-columns: 1fr; gap: 36px; }
  .visit__main .btn { width: 100%; }

  .foot { padding-bottom: 112px; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }

  .bar {
    display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .bar .btn { width: 100%; }
  .bar.is-on { transform: none; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}
