.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button--primary {
  color: var(--color-white);
  background: var(--color-primary);
}

.button--secondary {
  color: var(--color-primary);
  background: var(--color-white);
  border-color: var(--color-primary);
}

.button--gold {
  color: var(--color-white);
  background: var(--color-gold);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.24);
}

.button--glass {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.button--small {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
  max-width: 250px;
  white-space: nowrap;
}

.brand-mark span {
  width: fit-content;
}

.brand-mark .brand-name-line-1,
.brand-mark .brand-name-line-2 {
  display: inline;
}

/* Override pages.css: html[data-lang="en"] .len (0,2,1) — must be (0,2,2)+ */
html .brand-mark small.len,
html .brand-mark small.lth {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Mobile: Show company name as 2 lines */
@media (max-width: 768px) {
  .brand-mark {
    max-width: none;
    white-space: normal;
    width: fit-content;
  }

  .brand-mark span {
    display: flex;
    flex-direction: column;
    width: fit-content;
  }

  .brand-mark .brand-name-line-1 {
    display: block;
  }

  .brand-mark .brand-name-line-2 {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
  }
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #7fb4dc);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-logo {
  height: 48px !important;
  width: auto !important;
  max-height: 48px !important;
  max-width: 150px !important;
  flex-shrink: 0 !important;
  object-fit: contain;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 1.1rem;
}

.brand-mark small {
  margin-top: 0.08rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding-inline: 0.5rem;
}

[data-lang="th"] .nav-links a {
  font-size: 1.1rem;
}

.language-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding-inline: 0.9rem;
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.flag-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.flag-separator {
  opacity: 0.6;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }
}

/* Mobile Drawer — ห้อยใต้ header ด้วย position: absolute top: 100% */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(7, 17, 31, 0.97);
  backdrop-filter: blur(20px);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.nav-open .mobile-drawer {
  max-height: 440px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  padding: 1.1rem 2rem;
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease;
}

.mobile-drawer a:hover,
.mobile-drawer a:focus {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.mobile-drawer .language-pill {
  margin: 1rem auto;
}

@media (max-width: 980px) {
  .brand-logo {
    height: 36px !important;
    max-height: 36px !important;
  }

  .brand-mark small {
    display: none;
  }

  .brand-mark strong {
    font-size: 0.82rem;
  }

  .nav-toggle {
    order: 3;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }
}
