/* =========================================================
   GLOBAL STYLE - KANTOR HUKUM MIFTAH
   ========================================================= */

/* ---------- VARIABEL WARNA ---------- */
:root {
  --merah: #d62828;
  --hitam: #121212;
  --abu: #f5f5f5;
  --putih: #ffffff;
}

/* ---------- DASAR ---------- */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--hitam);
  scroll-behavior: smooth;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--putih);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--merah);
}

.nav-link {
  color: var(--putih);
  margin-right: 15px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar.scrolled .nav-link {
  color: var(--hitam);
}

.nav-link:hover {
  color: var(--merah);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), 
              url('../assets/img/kantor.jpg') center/cover no-repeat;
  color: var(--putih);
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  max-width: 600px;
  margin: 20px auto;
}

/* Tombol utama */
.btn-merah {
  background-color: var(--merah);
  color: var(--putih);
  border-radius: 30px;
  padding: 10px 25px;
  transition: 0.3s;
}

.btn-merah:hover {
  background-color: #b71c1c;
}

/* =========================================================
   TENTANG KAMI
   ========================================================= */
.stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 30px;
}

.stats div {
  flex: 1;
}

/* =========================================================
   LAYANAN
   ========================================================= */
.layanan-card {
  background: var(--abu);
  border: none;
  padding: 30px;
  border-radius: 15px;
  transition: 0.3s;
}

.layanan-card:hover {
  background: var(--merah);
  color: var(--putih);
  transform: translateY(-8px);
}

.layanan-card i {
  color: #e63946;
}

/* =========================================================
   BIDANG KEAHLIAN
   ========================================================= */
#keahlian {
  position: relative;
  background-color: var(--abu);
  padding: 100px 0;
  overflow: hidden;
}

/* Kartu */
.keahlian-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  background: var(--putih);
  transition: all 0.3s ease;
}

.keahlian-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Lengkungan Atas */
.custom-shape-divider-top-keahlian {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top-keahlian svg {
  position: relative;
  display: block;
  width: calc(150% + 1.3px);
  height: 100px;
}

/* Lengkungan Bawah */
.custom-shape-divider-bottom-keahlian {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
  z-index: 1;
}

.custom-shape-divider-bottom-keahlian svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(140% + 1.3px);
  height: 120px;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-keahlian path {
  fill: #c1121f;
}

/* Efek gradasi lembut */
.custom-shape-divider-bottom-keahlian::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(193,18,31,1) 0%, rgba(255,255,255,0) 100%);
  z-index: 2;
  pointer-events: none;
}


/* =========================================================
   GALERI
   ========================================================= */
.galeri-box {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.galeri-box img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* gambar memenuhi tanpa terpotong aneh */
    display: block;
  }

.galeri-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  }


.caption {
    padding: 15px;
    text-align: center;
      z-index: 2;
    background: linear-gradient(to right, #c1121f, #e63946);
    color: #fff;
  }

.caption h5 {
    font-weight: 600;
    margin-bottom: 5px;
  }

.caption p {
    font-size: 0.9rem;
    margin: 0;
  }

  /* Responsif */
@media (max-width: 768px) {
    .galeri-box img {
      height: 220px;
    }
    .caption {
      padding: 10px;
    }
  }

/* =========================================================
   TIM
   ========================================================= */
.team-card {
  text-align: center;
  border: none;
  background: var(--putih);
}

.team-card img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.team-card:hover .team-info {
  color: var(--merah);
}

/* =========================================================
   KLIEN
   ========================================================= */
.client-logo {
  max-width: 150px;
  opacity: 0.7;
  transition: 0.3s;
}

.client-logo:hover {
  opacity: 1;
}

/* =========================================================
   TESTIMONI
   ========================================================= */
.carousel-item {
  text-align: center;
  padding: 30px;
}

.carousel-item p {
  font-style: italic;
}

 /* 
  ARTIKEL
  
  */
   .bg-miftah {
    background-color: #b40000; /* Merah terang khas kantor hukum */
  }

  .bg-miftah .card-body {
    background-color: #b40000;
  }

  .card.bg-miftah:hover {
    background-color: #cc0000; /* sedikit lebih terang saat hover */
    transform: translateY(-5px);
    transition: 0.3s ease;
  }

  .card.bg-miftah a {
    color: #fff !important;
    text-decoration: underline;
  }

  .img-wrapper img {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
  }
  .img-wrapper {
    width: 100%;
    height: 220px; /* kamu bisa ubah sesuai selera, misal 250px */
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* gambar dipotong proporsional */
    transition: transform 0.3s ease;
  }

  .img-wrapper img:hover {
    transform: scale(1.05); /* efek zoom halus */
  }

  .card {
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }

/* =========================================================
   KONTAK
   ========================================================= */
iframe {
  border-radius: 10px;
  width: 100%;
  height: 350px;
}

/* =========================================================
   WHATSAPP FLOAT BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float i {
  line-height: 60px;
}

.whatsapp-float:hover {
  background-color: #1ebe5b;
  transform: scale(1.1);
  text-decoration: none;
  color: #fff;
}

/* Responsif tombol WA */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float i {
    line-height: 50px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: var(--hitam);
  color: var(--putih);
  padding: 50px 0;
}

footer a {
  color: var(--putih);
  text-decoration: none;
}

footer a:hover {
  color: var(--merah);
}

footer .hover-link:hover {
  color: #e63946 !important;
  transition: 0.3s ease;
}

footer .social-icon {
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icon:hover {
  color: #e63946;
  transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE HERO
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin: 15px auto;
  }

  .hero a {
    margin-bottom: 10px;
    display: inline-block;
  }
}
