/* ==========================================================================
   HUY CUONG HEAVY LIFT - DESIGN SYSTEM TOKENS (TOKENS.CSS)
   Hệ thống quy chuẩn màu sắc mới (Huy Cường Redesign)
   Kiến trúc 3 tầng: 1. Primitive Tokens -> 2. Semantic Tokens -> 3. Component Tokens
   ========================================================================== */

:root {
  /* ========================================================================
     1. PRIMITIVE TOKENS (Giá trị thô cơ sở theo Bảng màu quy chuẩn)
     ======================================================================== */
  
  /* --- Brand Primitives: Xanh lá chủ đạo Huy Cường (Primary Green) --- */
  --hc-color-forest-950: #032D17; /* Primary Darker - Top bar, footer bottom, nền tối nhất thay thế đen */
  --hc-color-forest-900: #04381C; /* Sâu sắc, nền shadow, active state đậm */
  --hc-color-forest-850: #064A26; /* Primary Dark - Footer, header khi cuộn, hero overlay, gradient stops */
  --hc-color-forest-800: #096333; /* Xanh đậm trung gian */
  --hc-color-forest-700: #0D7C3E; /* Primary - Màu chủ đạo: Nút bấm, header active, section bg, links */
  --hc-color-forest-600: #1A9958; /* Primary Medium - Hover states, gradient endpoints, secondary buttons */
  --hc-color-forest-100: #E8F5E9; /* Primary Light - Nền nhạt, tags, badges, icon bg, check icons */
  --hc-color-forest-50:  #F0FFF4; /* Primary Lighter - Nền section xen kẽ thay cho xám */

  /* Khóa cứng đồng bộ biến Flatsome & custom.css theo nhận diện thương hiệu Huy Cường */
  --primary-color: #0D7C3E !important;
  --fs-color-primary: #0D7C3E !important;

  /* --- Brand Primitives: Vàng điểm nhấn Huy Cường (Accent Gold) --- */
  --hc-color-gold-700: #B37D14; /* Vàng đậm viền sâu */
  --hc-color-gold-600: #D99E1E; /* Accent Hover - Tối hơn 1 tông để tạo feedback khi click/hover */
  --hc-color-gold-500: #F0B429; /* Accent - Vàng chủ đạo: Nút CTA, accent lines, icons nhấn, badge, stats */
  --hc-color-gold-400: #F8C756; /* Vàng sáng */
  --hc-color-gold-300: #FFD700; /* Accent Light / Gold - Vàng sáng kết hợp gradient, icon */
  --hc-color-gold-200: #FFE580; /* Vàng sáng dịu */
  --hc-color-gold-100: #FFF3C4; /* Nền vàng bề mặt nhẹ */
  --hc-color-gold-50:  #FFFBEA; /* Nền vàng cực nhẹ */

  /* --- Industrial Primitives: Xanh công nghiệp THACO Industries --- */
  --hc-color-blue-700: #07539D; /* Xanh dương đậm THACO */
  --hc-color-blue-600: #0F6EB8; /* Xanh dương nhận diện THACO Industries */
  --hc-color-blue-100: #E1F0FA; /* Xanh dương bề mặt nhẹ */

  /* --- Neutral Primitives: Thang màu trung tính (Neutrals) --- */
  --hc-color-neutral-900: #1A1A2E; /* Text Dark - Tiêu đề, heading chính */
  --hc-color-neutral-800: #262938; /* Chữ tiêu đề cấp 2 */
  --hc-color-neutral-700: #374151; /* Text Body - Nội dung văn bản chính */
  --hc-color-neutral-600: #4B5563; /* Chữ văn bản thông thường */
  --hc-color-neutral-500: #6B7280; /* Text Light - Phụ đề, metadata, captions */
  --hc-color-neutral-400: #9CA3AF; /* Chữ placeholder, subtle muted */
  --hc-color-neutral-300: #D1D5DB; /* Chữ disabled, viền nhẹ */
  --hc-color-neutral-200: #E5E7EB; /* Đường viền thẻ, bảng */
  --hc-color-neutral-150: #EEF0F2; /* Đường viền siêu nhẹ */
  --hc-color-neutral-100: #F3F4F6; /* Nền phân cách */
  --hc-color-neutral-50:  #F8FAF9; /* Background Light - Nền tổng thể trang, section news */
  --hc-color-neutral-0:   #FFFFFF; /* Trắng tinh khiết */

  /* --- Status / Special Feedback Primitives --- */
  --hc-color-success: #059669; /* Thành công / Đạt chuẩn */
  --hc-color-warning: #D97706; /* Cảnh báo / Đang xử lý */
  --hc-color-danger:  #DC2626; /* Lỗi / Form validation */
  --hc-color-info:    #0068FF; /* Zalo Blue / Nút chat floating */
  --hc-color-zalo:    #0068FF; /* Zalo Blue */

  /* ========================================================================
     2. SEMANTIC TOKENS (Mục đích sử dụng & vai trò ngữ nghĩa)
     ======================================================================== */

  /* --- Brand Semantics --- */
  --hc-primary:             var(--hc-color-forest-700); /* #0D7C3E */
  --hc-primary-dark:        var(--hc-color-forest-850); /* #064A26 */
  --hc-primary-deeper:      var(--hc-color-forest-950); /* #032D17 */
  --hc-primary-hover:       var(--hc-color-forest-600); /* #1A9958 */
  --hc-primary-light:       var(--hc-color-forest-600); /* #1A9958 */
  --hc-primary-surface:     var(--hc-color-forest-100); /* #E8F5E9 */
  --hc-primary-soft:        var(--hc-color-forest-50);  /* #F0FFF4 */

  --hc-accent:              var(--hc-color-gold-500);   /* #F0B429 */
  --hc-accent-dark:         var(--hc-color-gold-600);   /* #D99E1E */
  --hc-accent-hover:        var(--hc-color-gold-600);   /* #D99E1E */
  --hc-accent-light:        var(--hc-color-gold-300);   /* #FFD700 */
  --hc-accent-pale:         var(--hc-color-gold-100);   /* #FFF3C4 */
  --hc-accent-glow:         rgba(240, 180, 41, 0.40);
  --hc-accent-border:       rgba(240, 180, 41, 0.55);

  --hc-thaco-blue:          var(--hc-color-blue-600);   /* #0F6EB8 */
  --hc-thaco-blue-dark:     var(--hc-color-blue-700);   /* #07539D */

  /* --- Gradient Semantics --- */
  --hc-gradient-primary:         linear-gradient(135deg, #0D7C3E 0%, #064A26 100%);
  --hc-gradient-primary-reverse: linear-gradient(135deg, #064A26 0%, #0D7C3E 100%);
  --hc-gradient-accent:          linear-gradient(135deg, #F0B429 0%, #FFD700 100%);
  --hc-gradient-hero-overlay:    linear-gradient(100deg, rgba(6, 74, 38, 0.92) 0%, rgba(13, 124, 62, 0.75) 40%, rgba(13, 124, 62, 0.45) 65%, rgba(0, 0, 0, 0.3) 100%);
  --hc-gradient-card-overlay:    linear-gradient(to top, rgba(3, 45, 23, 0.95) 0%, rgba(6, 74, 38, 0.6) 40%, transparent 100%);

  /* --- Typography Scale Semantics --- */
  --hc-font-family:         'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --hc-font-family-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --hc-font-size-xs:        12px;
  --hc-font-size-sm:        14px;
  --hc-font-size-base:      16px;
  --hc-font-size-md:        18px;
  --hc-font-size-lg:        20px;
  --hc-font-size-xl:        24px;
  --hc-font-size-2xl:       28px;
  --hc-font-size-3xl:       36px;
  --hc-font-size-4xl:       44px;

  --hc-font-weight-regular:   400;
  --hc-font-weight-medium:    500;
  --hc-font-weight-semibold:  600;
  --hc-font-weight-bold:      700;
  --hc-font-weight-extrabold: 800;

  --hc-line-height-tight:   1.2;
  --hc-line-height-snug:    1.35;
  --hc-line-height-normal:  1.5;
  --hc-line-height-relaxed: 1.65;

  --hc-letter-spacing-tight: -0.02em;
  --hc-letter-spacing-normal: 0em;
  --hc-letter-spacing-wide:  0.03em;
  --hc-letter-spacing-wider: 0.08em;

  /* --- Text Semantics --- */
  --hc-text-primary:        var(--hc-color-neutral-900); /* #1A1A2E */
  --hc-text-heading:        var(--hc-color-forest-850); /* #064A26 */
  --hc-text-body:           var(--hc-color-neutral-700); /* #374151 */
  --hc-text-muted:          var(--hc-color-neutral-500); /* #6B7280 */
  --hc-text-subtle:         var(--hc-color-neutral-400); /* #9CA3AF */
  --hc-text-inverse:        #FFFFFF;
  --hc-text-gold:           var(--hc-color-gold-500);   /* #F0B429 */

  /* --- Surface / Background Semantics --- */
  --hc-bg-body:             #FFFFFF;
  --hc-bg-page:             var(--hc-color-neutral-50);  /* #F8FAF9 */
  --hc-bg-card:             #FFFFFF;
  --hc-bg-surface-alt:      var(--hc-color-forest-50);  /* #F0FFF4 */
  --hc-bg-header:           #FFFFFF;
  --hc-bg-footer:           var(--hc-color-forest-850); /* #064A26 */
  --hc-bg-footer-dark:      var(--hc-color-forest-950); /* #032D17 */
  --hc-bg-banner-overlay:   var(--hc-gradient-hero-overlay);

  /* --- Border Semantics --- */
  --hc-border-subtle:       var(--hc-color-neutral-200); /* #E5E7EB */
  --hc-border-light:        var(--hc-color-neutral-150); /* #EEF0F2 */
  --hc-border-medium:       var(--hc-color-neutral-300); /* #D1D5DB */
  --hc-border-gold:         rgba(240, 180, 41, 0.60);
  --hc-border-primary:      var(--hc-color-forest-700); /* #0D7C3E */

  /* --- Border Radius Scale --- */
  --hc-radius-none:         0px;
  --hc-radius-xs:           8px;   /* Góc bo tiêu chuẩn */
  --hc-radius-sm:           8px;   /* Form inputs, select, logo wrap */
  --hc-radius-btn:          8px;   /* Chuẩn hóa nút bấm toàn hệ thống (Huy Cường Buttons) */
  --hc-radius-md:           8px;   /* Cards, Box container, Thumbnail */
  --hc-radius-lg:           8px;   /* Large modal, Feature cards */
  --hc-radius-xl:           8px;   /* Dialogs, Hero callouts */
  --hc-radius-pill:         9999px;/* Circular Badges, Tags */
  --hc-radius-circle:       50%;   /* Avatar, Play buttons, Status dots */

  /* --- Button Component Tokens (Quy chuẩn hệ thống nút bấm đồng bộ) --- */
  --hc-btn-height:          42px;
  --hc-btn-radius:          8px;
  --hc-btn-font-size:       13.5px;
  --hc-btn-font-weight:     700;
  --hc-btn-icon-size:       16px;
  --hc-btn-gap:             8px;

  /* --- Spacing Scale (4px standard grid) --- */
  --hc-space-1:             4px;
  --hc-space-2:             8px;
  --hc-space-3:             12px;
  --hc-space-4:             16px;
  --hc-space-5:             20px;
  --hc-space-6:             24px;
  --hc-space-7:             28px;
  --hc-space-8:             32px;
  --hc-space-10:            40px;
  --hc-space-12:            48px;
  --hc-space-14:            56px;
  --hc-space-16:            64px;
  --hc-space-20:            80px;

  /* --- Shadows & Elevation --- */
  --hc-shadow-xs:           0 1px 3px rgba(0, 0, 0, 0.05);
  --hc-shadow-sm:           0 2px 8px rgba(0, 0, 0, 0.04);
  --hc-shadow-md:           0 6px 18px rgba(6, 74, 38, 0.12);
  --hc-shadow-lg:           0 14px 34px rgba(6, 74, 38, 0.16);
  --hc-shadow-xl:           0 20px 40px rgba(0, 0, 0, 0.25);
  --hc-shadow-gold:         0 6px 20px rgba(240, 180, 41, 0.35);

  /* --- Transitions --- */
  --hc-transition-fast:     0.18s ease;
  --hc-transition-normal:   0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  --hc-transition-smooth:   0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Layout & Container Standards (Dóng theo Logo & Maps Footer) --- */
  --hc-container-max:       1400px;
  --hc-container-padding:   clamp(20px, 3.5vw, 48px);
  --hc-header-total-height: 90px;

  /* ========================================================================
     3. BACKWARD COMPATIBLE ALIASES
     ======================================================================== */
  --color-primary:          var(--hc-primary);
  --color-primary-dark:     var(--hc-primary-dark);
  --color-primary-light:    var(--hc-primary-light);
  --color-primary-surface:  var(--hc-primary-surface);
  --color-primary-hover:    var(--hc-primary-hover);
  --color-accent:           var(--hc-accent);
  --color-accent-dark:      var(--hc-accent-dark);
  --color-accent-light:     var(--hc-accent-light);
  --color-accent-glow:      var(--hc-accent-glow);
  --color-accent-border:    var(--hc-accent-border);
  --header-bg:              #FFFFFF;
  --header-bg-hover:        var(--hc-primary-hover);
  --header-gold:            var(--hc-accent);
  --header-gold-light:      var(--hc-accent-light);
  --header-gold-glow:       var(--hc-accent-glow);
  --header-total-height:    90px;
  --container-max:          var(--hc-container-max);
  --radius-sm:              var(--hc-radius-sm);
  --radius-pill:            var(--hc-radius-pill);
  --transition-fast:        var(--hc-transition-fast);
  --transition-normal:      var(--hc-transition-smooth);
  --font-family-base:       var(--hc-font-family);
  --font-family-heading:    var(--hc-font-family-heading);
  --font-family-sans:       var(--hc-font-family);
}

/* ==========================================================================
   GLOBAL UNIFIED CONTAINER (Dóng thẳng hàng tuyệt đối với Logo & Maps Footer)
   ========================================================================== */
.site-container,
.grid-container,
.hc-container {
  width: 100% !important;
  max-width: var(--hc-container-max, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  padding-right: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .site-container,
  .grid-container,
  .hc-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ==========================================================================
   4. UNIFIED COMPONENT UTILITY CLASSES (DÙNG CHUNG TOÀN BỘ CUSTOM BLOCKS)
   ========================================================================== */
/* Section Headings */
.hc-section-title {
  font-family: var(--hc-font-family-heading) !important;
  font-size: var(--hc-font-size-2xl) !important;
  font-weight: var(--hc-font-weight-bold) !important;
  color: var(--hc-text-heading) !important;
  line-height: var(--hc-line-height-snug) !important;
  letter-spacing: var(--hc-letter-spacing-normal) !important;
  position: relative;
  margin-bottom: var(--hc-space-4);
}

.hc-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--hc-accent);
  margin-top: var(--hc-space-2);
  border-radius: var(--hc-radius-xs);
}

/* Subtitle / Category Label */
.hc-subtitle {
  font-family: var(--hc-font-family) !important;
  font-size: var(--hc-font-size-xs) !important;
  font-weight: var(--hc-font-weight-semibold) !important;
  color: var(--hc-accent) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--hc-letter-spacing-wider) !important;
  display: inline-block;
  margin-bottom: var(--hc-space-2);
}

/* Unified Buttons */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hc-btn-gap, 8px);
  font-family: var(--hc-font-family) !important;
  font-size: var(--hc-btn-font-size, 13.5px);
  font-weight: var(--hc-btn-font-weight, 700);
  height: var(--hc-btn-height, 42px);
  padding: 0 var(--hc-space-5, 20px);
  border-radius: var(--hc-btn-radius, 8px);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--hc-transition-normal);
  border: 1px solid transparent;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-sizing: border-box;
}

