/* Shared top-of-page hero treatment, matched to the home page. */
.ge-home .ge-hero,
.ge-products-hub-hero,
.ge-catalog-hero,
.gtx-detail-hero,
.ge-equipment-hero,
.ge-services-hero,
.ge-projects-hero,
.ge-about-hero,
.ge-contact-hero,
.ge-faq-hero {
  isolation: isolate;
}

/* The homepage and page-template ribbons use one broad, clipped diagonal. */
.ge-home .ge-hero::after,
.ge-products-hub-hero::after,
.gtx-detail-hero::after,
.ge-equipment-hero .ge-equipment-slash,
.ge-services-hero .ge-services-slash,
.ge-projects-hero::after,
.ge-about-hero::after,
.ge-contact-hero::after,
.ge-faq-hero::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0, 174, 227, .82) !important;
  content: "";
  transform: none !important;
  clip-path: polygon(60% 0, 70% 0, 51% 100%, 41% 100%) !important;
  pointer-events: none !important;
}

/* Legacy markup uses child elements for the category/equipment/service slashes. */
.ge-catalog-hero .ge-catalog-hero-slash {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0, 174, 227, .82) !important;
  transform: none !important;
  clip-path: polygon(60% 0, 70% 0, 51% 100%, 41% 100%) !important;
  pointer-events: none !important;
}

.ge-home .ge-hero-copy,
.ge-products-hub-copy,
.ge-catalog-hero-content,
.ge-equipment-hero-inner,
.ge-services-hero-inner,
.ge-projects-hero-inner,
.ge-about-hero-copy,
.ge-contact-hero-inner,
.ge-faq-hero-inner,
.gtx-detail-hero-copy,
.gtx-detail-hero-gallery {
  position: relative;
  z-index: 3 !important;
}

/* Start each desktop hero copy block at the same inset from the hero top. */
@media (min-width: 768px) {
  .ge-home .ge-hero-inner,
  .ge-products-hub-copy,
  .ge-catalog-hero-content,
  .ge-equipment-hero-inner,
  .ge-services-hero-inner,
  .ge-projects-hero-inner,
  .ge-about-hero-copy,
  .ge-faq-hero-inner {
    align-self: flex-start !important;
    padding-top: 64px !important;
    padding-bottom: 0 !important;
  }
}

/* Keep the hero photos dark and the common headings legible over them. */
.ge-contact-hero {
  background-color: #031a34 !important;
  background-image: linear-gradient(90deg, rgba(3, 21, 43, .98) 0%, rgba(3, 27, 53, .92) 38%, rgba(3, 30, 54, .48) 66%, rgba(3, 22, 42, .12) 100%), var(--ge-contact-hero) !important;
  background-size: auto, cover !important;
  background-position: 0 0, center 54% !important;
  color: #fff;
}

.ge-contact-hero::before {
  z-index: 0 !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(3, 21, 43, .28), transparent 72%) !important;
  pointer-events: none;
}

.ge-contact-lead,
.ge-contact-map {
  position: relative;
  z-index: 3;
}

.ge-contact-lead h1,
.ge-contact-lead > p {
  color: #fff !important;
}

.ge-contact-lead h2 {
  color: #06b9e8 !important;
}

.ge-contact-phone {
  color: #fff !important;
}

/* FAQ title follows the homepage palette; the search field stays white. */
.ge-faq-hero h1,
.ge-faq-hero h2 {
  color: #fff !important;
}

.ge-faq-search {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, .97) !important;
}

.ge-faq-hero::before {
  z-index: 0 !important;
}

/* Keep every page hero on one shared canvas, like the home hero. */
.ge-home .ge-hero,
.ge-products-hub-hero,
.ge-catalog-hero,
.gtx-detail-hero,
.ge-equipment-hero,
.ge-services-hero,
.ge-projects-hero,
.ge-about-hero,
.ge-contact-hero,
.ge-faq-hero {
  box-sizing: border-box !important;
  height: 484px !important;
  min-height: 484px !important;
}

/* Keep homepage kicker and title spacing aligned with the other heroes. */
.ge-home .ge-hero .ge-kicker {
  margin: 0 0 18px !important;
}

.ge-home .ge-hero #ge-hero-title {
  margin-bottom: 8px !important;
}

.ge-home .ge-hero .ge-hero-copy {
  margin-top: 0 !important;
}

/* Compact the enquiry panel so it sits inside the shared hero height. */
.ge-contact-hero-inner {
  height: 100%;
  min-height: 0;
  padding-block: 0 !important;
}

.ge-contact-form-card {
  padding: 18px 22px 16px !important;
}

.ge-contact-form-card h2 {
  margin-bottom: 10px !important;
  font-size: 1.6rem !important;
}

.ge-contact-form {
  gap: 7px !important;
}

.ge-contact-form input {
  min-height: 40px !important;
  padding-block: 9px !important;
}

.ge-contact-form textarea {
  height: 66px !important;
  min-height: 66px !important;
  padding-block: 9px !important;
}

.ge-contact-form button {
  min-height: 44px !important;
}

@media (max-width: 767px) {
  .ge-home .ge-hero::after,
  .ge-products-hub-hero::after,
  .gtx-detail-hero::after,
  .ge-catalog-hero .ge-catalog-hero-slash,
  .ge-equipment-hero .ge-equipment-slash,
  .ge-services-hero .ge-services-slash,
  .ge-projects-hero::after,
  .ge-about-hero::after,
  .ge-contact-hero::after,
  .ge-faq-hero::after {
    clip-path: polygon(83% 0, 94% 0, 76% 100%, 65% 100%) !important;
  }

  .ge-contact-hero-inner {
    position: relative;
    z-index: 3 !important;
  }

  .ge-home .ge-hero,
  .ge-products-hub-hero,
  .ge-catalog-hero,
  .gtx-detail-hero,
  .ge-equipment-hero,
  .ge-services-hero,
  .ge-projects-hero,
  .ge-about-hero,
  .ge-contact-hero,
  .ge-faq-hero {
    height: 620px !important;
    min-height: 620px !important;
  }

  .ge-contact-hero-inner {
    height: 100%;
    gap: 10px !important;
    padding-block: 0 !important;
  }
}

@media (max-width: 479px) {
  .ge-home .ge-hero::after,
  .ge-products-hub-hero::after,
  .gtx-detail-hero::after,
  .ge-catalog-hero .ge-catalog-hero-slash,
  .ge-equipment-hero .ge-equipment-slash,
  .ge-services-hero .ge-services-slash,
  .ge-projects-hero::after,
  .ge-about-hero::after,
  .ge-contact-hero::after,
  .ge-faq-hero::after {
    clip-path: polygon(87% 0, 98% 0, 80% 100%, 69% 100%) !important;
  }
}
