/**
 * @file
 * Proper Storage Section — nested in sHTG Section Container.
 *
 * Desktop (769px+): 347px image + content column (heading, horizontal cards, info).
 * Mobile (≤768px): centered heading, 227px image + 180px stacked cards, info below.
 */

.proper-storage-section {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: 89px;
}

.proper-storage-section p {
  letter-spacing: 0;
}

.shtg-section-container__inner:has(> .proper-storage-section) {
  padding-left: 0;
  padding-right: 0;
}

.proper-storage-section__inner {
  display: grid;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {

  .proper-storage-section__inner {
    grid-template-columns: minmax(0, 347px) minmax(0, 1fr);
    padding-left: 3%;
  }

  /* Beat generic .layout-container > main img rule */
    .layout-container .proper-storage-section__image {
      max-width: 70%;
    }

  .proper-storage-section__media .proper-storage-section__caption {
    margin-left: -30px;
  }
}

.proper-storage-section__media {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  align-self: start;
  min-width: 0;
}

.proper-storage-section__image {
  display: block;
  width: 100%;
  max-width: 347px;
  height: auto;
}

.proper-storage-section__media .proper-storage-section__caption {
  margin: -34px 0 0;
  padding: 0;
  max-width: 347px;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  text-align: left;
}

.proper-storage-section__content {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Heading — beats .layout-container p (%bodycopy) */
.proper-storage-section .proper-storage-section__heading {
  margin: 0 0 20px;
  padding: 0;
  max-width: 760px;
  width: 100%;
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.36px;
  color: #4f08b0;
  text-align: left;
  text-transform: none;
}

.proper-storage-section .proper-storage-section__heading p,
.proper-storage-section .proper-storage-section__heading p span {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-transform: none;
}

.proper-storage-section .proper-storage-section__heading p strong {
  font-weight: 700;
  text-transform: uppercase;
  color: #4f08b0;
}

.proper-storage-section__cards {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
  max-width: 682px;
  margin: 0;
  padding: 0;
}

.proper-storage-section__row--card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 682px;
  margin: 0;
  padding: 24px 30px 30px 62px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  min-height: 94px;
  box-sizing: border-box;
}

@media (min-width: 769px) {

  .proper-storage-section__row--card .proper-storage-section__row-icon {
    position: absolute;
    left: -53px;
    top: 50%;
    width: 106px;
    height: 106px;
    object-fit: contain;
    transform: translateY(-50%);
  }
}

.proper-storage-section .proper-storage-section__row-text,
.proper-storage-section .proper-storage-section__row-text p,
.proper-storage-section .proper-storage-section__row-text span {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
}

.proper-storage-section .proper-storage-section__row-text strong,
.proper-storage-section .proper-storage-section__row-text b {
  font-weight: 600;
  color: #000;
}

.proper-storage-section__row--info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 574px;
  margin: 29px 0 0;
  padding: 0;
}

.proper-storage-section__row-icon--info {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.proper-storage-section .proper-storage-section__row-text--info,
.proper-storage-section .proper-storage-section__row-text--info p,
.proper-storage-section .proper-storage-section__row-text--info span {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #000;
}

.proper-storage-section .proper-storage-section__row-text--info a strong {
  color: #4f08b0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {

  .proper-storage-section__inner {
    grid-template-columns: 47% 53%;
    grid-template-areas:
      "heading heading"
      "media cards"
      "info info";
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
  }

  .proper-storage-section__media {
    grid-area: media;
    min-width: 0;
  }

  .proper-storage-section__content {
    display: contents;
  }

  .proper-storage-section__heading {
    grid-area: heading;
  }

  .proper-storage-section .proper-storage-section__heading {
    margin: 0 auto 24px;
    max-width: 342px;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
  }

  .proper-storage-section .proper-storage-section__heading p strong {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
  }

  .proper-storage-section__image {
    display: block;
    width: 227px;
    max-width: 100%;
    height: 292px;
    object-fit: cover;
  }

  .proper-storage-section__media .proper-storage-section__caption {
    width: 227px;
    max-width: 100%;
    margin-top: -13px;
  }

  .proper-storage-section__cards {
    grid-area: cards;
    display: flex;
    flex-direction: column;
    gap: 52px;
    width: auto;
    min-width: 0;
    padding-top: 36px;
    overflow: visible;
    align-items: flex-end;
  }

  .proper-storage-section__row--card {
    align-items: center;
    padding: 48px 9px 15px 15px;
    border-radius: 16px;
  }

  .proper-storage-section__cards .proper-storage-section__row--card:first-child {
    padding-right: 15px;
  }

  /* Icon centered on top edge (Figma: 72px, half above card) */
  .proper-storage-section__row--card .proper-storage-section__row-icon {
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    width: 59px;
    height: 59px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .proper-storage-section .proper-storage-section__row--card .proper-storage-section__row-text,
  .proper-storage-section .proper-storage-section__row--card .proper-storage-section__row-text p,
  .proper-storage-section .proper-storage-section__row--card .proper-storage-section__row-text span {
    width: 100%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
  }

  .proper-storage-section__row--info {
    grid-area: info;
    width: 100%;
    margin: 37px auto 0;
    gap: 18px;
    align-items: flex-start;
  }

  .proper-storage-section .proper-storage-section__row-text--info,
  .proper-storage-section .proper-storage-section__row-text--info p,
  .proper-storage-section .proper-storage-section__row-text--info span {
    font-size: 10px;
    line-height: 14px;
  }
}

/* Keep image aligned like Figma on very small screens */
@media (max-width: 500px) {
  .proper-storage-section__media {
    align-self: start;
    margin-top: 30px;
  }
}
