/* =========================================================
   TEMA GLOBAL — Nuansa Biru Profesional
   ========================================================= */
:root {
  --biru-utama: #0077b6;
  --biru-gelap: #004d99;
  --biru-terang: #0096c7;
  --biru-hover: #003366;
  --hijau-wa: #25D366;
  --teks-utama: #222;
  --teks-sekunder: #555;
  --bg-cerah: #f9f9f9;
  --bg-lembut: #f3f9ff;
  --font-utama: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

/* Reset & Dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-utama);
  color: var(--teks-utama);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

/* =========================================================
   ANIMASI REUSABLE
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* =========================================================
   TENTANG KAMI
   ========================================================= */
#tentang-kami {
  padding: 40px 20px;
  background: transparent;
  max-width: 900px;
  margin: auto;
}

#tentang-kami h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--biru-gelap);
}

#tentang-kami p {
  text-align: justify;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* =========================================================
   KONTAK KAMI
   ========================================================= */
.kontak-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.kontak-card {
  background: var(--bg-cerah);
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.kontak-card h3 {
  margin-bottom: 15px;
  color: var(--biru-gelap);
  font-weight: 600;
}

.kontak-card ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
  color: #444;
}

.kontak-card li span {
  display: block;
  margin-top: 5px;
}

.kontak-card a {
  color: var(--biru-utama);
  text-decoration: none;
}

.kontak-card a:hover {
  text-decoration: underline;
  color: var(--biru-gelap);
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section {
  margin-top: 40px;
}

.faq-section h3 {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--biru-gelap);
}

.faq-section details {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--biru-utama);
}

.faq-section p {
  margin: 10px 0 0 15px;
  color: #333;
}

/* =========================================================
   KONTAK LENGKAP
   ========================================================= */
.contact-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: var(--biru-gelap);
}

.intro-text {
  font-size: 1.2em;
  color: var(--teks-sekunder);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

/* Cards */
.contacts-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-cerah);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  padding: 25px 20px 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--biru-gelap);
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.contact-card:hover img {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  color: var(--biru-gelap);
  font-weight: 700;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

.btn-whatsapp i {
  font-size: 1.2em;
}

/* Office Info */
.office-info {
  margin: 60px auto 40px;
  max-width: 600px;
  text-align: center;
  color: #444;
  font-size: 1.1em;
}

.office-info h3 {
  color: var(--biru-gelap);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.8em;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Map */
.map-container {
  max-width: 700px;
  margin: 0 auto 50px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   GALERI PAGE
   ========================================================= */
body.galeri-page {
  background: #f7f9fc;
  padding: 40px 20px;
  font-family: var(--font-utama);
  color: #222;
}

/* Judul */
.section-title {
  text-align: center;
  margin-bottom: 24px;
  color: var(--biru-utama);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Tombol filter */
.btn-filter-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-filter-group button {
  border-radius: 25px;
  padding: 8px 18px;
  border: 2px solid var(--biru-utama);
  background: #fff;
  color: var(--biru-utama);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-filter-group button.active,
.btn-filter-group button:hover {
  background: var(--biru-utama);
  color: #fff;
  box-shadow: 0 6px 15px rgba(0, 119, 182, 0.35);
}

/* === Galeri === */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.gallery-item {
  width: 100%;
  max-width: 350px;
}

.gallery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

.gallery-info {
  padding: 12px;
}

.gallery-info h5 {
  color: var(--biru-utama);
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}

.gallery-info p {
  color: var(--teks-sekunder);
  margin: 0;
  font-size: 0.95rem;
}

/* === Modal === */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.custom-modal.active {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.custom-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  max-width: 880px;
  width: 92%;
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--biru-terang);
}

.fullscreen-btn {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--biru-terang);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.fullscreen-btn:hover {
  background: var(--biru-utama);
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--biru-utama);
  font-weight: 600;
  text-transform: uppercase;
}

/* Gambar besar */
.modal-image-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 6px;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  user-select: none;
  transition: transform 0.18s ease, opacity 0.25s ease;
  display: block;
  opacity: 0;
}

.modal-img.show {
  opacity: 1;
}

.modal-desc {
  text-align: center;
  color: var(--teks-sekunder);
  font-size: 0.95rem;
  padding: 8px 12px;
}

/* Thumbnail navigasi */
.thumbnail-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.thumbnail-nav button {
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.thumbnail-nav img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  opacity: .7;
  border: 2px solid transparent;
  transition: 0.2s;
}

.thumbnail-nav button.active img,
.thumbnail-nav button:hover img {
  opacity: 1;
  border-color: var(--biru-utama);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Tombol kontrol */
.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.controls button {
  border-radius: 50px;
  padding: 8px 16px;
  background: var(--biru-terang);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 12px rgba(0, 150, 199, 0.25);
  transition: all 0.25s ease;
}

.controls button i {
  font-size: 1rem;
}

.controls button:hover {
  background: var(--biru-utama);
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE (Mobile)
   ========================================================= */
@media (max-width: 600px) {
  .contacts-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-card,
  .kontak-card,
  .map-container {
    width: 90%;
  }

  .contact-section h2 {
    font-size: 2em;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }

  .gallery-img {
    height: 160px;
  }

  .custom-modal-content {
    width: 95%;
    padding: 12px;
  }

  .controls button {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}