/* Shared hero system for the primary site pages. */
.hero {
  min-height: 460px !important;
  padding: 0 !important;
  isolation: isolate;
  background-color: #07090d;
}

.hero-bg img {
  opacity: .7 !important;
  object-position: center 50%;
  transform: none !important;
}

.hero::before,
.hero-overlay {
  background: linear-gradient(90deg, rgba(5, 7, 10, .94) 0%, rgba(5, 7, 10, .78) 48%, rgba(5, 7, 10, .28) 100%) !important;
}

.hero::after {
  height: 62px !important;
  background: linear-gradient(180deg, transparent, var(--bg-1)) !important;
}

.hero-inner {
  width: 100%;
  padding-top: 48px !important;
  padding-bottom: 58px !important;
  text-align: start;
}

.breadcrumb {
  margin-bottom: 22px !important;
  color: #aeb7c4 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.breadcrumb a {
  border-bottom-color: rgba(255, 255, 255, .18) !important;
}

.eyebrow {
  gap: 8px !important;
  padding: 5px 10px !important;
  border-color: rgba(225, 29, 42, .3) !important;
  background: rgba(225, 29, 42, .07) !important;
  color: #ffb8be !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
}

.eyebrow .dot {
  width: 5px !important;
  height: 5px !important;
  box-shadow: none !important;
}

.hero h1 {
  max-width: 860px !important;
  margin: 14px 0 16px !important;
  font-size: clamp(42px, 4.75vw, 64px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: balance;
}

.hero h1 .red {
  text-shadow: none !important;
}

.hero .sub,
.hero .hero-lede {
  max-width: 700px !important;
  margin: 0 !important;
  color: #d3d9e2 !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

/* Arabic is supplied by data-ar on the main copy; hide legacy duplicate lines. */
.hero .sub-ar,
.hero-pills {
  display: none !important;
}

.hero-cta {
  gap: 10px !important;
  margin-top: 24px !important;
}

.hero .cta {
  min-height: 44px;
  padding: 10px 17px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
}

.hero .cta:hover {
  transform: translateY(-1px) !important;
}

.hero-home .hero {
  min-height: 540px !important;
}

.hero-home .hero-inner {
  padding-top: 62px !important;
  padding-bottom: 68px !important;
}

.hero-home .hero h1 {
  max-width: 800px !important;
  font-size: clamp(48px, 5.8vw, 80px) !important;
}

.hero-directory .hero,
.hero-about .hero {
  min-height: 500px !important;
}

.hero-contact .hero {
  min-height: 440px !important;
}

.hero-contact .hero-cta .cta:nth-child(3) {
  padding-inline: 8px !important;
  border-color: transparent !important;
  background: transparent !important;
}

html[dir="rtl"] .hero::before,
html[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(5, 7, 10, .94) 0%, rgba(5, 7, 10, .78) 48%, rgba(5, 7, 10, .28) 100%) !important;
}

html[dir="rtl"] .hero-inner,
html[dir="rtl"] .hero .sub,
html[dir="rtl"] .hero .hero-lede {
  text-align: right;
}

@media (max-width: 900px) {
  .hero,
  .hero-directory .hero,
  .hero-about .hero,
  .hero-contact .hero {
    min-height: 420px !important;
  }

  .hero-home .hero {
    min-height: 480px !important;
  }

  .hero-inner,
  .hero-home .hero-inner {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }

  .hero h1,
  .hero-home .hero h1 {
    font-size: 52px !important;
  }
}

@media (max-width: 640px) {
  .hero,
  .hero-home .hero,
  .hero-directory .hero,
  .hero-about .hero,
  .hero-contact .hero {
    min-height: 0 !important;
    align-items: flex-start !important;
  }

  .hero::after {
    height: 34px !important;
  }

  .hero-bg img {
    opacity: .55 !important;
    object-position: center !important;
  }

  .hero-inner,
  .hero-home .hero-inner {
    padding-top: 28px !important;
    padding-bottom: 36px !important;
  }

  .breadcrumb {
    margin-bottom: 17px !important;
    font-size: 11.5px !important;
  }

  .hero h1,
  .hero-home .hero h1 {
    max-width: 100% !important;
    margin: 12px 0 13px !important;
    font-size: 38px !important;
    line-height: 1.04 !important;
    overflow-wrap: break-word;
  }

  .service-reprogrammation .hero h1,
  .service-refroidissement .hero h1 {
    font-size: 34px !important;
  }

  .hero .sub,
  .hero .hero-lede {
    max-width: 100% !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  .hero-cta {
    display: flex !important;
    width: 100%;
    gap: 9px !important;
    margin-top: 20px !important;
  }

  .hero .hero-cta .cta {
    flex: 1 1 145px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px !important;
    white-space: normal;
    text-align: center;
  }

  .hero-contact .hero-cta .cta:nth-child(3) {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .cta {
    transition: none !important;
  }
}