.hc-btn svg {
  width: var(--hc-btn-icon-size, 16px);
  height: var(--hc-btn-icon-size, 16px);
  flex-shrink: 0;
  transition: transform var(--hc-transition-fast);
}

.hc-btn:hover svg {
  transform: translateX(3px);
}

.hc-btn-primary {
  background-color: var(--hc-primary);
  color: #FFFFFF !important;
  border-color: var(--hc-primary);
}

.hc-btn-primary:hover {
  background-color: var(--hc-primary-hover);
  border-color: var(--hc-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-md);
}

.hc-btn-gold {
  background-color: var(--hc-accent);
  color: #1A1A2E !important;
  border-color: var(--hc-accent);
  font-weight: 700;
}

.hc-btn-gold:hover {
  background-color: var(--hc-accent-hover);
  border-color: var(--hc-accent-hover);
  color: #1A1A2E !important;
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-gold);
}

.hc-btn-outline {
  background-color: transparent;
  color: var(--hc-primary) !important;
  border-color: var(--hc-primary);
}

.hc-btn-outline:hover {
  background-color: var(--hc-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Unified Badges / Tags */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--hc-space-1);
  padding: var(--hc-space-1) var(--hc-space-3);
  font-family: var(--hc-font-family);
  font-size: var(--hc-font-size-xs);
  font-weight: var(--hc-font-weight-semibold);
  border-radius: var(--hc-radius-pill);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--hc-letter-spacing-wide);
}

.hc-badge-gold {
  background-color: var(--hc-accent);
  color: #1A1A2E;
  font-weight: 700;
}

.hc-badge-green {
  background-color: var(--hc-primary-surface);
  color: var(--hc-primary-dark);
  font-weight: 700;
}

/* Unified Cards */
.hc-card-base {
  background-color: var(--hc-bg-card);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-md);
  box-shadow: var(--hc-shadow-sm);
  transition: all var(--hc-transition-normal);
  overflow: hidden;
}

.hc-card-base:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow-lg);
  border-color: var(--hc-border-gold);
}
