/* =========================================================
   PRODUCTS V2
   PT. GHANIM TIRTA SOLUSINDO
========================================================= */

.products-v2 {
  position: relative;
  overflow: hidden;
  padding: 105px 0 120px;
  background:
    radial-gradient(circle at 5% 15%, rgba(0, 188, 235, 0.08), transparent 27%),
    radial-gradient(circle at 96% 82%, rgba(0, 115, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fcff 55%, #eef8ff 100%);
}

.products-v2-container {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.products-v2-hero {
  position: relative;
  min-height: 440px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.products-v2-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
  padding-right: 30px;
}

.products-v2-label {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.products-v2-label span {
  color: #00aee9;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.products-v2-label i {
  display: block;
  width: 45px;
  height: 1px;
  background: #00aee9;
}

.products-v2-label p {
  margin: 0;
  color: #0b315c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.products-v2-hero h2 {
  margin: 0;
  color: #062f5d;
  font-size: clamp(48px, 4.5vw, 70px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.products-v2-hero h2 span {
  display: block;
  margin-top: 6px;
  background: linear-gradient(90deg, #087bf0 0%, #00bfe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.products-v2-description {
  max-width: 590px;
  margin: 25px 0 0;
  color: #6e8aa5;
  font-size: 16px;
  line-height: 1.7;
}


/* HERO BENEFITS */

.products-v2-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 27px;
}

.products-v2-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b315c;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.products-v2-benefit-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #078de9;
  background: #e8f8ff;
  border: 1px solid rgba(0, 164, 230, 0.12);
}

.products-v2-benefit-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* HERO IMAGE */

.products-v2-hero-visual {
  position: absolute;
  z-index: 1;
  top: -30px;
  right: -80px;
  bottom: -10px;
  width: 66%;
  overflow: hidden;
  border-radius: 0 0 0 80px;
}

.products-v2-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255,255,255,0.96) 9%,
      rgba(255,255,255,0.72) 20%,
      rgba(255,255,255,0.18) 40%,
      rgba(255,255,255,0) 60%
    );
}

.products-v2-hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.96)
  );
}

.products-v2-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-v2-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.products-v2-card {
  position: relative;
  min-height: 225px;
  display: grid;
  grid-template-columns: 41% 59%;
  overflow: hidden;
  border: 1px solid rgba(11, 105, 175, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(7, 68, 115, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.products-v2-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 65px rgba(7, 68, 115, 0.13);
}

.products-v2-card-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, #e9f8ff, #dff4ff);
}

.products-v2-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 55%,
      rgba(255,255,255,0.92) 100%
    );
  pointer-events: none;
}

.products-v2-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.products-v2-card:hover .products-v2-card-image img {
  transform: scale(1.035);
}

.products-v2-card-content {
  position: relative;
  min-width: 0;
  padding: 26px 50px 25px 26px;
}

.products-v2-card h3 {
  margin: 0 0 13px;
  color: #073461;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.products-v2-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-v2-card li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 26px;
  color: #647f99;
  font-size: 14px;
  line-height: 1.38;
}

.products-v2-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #23b8f2, #6dd7f1);
  font-size: 10px;
  font-weight: 900;
}

.products-v2-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0797ec;
  background: #e8f7ff;
  font-size: 24px;
  font-weight: 300;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.products-v2-card:hover .products-v2-card-arrow {
  transform: translateX(3px);
  background: #d8f2ff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

  .products-v2-container {
    width: min(100% - 50px, 1100px);
  }

  .products-v2-hero-visual {
    right: -50px;
    width: 62%;
  }

  .products-v2-card {
    grid-template-columns: 38% 62%;
  }

  .products-v2-card-content {
    padding-right: 42px;
  }

}


@media (max-width: 950px) {

  .products-v2-hero {
    min-height: auto;
    display: block;
  }

  .products-v2-hero-copy {
    max-width: 680px;
    padding-right: 0;
    margin-bottom: 35px;
  }

  .products-v2-hero-visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 360px;
    border-radius: 30px;
  }

  .products-v2-hero-visual::before {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.45),
      rgba(255,255,255,0)
    );
  }

  .products-v2-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 680px) {

  .products-v2 {
    padding: 75px 0 85px;
  }

  .products-v2-container {
    width: calc(100% - 32px);
  }

  .products-v2-hero h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .products-v2-benefits {
    gap: 18px;
  }

  .products-v2-hero-visual {
    height: 280px;
  }

  .products-v2-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .products-v2-card-image {
    height: 230px;
  }

  .products-v2-card-image::after {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0) 65%,
      rgba(255,255,255,0.95) 100%
    );
  }

  .products-v2-card-content {
    padding: 24px 24px 28px;
  }

  .products-v2-card-arrow {
    top: 18px;
    right: 18px;
  }

}


@media (max-width: 480px) {

  .products-v2-label {
    gap: 10px;
  }

  .products-v2-label i {
    width: 30px;
  }

  .products-v2-label p {
    font-size: 10px;
  }

  .products-v2-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .products-v2-card {
    border-radius: 22px;
  }

  .products-v2-card h3 {
    font-size: 22px;
  }

  .products-v2-card li {
    font-size: 13px;
  }

}


/* =========================================================
   PRODUCTS V2 — PROPORTION REFINEMENT
   Headline + Product Image Size
========================================================= */

@media (min-width: 951px) {

  /* Hero headline lebih proporsional */
  .products-v2-hero h2 {
    font-size: clamp(46px, 3.65vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .products-v2-hero h2 span {
    margin-top: 8px;
    line-height: 1.08;
  }


  /* Card: area gambar sedikit lebih kecil */
  .products-v2-card {
    grid-template-columns: 35% 65%;
  }

  /* Beri ruang kosong di sekitar produk */
  .products-v2-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
  }

  /* Gambar produk tidak lagi memenuhi card */
  .products-v2-card-image img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: center;
  }

  /* PAC sedikit lebih lebar karena terdiri dari 2 kemasan */
  .products-v2-card:first-child .products-v2-card-image img {
    width: 96%;
    height: 90%;
  }

  /* Konten mendapat ruang lebih banyak */
  .products-v2-card-content {
    padding-left: 24px;
    padding-right: 48px;
  }

}


/* =========================================================
   PRODUCTS V2 — FIX HEADLINE DESCENDER
========================================================= */

@media (min-width: 951px) {

  .products-v2-hero h2 {
    line-height: 1.12;
    padding-bottom: 8px;
  }

  .products-v2-hero h2 span {
    line-height: 1.12;
    padding-bottom: 8px;
  }

}
