/*
Theme Name: Tiga Putra Pandawa
Theme URI: https://3pp.co.id
Author: Kusnadi Ganteng
Author URI: https://3pp.co.id
Description: Tema WordPress untuk PT Tiga Putra Pandawa - ISP, VPS, dan Travel.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiga-putra-pandawa
Tags: isp, vps, travel, modern
*/

/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===== 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;
}
.dark-section {
  background: #222;
  color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
  min-height: 80vh;
}
.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;
}
.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;
}
.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;
}

/* ===== TOMBOL UTAMA ===== */
.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;
}

/* ===== 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-teks ul {
  padding-left: 20px;
  margin-bottom: 15px;
}
.tentang-teks ul li {
  margin-bottom: 10px;
  font-size: 16px;
}
.tentang-gambar {
  flex: 1 1 300px;
  text-align: center;
}
.tentang-gambar img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-out;
}

/* ===== LAYANAN ===== */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
.service-box {
  background: #ffffff;
  border: none;
  padding: 30px;
  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;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.1);
}

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

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

/* ===== KONTAK BOX ===== */
.kontak-box {
  background: #f1f1f1;
  padding: 20px;
  max-width: 600px;
  margin: 20px auto;
  border-radius: 8px;
  text-align: left;
}
.kontak-box a {
  color: #0066cc;
}
.kontak-box a:hover {
  text-decoration: underline;
}
.btn-wa {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 10px;
}
.btn-wa:hover {
  background: #1ebe5b;
}

/* ===== SLIDER GAMBAR (FADE) ===== */
#slider-gambar {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  transition: opacity 1s ease-in-out;
  opacity: 1;
}
.fade-in {
  opacity: 0.3;
  animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== PARTNER / KLIEN ===== */
.partner-section {
  background-color: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}
.partner-title {
  color: #00B7D3;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.partner-divider {
  width: 80px;
  height: 3px;
  background-color: #00B7D3;
  border: none;
  margin: 0 auto 40px;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}
.partner-logos img {
  width: 120px;
  height: auto;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.partner-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  background-color: #fefefe;
}

/* ===== SCROLL TOP BUTTON ===== */
#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;
}

/* ===== RESPONSIVE (HP & Tablet) ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .tentang-kami {
    flex-direction: column;
    text-align: center;
  }
  .tentang-teks {
    text-align: center;
  }
  .services {
    flex-direction: column;
    align-items: center;
  }
  .partner-logos {
    gap: 20px;
  }
  footer {
    text-align: center;
  }
  footer div[style*="display:flex"] {
    flex-direction: column;
    align-items: center;
    gap: 20px !important;
  }
  .wa-form-popup {
    bottom: 90px;
    right: 10px;
    width: 90%;
    max-width: 300px;
  }

  /* 🔧 Tambahan khusus spacing mobile */
  .section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .tentang-gambar {
    margin-top: 20px !important;
  }
  .unggulan-grid {
    gap: 20px !important;
  }
  .section h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .section p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* ===== LAYANAN UNGGULAN - ANIMASI HOVER ===== */
.unggulan-item {
  transition: all 0.3s ease;
  cursor: default;
}
.unggulan-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  border-left-color: #00B7D3 !important;
}

@media (max-width: 768px) {
  /* Hapus jarak antar section */
  #tentang {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
  }

  #unggulan {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  .tentang-gambar {
    margin-bottom: 0 !important;
  }

  /* Buat semua section lebih kompak */
  .section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

