/* JPG Hawaii — block typography
   Large headings live in their own solid block (white / #f7fafa), never
   overlapping photos. Loaded after main.css and responsive.css.
   Brand fonts and colors are unchanged (ITC Avant Garde, #383939, #4db848).
*/

/* -------------------------------------------------------------------------- */
/* Kill the Craft-era overflow typography (140% / 240% / 340% / 130% widths,  */
/* floats, and the negative margin that pulled images under section titles).  */
/* -------------------------------------------------------------------------- */

.section1 h1,
.section1 h2.jh-was-h1,
.section1 .section_title {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

.section2 .section_title,
.section3 .section_title,
.alternate-img-content .section_title,
.alternate-img-content .flex-row.right .section_title {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

.section3 .image-5 {
  margin-top: 0 !important;
}

.section4 .flex-row {
  margin-top: 0 !important;
}

.section4 .section_title {
  padding-left: 0 !important;
}

.section4 .column1,
.section4 .column2,
.section4 .column3 {
  padding-top: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Text blocks: solid background, dark text, generous padding                 */
/* -------------------------------------------------------------------------- */

.jh-block-text {
  background: #f7fafa;
  padding: 36px 40px 32px;
  margin-bottom: 32px;
}

.jh-block-text > .section_title:last-child,
.jh-block-text > .section_title-light:last-child,
.jh-block-text > p:last-child,
.jh-block-text > ul:last-child {
  margin-bottom: 0;
}

.section1 .jh-block-text .section_title-light {
  margin-bottom: 12px;
}

.section1 .jh-block-text .section_title {
  margin-bottom: 20px;
}

/* Image rows / grids sitting beside or below the text, never under it */
.jh-block-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
  align-items: stretch;
}

.jh-block-images .jh-block-image {
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.jh-block-images img,
.section1 .jh-block-images img.image-1,
.section1 .jh-block-images img.image-2,
.section3 .jh-block-images img.image-4,
.section3 .jh-block-images img.image-5,
.section3 .jh-block-images img.image-6 {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}

.jh-block-images .mb-90,
.jh-block-images img.mb-90 {
  margin-bottom: 0 !important;
}

/* Homepage pair: equal square tiles so the life ring and truck share a row */
.section1 .jh-block-images img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  height: auto;
}
.section1 .jh-block-images img.image-2 {
  object-position: left center;
}

/* Solutions: featured landscape (image-5) beside a stack of the other two */
.section3 .jh-block-images {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 560px;
  aspect-ratio: 2 / 1;
}

.section3 .jh-block-images .jh-block-image:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.section3 .jh-block-images .jh-block-image:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.section3 .jh-block-images .jh-block-image:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.section3 .jh-block-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: none;
}

/* -------------------------------------------------------------------------- */
/* Heroes (FLAGGED): full-bleed photo, then a solid text band below it.       */
/* The headline stays large; it is no longer absolutely positioned over the   */
/* photograph (where it disappeared against dark or busy areas).              */
/* -------------------------------------------------------------------------- */

.text_banner_sec.jh-hero-blocks {
  position: relative;
}

.text_banner_sec.jh-hero-blocks > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
}

.text_banner_sec.jh-hero-blocks .container {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: block !important;
  background: #fff;
  padding: 44px 20px 52px;
  border-bottom: 1px solid #ececec;
  box-shadow: inset 0 4px 0 0 #4db848;
}

.text_banner_sec.jh-hero-blocks .container .flex-row {
  display: block;
  margin: 0;
}

