/* ===== Footer — flat, centered, selaras container homepage ===== */

/* ikut var --container-w dari home.css kalau ada, fallback 1200px */
:root{
  --container-w: 1200px;
  --footer-bg: #0f172a;               /* dark flat */
  --footer-bd: rgba(148,163,184,.20); /* slate-400/20 */
  --footer-fg: #e2e8f0;               /* slate-200 */
  --footer-muted: #a0aec0;            /* slate-400 */
  --footer-accent: #4cc9f0;           /* aksen link/ikon */
  --y-2: clamp(16px, 1.8vw, 24px);    /* vertical rhythm sama */
}

/* area footer penuh */
.site-footer{
  width:100%;
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding-block: var(--y-2);
  border-top: 1px solid var(--footer-bd);
}

/* container tengah (selaras section lain) */
.footer-container{
  width: min(100%, var(--container-w));
  margin-inline: auto;
  padding-inline: 16px;
}

/* grid konten (alias dukung .footer-grid juga) */
.footer-content,
.footer-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

/* kolom footer (alias dukung .footer-column) */
.footer-section,
.footer-column{ 
  grid-column: span 3;
  min-width: 0;
}

.footer-section--wide{ grid-column: span 6; }

/* judul & teks */
.footer-heading,
.footer-section h4{
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .9rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--footer-accent);
  display: inline-block;
}

.footer-section p,
.footer-contact p{
  margin: .5rem 0;
  color: var(--footer-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-contact i,
.footer-links i{ 
  color: var(--footer-accent);
  width: 1rem;
}

/* list/link */
.footer-section ul,
.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li,
.footer-links li{ margin-bottom: .6rem; }

.footer-section a,
.footer-links a{
  color: var(--footer-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-section a:hover,
.footer-links a:hover{
  color: #fff;
  transform: translateY(-1px);
}

/* sosial */
.social-links,
.social-media{
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links img{ width:24px; height:24px; transition: transform .2s; }
.social-links a:hover img,
.social-media a:hover{ transform: translateY(-2px); }

/* garis bawah & copyright */
.footer-bottom,
.footer-copyright{
  border-top: 1px solid var(--footer-bd);
  padding: 1rem 0;
  text-align: center;
  font-size: .9rem;
  color: var(--footer-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .footer-section,
  .footer-column{ grid-column: span 6; }
  .footer-section--wide{ grid-column: span 12; }
}

@media (max-width: 768px){
  .footer-content,
  .footer-grid{ grid-template-columns: repeat(1, 1fr); text-align: center; gap: 18px; }

  .social-media{ justify-content: center; }
  .footer-contact p,
  .footer-links a{ justify-content: center; }
}
