/* Styles used only by products.html. Hero disamakan dengan Home/About (parallax via main.js). */

.btn {
  display: inline-block;
  padding: clamp(12px, 1vw, 16px) clamp(20px, 2.2vw, 34px);
  font-size: clamp(.72rem, .8vw, .86rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-outline {
  background: transparent;
  border-color: var(--ae-gold);
  color: var(--ae-gold);
}

.btn-outline:hover {
  background: var(--ae-gold);
  color: #151206;
  transform: translateY(-2px);
}

/* ---------- HERO (sama persis pola index/about) ---------- */
.ae-hero {
  position: relative;
  height: clamp(560px, 72svh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ae-hero-bg {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  bottom: -15%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.ae-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.35) 40%, rgba(5, 8, 13, 0.95) 100%);
  z-index: 1;
}

.ae-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  padding: clamp(40px, 5vh, 64px) clamp(24px, 8vw, 120px) clamp(64px, 8vh, 110px);
}

.ae-hero h1 {
  color: var(--ae-gold);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
  line-height: 1.25;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 22px;
}

.ae-hero p {
  color: #f1f1f1;
  max-width: 58rem;
  margin-inline: auto;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
  margin-bottom: 34px;
}

.ae-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SECTION UMUM ---------- */
.ae-section {
  padding: clamp(4rem, 7vw, 8rem) clamp(24px, 7vw, 120px);
  background: var(--ae-black);
}

.ae-section-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.ae-section h2 {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 3.25rem);
  margin-bottom: 12px;
  position: relative;
  display: block;
  text-transform: uppercase;
}

.ae-section h2 span {
  display: inline-block;
  position: relative;
}

.ae-section h2 span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--ae-gold);
  border-radius: 2px;
}

.products-sub {
  text-align: center;
  color: var(--ae-gold);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  margin: 28px 0 40px;
}

/* ---------- GRID PRODUCTS (2 kolom x 4 baris, border emas seperti contoh) ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ae-gold);
  border: 1px solid var(--ae-gold);
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: #000;
  padding: 22px 22px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  /* state awal untuk animasi muncul saat scroll (diaktifkan via JS) */
  opacity: 1;
  transform: none;
}

body.js-anim .product-card {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

body.js-anim .product-card.is-visible {
  opacity: 1;
  transform: none;
}

/* wrapper agar gambar bisa digeser ke atas/bawah saat scroll tanpa bocor keluar card */
.product-card-media {
  height: 210px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-card-media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.product-card h3 {
  color: var(--ae-gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  color: #e9e9e9;
  font-size: .9rem;
  line-height: 1.8;
}

.product-card p + p {
  margin-top: 16px;
}

/* ---------- SERVICES ---------- */
.services-section {
  padding-top: clamp(3rem, 6vw, 6rem);
}

.service-item {
  margin-bottom: 2.5rem;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item h4 {
  color: var(--ae-gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  color: #efefef;
  font-size: .95rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.js-anim .product-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
