/* ===== RESET & GLOBAL ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  overflow-x: hidden;     /* 🔒 Cegah scroll ke kiri */
  max-width: 100vw;       /* ⛔ Jangan lebih dari lebar layar */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;         /* ✔️ Hindari space ekstra bawah gambar */
  box-sizing: border-box; /* ✔️ Hindari overflow karena padding */
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION ===== */
.section {
  padding: 60px 20px;
  background: #f8f8f8;
  text-align: center;
}
.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
}
.section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
  min-height: 80vh;

  /* FIX tambahan: */
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  background: transparent;
  color: #00B7D3;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid #00B7D3;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-secondary:hover {
  background: #00B7D3;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-outline:hover {
  background: white;
  color: #222;
}

/* ===== TENTANG KAMI ===== */
.tentang-kami {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.tentang-teks {
  flex: 1 1 400px;
  text-align: left;
}
.tentang-teks h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00B7D3;
}
.tentang-teks p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.tentang-gambar {
  flex: 1 1 300px;
  text-align: center;
}
.tentang-gambar img,
.tentang-gambar video {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* ===== LAYANAN ===== */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
.service-box {
  background: #ffffff;
  border: none;
  padding: 30px 20px;
  border-radius: 16px;
  width: 280px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* biarkan tinggi otomatis */
min-height: auto;

}

.service-box h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  color: #007BFF;
}

.service-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.service-box .btn-primary {
  margin-top: auto;
  margin-bottom: 0;
  padding: 10px 20px;
  font-size: 14px;
}

.service-box .btn-primary {
  margin-top: 20px;
  align-self: center;
}
.layanan-detail {
  display: none;
  margin-top: 15px;
  text-align: left;
  font-size: 14px;
  color: #444;
}
.layanan-detail ul {
  padding-left: 20px;
}
.layanan-detail li {
  margin-bottom: 10px;
  padding-left: 5px;
  position: relative;
}
/* ==== KLIEN KAMI ==== */
.klien-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom di laptop */
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

.klien-logos .logo-wrapper {
  width: 100%;
  max-width: 140px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.klien-logos .logo-wrapper img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.klien-logos .logo-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* ==== PARTNER STRATEGIS ==== */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom di laptop */
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

.partner-logos .logo-wrapper {
  width: 100%;
  max-width: 140px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logos .logo-wrapper img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.partner-logos .logo-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .klien-logos,
  .partner-logos {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP */
    gap: 16px;
  }

  .klien-logos .logo-wrapper,
  .partner-logos .logo-wrapper {
    max-width: 100px;
    padding: 8px;
  }

  .klien-logos .logo-wrapper img,
  .partner-logos .logo-wrapper img {
    max-height: 50px;
  }
}

/* === KONTAK WHATSAPP GRID === */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: auto;
}

.kontak-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.kontak-grid a:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.kontak-grid img {
  width: 20px;
}

/* Responsive: HP = 1 kolom */
@media (max-width: 576px) {
  .kontak-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  .kontak-grid a {
    font-size: 14px;
    padding: 12px;
  }

  .kontak-grid img {
    width: 18px;
  }
}

/* ===== ANIMASI ===== */
.fade-in {
  opacity: 0.3;
  animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #00B7D3;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #009bb5;
  transform: scale(1.05);
}
.wa-open #scrollTopBtn {
  display: none !important;
}
/* ===== UNGGULAN - Kenapa Memilih 3PP ===== */
.unggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.unggulan-item {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 183, 211, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.unggulan-item:hover {
  transform: translateY(-6px);
  border-color: #00B7D3;
  box-shadow: 0 10px 24px rgba(0, 183, 211, 0.15);
}

.unggulan-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #00B7D3;
  transition: transform 0.3s ease;
}

.unggulan-item:hover .unggulan-icon {
  transform: scale(1.2) rotate(5deg);
}

.unggulan-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.unggulan-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
/* === SECTION TITLE (umum) === */
.section-title {
  font-size: 28px;
  color: #00B7D3;
  text-align: center;
  margin-bottom: 10px;
}

.partner-divider {
  width: 160px;         /* Atur sesuai keinginan, misal 60px */
  height: 3px;
  background: #00B7D3;
  border: none;
  margin: 10px auto 30px; /* Tengahin dan beri jarak bawah */
}


.center {
  text-align: center;
  font-size: 16px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
}
/* ===== LAYANAN DETAIL ANIMASI & FIX TINGGI ===== */
.layanan-detail {
  overflow: hidden;
  transition: max-height 0.5s ease;
  text-align: left;
  font-size: 14px;
  color: #444;
  margin-top: 15px;
  padding-left: 20px;
}

.layanan-detail.show {
  max-height: 500px; /* pastikan cukup besar agar semua isi muat */
}
.layanan-summary {
  max-width: 700px;
  margin: 60px auto;         /* 🔧 jarak atas & bawah lebih lega */
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: center;
  padding: 20px 10px;        /* 🔧 tambahkan padding dalam blok */
}

.layanan-summary p {
  margin: 16px 0;            /* 🔧 jarak antar baris teks */
}
