/* T Top Thai — หน้าตาตามเว็บเดิมของร้าน (ทอง #b78c33 / #f1c363 · แดง #8d2727 · ดำ) */
:root {
  --gold: #b78c33;
  --gold-light: #f1c363;
  --cream: #e5cd91;
  --red: #8d2727;
  --black: #000;
  --white: #fff;
  --serif: 'ZCOOL XiaoWei', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 16px/1.5 var(--serif);
  letter-spacing: 1px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3 { font-weight: normal; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold { color: var(--gold); }
.gold2 { color: var(--gold-light); }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; text-align: center; }
.br-sm { display: none; }

/* ── แถบข้อความบนสุด ── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  margin: 0; padding: 5px 56px 5px 12px;
  background: var(--red); color: var(--cream);
  font: 18px/1.3 var(--sans); text-align: center; letter-spacing: 0;
}

/* ── ปุ่มเมนู 3 ขีด + แผงเมนู ── */
.burger {
  position: fixed; top: 6px; right: 8px; z-index: 60;
  width: 44px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; right: 4px; width: 35px; height: 3px; border-radius: 20px;
  background: #ffde29; box-shadow: 0 0 10px #fff; content: ""; transition: transform .25s, top .25s, background .25s;
}
.burger span { top: 17px; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; box-shadow: none; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: 30%; min-width: 280px; padding-top: 56px;
  background: rgba(0, 0, 0, .95); overflow-y: auto;
  transform: translateX(100%); transition: transform .25s; visibility: hidden;
}
.nav.is-open { transform: none; visibility: visible; }
.nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav li { border-bottom: 2px solid var(--white); }
.nav a { display: block; color: var(--white); font-size: 1.5em; line-height: 50px; transition: background .15s, letter-spacing .15s; }
.nav a:hover { background: var(--gold); letter-spacing: 2px; }

/* ── หน้าแรก: รูปพื้นหลังสลับ 4 รูป ── */
.hero { position: relative; min-height: 95vh; min-height: 95svh; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background: center / cover no-repeat; opacity: 0; transition: opacity 1s; }
.hero__slide.is-on { opacity: 1; }
.hero__inner { position: relative; z-index: 2; padding: 70px 15px 40px; text-align: center; }
.hero__logo { width: 60%; max-width: 763px; }
.hero__buttons a { display: inline-block; margin: -20px 5px 0; }
.hero__buttons img { width: 250px; }
.hero__delivery {
  display: inline-block; margin-top: 4px; padding: 6px 22px; border: 2px solid var(--gold-light); border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: var(--gold-light); font: 700 15px/1.2 var(--serif); letter-spacing: 2px;
}
.hero__delivery:hover { background: var(--gold); color: #000; }
.hero__note { margin: 18px 0 0; font-size: 16px; line-height: 1.45; text-shadow: 0 1px 4px #000, 0 0 12px rgba(0, 0, 0, .8); }
.award { position: absolute; z-index: 3; width: 20vw; max-width: 300px; top: 15vh; }
.award--left { left: 5vw; }
.award--right { right: 5vw; }

/* ── ลายไทยคั่นส่วน ── */
.border { height: 25px; background: url(img/thai-border.webp) repeat-x; background-size: 15% auto; }

/* ── เกี่ยวกับร้าน + เมนู ── */
.about { background: #000 url(img/bg-about.webp) center top / 100% auto no-repeat fixed; font-family: var(--sans); padding-bottom: 60px; }
.about .border:first-child { margin-top: -25px; position: relative; z-index: 4; }
.about__box {
  display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: center;
  margin-top: 50px; padding: 30px 30px 40px;
  background: var(--red) url(img/bg-red.webp) center / cover;
}
.about__text p { margin: 0 0 1.2em; }
.title-lg { font-family: var(--serif); font-size: 3em; color: var(--gold-light); }
.about__text h3 { font-size: 1.6em; margin: 6px 0 16px; }
.line { display: block; margin: -10px auto 10px; width: 120px; }
.line--lg { width: 200px; margin-top: -15px; }
.menu { padding-top: 60px; }
.title { color: var(--gold-light); font: 30px/1.3 var(--sans); -webkit-text-stroke: 1px var(--gold-light); }
.menu p { margin: 0 0 1em; }
.menu__buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.menu__buttons img { width: 85%; transition: transform .2s; }
.menu__buttons a:hover img, .hero__buttons a:hover img { transform: scale(1.04); }
.menu__more { margin: 22px 0 0; font-size: 18px; }
.menu__more a { text-decoration: underline; text-underline-offset: 4px; }

/* ── แกลเลอรี ── */
.gallery { background: #000 url(img/bg-gallery.webp) center top / 100% auto no-repeat; font-family: var(--sans); padding: 30px 0 80px; }
.carousel {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  max-width: 1140px; margin: 30px auto 0; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 50%; padding: 3px; scroll-snap-align: start; }
.carousel__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ── ติดต่อ ── */
.contact { background: var(--gold) url(img/bg-contact.webp) center / 110% auto; font-family: var(--sans); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding: 40px 15px; }
.contact__text { padding: 30px 25px 0; font-weight: 700; }
.title-gold { color: var(--gold-light); font-size: 30px; margin-bottom: 12px; -webkit-text-stroke: 1px var(--gold-light); }
.hours { margin: 0 0 1.2em; }
.phones a { color: var(--gold-light); font-size: 30px; line-height: 1.15; }
.phones a:hover { color: var(--white); }
.map { display: block; width: 100%; height: 300px; border: 0; }

/* ── ท้ายเว็บ ── */
.footer {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 30px;
  padding: 30px 15px; background: var(--red); font-family: var(--sans); text-align: center;
}
.footer img { width: 40px; vertical-align: middle; margin-left: 4px; }
.to-top { position: fixed; right: 5px; bottom: 5px; z-index: 30; }

/* ── ป๊อปอัปโปร (ตอนเปิดเว็บ) + ดูรูปใหญ่ ── */
.offer, .lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .8); padding: 20px; animation: fade .4s;
}
.offer[hidden], .lightbox[hidden] { display: none; }
.offer img { max-height: 92vh; width: auto; cursor: pointer; }
.offer__close, .lightbox__btn {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .5);
  width: 48px; height: 48px; border-radius: 50%; font-size: 34px; line-height: 44px;
}
.offer__close, .lightbox__close { top: 12px; right: 12px; }
/* รูปโปรมีปุ่ม ✕ ของมันเองอยู่แล้ว — ปุ่มจริงโผล่เฉพาะคนใช้คีย์บอร์ด */
.offer__close { opacity: 0; }
.offer__close:focus-visible { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ── แท็บเล็ต ── */
@media (max-width: 991px) {
  .award { width: 30vw; top: auto; bottom: 8vh; }
  .award--left { left: 15vw; }
  .award--right { right: 15vw; }
  .hero__inner { padding-bottom: 46vw; }
}

/* ── มือถือ ── */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .hide-sm { display: none; }
  .topbar { font-size: 13px; }
  .burger { top: 52px; }
  .nav { width: 100%; }
  .hero__logo { width: 94%; margin-top: 4vh; }
  .hero__buttons img { width: 40vw; }
  .hero__note { font-size: 11px; line-height: 14px; }
  .award { width: 42vw; bottom: 2vh; }
  .award--left { left: 5vw; }
  .award--right { right: 5vw; }
  .hero__inner { padding-bottom: 66vw; }
  .border { height: 20px; background-size: 35% auto; }
  .about { background-attachment: scroll; background-size: 230% auto; background-position: 90% 0; padding: 0 0 30px; }
  .about__box { grid-template-columns: 1fr; padding: 20px 10px; background-size: 350% auto; }
  .title-lg { font-size: 22px; }
  .about__text h3 { font-size: 18px; }
  .title, .title-gold { font-size: 20px; }
  .line--lg { width: 100px; margin-top: -5px; }
  .menu__buttons { grid-template-columns: 1fr 1fr; }
  .menu__buttons img { width: 90%; }
  .gallery { background-size: 350% auto; background-position: left top; padding: 20px 0 40px; }
  .contact { background-size: 350% auto; background-position: top left; }
  .contact__grid { grid-template-columns: 1fr; padding: 20px 10px; }
  .contact__text { padding: 10px 0 0; }
  .phones a { font-size: 26px; }
  .footer__sep { display: none; }
  .footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .br-sm { display: inline; }
  .carousel__item { flex-basis: 100%; }
  .to-top img { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .carousel { scroll-behavior: auto; }
  .hero__slide { transition: none; }
}
