/*
 * /products/. The page reuses the Divisions page's Divi styles for the header, hero and contact
 * band; the rules below style the hero photo and the two sections. Prefixed with #page-container
 * to win over Divi's defaults. No CSS nesting, so older Safari versions render it too.
 */

/* Hero photo with the gradient the group heroes use, the home hero's small eyebrow, and room
   above and below the copy at every width. */
#page-container .et_pb_slide_0 { background-image: linear-gradient(90deg, rgba(3, 52, 43, .9) 0%, rgba(3, 52, 43, .62) 42%, rgba(3, 52, 43, 0) 78%), url(/assets-a204d2617b076442/products/hero-storage.jpg); }
#page-container .et_pb_slide_0 .et_pb_slide_description { padding-top: 56px !important; padding-bottom: 64px !important; }
#page-container .products-hero-eyebrow { margin: 0 0 14px; padding: 0; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 3px; line-height: 1.4; text-transform: uppercase; }

/* Solid orange buttons like the home hero's. */
#page-container .products-actions { display: flex; flex-wrap: wrap; gap: 12px 38px; margin-top: 28px; }
#page-container .products-btn {
  display: inline-block;
  width: fit-content;
  align-self: start;
  padding: 14px 24px;
  border-radius: 2px;
  background: #ec6a1f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

#page-container .products-section h2 { margin: 0; padding: 0; font-size: 30px; line-height: 1.2; text-wrap: balance; }
#page-container .products-wrap { width: 80%; max-width: 1440px; margin: 0 auto; }
#page-container .products-section { padding: 48px 0; }
#page-container .products-section--tint { background: #f4f6f4; }
#page-container .products-eyebrow {
  margin: 0 0 10px;
  color: #296f37;
  line-height: 1.5;
  text-wrap: balance;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* The short green divider of the division cards. */
#page-container .products-divider { display: block; width: 54px; height: 4px; margin: 18px 0 16px; background: #286140; }

#page-container .products-checklist { margin: 0; padding: 0; list-style: none; }
#page-container .products-checklist li { position: relative; padding: 6px 0 6px 28px; line-height: 1.6; }
#page-container .products-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #296f37;
  border-bottom: 2px solid #296f37;
  transform: rotate(-45deg);
}

/* A featured card like the group's featured project: photo and text on the light tint. */
#page-container .products-feature { display: grid; background: #f4f6f4; }
#page-container .products-section--tint .products-feature { background: #fff; }
#page-container .products-feature__photo { width: 100%; height: auto; }
#page-container .products-feature__body { padding: 44px 48px 48px; }

/* Homes: the photo is cropped only at the top and bottom, so the battery, box and charger
   stay in view; heading left, list right, button under the heading. On one column the
   button follows the list, as in the business card. */
#page-container .products-feature--stacked .products-feature__photo { aspect-ratio: 12 / 5; object-fit: cover; object-position: 50% 62%; }
#page-container .products-feature--stacked .products-feature__body { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; gap: 24px 64px; }
#page-container .products-feature--stacked .products-checklist { grid-column: 2; grid-row: 1 / span 2; }

/* Business & industry: text beside the photo where there is room for both. */
#page-container .products-feature--reverse { grid-template-columns: 1fr 1fr; }
#page-container .products-feature--reverse .products-feature__photo { order: 2; height: 100%; min-height: 360px; object-fit: cover; }
#page-container .products-feature--reverse .products-feature__body { display: flex; flex-direction: column; justify-content: center; }
#page-container .products-feature--reverse .products-checklist { margin-bottom: 28px; }

@media (max-width: 1200px) {
  #page-container .products-feature--stacked .products-feature__body { grid-template-columns: 1fr 1fr; gap: 24px 48px; }
  #page-container .products-feature--reverse { grid-template-columns: 1fr; }
  #page-container .products-feature .products-feature__photo { order: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 980px) {
  #page-container .products-section { padding: 40px 0; }
  #page-container .products-feature--stacked .products-feature__body { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  #page-container .products-feature--stacked .products-checklist { grid-column: auto; grid-row: auto; margin-bottom: 28px; }
  #page-container .products-feature__body { padding: 32px 28px 36px; }
}

@media (max-width: 767px) {
  /* Text spans the full width on phones, so the photo needs an even overlay to keep it readable. */
  #page-container .et_pb_slide_0 { background-image: linear-gradient(rgba(3, 52, 43, .78), rgba(3, 52, 43, .78)), url(/assets-a204d2617b076442/products/hero-storage.jpg); }
  #page-container .products-section { padding: 36px 0; }
  #page-container .products-feature__body { padding: 24px 16px 28px; }
  #page-container .products-feature--stacked .products-feature__photo { aspect-ratio: 4 / 3; object-position: 46% 60%; }
}