.text_banner_sec.jh-hero-blocks .container .col-75,
.text_banner_sec.jh-hero-blocks .container .col-50 {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.text_banner_sec.jh-hero-blocks .container h1.section_title,
.text_banner_sec.jh-hero-blocks .container h2.section_title,
.text_banner_sec.jh-hero-blocks .container h1,
.text_banner_sec.jh-hero-blocks .container h2 {
  color: #383939 !important;
  text-wrap: balance;
}

.text_banner_sec.jh-hero-blocks .ctas {
  margin-top: 8px;
}

/* -------------------------------------------------------------------------- */
/* Industry intro (alternate-img-content): text stays in its column           */
/* -------------------------------------------------------------------------- */

.alternate-img-content.jh-blocks-applied .flex-row {
  align-items: stretch;
}

.alternate-img-content .col-content.jh-block-text {
  background: #f7fafa;
  padding: 48px 40px;
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alternate-img-content .section_title,
.alternate-img-content .section_title-light {
  max-width: 100%;
}

.alternate-img-content.jh-blocks-applied .col-img {
  height: auto;
  min-height: 520px;
  overflow: hidden;
}

.alternate-img-content.jh-blocks-applied .col-img img {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* -------------------------------------------------------------------------- */
/* "Other solutions you might like" — title block above the three images      */
/* -------------------------------------------------------------------------- */

.section4 .title_wrap.jh-block-text,
.section4 .title_wrap {
  background: #f7fafa;
  padding: 36px 24px 28px;
  margin-bottom: 28px;
  text-align: center;
}

.section4 .title_wrap .section_title,
.section4 .title_wrap .section_title-light {
  display: block;
  text-align: center;
}

.section4.jh-blocks-applied figure {
  margin: 0;
}

.section4.jh-blocks-applied figure img,
.section4.jh-blocks-applied .image-8,
.section4.jh-blocks-applied .image-9,
.section4.jh-blocks-applied .image-10 {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  max-height: none !important;
}

/* -------------------------------------------------------------------------- */
/* Carousel / figure captions: sit under the photo on a solid background,     */
/* not absolutely positioned over a dark gradient.                            */
/* -------------------------------------------------------------------------- */

figure .subheader,
.carousel figure figcaption,
.carousel figure figcaption.subheader,
.section12 figure figcaption {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: auto !important;
  z-index: auto;
  color: #383939 !important;
  background: #fff;
  padding: 14px 4px 0 !important;
  margin: 0;
  border-top: 0 !important;
  font-family: ITCAvantGardePro-Bold, sans-serif;
}

.carousel figure a,
.section12 figure a {
  display: flex;
  flex-direction: column;
  color: #383939;
}

.carousel figure .darken,
.section12 figure .darken {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .jh-block-text {
    padding: 24px 20px 20px;
    margin-bottom: 20px;
  }

  .alternate-img-content .col-content.jh-block-text {
    padding: 28px 20px;
  }

  .alternate-img-content.jh-blocks-applied .col-img {
    min-height: 280px;
    height: 280px;
  }

  .section1 .jh-block-images,
  .section3 .jh-block-images,
  .jh-block-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .section3 .jh-block-images .jh-block-image {
    grid-column: auto;
    grid-row: auto;
  }

  .section1 .jh-block-images img,
  .section3 .jh-block-images img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
  }

  .text_banner_sec.jh-hero-blocks .container {
    padding: 28px 16px 36px;
  }

  .section4 .title_wrap.jh-block-text,
  .section4 .title_wrap {
    padding: 24px 16px 20px;
    margin-bottom: 20px;
  }
}


/* Logo strip: gray band stays full-bleed even when inner content is capped. */
.section-brands-marquee {
  width: 100%;
  max-width: none;
  background-color: #f6f6f6;
}
/* -------------------------------------------------------------------------- */
/* Ultra-wide and large desktops                                              */
/* The full-bleed hero photo used to scale with viewport width and grow so    */
/* tall it filled the screen, pushing "Brands Who Trust JPG" below the fold.  */
/* Cap the photograph's height, keep it cover-cropped and full-bleed, and     */
/* center header/nav/content on a ~1600px rail. Backgrounds stay edge-to-edge.*/
/* -------------------------------------------------------------------------- */

@media (min-width: 1600px) {
  .page_header .container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* The original -60px pull was meant to pin the button to the viewport edge.
     With a centered rail, keep it inside the container. */
  .page_header .pri_header .btn-header,
  .page_header .pri_header .btn-get_pricing {
    margin-right: 0;
  }

  /* Let the headline use the same 1600px rail as the header (the site
     .container is 1440px, which is too tight for a one-line headline). */
  .text_banner_sec.jh-hero-blocks .container {
    max-width: 1600px;
  }
  .text_banner_sec.jh-hero-blocks .container .col-75,
  .text_banner_sec.jh-hero-blocks .container .col-50 {
    max-width: 1600px;
  }
  .text_banner_sec.jh-hero-blocks .container h1.section_title,
  .text_banner_sec.jh-hero-blocks .container h2.section_title,
  .text_banner_sec.jh-hero-blocks .container h1,
  .text_banner_sec.jh-hero-blocks .container h2 {
    font-size: clamp(52px, 3.5vw, 72px);
    line-height: 1.15;
    white-space: nowrap;
  }
}

/* The Craft .section rule adds 70px of padding under the hero; that gap
   would push the logo strip below the fold once the headline lives in a
   band beneath the photo. */
.section.section6:has(.jh-hero-blocks) {
  padding-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .text_banner_sec.jh-hero-blocks > img,
  .section.section6 .text_banner_sec > img {
    display: block;
    width: 100%;
    height: clamp(340px, 40vh, 520px);
    max-height: 520px;
    object-fit: cover;
    object-position: center 20%;
  }
}

/* 1080p and other short desktops: tighten the headline band so the logo
   strip still clears the fold under the capped photo. */
@media (min-width: 1024px) and (max-height: 1100px) {
  .text_banner_sec.jh-hero-blocks .container {
    padding: 20px 20px 24px;
  }
  .text_banner_sec.jh-hero-blocks .container h1.section_title,
  .text_banner_sec.jh-hero-blocks .container h2.section_title,
  .text_banner_sec.jh-hero-blocks .container h1,
  .text_banner_sec.jh-hero-blocks .container h2 {
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .section-brands-marquee {
    padding: 16px 0 12px;
  }
  .section-brands-marquee .title_wrap {
    margin-bottom: 16px;
  }
}

/* Phones and tablets: don't use the desktop height cap. Keep a readable
   photo (min 260px) without letting it dominate a short mobile viewport. */
@media (max-width: 1023px) {
  .text_banner_sec.jh-hero-blocks > img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: min(70vh, 480px);
    object-fit: cover;
    object-position: center 20%;
  }
}
