/* Homepage factory hero + product-center carousel (aligned with honeywelldetector.com layout). */

.home-wrapper,
.home-hero {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] .home-wrapper,
html[lang^="ar"] .home-wrapper,
html[dir="rtl"] .home-hero {
  font-family: "Segoe UI", "Tahoma", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif;
}

.home-wrapper h1,
.home-wrapper h2,
.home-wrapper h3,
.home-wrapper h4,
.home-hero h1 {
  font-family: inherit;
}

.home-wrapper p {
  line-height: 1.75;
}

.home-wrapper .home-nav a {
  font-size: 13px;
  letter-spacing: .02em;
}

.home-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(72vh, 620px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #142033;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 46%;
  z-index: 0;
  transform: scale(1.04);
  animation: homeHeroKen 18s ease-in-out alternate both;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(12, 22, 40, .88) 0%, rgba(12, 22, 40, .52) 42%, rgba(12, 22, 40, .12) 72%, rgba(12, 22, 40, .04) 100%),
    linear-gradient(to top, rgba(10, 16, 28, .72) 0%, transparent 48%);
}

.home-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 35%, transparent 90%);
  opacity: .5;
}

@keyframes homeHeroKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media { animation: none; transform: none; }
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.5rem 0 3.4rem;
  max-width: 640px;
  margin-left: max(16px, calc(50% - 490px));
}

html[dir="rtl"] .home-hero-content {
  /* Keep copy on the open left so it does not cover the XCD on the right. */
  margin-left: max(16px, calc(50% - 490px));
  margin-right: auto;
}

.home-hero-brand {
  margin: 0 0 .7rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.3;
  color: #dbeafe;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.home-hero-brand::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 10px;
  margin-bottom: .22em;
  vertical-align: middle;
  background: var(--theme-primary, #2f9cdc);
  box-shadow: 0 0 12px rgba(47, 156, 220, .55);
}

html[lang="en"] .home-hero-brand,
html[lang="ms"] .home-hero-brand,
html[lang="ru"] .home-hero-brand {
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 .9rem;
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.28rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .38);
}

.home-hero-lead {
  margin: 0;
  color: rgba(235, 244, 255, .9);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  max-width: 32em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}

.home-hero-btn:hover { transform: translateY(-1px); }

.home-hero-btn.primary {
  background: var(--theme-primary, #2f9cdc);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 156, 220, .35);
}

.home-hero-btn.primary:hover {
  background: var(--theme-primary-dark, #1e7bb8);
  color: #fff;
}

.home-hero-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}

.home-hero-btn.ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.slide_c {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0;
  background: #eef4ff;
  height: auto !important;
}
.slide_c::before {
  content: "";
  display: block;
  padding-top: 38%;
}
.slide_c .fullimg {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}
.slide_c .fullimg:first-of-type { display: block; }
.slide_c .fullimg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.slide_c .ico_c { left: 14px; bottom: 14px; height: 34px; }
.slide_c .ico_c li { width: 56px; height: 28px; border-width: 2px; margin-right: 8px; }
.slide_c .ico_c img { width: 56px; height: 28px; }

.home-carousel-foot {
  margin-top: 0;
}

.home-carousel-foot.slide_c::before {
  padding-top: 42%;
}

.home-carousel-label {
  max-width: 980px;
  margin: 12px auto 8px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-primary-dark, #1e3a8a);
}

/* Product-center full-bleed banner, same as homepage hero. */
.product-hero-band {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  background: #142033;
  overflow: hidden;
}
.product-hero-band .home-carousel-foot.slide_c::before {
  padding-top: 42%;
}
.product-hero-band .slide_c {
  width: 100%;
  max-width: none;
  margin: 0;
}
.product-hero-band .home-carousel-label {
  position: absolute;
  z-index: 3;
  left: max(16px, calc(50% - 490px));
  bottom: 54px;
  margin: 0;
  padding: 0;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
html[dir="rtl"] .product-hero-band .home-carousel-label {
  left: auto;
  right: max(16px, calc(50% - 490px));
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 52vh;
    align-items: center;
  }
  .home-hero-media {
    object-position: 88% 42%;
  }
  .home-hero-content {
    margin: 0 auto;
    padding: 3.2rem 16px 2.4rem;
    max-width: 100%;
  }
  html[dir="rtl"] .home-hero-content {
    margin: 0 auto;
  }
  .home-hero-brand { font-size: .88rem; letter-spacing: .16em; }
  .home-hero h1 { font-size: clamp(1.35rem, 6vw, 1.85rem); }
  .slide_c::before,
  .home-carousel-foot.slide_c::before {
    padding-top: 56%;
  }
  .product-hero-band .home-carousel-label {
    left: 16px;
    bottom: 48px;
  }
  html[dir="rtl"] .product-hero-band .home-carousel-label {
    left: auto;
    right: 16px;
  }
}

/* Homepage body copy — override SimSun / Verdana on the home page only. */
.home-kpi .kpi-num {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  color: var(--theme-primary-dark, #1e3a8a);
}

.home-kpi .kpi-lab {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #64748b;
}

.home-seo-intro {
  font-size: 15.5px;
  line-height: 1.85;
  color: #334155;
}

.home-seo-intro p {
  margin: 0 0 12px;
}

.home-seo-intro .seo-h2 {
  margin: 1.15rem 0 .55rem;
  padding-left: 10px;
  border-left: 3px solid var(--theme-primary, #2f9cdc);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  color: var(--theme-primary-dark, #1e3a8a);
}

html[dir="rtl"] .home-seo-intro .seo-h2 {
  padding-left: 0;
  padding-right: 10px;
  border-left: 0;
  border-right: 3px solid var(--theme-primary, #2f9cdc);
}

.home-seo-intro a {
  color: var(--theme-primary-dark, #1d4ed8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--theme-primary, #2f9cdc) 45%, transparent);
}

.home-seo-intro a:hover {
  color: var(--theme-primary, #2f9cdc);
}

.home-featured-products .hfp-header h3,
.hps-header h3,
.news-card h4 {
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--theme-primary-dark, #1e3a8a);
}

.home-featured-card .hfp-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.home-featured-card .hfp-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #0f172a;
}

.home-featured-card .hfp-desc,
.hps-card span:last-child {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.hps-group-head h4 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.home-wrapper .footer {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

html[dir="rtl"] .home-hero-lead,
html[dir="rtl"] .home-seo-intro {
  line-height: 1.95;
}
