/* ==========================================================================
   footer.css — Footer หลัก + ปุ่มติดต่อลอย (includes/footer.php)
   พื้นดำ 5 คอลัมน์ โลโก้อยู่ตรงกลาง
   ========================================================================== */

.site-footer {
  --color-text: rgb(255 255 255 / 0.6);
  --color-heading: var(--white);
  --color-strong: var(--white);
  color: var(--color-text);
  background: var(--black);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr 1.1fr 1fr;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem);
}

.site-footer__title { margin-bottom: 1.1rem; font-size: 1rem; font-weight: 600; color: var(--white); }

.site-footer a { color: rgb(255 255 255 / 0.62); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }

.site-footer__links { display: grid; gap: 0.6rem; font-size: 0.875rem; }

.site-footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer__logo { display: inline-flex; align-items: center; justify-content: center; width: 240px; max-width: 100%; margin-bottom: 1rem; padding: 14px 18px; background: var(--white); border-radius: var(--radius-sm); }
.site-footer__logo img { width: 100%; height: auto; }
.site-footer__name { font-size: 0.8125rem; line-height: 1.6; }

.site-footer__contact { display: grid; gap: 0.7rem; font-size: 0.875rem; }
.site-footer__contact li { display: flex; align-items: center; gap: 0.6rem; }
.site-footer__contact .icon { width: 1rem; height: 1rem; color: var(--brand-light); }

.site-footer__address, .site-footer__tax { font-size: 0.875rem; line-height: 1.7; }
.site-footer__map { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.site-footer__map .icon { width: 1rem; height: 1rem; color: var(--brand-light); }

.social-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.social-list a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; transition: background-color .2s, border-color .2s, color .2s; }
.social-list a:hover { color: var(--black); background: var(--white); border-color: var(--white); }

.site-footer__bottom { padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.08); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-footer__bottom p, .site-footer__bottom a { margin: 0; font-size: 0.8125rem; color: rgb(255 255 255 / 0.45); }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 1199px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 991px) {
  /* ลิงก์ใน footer: พื้นที่กดสูงพอสำหรับนิ้ว */
  .site-footer__links { gap: 0; }
  .site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer__contact { gap: 0.15rem; }
  .site-footer__contact a { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer__map, .site-footer__bottom a { display: inline-flex; align-items: center; min-height: 40px; }
  .social-list a { width: 44px; height: 44px; }
}
@media (max-width: 575px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom-inner { flex-direction: column; gap: 0; text-align: center; }
}
