/* Footer Styles - Dark Theme */
footer {
  background: #20232f;
  color: #ffffff;
  /* configurable padding values */
  --footer-padding-top: 100px;
  --footer-padding-right: 20px;
  --footer-padding-left: 20px;
  --footer-padding-bottom: 60px;
    padding: var(--footer-padding-top) var(--footer-padding-right)
    var(--footer-padding-bottom) var(--footer-padding-left) !important;
  /* configurable gaps to control headquarter vs other menu spacing */
  --footer-headquarter-gap: 16px;
  --footer-menu-gap: 24px;
  position: relative;
}

footer .footer-wrapper {
  /* Constrain footer content so left + right columns stay together
	   on wide screens. Center inside the viewport and keep modest
	   side padding so the footer looks balanced and not stretched. */
  max-width: 1180px; /* reasonable central container width */
  margin: 0 auto !important; /* center wrapper */
  box-sizing: border-box;
}

footer .footer-content {
  display: grid;
  /* Use slightly smaller left column with controlled gap so the
	   right block doesn't stretch away on large screens. */
  grid-template-columns: minmax(220px, 320px) minmax(420px, 1fr);
  gap: 150px;
  margin-bottom: 36px;
  align-items: start;
}

/* Left Section - Logo & Social Media */
footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

footer .footer-logo img {
  width: 186px;
  height: auto;
  display: block;
}

footer .footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  /* reduce vertical space below social icons so CTA sits closer */
  margin-bottom: 6px;
}

footer .footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-size: 18px;
}

footer .footer-social a:hover {
  opacity: 0.7;
}

footer .footer-social a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* CTA Buttons */
footer .footer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer .footer-cta .btn {
  display: block;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

footer .footer-cta .btn-whistleblowing {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

footer .footer-cta .btn-whistleblowing:hover {
  background: rgba(255, 255, 255, 0.1);
}

footer .footer-cta .btn-wsm {
  background: #be812b;
  color: #ffffff;
  font-weight: 600;
}

footer .footer-cta .btn-wsm:hover {
  background: #b89952;
}

/* Right Section - Menu Columns */
footer .footer-right {
  /* align the three columns to the right while keeping their content left-aligned */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--footer-menu-gap);
  flex-wrap: nowrap;
}

footer .footer-column {
  text-align: left; /* ensure column text remains left-aligned */
  min-width: 160px;
}

footer .footer-column h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .footer-column ul li {
  margin: 0;
}

footer .footer-column ul li a {
  color: #dadada;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: block;
}

footer .footer-column ul li a:hover {
  color: #ffffff;
}

/* Headquarter specific styling */
footer .footer-column.headquarter p {
  color: #dadada;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

footer .footer-column.headquarter .contact-item {
  display: block;
  color: #dadada;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

footer .footer-column.headquarter .contact-item:hover {
  color: #ffffff;
}

/* allow headquarter spacing to be configured separately */
footer .footer-column.headquarter {
  margin-right: var(--footer-headquarter-gap);
  /* remove the large translate which previously forced excessive gap
	   between left and right on very wide screens. This helps center the
	   content visually while preserving a small separation from siblings. */
  transform: none;
  will-change: auto;
}

/* Footer Bottom - Copyright */
footer .footer-bottom {
  border-top: 1px solid #ffffff;
  padding: 24px 0;
  margin-top: 60px;
}

footer .footer-bottom .copyright {
  color: #dadada;
  font-size: 13px;
  margin: 0;
  text-align: left;
}

footer .footer-bottom .copyright a {
  color: #dadada;
  text-decoration: none;
}

footer .footer-bottom .copyright a:hover {
  color: #ffffff;
}

/* Match header container width on screens <= 600px */
@media (max-width: 600px) {
  /* Samakan lebar konten dengan header: header pakai margin 0 32px */
  footer {
    /* Override padding besar yang membuat footer tampak sempit */
    --footer-padding-top: 60px;
    --footer-padding-bottom: 40px;
    --footer-padding-left: 0px;
    --footer-padding-right: 0px;
    padding: var(--footer-padding-top) var(--footer-padding-right)
      var(--footer-padding-bottom) var(--footer-padding-left) !important;
  }
  footer .footer-wrapper {
    margin: 0 32px !important; /* konsisten dengan header .wrapper */
    max-width: none !important; /* jangan batasi, biar mengikuti viewport - margin */
    padding: 0;
  }
  /* Hilangkan translate yang mengecilkan visual lebar kolom */
  footer .footer-column.headquarter {
    transform: none;
    margin-right: 0;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  footer .footer-wrapper {
    padding: 0 60px;
  }

  footer .footer-content {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }

  footer .footer-right {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  footer {
    padding: 60px 0 0;
  }

  footer .footer-wrapper {
    padding: 0 40px;
  }

  footer .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  footer .footer-right {
    /* keep columns in a row but allow wrapping on narrower viewports */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }

  /* disable transform when columns wrap/stack to avoid overlap */
  footer .footer-column.headquarter {
    transform: none;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 50px 0 0;
  }

  footer .footer-wrapper {
    padding: 0 24px;
  }

  footer .footer-content {
    gap: 32px;
  }

  footer .footer-right {
    /* stack columns vertically on small screens */
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  footer .footer-cta {
    flex-direction: row;
  }

  footer .footer-cta .btn {
    flex: 1;
    font-size: 13px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  footer .footer-wrapper {
    padding: 0 20px;
  }

  footer .footer-cta {
    flex-direction: column;
  }

  footer .footer-social {
    gap: 12px;
  }

  footer .footer-social a {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Whistleblowing Section Styles */
.wb-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.wb-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.wb-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.wb-card:hover {
  opacity: 0.85;
}

.wb-icon svg {
  display: block;
  width: 60px;
  height: 60px;
}

.wb-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.wb-text-lg {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.wb-text-sm {
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
}
