/* ============================================
   SIAM SPA – Navbar Solid (Sub-Pages)
   ไม่มี blur — ใช้สีทึบแทน
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  z-index: 999;
  background: #590000;
  /* สีทึบ wine-red */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: #3a0000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 10px 5%;
}

/* ── Social Icons ── */
.nav-left .social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-white {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-white:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ── Center: Logo + Nav ── */
.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.nav-center .logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 6px;
  transition: width 0.4s ease, height 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.navbar.scrolled .nav-center .logo img {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links>a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.2px;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links>a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: #f5d9d9;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links>a:hover::after {
  width: 100%;
}

/* ── Dropdown ── */
.dropdown-menu {
  position: relative;
  cursor: pointer;
}

.dropdown-menu .drop-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.2px;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.dropdown-menu .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #3a0000;
  flex-direction: column;
  min-width: 170px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: dropSlide 0.25s ease both;
}

@keyframes dropSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-menu.active .dropdown-content {
  display: flex;
}

.dropdown-menu .dropdown-content a {
  color: #fff;
  padding: 11px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-menu .dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-menu .dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 24px;
}

/* ── Close button (mobile) ── */
.close-menu {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  align-self: flex-end;
  padding: 16px 20px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-menu:hover {
  opacity: 1;
}

/* ── Right: Language + Hamburger ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-desktop {
  display: flex;
  gap: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  align-items: center;
}

.lang-desktop a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 4px;
  border-radius: 3px;
}

.lang-desktop a:hover {
  color: #fff;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    width 0.3s ease;
}

/* ── Mobile Language ── */
.mobile-lang {
  display: none;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}

.mobile-lang a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-lang a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-left {
    display: none;
  }

  /* ── Mobile: Logo ซ้าย / Hamburger ขวา ── */
  .navbar {
    justify-content: space-between;
  }

  .nav-center {
    flex-direction: row;
    flex: unset;
    order: -1;
    margin-right: auto;
  }

  .nav-center .logo img {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .nav-right {
    order: 1;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(160deg, #590000 0%, #3a0000 100%);
    width: 280px;
    height: 100vh;
    padding-top: 10px;
    padding-bottom: 40px;
    gap: 4px;
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links>a {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links>a::after {
    display: none;
  }

  .close-menu {
    display: block;
    align-self: flex-end;
    padding: 14px 20px;
  }

  .hamburger {
    display: flex;
  }

  .lang-desktop {
    display: none;
  }

  .mobile-lang {
    display: flex;
    flex-direction: row;
    padding: 0 28px;
  }

  .icon-white {
    width: 18px;
    height: 18px;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    width: 100%;
  }

  .dropdown-menu .drop-link {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dropdown-menu .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    border: none;
    animation: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
    min-width: 100%;
  }

  .dropdown-menu.active .dropdown-content {
    display: flex;
  }

  .dropdown-menu .dropdown-content a {
    padding: 12px 28px 12px 42px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dropdown-menu .dropdown-content a:hover {
    padding-left: 50px;
  }
}

@media (max-width: 480px) {
  .nav-left {
    display: none;
  }
}