/* =========================================================
   RESPONSIVE / MOBILE — semua aturan di sini HANYA aktif di
   layar sempit (max-width: 900px). Tampilan desktop di atas
   900px sama sekali tidak terpengaruh oleh file ini.
   ========================================================= */

/* ---------- HAMBURGER BUTTON (ikon 3 garis) ---------- */

.hamburger-btn {
  display: none;              /* tersembunyi di desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animasi jadi tanda "X" saat menu terbuka */
.hamburger-btn-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

  /* ---------- HEADER ---------- */

  .header-block {
    width: 100%;
    padding: 0 16px;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-btn {
    display: flex;
  }

  .brand-name-container {
    width: auto;
  }

  .brand-name-style {
    font-size: 14px;
  }

  .logo-container {
    width: 44px;
  }

  /* menu nav disembunyikan, muncul sebagai panel dropdown penuh saat hamburger diklik */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #052d55;
    flex-direction: column;
    padding: 8px 16px 20px 16px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.nav-links-open {
    display: flex;
  }

  .button-container,
  .last-button-container {
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .contact-us-container {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 0 0 0;
  }

  .contact-us-button-style {
    width: 100%;
  }

  .header-buttons-style {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
  }

  /* panah dropdown diputar lewat class dropdown-active (JS), bukan hover */
  .dropdown-active .arrow-button {
    transform: rotate(180deg);
  }

  /* ---------- DROPDOWN → LIST PRODUK SIMPEL ---------- */

  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    display: none;              /* default tertutup */
    flex-direction: column;
    background-color: transparent;
    border-top: none;
    box-shadow: none;
    padding: 0 0 12px 0;
    gap: 0;
    opacity: 1;                  /* override animasi hover desktop */
    visibility: visible;
  }

  .dropdown-active .dropdown-menu {
    display: flex;               /* muncul saat nav item diklik */
  }

  /* hanya tampilkan nama produk — sembunyikan deskripsi, gambar, kolom ekstra, divider */
  .dropdown-divider,
  .dropdown-link-desc,
  .foto-product,
  .dropdown-photo-column,
  .dropdown-photo-text,
  .dropdown-photo-stats,
  .dropdown-mini-stats,
  .dropdown-mini-cta,
  .dropdown-benefits,
  .dropdown-category-title,
  .dropdown-description,
  .small-dropdown-description {
    display: none;
  }

  .dropdown-column {
    width: 100%;
  }

  .dropdown-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* ---------- HERO ---------- */

  .hero-text {
    padding: 90px 20px 0 20px;
  }

  .hero-heading {
    font-size: 28px;
  }

  .hero-subheading {
    font-size: 14px;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .backdrop {
    height: 560px;
  }

  /* ---------- LOGO MARQUEE ---------- */

  .logo-track {
    gap: 40px;
  }

  .logo-item img {
    max-height: 40px;
  }

  /* ---------- ABOUT ---------- */

  .about-container {
    flex-direction: column;
    padding: 60px 20px 40px 20px;
    gap: 30px;
  }

  .about-heading {
    font-size: 24px;
  }

  .about-stats-inner {
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 20px;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .stat-divider {
    display: none;
  }

  /* ---------- PROCESS ---------- */

  .process-section {
    padding: 60px 20px;
  }

  .process-row {
    flex-direction: column;
    gap: 20px;
  }

  .process-line {
    display: none;
  }

  .process-card {
    width: 100%;
  }

  /* ---------- LEAD FORM ---------- */

  .lead-section {
    padding: 60px 20px;
  }

  .lead-container {
    flex-direction: column;
    gap: 30px;
  }

  .lead-map-wrapper {
    min-height: 220px;
  }

  /* ---------- CTA BANNER ---------- */

  .cta-banner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 20px;
  }

  /* ---------- FOOTER ---------- */

  .footer-container {
    grid-template-columns: 1fr;
    padding: 50px 20px 30px 20px;
    gap: 30px;
  }

  /* ---------- WHATSAPP FLOAT ---------- */

  .whatsapp-float {
    left: auto;
    right: 16px;
    transform: none;
    padding: 8px 14px 8px 8px;
  }

  .whatsapp-float:hover {
    transform: translateY(-3px);
  }

  .whatsapp-text {
    font-size: 12px;
  }

  /* blog list: baris jadi stack vertikal di layar sempit */
  .blog-post-card {
    flex-direction: column;
  }

  .blog-post-image {
    width: 100%;
    height: 160px;
  }
}
