/* ==========================================================================
   AROVA HOMEPAGE HERO BANNER & BENEFITS STYLES
   - Fixed: Red subtitle, solid navy heading, outline button with dark navy border
   - Căn thẳng hàng: Dịch khối 5 badges sang trái 30px (margin-left: -30px) để icon & text ĐỘ BÁM DÍNH căn thẳng tắp với nút KHÁM PHÁ SẢN PHẨM
   - Fix lỗi zoom ra: Tự động co giãn tỷ lệ thuận fluid (vw / benefit-unit) khi zoom ra hoặc ở màn hình 2K, 4K, Ultrawide
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP STYLES (>= 1025px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  /* Subtitle: AROVA SILICONE SEALANT (Red uppercase + red line) */
  .home-hero-wrap .home-hero-sub-wrap {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
  }

  .home-hero-wrap .home-hero-sub {
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #c3252b !important; /* Brand Red */
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .home-hero-wrap .home-hero-red-line {
    background-color: #c3252b !important;
    border-radius: 2px !important;
    margin-top: 6px !important;
  }

  /* Main Heading: GIẢI PHÁP KẾT DÍNH CHO CÔNG TRÌNH HIỆN ĐẠI (Solid Navy) */
  .home-hero-wrap .home-hero-heading,
  h1.home-hero-heading {
    color: #132849 !important;
    letter-spacing: -0.01em !important;
  }

  /* "HIỆN ĐẠI" must be solid navy blue, matching the rest of heading */
  .home-hero-wrap .home-hero-heading .text-red,
  h1.home-hero-heading .text-red {
    color: #132849 !important;
  }

  /* Description text */
  .home-hero-wrap .home-hero-desc {
    color: #222222 !important;
    font-weight: 600 !important;
  }

  /* CTA Buttons */
  .home-hero-wrap .home-btn-red {
    background-color: #c3252b !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(195, 37, 43, 0.28) !important;
  }

  .home-hero-wrap .home-btn-outline {
    background-color: #ffffff !important;
    color: #132849 !important;
    border: 1.5px solid #132849 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(19, 40, 73, 0.06) !important;
  }

  .home-hero-wrap .home-btn-outline i {
    color: #132849 !important;
  }

  .home-hero-wrap .home-btn-outline:hover {
    background-color: #132849 !important;
    color: #ffffff !important;
    border-color: #132849 !important;
  }

  .home-hero-wrap .home-btn-outline:hover i {
    color: #ffffff !important;
  }
}

/* --------------------------------------------------------------------------
   2. FIVE BENEFITS BADGES (Grid layout + Scalable Unit System)
   -------------------------------------------------------------------------- */
.home-hero-badges.home-hero-benefits {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0 !important;
}

.home-hero-benefits .home-hero-badge-item {
  position: relative !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
}

.home-hero-benefits .home-hero-badge-item + .home-hero-badge-item::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  background: rgba(19, 40, 73, 0.22) !important;
}

.home-hero-benefits .home-badge-img-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-hero-benefits .home-badge-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.home-hero-benefits .home-icon-coins img {
  transform: scale(1.2) !important;
}

.home-hero-benefits .home-badge-label {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.35 !important;
  color: #132849 !important;
}

/* Desktop sizing & scaling system (>= 1025px) */
@media (min-width: 1025px) {
  .home-hero-badges.home-hero-benefits {
    --benefit-unit: max(.833333px, .052083333vw);
    width: calc(740 * var(--benefit-unit)) !important;
    /* Xích sang trái tầm 30px để icon & label căn thẳng tắp với nút */
    margin-left: calc(-30 * var(--benefit-unit)) !important;
    max-width: none !important;
    margin-bottom: calc(34 * var(--benefit-unit)) !important;
  }

  .home-hero-benefits .home-hero-badge-item {
    padding: 0 calc(8 * var(--benefit-unit)) !important;
    gap: calc(5 * var(--benefit-unit)) !important;
  }

  .home-hero-benefits .home-hero-badge-item + .home-hero-badge-item::before {
    top: calc(8 * var(--benefit-unit)) !important;
    bottom: calc(2 * var(--benefit-unit)) !important;
    width: max(1px, var(--benefit-unit)) !important;
  }

  .home-hero-benefits .home-badge-img-wrap {
    width: calc(54 * var(--benefit-unit)) !important;
    height: calc(54 * var(--benefit-unit)) !important;
    flex: 0 0 calc(54 * var(--benefit-unit)) !important;
  }

  .home-hero-benefits .home-badge-label {
    font-size: calc(11.8 * var(--benefit-unit)) !important;
  }
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE SIZES & FLUID SCALING (Fix lỗi zoom ra / màn to)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1799.98px) {
  .home-hero-wrap .home-hero-sub {
    font-size: 17px !important;
  }
  .home-hero-wrap .home-hero-red-line {
    width: 48px !important;
    height: 3px !important;
  }
}

@media (min-width: 1800px) {
  .home-hero-wrap .home-hero-sub-wrap {
    margin-bottom: clamp(12px, 0.8vw, 18px) !important;
  }
  .home-hero-wrap .home-hero-sub {
    font-size: clamp(17px, 1.0vw, 21px) !important;
  }
  .home-hero-wrap .home-hero-red-line {
    width: clamp(44px, 2.4vw, 54px) !important;
    height: 3px !important;
  }
}

@media (min-width: 2000px) {
  .home-hero-wrap .home-hero-sub-wrap {
    margin-bottom: 0.8vw !important;
  }
  .home-hero-wrap .home-hero-sub {
    font-size: 1.05vw !important;
  }
  .home-hero-wrap .home-hero-red-line {
    width: 2.6vw !important;
    height: 0.18vw !important;
  }
}

/* --------------------------------------------------------------------------
   4. TABLET & MOBILE (<= 1024px) - Dark overlay with white text
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-hero-wrap .home-hero-heading,
  h1.home-hero-heading {
    color: #ffffff !important;
  }

  .home-hero-wrap .home-hero-heading .text-red,
  h1.home-hero-heading .text-red {
    color: #ffffff !important;
  }

  .home-hero-wrap .home-hero-desc {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .home-hero-badges.home-hero-benefits {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .home-hero-benefits .home-hero-badge-item + .home-hero-badge-item::before {
    background: rgba(255, 255, 255, 0.3) !important;
    top: 9px !important;
    bottom: 2px !important;
    width: 1px !important;
  }

  .home-hero-benefits .home-badge-img-wrap {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
  }

  .home-hero-benefits .home-badge-img-wrap img {
    filter: brightness(0) invert(1) !important;
  }

  .home-hero-benefits .home-badge-label {
    color: #ffffff !important;
    font-size: 11.5px !important;
  }
}

@media (max-width: 640px) {
  .home-hero-badges.home-hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 8px !important;
  }

  .home-hero-benefits .home-hero-badge-item + .home-hero-badge-item::before {
    display: none !important;
  }

  .home-hero-benefits .home-hero-badge-item:last-child {
    grid-column: 1 / -1 !important;
  }
}
