/* =========================================
   RESET
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #101010;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: #111;
  background: #fff;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}


/* =========================================
   CONTAINER
========================================= */

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 70px);
  padding-right: clamp(20px, 4vw, 70px);
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
  width: 100%;
  height: 46px;
  background: #050505;
  color: #fff;
  font-size: 12px;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.topbar-links {
  gap: 4px;
}

.topbar-left a,
.topbar-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.topbar-left a:hover,
.topbar-links a:hover {
  opacity: 0.6;
}

.topbar-links span {
  opacity: 0.45;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
  width: 100%;
  position: relative;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #ededed;
}

.navbar-inner {
  width: 100%;
  height: 82px;
  min-height: 82px;
  display: flex;
  align-items: center;
}


/* =========================================
   LOGO
========================================= */

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
}

.header-logo-image,
.footer-logo-image {
  width: 200px;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: contain;
}

.header-logo-image {
  filter: brightness(0);
}

.footer-logo-image {
  filter: brightness(0) invert(1);
}


/* =========================================
   NAV MENU
========================================= */

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(27px, 3vw, 55px);
}

.nav-menu a {
  position: relative;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 0;
  height: 1px;
  margin: auto;
  background: #000;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ซ่อน About / Contact บน PC
   เพราะมีอยู่บน Topbar แล้ว */

.nav-menu-company {
  display: none;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  display: block;
  position: absolute;
  background: #111;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}


/* =========================================
   BUTTONS
========================================= */

.btn {
  min-height: 47px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.btn-primary:hover {
  background: #ebebeb;
}

.btn-outline {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

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

.btn-light {
  color: #111;
  background: #fff;
  border-color: #fff;
}


/* =========================================
   FOOTER
========================================= */

.footer {
  padding: 42px 0 30px;
  background: #101010;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    1.4fr
    0.8fr
    0.9fr
    1.2fr;
  gap: 55px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin: 0 0 6px;
}

.footer-brand p {
  max-width: 290px;
  margin: 0;
  color: #b9b9b9;
  font-size: 11px;
  line-height: 1.75;
}

.footer-title {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-links p {
  margin: 0;
  color: #bdbdbd;
  font-size: 11px;
  line-height: 1.5;
}

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

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-row i {
  width: 13px;
  margin-top: 2px;
}


/* =========================================
   FOOTER SOCIAL
========================================= */

.footer-social {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
  font-size: 14px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social a:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #252525;
  color: #8f8f8f;
  font-size: 10px;
}


/* =========================================
   FLOATING CHAT
========================================= */

.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 105px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-button {
  width: 57px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 1px solid #cfcfcf;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.17);
  font-size: 21px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-button span {
  font-size: 10px;
  font-weight: 800;
}

.floating-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}