/* =========================================================
   PAGE HERO – shared by every inner-page banner (.hero-banner)
   Matches the Logistics banner (inc/logistics-hero.php):
   same zoom, fade-in, title, orange rule, button and promo tab.
   Loaded after each hero's own <style>, so these rules win.
   ========================================================= */

/* ---------- Banner (photo + dark overlay) ---------- */
.hero-banner {
  /* ~680px of banner below the fixed header, shorter on short screens,
     and it grows if the content (e.g. intro text) needs more room */
  height: auto;
  min-height: 900px; /* same as the Logistics banner, so the photo shows fully */
  max-height: none;
  padding: 152px 0 70px; /* top includes the fixed header */
  animation: none;
  background-color: #1C355E;
  font-family: 'Poppins', sans-serif;
}
/* the photo sits on its own layer so only the photo zooms, not the text */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: pageHeroZoom 5s ease-in-out forwards;
}
.hero-banner::before {
  background: rgba(0, 0, 0, .45);
}
@keyframes pageHeroZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---------- Content ---------- */
.hero-banner-content {
  padding: 0 24px;
  animation: pageHeroFadeIn 1s ease-in-out .5s both;
}
@keyframes pageHeroFadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-banner-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6.6vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -.5px;
  width: auto;
  max-width: 1100px;
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-banner-content .hero-banner-intro {
  max-width: 960px;
  margin: 0 auto 14px;
  padding: 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.hero-banner-content .hero-banner-intro + .hero-banner-intro {
  margin-bottom: 34px;
}
.hero-line {
  display: block;
  width: 280px;
  max-width: 60%;
  height: 6px;
  border: 0;
  border-radius: 6px;
  background: #e67e22;
  margin: 28px auto 34px;
}

/* ---------- Button ---------- */
.hero-banner-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  border-radius: 4px;
  background: #e67e22;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .3s, transform .3s, box-shadow .3s;
}
.hero-banner-btn:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 131, 42, .4);
}
.hero-banner-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hero-banner-btn svg {
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.hero-banner-btn:hover svg {
  transform: translateX(5px);
}

/* ---------- Promo tab (bottom right) ---------- */
.bt-div {
  width: auto;
  max-width: none;
  bottom: 0;
  right: 0;
}
.half-cross-right {
  margin: 0;
  max-height: none;
  padding: 22px 58px 22px 90px;
  background: #e67e22;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
}
.half-cross-right::before,
.half-cross-right::after {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-banner {
    min-height: 640px;
  }
  .half-cross-right {
    font-size: 1.05rem;
    padding: 16px 30px 16px 60px;
    clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
  }
}
@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    max-height: none;
    min-height: 560px;
    margin-top: 0;
    padding: 130px 0 90px;
  }
  .bt-div,
  .bt-div[style] {
    width: auto;
    bottom: 0 !important;
    right: 0 !important;
  }
}
@media (max-width: 560px) {
  .hero-line {
    height: 5px;
    margin: 22px auto 26px;
  }
  .hero-banner-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }
  .hero-banner-content .hero-banner-intro {
    font-size: 15px;
    line-height: 24px;
  }
  .hero-banner-btns {
    flex-direction: column;
  }
  .half-cross-right {
    font-size: .95rem;
    padding: 13px 22px 13px 44px;
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  }
  .half-cross-right br,
  .hero-banner-content h1 br {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner::after,
  .hero-banner-content,
  .bt-div {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
