/**
 * Indochina Motorbike Tours — Global Unified Design System
 * File: assets/css/design-system.css
 *
 * Nguồn chuẩn duy nhất đồng bộ Font, Typography Scale, Màu sắc & Card Style
 * trên toàn bộ website (Homepage, Category, Taxonomy, Single Tour, Single Post,
 * Search Results, Hero Search & Footer Banner).
 *
 * Bảo toàn tuyệt đối:
 * - Không đụng vào Font Awesome (.fa, .fa-solid, .fa-brands) & Flatsome icons (.fl-icons)
 * - Không đổi font thanh Menu chính (#header) để giữ 9 mục menu nằm gọn 1 hàng
 */

:root {
  --indo-font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --indo-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --indo-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Alias tương thích ngược với tour-single.css & himalaya-tours.css */
  --disp: var(--indo-font-display);
  --body: var(--indo-font-body);
  --mono: var(--indo-font-mono);

  /* Brand Palette (3 màu chủ đạo chuẩn) */
  --indo-brand: #b20000;
  --indo-brand-dark: #8f0000;
  --indo-brand-soft: #fef2f2;
  --indo-brand-border: #fee2e2;
  --indo-ink: #111827;
  --indo-ink-2: #374151;
  --indo-muted: #64748b;
  --indo-surface: #ffffff;
  --indo-surface-alt: #f9fafb;
  --indo-border: #e5e7eb;
  --indo-container: 1360px;
}

/* =========================================================================
   1. GLOBAL TYPOGRAPHY HARMONIZATION (MAIN CONTENT, SEARCH & FOOTER)
   ========================================================================= */
