/* =====================================================================
   Trang chu Nha Nang Coffee (index.html): ten quan that lon, dai anh, it chu; nut Dat mon / Dat ban luon de thay.
   Mau / chu dung chung o brand.css. Chi trang chu nap file nay, moi quy tac nam duoi body.landing.
   ===================================================================== */
.landing main { overflow-x: clip; }
.landing p { margin: 0 0 1em; }
.landing .btn-sm { min-height: 42px; padding: 0 1.2em; font-size: .95rem; }
.wrap { padding-inline: clamp(16px, 3.2vw, 46px); }

/* ---------- Thanh dieu huong dang vien tron ---------- */
.nav-pill {
  position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; gap: 18px;
  margin: 12px clamp(10px, 3vw, 46px) 0; padding: 10px 12px 10px 20px; border-radius: 999px;
  background: var(--sun); box-shadow: 0 10px 30px rgba(59, 34, 25, .12); transition: box-shadow .3s, background .3s;
}
.nav-pill.scrolled { box-shadow: 0 14px 34px rgba(59, 34, 25, .22); }
.np-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--espresso) !important; margin-right: auto; min-width: 0; }
.np-logo svg { width: 30px; height: 30px; flex: none; }
.np-logo span { font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variation-settings: "SOFT" 100; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-links { display: none; gap: 26px; }
.np-links a { font-family: var(--display); font-size: 1.05rem; text-decoration: none; color: var(--espresso); position: relative; }
.np-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--espresso); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.np-links a:hover::after { transform: scaleX(1); }
.np-actions { display: none; gap: 8px; }
@media (min-width: 860px) { .np-links, .np-actions { display: flex; } .np-logo { margin-right: 0; } .np-links { margin-left: auto; margin-right: 10px; } }
.nav-pill .btn-ghost { border-color: var(--espresso); }

/* ---------- 1. Ten quan + dai anh ---------- */
.hero4 { padding-top: clamp(18px, 3vw, 36px); }
.hero4-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 30px; padding: 0 clamp(16px, 3.2vw, 46px) clamp(16px, 2.5vw, 30px); }
.wordmark {
  margin: 0; font-size: clamp(4.4rem, 15vw, 12.5rem); line-height: .86; font-weight: 900; letter-spacing: -.045em; color: var(--espresso);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.wordmark span { display: inline-block; }
.hero4-sub { max-width: 360px; margin: 0 0 .6em; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.1; font-weight: 400; color: var(--espresso); font-variation-settings: "SOFT" 50; }
.hero4-sub span { display: block; }
.hero4-sub em { font-family: var(--script); font-size: .7em; color: var(--muted); }
/* Dien thoai: 2 anh / khoi nut (cao theo noi dung) / 1 anh ngang; may tinh: 4 cot cung chieu cao */
.strip4 { display: grid; grid-template-columns: 1fr 1fr; }
.strip4 .ph { aspect-ratio: 1; }
.strip4 .cta-panel { grid-column: 1 / -1; grid-row: 2; border-radius: 0; }
.strip4 .ph:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; border-radius: 0; }
@media (min-width: 860px) {
  .strip4 { grid-template-columns: .7fr 1fr 1.25fr 1fr; grid-auto-rows: min(30vw, 440px); }
  .strip4 .ph, .strip4 .ph:last-child { aspect-ratio: auto; grid-column: auto; border-radius: var(--radius) var(--radius) 0 0; }
  .strip4 .cta-panel { grid-column: auto; grid-row: auto; border-radius: var(--radius) var(--radius) 0 0; }
}
.ph { margin: 0; overflow: hidden; background: var(--surface-3); border-radius: var(--radius) var(--radius) 0 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ph:hover img { transform: scale(1.06); }
.cta-panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(24px, 3vw, 40px);
  background: var(--espresso); color: var(--cream); border-radius: var(--radius) var(--radius) 0 0;
}
.cta-stack { display: grid; gap: 12px; justify-items: start; }
.cta-addr { margin: 0; font-family: var(--script); font-style: italic; font-size: 1.1rem; color: var(--butter); line-height: 1.35; }
.cta-addr:empty { display: none; }
.landing .pill { margin: 0; align-self: flex-start; background: rgba(252, 247, 233, .12); color: var(--cream); border: 1px solid rgba(252, 247, 233, .25); }
.landing .pill.is-open { color: #a9e6bf; }
.landing .pill.is-open::before { background: #62c58a; }
.landing .pill.is-closed { color: var(--butter); }
.landing .pill.is-closed::before { background: var(--sun); }

/* ---------- 2. Moi pha ---------- */
.fresh { display: grid; background: var(--butter); }
@media (min-width: 860px) { .fresh { grid-template-columns: .9fr 1.1fr; min-height: 640px; } }
.fresh-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: clamp(40px, 6vw, 80px) clamp(16px, 3.2vw, 46px); }
.fresh-copy h2 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; color: var(--espresso); }
.fresh-art { position: relative; min-height: 520px; overflow: hidden; background: var(--espresso) center / cover; }
.fresh-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-card {
  position: absolute; left: 50%; top: 50%; width: min(300px, 74%); padding: 26px 24px 22px; translate: -50% -50%; rotate: -5deg;
  background: var(--cream); color: var(--espresso); box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 84% 94%, 76% 100%, 68% 94%, 60% 100%, 52% 94%, 44% 100%, 36% 94%, 28% 100%, 20% 94%, 12% 100%, 4% 94%, 0 100%);
}
.mc-title { margin: 0 0 .6em !important; font-family: var(--script); font-style: italic; font-size: 1.5rem; }
.menu-card ul { list-style: none; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 2px dashed var(--line-strong); display: grid; gap: 8px; font-size: .9rem; }
.menu-card li { display: flex; justify-content: space-between; gap: 10px; }
.menu-card li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-card li b { font-weight: 600; white-space: nowrap; }
.fresh-art .s1 { position: absolute; right: 9%; top: 12%; rotate: 12deg; }
.fresh-art .s2 { position: absolute; left: 8%; bottom: 14%; rotate: -10deg; }

