/* ==============================================================================
   VUI JOURNEYS - HARDCODED BILINGUAL SYSTEM (vui-lang.css)
   Pure English / Vietnamese Toggle Switch (Default: English)
   Styling: Montserrat, Deep Teal (#008080), Warm Gold (#D4AF37)
   Clean, natural luxury aesthetic without AI clutter or third-party widgets
   ============================================================================== */

/* Minimalist Luxury Language Switcher */
.vui-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 37, 40, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 3px;
  user-select: none;
  transition: all 0.25s ease;
}

.vui-lang-switch:hover {
  border-color: #D4AF37;
  background: rgba(0, 37, 40, 0.9);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.vui-lang-switch .lang-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.vui-lang-switch .lang-btn:hover {
  color: #FFFFFF;
}

.vui-lang-switch .lang-btn.active {
  background: linear-gradient(135deg, #D4AF37 0%, #C59B27 100%);
  color: #002528;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.vui-lang-switch .lang-divider {
  color: rgba(212, 175, 55, 0.4);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1;
}

/* Nav Menu Alignment */
.nav-item.vui-nav-lang-item {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  margin-right: 6px;
}

/* Clean Top-Bar Styling (No Emojis & Fluid Responsive Layout) */
.top-bar {
  background-color: var(--teal-deep, #002528);
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  width: 100%;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.top-bar-clean-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.79rem;
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap !important;
  line-height: 1.3;
}
.top-bar-clean-item:hover {
  color: #FFFFFF;
}
.top-bar-clean-label {
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap !important;
}
.top-bar-clean-item strong,
.top-bar-clean-item span {
  white-space: nowrap !important;
}
.top-bar-clean-item strong {
  color: #FFFFFF;
  font-weight: 700;
}
.top-bar-badge-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .top-bar-item-address {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .top-bar-badge-pill {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .top-bar-left {
    justify-content: center;
    gap: 10px;
  }
  .top-bar-right {
    margin-left: 0;
    justify-content: center;
  }
}

/* ==============================================================================
   STANDARDIZED PROFESSIONAL VIETNAMESE TYPOGRAPHY, SENTENCE SPACING & LINE BREAKS
   Chuẩn Hóa Font Chữ, Chính Tả, Khoảng Cách Hết Câu & Xuống Dòng Chuyên Nghiệp
   ============================================================================== */

body, html {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Khoảng cách đoạn văn bản: Mỗi đoạn trọn vẹn, cách dòng thoáng đãng, dễ đọc */
p {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

/* Chuẩn hóa ngắt dòng: Tránh ngắt chữ vụn, trọn câu hết ý mới xuống dòng */
/* Chuẩn hóa ngắt dòng: Tránh ngắt chữ vụn, trọn câu hết ý mới xuống dòng */
/* Paragraph & card body text styling with natural line-height */
p,
.intro-quote-body,
.ecosystem-desc,
.vui-dna-card-desc,
.eco-desc,
.people-pillar-desc,
.impact-item-desc,
.gratitude-body,
.fact-item p,
.vm-desc,
.dna-card-desc,
.value-card-desc,
.tour-card-desc,
.tour-modal-desc {
  line-height: 1.8 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-align: left;
}

/* ==========================================================================
   PERFECT SCREEN CENTERING FOR ALL SECTION HEADERS & HERO BANNERS SITEWIDE
   ========================================================================== */
.section-header,
.section-header * {
  text-align: center !important;
}

.section-header {
  text-align: center !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 48px !important;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.section-header .section-tag {
  display: inline-block !important;
  text-align: center !important;
  margin: 0 auto 12px !important;
}

.section-header .section-title {
  text-align: center !important;
  margin: 0 auto 16px !important;
  width: 100% !important;
  max-width: 820px !important;
}

.section-header .section-subtitle,
.section-header .section-desc,
.section-header p,
.hero-subheadline,
.centered-header .section-subtitle,
.centered-header .section-desc {
  text-align: center !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.75 !important;
  font-size: 1.05rem !important;
  padding-left: clamp(0.5rem, 2vw, 1.5rem) !important;
  padding-right: clamp(0.5rem, 2vw, 1.5rem) !important;
  box-sizing: border-box !important;
}

/* Also ensure all page heroes and banners are centered */
.page-hero,
.page-hero .container,
.tours-hero-banner,
.tours-hero-banner .container,
.reviews-hero,
.reviews-hero .container,
.about-hero,
.about-hero .container,
.hero-banner-section,
.hero-banner-section .container {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-hero *,
.tours-hero-banner *,
.reviews-hero-header *,
.about-hero * {
  text-align: center !important;
}

.about-hero .about-hero-lead,
.page-hero p,
.tours-hero-banner p,
.reviews-hero p {
  text-align: center !important;
  max-width: 850px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.75 !important;
}

.people-hero-box,
.gratitude-hero-box,
.about-hero-kicker,
.page-hero-kicker,
.tours-hero-kicker {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cân đối tiêu đề không bị rớt từ đơn lẻ */
.section-title,
.hero-headline,
.hero-subheadline,
.vui-accordion-title,
.ecosystem-title,
.contact-title,
.about-hero h1,
.gratitude-title,
.tour-card-title,
h1, h2, h3, h4 {
  text-wrap: balance;
  word-break: normal;
  letter-spacing: -0.2px;
}

/* Tránh giật font hoặc lỗi hiển thị tiếng Việt */
[lang="vi"],
html[lang="vi"] * {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Display Control for Language Blocks */
html[lang="en"] .lang-vi-only {
  display: none !important;
}
html[lang="en"] .lang-en-only {
  display: block;
}
html[lang="en"] span.lang-en-only,
html[lang="en"] a.lang-en-only {
  display: inline-block;
}

html[lang="vi"] .lang-en-only {
  display: none !important;
}
html[lang="vi"] .lang-vi-only {
  display: block;
}
html[lang="vi"] span.lang-vi-only,
html[lang="vi"] a.lang-vi-only {
  display: inline-block;
}

/* Minimalist DNA Card Numbers & Badges */
.vui-dna-card-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #D4AF37;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 8px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 4px;
}

@media (max-width: 820px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .top-bar-left {
    justify-content: center;
    gap: 12px;
  }
  .top-bar-right {
    justify-content: center;
  }
}

/* ==============================================================================
   UI/UX GUTTERS, LEFT-EDGE TRUNCATION PREVENTION & BILINGUAL SYMMETRY
   ============================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

.container,
.hero-banner-section .container,
.about-hero .container,
.page-hero .container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  box-sizing: border-box !important;
}

/* Ensure no negative margins or letter-spacing clips the first glyphs (Đ, V, K, etc.) */
.hero-kicker,
.hero-headline,
.hero-subheadline,
.hero-description,
.section-tag,
.section-title,
.section-subtitle,
.lead-text,
.intro-quote-body,
.about-photo-caption {
  letter-spacing: normal;
  box-sizing: border-box;
}

.hero-kicker {
  letter-spacing: 1.5px !important;
  max-width: 95%;
  word-break: normal;
  overflow-wrap: break-word;
  padding: 8px 22px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-block;
}

.hero-headline {
  letter-spacing: normal !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Prevent fixed-height clipping on cards when text expands in Vietnamese */
.tour-card,
.eco-item-card,
.impact-item-card,
.value-card,
.fact-item {
  height: auto !important;
  min-height: auto;
  overflow: visible !important;
}

.tour-card-content,
.eco-item-desc,
.impact-item-desc {
  height: auto !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