body,
#main,
#content,
.indo-hero-search-dock,
.indo-search-page,
.idf-banner {
  font-family: var(--indo-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Đồng bộ toàn bộ Heading trong vùng nội dung sang Archivo (thay Bebas Neue mảnh/nhỏ của Flatsome) */
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6,
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6,
.indo-search-page h1,
.indo-search-page h2,
.indo-search-page h3,
.idf-banner .idf-marquee-track,
.idf-banner .idf-social-card .brand,
.idf-banner .idf-ta-title {
  font-family: var(--indo-font-display) !important;
  letter-spacing: -0.015em;
}

/* Đồng bộ văn bản đoạn & danh sách */
#main p,
#content p,
#content li,
.indo-hero-search-dock input,
.indo-hero-search-dock select,
.indo-search-page input,
.indo-search-page select {
  font-family: var(--indo-font-body);
}

/* =========================================================================
   2. 4-PILLAR BENEFIT / ADVANTAGE CARDS (HOMEPAGE, CATEGORY, TAXONOMY, POST)
   Sửa lỗi tiêu đề 4 thẻ bị quá bé & không đồng bộ giữa các trang
   ========================================================================= */
#content.modern-homepage-root .benefit-title,
#content .benefit-card .benefit-title,
.dirtbike-advantage-section .advantage-card-title,
.dirtbike-advantage-section h3.advantage-card-title,
.dirtbike-advantage-section h4.advantage-card-title,
#content .dirtbike-advantage-section h3,
#content .dirtbike-advantage-section h4,
.dirtbike-category-archive-page h3.advantage-card-title,
.dirtbike-category-archive-page h4.advantage-card-title {
  font-family: var(--indo-font-display) !important;
  font-size: clamp(18px, 1.3vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: var(--indo-ink) !important;
  margin: 0 0 10px 0 !important;
}

#content.modern-homepage-root .benefit-desc,
#content .benefit-card .benefit-desc,
.dirtbike-advantage-section .advantage-card-desc,
.dirtbike-advantage-section p.advantage-card-desc,
#content .dirtbike-advantage-section p,
.dirtbike-category-archive-page p.advantage-card-desc {
  font-family: var(--indo-font-body) !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: var(--indo-ink-2) !important;
  margin: 0 !important;
}

/* Đồng bộ khung card & icon tròn 4-pillar trên toàn site */
#content.modern-homepage-root .benefit-card,
.dirtbike-advantage-section .advantage-card {
  background: var(--indo-surface) !important;
  border: 1px solid var(--indo-border) !important;
  border-radius: 14px !important;
  padding: 28px 22px 26px !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

#content.modern-homepage-root .benefit-card:hover,
.dirtbike-advantage-section .advantage-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(178, 0, 0, 0.28) !important;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08) !important;
}

/* =========================================================================
   3. SECTION HEADINGS & BADGES (HOMEPAGE, ARCHIVE, SINGLE, SEARCH)
   ========================================================================= */
#content.modern-homepage-root .home-heading-title,
.dirtbike-category-archive-page .section-heading,
.dirtbike-blog-category-page .section-heading,
.dirtbike-single-post-page .section-heading,
.adv-tour-wrapper .shead h2 {
  font-family: var(--indo-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: var(--indo-ink) !important;
}

.home-section-badge,
.cat-editorial-badge,
.indo-search-kicker,
.tailormade-pill {
  font-family: var(--indo-font-mono) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* =========================================================================
   4. TOUR CARDS & BLOG CARDS UNIFIED TYPOGRAPHY
   (Khắc phục lỗi font-weight: normal vốn dành cho Bebas Neue)
   ========================================================================= */
.tours-hot-deals-item-title,
.tours-hot-deals-item-title a,
.adv-tour-wrapper .tours-hot-deals-item-title,
.adv-tour-wrapper .tours-hot-deals-item-title a,
.indo-sr-card-title,
.indo-sr-card-title a {
  font-family: var(--indo-font-display) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  color: var(--indo-ink) !important;
}

.tours-hot-deals-item:hover .tours-hot-deals-item-title a,
.adv-tour-wrapper .tours-hot-deals-item:hover .tours-hot-deals-item-title a,
.indo-sr-card:hover .indo-sr-card-title a {
  color: var(--indo-brand) !important;
}

.tours-hot-deals-item-title,
.adv-tour-wrapper .tours-hot-deals-item-title {
  height: auto !important;
  min-height: 48px !important;
  max-height: 52px !important;
}

.tours-hot-deals-item-excerpt,
.adv-tour-wrapper .tours-hot-deals-item-excerpt,
.indo-sr-excerpt {
  font-family: var(--indo-font-body) !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  color: #4b5563 !important;
}

.tours-hot-deals-item-location,
.adv-tour-wrapper .tours-hot-deals-item-location,
.indo-sr-location {
  font-family: var(--indo-font-body) !important;
  font-weight: 600 !important;
}

/* =========================================================================
   5. HERO TITLES & CTA BUTTONS UNIFIED DISPLAY FONT
   ========================================================================= */
.hero-title-main,
.category-main-title,
.indo-hs-submit-btn,
.indo-sf-submit,
.indo-sr-cta,
.adv-tour-wrapper .mbar .btn {
  font-family: var(--indo-font-display) !important;
}

.hero-title-main {
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
}

/* =========================================================================
   6. MOBILE TYPOGRAPHY SCALE REFINEMENT
   ========================================================================= */
@media (max-width: 768px) {
  #content.modern-homepage-root .benefit-title,
  #content .benefit-card .benefit-title,
  .dirtbike-advantage-section .advantage-card-title,
  #content .dirtbike-advantage-section h3,
  #content .dirtbike-advantage-section h4 {
    font-size: 17.5px !important;
  }

  #content.modern-homepage-root .benefit-card,
  .dirtbike-advantage-section .advantage-card {
    padding: 22px 16px 20px !important;
  }

  .tours-hot-deals-item-title,
  .tours-hot-deals-item-title a,
  .adv-tour-wrapper .tours-hot-deals-item-title,
  .adv-tour-wrapper .tours-hot-deals-item-title a,
  .indo-sr-card-title,
  .indo-sr-card-title a {
    font-size: 17px !important;
  }
}