/* ---------- 3. Thuc don ---------- */
.menu4 { padding: clamp(56px, 8vw, 100px) clamp(16px, 3.2vw, 46px); }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-row h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .95; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills button {
  flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--espresso); background: transparent; cursor: pointer;
  font-family: var(--display); font-size: 1rem; color: var(--espresso); transition: background .2s, color .2s;
}
.cat-pills button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }
.dish-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); }
.dish {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--espresso) !important; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.dish:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dish .pic { aspect-ratio: 1; overflow: hidden; background: var(--butter); }
.dish .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.dish:hover .pic img { transform: scale(1.07); }
.dish .pic .ico { display: grid; place-items: center; height: 100%; color: var(--sun-deep); }
.dish .meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.dish h3 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.dish .price { font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; color: var(--espresso); }
.dish .tag { position: absolute; left: 12px; top: 12px; }
.dish .tag.sticker { font-size: .9rem; padding: .2em .8em; rotate: -6deg; }

/* ---------- 4. Cau chuyen ---------- */
.story { position: relative; display: grid; min-height: 640px; overflow: hidden; }
.story-photo { position: absolute; inset: -12% 0; background: var(--espresso); will-change: transform; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-card {
  position: relative; align-self: center; justify-self: end; width: min(520px, calc(100% - 32px)); margin: 60px clamp(16px, 5vw, 80px);
  padding: clamp(28px, 4vw, 46px); background: var(--sun); color: var(--espresso); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.story-card h2 { margin: 0 0 .4em; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .98; }
.story-card p { font-size: 1.02rem; color: #4e3427; }

/* ---------- 4b. Khach noi gi: the xep so le, truot vao tu phai ---------- */
.voices { display: grid; gap: 30px; padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 9vw, 120px) clamp(16px, 3.2vw, 46px); background: var(--blush); overflow: hidden; }
@media (min-width: 900px) { .voices { grid-template-columns: .75fr 1.25fr; align-items: center; } }
.voices > h2 { margin: 0; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: .95; }
.voice-stack { display: grid; gap: 0; }
.voice {
  margin: 0; padding: clamp(24px, 3.5vw, 44px) clamp(24px, 4vw, 56px); border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -10px 18px 40px rgba(59, 34, 25, .16); transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s;
}
.voice:nth-child(1) { background: var(--cream); margin-left: 0; }
.voice:nth-child(2) { background: var(--butter); margin-left: 6%; margin-top: -8px; }
.voice:nth-child(3) { background: var(--espresso); color: var(--cream); margin-left: 12%; margin-top: -8px; }
.voice q { display: block; font-family: var(--script); font-style: italic; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.3; quotes: "\201C" "\201D"; }
.voice figcaption { margin-top: 14px; font-family: var(--script); font-style: italic; font-size: .98rem; opacity: .8; }
.voice figcaption b { font-style: normal; font-family: var(--display); font-weight: 600; }
/* Truot vao tung the mot tu ben phai khi cuon toi (landing.js them .is-in cho .voice-stack) */
.js .voice { opacity: 0; transform: translateX(45%); }
.js .voice-stack.is-in .voice { opacity: 1; transform: none; }
.js .voice-stack.is-in .voice:nth-child(2) { transition-delay: .18s; }
.js .voice-stack.is-in .voice:nth-child(3) { transition-delay: .36s; }
/* Doi luot (khi co hon 3 loi khen): truot ra trai roi nap bo moi */
.voice-stack.swap .voice { opacity: 0 !important; transform: translateX(-12%) !important; transition-delay: 0s !important; transition-duration: .5s !important; }

/* ---------- 5. Tin moi: the xep so le ---------- */
.news4 { display: grid; gap: 30px; padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 8vw, 100px) clamp(16px, 3.2vw, 46px); background: var(--blush); overflow: hidden; }
@media (min-width: 900px) { .news4 { grid-template-columns: .8fr 1.2fr; align-items: center; } }
.news4 > h2 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .98; }
.news-stack { display: grid; gap: 18px; }
.news-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--radius) 0 0 var(--radius); box-shadow: var(--shadow-lg); }
.news-card:nth-child(1) { background: var(--cream); margin-left: 10%; }
.news-card:nth-child(2) { background: var(--butter); margin-left: 4%; }
.news-card:nth-child(3) { background: var(--espresso); color: var(--cream); }
.news-card .media { width: 110px; height: 110px; border-radius: 18px; overflow: hidden; background: var(--surface-3); }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; }
.news-card.no-img { grid-template-columns: 1fr; }
.news-card h3 { margin: 0 0 .25em; font-size: 1.35rem; line-height: 1.15; }
.news-text { margin: 0 !important; font-family: var(--script); font-style: italic; font-size: 1.02rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.news-date { margin: 0 0 .3em !important; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ---------- 6. Dai anh keo ngang ---------- */
.reel { position: relative; }
.reel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-item { position: relative; flex: 0 0 auto; width: min(78vw, 420px); height: min(90vw, 520px); margin: 0; scroll-snap-align: start; overflow: hidden; background: var(--surface-3); }
@media (min-width: 860px) { .reel-item { width: 26vw; height: 32vw; } }
.reel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.reel-item:hover img { transform: scale(1.05); }
.reel-item figcaption { position: absolute; left: 14px; bottom: 14px; }
.reel-item figcaption .sticker { font-size: .95rem; rotate: -4deg; }
.reel-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--espresso); font-size: 2rem; line-height: 1; box-shadow: var(--shadow-lg);
}
.reel-btn.prev { left: 16px; }
.reel-btn.next { right: 16px; }

