/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

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

/* NAVBAR */
.navbar {
  background: #111;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #e8e40e;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #c9a24d;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .navbar nav a {
    display: block;
    margin: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  .navbar nav.active {
    display: flex;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 80vh;
  width: 100%;
  overflow: hidden;
}

.hero img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* menjaga proporsi tapi tetap cover */
  object-position: center 20%; /* fokus wajah/logo */
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* overlay gelap */
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: #c9a24d;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #a37d36;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-content p {
    font-size: 18px;
  }
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section.gray {
  background: #f9f9f9;
}

.section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  color: #111;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c9a24d;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.center-text {
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* CARDS & GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* GRID KHUSUS LAYANAN HUKUM */
#layanan .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* selalu 3 kolom */
  gap: 25px;
  margin-top: 40px;
}

#layanan h2 {
  color: #ffcc00;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* RESPONSIVE KHUSUS LAYANAN */
@media(max-width: 992px) {
  #layanan .grid-3 {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
  }
}

@media(max-width: 600px) {
  #layanan .grid-3 {
    grid-template-columns: 1fr; /* 1 kolom di HP */
  }
}

/* Tentang */


#tentang {
  background: #132736; /* abu tua / navy */
  color: #FFD700;       /* teks kuning emas */
  padding: 80px 0;      /* jarak atas dan bawah */
}

#tentang h2 {
  color: #FFD700;
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

#tentang h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #FFD700;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

#tentang p.center-text {
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
  font-size: 16px;
  line-height: 1.8;
  color: #e1ded2;
}


/* BACKGROUND LAYANAN HUKUM */
#layanan {
  background: linear-gradient(120deg, #010000 0%, #cc2706 100%);
}


.card {
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

/* TEAM CARDS */
/* BACKGROUND TIM */
#tim {
  background: #c3c5c6; /* abu muda */
  padding: 80px 0;     /* sama dengan section lainnya */
}

#tim .card {
  padding: 18px;
  min-height: 320px;   /* cegah kartu terlalu tinggi */
}

#tim .card {
  padding: 20px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* konten tengah horizontal */
  text-align: center;
}

#tim .card img {
  width: 220px;          /* ukuran tetap biar presisi */
  height: 220px;
  object-fit: cover;
  object-position: center;  /* fokus tepat tengah */
  border-radius: 12px;   /* bisa 50% kalau mau bulat */
  margin-bottom: 15px;
}

/* GRID KHUSUS TIM (5 KOLOM) */
#tim .grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* RESPONSIVE TIM */
@media (max-width: 1200px) {
  #tim .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #tim .grid-5 {
    grid-template-columns: repeat(1, 1fr);
  }
}

#tim h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-top: 8px;
  min-height: 42px;              /* jaga tinggi seragam */
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* maksimal 2 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CONTACT CARDS */
#kontak .card {
  padding: 25px 15px;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .section h2 {
    font-size: 28px;
  }
}

/* ===== TESTIMONIAL SLIDER ===== */
#testimoni {
  background: linear-gradient(135deg, #111827, #1f2937);
  padding: 100px 0;
}

#testimoni h2 {
  color: #d4af37; /* gold */
}

#testimoni .center-text {
  color: #cbd5e1;
}

.testimonial-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 900px;  /* lebar kotak */
  margin: 50px auto 0;
}

.testimonial-slider {
  display: flex;          /* ini WAJIB */
  transition: transform 0.6s ease;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;        /* satu kartu menutupi 100% wrapper */
  background: #fff;
  padding: 50px 70px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  text-align: center;
}


/* TEXT */
.testimonial-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.testimonial-card h4 {
  margin-top: 25px;
  font-style: normal;
  font-weight: 600;
}

.testimonial-card span {
  font-size: 14px;
  color: #777;
}

/* PANAH */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 20px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.arrow:hover {
  background: #000;
}

.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}

/* ===== SCROLL ANIMATION ===== */
.scroll-slide {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi scroll tiap card */
.scroll-slide {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.scroll-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: beri jarak antar card */
.grid-3 .card {
  margin-bottom: 20px;
}

/* MAP */
#maps {
  background: #fafafa;
  padding: 60px 0;
}

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Grid galeri */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom */
  gap: 20px;
}

/* Bingkai galeri */
.gallery-item {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Gambar */
.gallery-item img {
  width: 100%;
  height: 200px;           /* landscape */
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover zoom */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Caption */
.gallery-caption {
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #444;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE: biar mobile tetap rapih */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr); /* 3 kolom di tablet */
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP */
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 kolom di HP kecil */
  }
}

