/* ======================================================== */
/*                     SITE FOOTER SECTION                  */
/* ======================================================== */

/* Định nghĩa biến màu sắc để dễ quản lý */
:root {
  --brand: #e88d05; /* Màu cam thương hiệu */
  --dark-blue: #1a233a; /* Màu xanh đậm cho footer main */
  --light-text: #ccc; /* Màu chữ nhạt */
  --white: #fff;
}

.site-footer {
  color: var(--light-text);
  text-align: left; /* Căn lề trái mặc định cho toàn bộ footer */
  font-family: "Roboto", sans-serif; /* Đảm bảo font nhất quán */
}

/* Phần chính của footer (nền xanh đậm) */
.footer-main {
  background-color: var(--dark-blue);
  padding: 4rem 0; /* Giữ padding như ban đầu */
}

.footer-main .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--white); /* Giữ đường kẻ dưới màu trắng như ảnh mẫu */
  display: inline-block;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1rem 0;
}

/* Danh sách thông tin liên hệ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start; /* Căn lề trên, tốt cho địa chỉ nhiều dòng */
  gap: 1rem; /* Khoảng cách giữa icon và text */
  margin-bottom: 1rem; /* Khoảng cách giữa các mục */
}
.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  flex-shrink: 0; /* Ngăn icon bị co lại */
  margin-top: 2px; /* Căn chỉnh nhẹ theo chiều dọc */
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white); /* Đặt màu icon là màu trắng như ảnh mẫu */
}

.contact-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-text strong {
  color: var(--white); /* Đảm bảo label "Address:", "Hotline:"... màu trắng */
  font-weight: 600;
}

.contact-text a {
  color: var(--light-text); /* Màu link mặc định */
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-text a:hover {
  color: var(--brand); /* Màu cam khi hover */
}

/* Danh sách category */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
}
.category-list li a {
  color: var(--light-text); /* Màu chữ mặc định */
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease; /* Thêm transform vào transition */
}
.category-list li a::before {
  /* Thay đổi ở đây */
  content: "•"; /* Dấu chấm tròn */
  font-size: 1.5em; /* Kích thước lớn hơn để rõ ràng */
  line-height: 1; /* Căn chỉnh vị trí */
  margin-right: 0.75rem;
  font-weight: bold; /* Dấu chấm đậm hơn */
  color: var(--white);
}
.category-list li a:hover {
  color: var(--brand); /* Đổi màu cam khi hover */
  transform: translateX(5px); /* Dịch chuyển sang phải 5px */
}

.facebook-widget iframe {
  max-width: 100%;
  border-radius: 8px; /* Giữ border-radius */
}

/* Phần dưới của footer (nền cam) */
.footer-bottom {
  background-color: var(--brand);
  color: var(--white);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  /* Bỏ hoặc điều chỉnh margin-bottom nếu có khoảng trắng dưới cùng */
  margin-bottom: 0; /* Đảm bảo không có margin-bottom nào */
}
.footer-bottom .container {
  display: flex;
  justify-content: center; /* Đổi thành center để căn giữa dòng Copyright */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-bottom p {
  margin: 0;
  text-align: center; /* Đảm bảo text p bên trong cũng được căn giữa */
  line-height: 1; /* Đảm bảo không có line-height thừa gây khoảng trống */
}

/* ======================================================== */
/*               FLOATING ACTION BUTTONS                    */
/* ======================================================== */

/* NÚT LIÊN HỆ NỔI (GÓC TRÁI) */
.floating-contact-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 100;

  background-color: #dd4b39;
  color: var(--white);
  padding: 8px 20px 8px 12px;
  border-radius: 50px;

  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* KHUNG BỌC ICON */
.icon-wrapper {
  position: relative; /* Quan trọng để định vị hiệu ứng radar */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Áp dụng animation rung lắc cho khung bọc */
  animation: phone-icon-shake 2.5s infinite;
}
.floating-contact-btn:hover .icon-wrapper {
  animation-play-state: paused;
}

/* ICON BÊN TRONG */
.icon-wrapper img {
  width: 100%;
  height: 100%;
}

/* HIỆU ỨNG TỎA SÓNG RADAR (::before) */
.icon-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Căn giữa hoàn hảo */

  width: 100%;
  height: 100%;
  border-radius: 50%;

  /* Tạo hiệu ứng vòng tròn tỏa ra bằng box-shadow */
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);

  /* Áp dụng animation radar */
  animation: radar-pulse 2s infinite;
}
.floating-contact-btn:hover .icon-wrapper::before {
  animation-play-state: paused;
}

/* HIỆU ỨNG RUNG LẮC (cho icon) */
@keyframes phone-icon-shake {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(-20deg);
  }
  20%,
  40% {
    transform: rotate(20deg);
  }
}

/* HIỆU ỨNG TỎA SÓNG RADAR */
@keyframes radar-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    opacity: 1; /* Thêm opacity để hiệu ứng mờ dần */
  }
  70% {
    transform: translate(-50%, -50%) scale(2.5);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    opacity: 0;
  }
}

/* 
   PHẦN BÊN DƯỚI DÀNH CHO NÚT CUỘN LÊN ĐẦU TRANG,
   GIỮ NGUYÊN NHƯ CŨ
*/
/* NÚT CUỘN LÊN ĐẦU TRANG */
.scroll-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background-color: rgba(30, 30, 30, 0.7);
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top-btn:hover {
  background-color: var(--brand);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-main .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center; /* Căn giữa trên mobile cho footer-bottom */
    text-align: center;
  }
}

/* Tạo vùng đệm ở cuối nội dung chính */
main#site-main {
  padding-bottom: 80px; /* Chiều cao lớn hơn nút liên hệ một chút */
}