/* ---------- 7. Hen gap ---------- */
.visit { padding: clamp(60px, 9vw, 120px) clamp(16px, 3.2vw, 46px) clamp(50px, 7vw, 90px); background: var(--butter); }
.visit > h2 { margin: 0 0 40px; font-size: clamp(3rem, 9vw, 7.4rem); line-height: .9; }
.visit-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr auto; align-items: start; } }
.vi-label { margin: 0 0 .3em !important; font-family: var(--script); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.vi-big { margin: 0 0 .4em !important; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; font-weight: 600; }
.visit-cta { display: grid; gap: 12px; }

/* ---------- Chan trang ---------- */
.foot4 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 30px clamp(16px, 3.2vw, 46px) 110px; background: var(--espresso); color: var(--butter); }
@media (min-width: 860px) { .foot4 { padding-bottom: 30px; } }
.foot4 a { color: var(--cream); text-decoration: none; }
.foot4 nav { display: flex; flex-wrap: wrap; gap: 18px; }
.f-brand { font-family: var(--display); font-weight: 800; font-size: 1.8rem; font-variation-settings: "SOFT" 100; color: var(--sun); }
.f-small { font-size: .88rem; opacity: .8; }
.landing .staff-link { color: var(--butter); }

/* ---------- Nut noi tren dien thoai ---------- */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 999px; background: var(--espresso); box-shadow: 0 16px 40px rgba(59, 34, 25, .4); transition: transform .35s, opacity .35s; }
.mobile-cta .btn { min-height: 48px; }
.mobile-cta.hide { transform: translateY(140%); opacity: 0; }
@media (min-width: 860px) { .mobile-cta { display: none; } }

