/* =========================================================
   PETRO WEBSITE — HOME 02 CAPABILITIES
   CLEAN FINAL — NO LARGE-SCREEN OVERRIDE
   ========================================================= */

.petro-home [data-home-section="02"],
.petro-home [data-home-section="02"] *,
.petro-home [data-home-section="02"] *::before,
.petro-home [data-home-section="02"] *::after {
  box-sizing: border-box;
}

.petro-home [data-home-section="02"] {
  position: relative;
  z-index: 2;
  scroll-margin-top: 150px;
  border-block: 1px solid rgba(199, 196, 179, .20);
  background:
    linear-gradient(
      90deg,
      rgba(8, 23, 32, .26),
      rgba(10, 19, 27, .40),
      rgba(8, 23, 32, .26)
    );
}

.petro-home [data-home-section="02"] .home-container {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}

.petro-home [data-home-section="02"] .capability-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: rtl;

  padding-top: 7px;
  padding-bottom: 7px;
}

.petro-home [data-home-section="02"] .capability-item {
  display: flex;
  direction: ltr;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-width: 0;
  min-height: 58px;

  padding-inline: 16px;

  position: relative;
  cursor: pointer;
  transition: background .20s ease, transform .20s ease;
}

.petro-home [data-home-section="02"] .capability-item:not(:last-child)::after {
  content: "";

  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;

  width: 1px;

  background: rgba(192, 193, 183, .28);
}

.petro-home [data-home-section="02"] .capability-icon {
  display: block;

  flex: 0 0 34px;
  width: 34px;
  height: 34px;

  object-fit: contain;

  overflow: visible;
}

.petro-home [data-home-section="02"] .capability-copy {
  direction: rtl;
  text-align: right;

  min-width: 0;
}

.petro-home [data-home-section="02"] h2 {
  margin: 0 0 2px;

  color: #e0e1dc;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  white-space: nowrap;
}

.petro-home [data-home-section="02"] p {
  margin: 0;

  color: #b9bdbb;

  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;

  white-space: nowrap;
}

/* TABLET */
@media (max-width: 900px) {

  .petro-home [data-home-section="02"] .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    row-gap: 12px;

    padding-block: 10px;
  }

  .petro-home [data-home-section="02"] .capability-item:nth-child(2)::after {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 500px) {

  .petro-home [data-home-section="02"] .home-container {
    width: calc(100% - 28px);
  }

  .petro-home [data-home-section="02"] .capability-list {
    grid-template-columns: 1fr;

    row-gap: 0;

    padding-block: 6px;
  }

  .petro-home [data-home-section="02"] .capability-item {
    min-height: 58px;

    justify-content: flex-start;

    padding: 8px 10px;
  }

  .petro-home [data-home-section="02"] .capability-item:not(:last-child)::after {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;

    width: auto;
    height: 1px;

    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .08),
        transparent
      );
  }

  .petro-home [data-home-section="02"] h2 {
    font-size: 13px;
  }

  .petro-home [data-home-section="02"] p {
    font-size: 9.5px;
    white-space: normal;
  }
}
/* =========================================================
   SECTION 02 — FINAL HOVER
   ========================================================= */

.petro-home [data-home-section="02"] .capability-item:hover {
  background: rgba(221, 177, 127, .035);
  transform: translateY(-1px);
}

.petro-home [data-home-section="02"] .capability-item::before {
  content: attr(data-detail);

  position: absolute;
  z-index: 100;

  top: calc(100% + 3px);
  right: 50%;

  width: 250px;
  padding: 11px 14px;

  transform:
    translateX(50%)
    translateY(-4px);

  background: rgba(15, 22, 28, .98);

  border:
    1px solid rgba(221, 177, 127, .42);

  border-radius: 8px;

  color: rgba(245, 247, 248, .96);

  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.9;

  text-align: right;
  direction: rtl;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, .42);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.petro-home [data-home-section="02"] .capability-item:hover::before {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(50%)
    translateY(0);
}
