/* ==========================================================================
   FOOTER COMPONENT STYLES – Andira Utama
   ========================================================================== */

.site-footer {
  width: 100%;
  background: #FFFFFF;
  font-family: var(--font-inter);
  color: #333333;
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* Brand Column */
.footer-brand-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

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

.footer-tagline {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 13px 8px 13px;
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #F7F5F0;
  background: linear-gradient(90deg, #1B2B60 0%, #C51516 100%);
  clip-path: polygon(0 12.5px, 10px 0, 100% 0, 100% 100%, 0 100%);
  white-space: nowrap;
}

/* Link Columns */
.footer-links-row {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 116px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #777777;
  text-transform: uppercase;
  margin: 0;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-label {
  display: block;
  font-size: 12px;
  line-height: 21px;
  color: #333333;
  text-transform: uppercase;
}

.footer-value {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #333333;
}

/* Kolom "Hubungi Kami" mengisi sisa lebar baris; kolom lain selebar isinya */
.footer-links-row > .footer-col {
  flex: 0 0 auto;
}

.footer-links-row > .footer-col:first-child {
  flex: 1 1 0;
  min-width: 0;
}

/* Alamat (dari Pengaturan dashboard) turun baris mengikuti lebar kolom, termasuk saat berupa link Maps */
address.footer-value,
address.footer-value .footer-link {
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer-phone-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link-list {
  display: grid;
  gap: 12px;
}

.footer-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #C51516;
}

.footer-divider {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid #D9D9D9;
  margin: 0;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: #333333;
  text-align: center;
}

.footer-copyright a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition-fast, 0.2s ease);
}

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

/* Responsive */
@media (max-width: 1280px) {
  .footer-container {
    padding: 56px 40px;
  }

  .footer-top-row {
    gap: 56px;
  }

  .footer-links-row {
    gap: 56px;
  }
}

@media (max-width: 1024px) {
  .footer-top-row {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links-row {
    width: 100%;
    justify-content: space-between;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 48px 18px 32px;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 32px 40px;
  }

  .footer-links-row .footer-col:first-child {
    flex-basis: 100%;
  }
}
