/* =====================================
   LongRao Dimsum Clean Version
===================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Sriracha:wght@300;400;600;700&display=swap');

/* =====================================
   RESET
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sriracha', sans-serif;
}

body {
  background: #f8f8f8;
  font-size: 15px;
  color: #333;
}

a {
  text-decoration: none;
  color: #740000;
  transition: 0.2s ease;
}

a:hover {
  color: #000;
}

ul {
  list-style: none;
}

/* =====================================
   PRELOADER
===================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
}

[data-loader="circle-side"] {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  margin-left: -25px;
  margin-top: -25px;
  border: 2px solid #740000;
  border-top-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================================
   HEADER (ALWAYS SHOW MENU)
===================================== */

header.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

header .container2 {
  max-width: 1400px;
  margin: auto;
  padding: 10px 20px;

  display: flex;
  justify-content: space-between; /* โลโก้ซ้าย เมนูขวา */
  align-items: center;
  gap: 16px;
}

/* Logo */
#logo {
  flex: 0 0 auto;
}
#logo h1 a {
  width: 170px;
  height: 40px;
  display: block;
  background: url(../img/LongRaoDimSum.svg) no-repeat center;
  background-size: contain;
  text-indent: -9999px;
  margin-left: 0;
}

/* Menu - show always */
.main-menu {
  flex: 0 0 auto;
  display: block !important;     /* กันโดนซ่อน */
  visibility: visible !important;/* กันโดนซ่อน */
  opacity: 1 !important;         /* กันโดนซ่อน */
}

.main-menu ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap; /* ถ้าจอแคบมาก ให้ขึ้นบรรทัดได้ แต่ไม่หาย */
}

.main-menu ul li a {
  font-size: 16px;
  font-weight: 500;
  color: #404040;
  white-space: nowrap;
}

.main-menu ul li a:hover {
  color: #404040;
}

/* Mobile: ยังซ้าย/ขวาเหมือนเดิม แค่ลดระยะ + ลดฟอนต์ */
@media (max-width: 768px) {
  header .container2 {
    padding: 10px 14px;
  }

  #logo h1 a {
    width: 150px;
    height: 36px;
  }

  .main-menu ul {
    gap: 16px;
  }

  .main-menu ul li a {
    font-size: 14px;
  }
}


/* =====================================
   MAIN
===================================== */
main {
  /* padding-top: 90px; */
}

/* =====================================
   HOME SECTION
===================================== */
.home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 70vh;
  background: url(img/dim-sum-set.png) no-repeat center;
  background-size: cover;
  padding: 40px 20px;
}

.home .content {
  flex: 1 1 500px;
  padding: 0 30px 30px 30px;
}

.home .content h3 {
  font-size: 28px;
  color: #740000;
  margin-bottom: 15px;
}

.home .content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.home .image {
  flex: 1 1 300px;
  text-align: center;
}

.home .image img {
  max-width: 100%;
  padding: 0 40px 0 40px;
  animation: float 3s ease-in-out infinite;
}

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

@media (max-width: 1000px) {

  .home {
    flex-direction: column; /* ชัดเจนว่า stack */
    text-align: center;
  }

  .home-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  /* ===== รูปตอน stack ===== */
  .home .image img {
    max-width: 80%;
  }
}

@media (max-width: 550px) {

  /* ===== รูปตอน stack ===== */
  .home .image img {
    max-width: 100%;
  }
}

/* =====================================
   BUTTON
===================================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #740000;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: #740000;
  margin: 5px;
}

.btn:hover {
  background: #740000;
  color: #fff;
}

/* Branch Toggle */
.branch-buttons {
  margin-top: 15px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* =====================================
   AWARD SECTION
===================================== */
.award-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.award-title {
  font-size: 22px;
  color: #740000;
  margin-bottom: 25px;
}

/* =====================================
   FOOTER
===================================== */
footer.main-footer {
  background: #121921;
  color: #bcbcbc;
  padding: 70px 20px;
}

footer.main-footer h5 {
  color: #fff;
  margin-bottom: 15px;
}

footer.main-footer a {
  color: #bcbcbc;
}

footer.main-footer a:hover {
  color: #fff;
}

.contact-links li {
  margin-bottom: 10px;
}

footer #copy {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
}

/* =====================================
   BACK TO TOP
===================================== */
#toTop {
  width: 40px;
  height: 40px;
  background: #740000;
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: none;
  text-align: center;
  line-height: 40px;
  color: #fff;
  border-radius: 6px;
}

/* .home-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  color: #740000;
} */

.home-title-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}