/* ---------- Cua so dat ban ---------- */
.bk-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; }
.bk-backdrop { position: absolute; inset: 0; background: rgba(36, 20, 14, .6); }
.bk-panel { position: relative; width: min(500px, 100%); max-height: calc(100vh - 28px); overflow-y: auto; padding: 32px 26px 26px; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.bk-panel h2 { margin: 0 0 .1em; font-size: 2.4rem; }
.bk-hint { font-family: var(--script); font-style: italic; color: var(--muted); }
.bk-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
@media (max-width: 420px) { .bk-row { grid-template-columns: 1fr 1fr; } .bk-row .field:nth-child(2) { grid-column: 1 / -1; grid-row: 1; } }
.bk-panel .field label { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.bk-panel .field input, .bk-panel .field select { border-radius: 16px; background: var(--surface); }
.bk-summary { padding: 14px 16px; border-radius: 16px; background: var(--butter); font-weight: 600; }
.bk-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--espresso); cursor: pointer; }

/* ---------- Che do xem khung anh (index.html?khung) ---------- */
.frame-banner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 8px 16px; background: #2563eb; color: #fff; font-weight: 600; font-size: .9rem; text-align: center;
}
.frame-banner a { color: #fff; padding: .2em .9em; border-radius: 999px; background: rgba(255, 255, 255, .2); text-decoration: none; }
.zone-outline { position: relative; outline: 3px dashed #2563eb; outline-offset: -3px; }
.zone-tag {
  position: absolute; z-index: 6; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: .3em .75em; border-radius: 10px;
  background: #2563eb; color: #fff; font: 700 .78rem/1.35 "Be Vietnam Pro", sans-serif; text-align: left; box-shadow: var(--shadow);
}

/* =====================================================================
   Chuyen dong (style.css da tat het khi trinh duyet yeu cau giam chuyen dong)
   ===================================================================== */
.wordmark span { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.wordmark span:nth-child(2) { animation-delay: .12s; }
.hero4-sub { animation: rise 1s cubic-bezier(.2, .8, .2, 1) .3s both; }
.strip4 > * { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.strip4 > :nth-child(1) { animation-delay: .35s; }
.strip4 > :nth-child(2) { animation-delay: .45s; }
.strip4 > :nth-child(3) { animation-delay: .55s; }
.strip4 > :nth-child(4) { animation-delay: .65s; }
.sticker { animation: wobble 4s ease-in-out infinite alternate; }
.fresh-art .s2 { animation-delay: -2s; }
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .menu-card[data-reveal] { transform: translateY(60px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes wobble { from { transform: rotate(-3deg) scale(1); } to { transform: rotate(3deg) scale(1.04); } }

/* Bam link muc (vd "Thuc don") thi tieu de khong bi thanh dieu huong che */
.landing section { scroll-margin-top: 96px; }
