:root {
  --nav-text: #1b1b1b;
  --gold-color: #d4af37;
  
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* ดันเนื้อหาทั้งหมดลงมาเพื่อให้ไม่โดน Navbar ทับ */
body {
  /* คำนวณจากความสูง Navbar (100px logo + 24px+24px padding) */
  padding-top: 150px; 
}

/* ปรับระยะในมือถือ เพราะโลโก้เราเล็กลงเหลือ 70px */
@media(max-width: 1024px) {
  body {
    padding-top: 100px; /* (70px logo + 15px+15px padding) */
  }
}

.lang-en .nav-wrap, 
.lang-en .menu a, 
.lang-en .lang-switcher, 
.lang-en .lang-link, 
.lang-en .btn-ghost {
  font-family: 'Inter', sans-serif !important; 
  font-weight: 500;
  letter-spacing: -0.01em;
}


.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px; /* เพิ่ม Padding ให้แถบใหญ่ขึ้น */
  display: flex;
  align-items: center; 
}

/* ดันโลโก้ไปซ้ายสุด */
.brand {
  margin-right: auto;
}

.logo {
  height: 100px; /* ขยายขนาดโลโก้ */
  width: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  gap: 35px; /* เพิ่มระยะห่างเมนู */
  margin: 0;
  padding: 0;
}

.menu a {
  font-size: 18px; /* ขยายฟอนต์เมนู */
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s, color 0.3s;
}

.menu a:hover {
  opacity: 1;
  color: var(--gold-color);
}

.btn-ghost {
  padding: 12px 28px; /* ขยายขนาดปุ่ม */
  font-size: 16px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: #fff;
  color: #111;
}

/* ======================= Language Switcher ======================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 30px; 
  margin-right: 30px; 
  border-left: 1px solid rgba(255, 255, 255, 0.3); 
  padding-left: 30px;
  font-family: inherit;
}

.lang-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lang-link:hover {
  color: var(--gold-color);
}

.lang-link.active {
  color: var(--gold-color);
  font-weight: 700;
  pointer-events: none;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ======================= Hamburger ======================= */
.cta-mobile { display: none; }
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  margin-left: 20px;
}
.hamburger .bars, .hamburger .bars::before, .hamburger .bars::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; position: absolute;
  left: 4px; transition: 0.3s;
}
.hamburger .bars { top: 15px; }
.hamburger .bars::before { top: -7px; }
.hamburger .bars::after { top: 7px; }
.hamburger.active .bars { background: transparent; }
.hamburger.active .bars::before { transform: rotate(45deg); top: 0; }
.hamburger.active .bars::after { transform: rotate(-45deg); top: 0; }

/* ======================= Responsive ======================= */
@media(max-width: 1024px) {
  .nav-inner { padding: 15px 20px; }
  .logo { height: 70px; } /* ปรับโลโก้เล็กลงในมือถือ */
  .menu {
    display: none; flex-direction: column; position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center; align-items: center; gap: 30px;
  }
  .menu.open { display: flex; }
  .hamburger { display: block; z-index: 1001; }
  .cta-desktop { display: none; }
  .cta-mobile { display: block; }
  
  .lang-switcher {
    border-left: none;
    padding-left: 0;
    margin-right: 0;
  }
}

/* ======================= Contact Modal ======================= */
.contact-modal {
  display: none; position: fixed; z-index: 2000; inset: 0;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
  justify-content: center; align-items: center;
}
.contact-modal.show { display: flex; }
.contact-modal .modal-content {
  background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.2);
  position: relative; padding: 20px 30px; animation: fadeIn .3s ease;
  display: flex; flex-direction: column; gap: 20px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.contact-modal .close {
  position: absolute; top: 12px; right: 16px; font-size: 28px;
  cursor: pointer; color: #333; transition: 0.2s;
}
.contact-modal .close:hover { color: var(--gold-color); }
.contact-modal .modal-content.fixed-size { width: 1200px; height: 700px; max-width: 95vw; max-height: 95vh; }
.contact-modal .modal-content.fixed-size h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: #111;}
.contact-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; min-height: 0; }
.contact-left { display: flex; flex-direction: column; gap: 20px; overflow-y: auto; min-height: 0; padding-right: 10px;}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
  padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold-color);
}
.contact-form .btn-submit {
  background: #111; color: #fff; padding: 14px; border: none;
  border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.contact-form .btn-submit:hover { background: var(--gold-color); }
.contact-right { border-radius: 10px; overflow: hidden; display: flex; }
.contact-right iframe { flex: 1; height: 100%; width: 100%; border: 0; }
.contact-info h3, .contact-form h3 { font-size: 18px; margin-bottom: 15px; color: #111;}
.contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact-info a { display: flex; align-items: center; text-decoration: none; color: #333; font-weight: 500; gap: 12px; }
.contact-info a:hover { color: var(--gold-color); }
.contact-info .icon {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; background: #f5f5f5; border-radius: 50%; font-size: 14px; color: #111;
}
@media(max-width: 1024px) {
  .contact-modal .modal-content.fixed-size { height: 90vh; padding: 20px; }
  .contact-split { grid-template-columns: 1fr; overflow-y: auto; }
  .contact-left { overflow-y: visible; padding-right: 0;}
  .contact-right { height: 300px; flex: none; }
}
/* ======================= Navbar หลัก ======================= */
.nav-wrap {
  position: fixed; /* ต้องเป็น fixed เท่านั้น */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(0, 0, 0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease-in-out; 
}


.navbar-hidden {
  transform: translateY(-100%) !important; 
}

/* สำหรับหน้าภาษาอังกฤษ */
.lang-en .menu a {
  font-size: 15px; /* ใหญ่กว่าไทย 1px เพื่อชดเชยน้ำหนัก */
  letter-spacing: 0.01em; /* เพิ่มระยะห่างตัวอักษรให้ดูโปรและเต็มขึ้น */
  text-transform: uppercase; /* (Optional) ตัวพิมพ์ใหญ่ช่วยให้ดูสมดุลกับความกว้างของไทยมาก */
}

/* สำหรับหน้าภาษาไทย */
.lang-th .menu a {
  font-size: 18px; /* Chakra Petch ปกติจะดูตัวเล็กกว่า Inter ในขนาดพิกเซลที่เท่ากัน */
  letter-spacing: 0;
}

