/* ==========================================================================
   Home Footer — ถอดแบบจาก datoh-website 100%
   หลังคาสีทองทรงโค้ง (Golden Roof Curve) + ตราสัญลักษณ์กลาง + ข้อมูลติดต่อ + นโยบาย
   ========================================================================== */

footer.home-footer {
  position: relative;
  isolate: isolate;
  overflow: hidden;
  text-align: center;
  color: #ffffff !important;
  background-color: var(--brand-green-dark, #004521) !important;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 2rem;
  padding: 0 !important;
  font-family: inherit;
  border: none !important;
}

/* ส่วนหลังคาสีทองทรงโค้ง */
.home-footer__roof {
  position: relative;
  width: 100%;
  height: 128px;
  z-index: 1;
}

@media (min-width: 576px) {
  .home-footer__roof {
    height: 176px;
  }
}

@media (min-width: 992px) {
  .home-footer__roof {
    height: 208px;
  }
}

.home-footer__roof svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ตราสัญลักษณ์กลางหลังคา */
.home-footer__logo-link {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 3px solid #c9a00e;
  background-color: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

@media (min-width: 576px) {
  .home-footer__logo-link {
    top: 12px;
    padding: 4px;
  }
}

.home-footer__logo-link:hover {
  transform: translateX(-50%) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.home-footer__logo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

@media (min-width: 576px) {
  .home-footer__logo-img {
    width: 124px;
    height: 124px;
  }
}

@media (min-width: 992px) {
  .home-footer__logo-img {
    width: 152px;
    height: 152px;
  }
}

/* ส่วนเนื้อหาข้อมูลติดต่อ */
.home-footer__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.75rem 1.25rem;
  z-index: 2;
}

@media (min-width: 576px) {
  .home-footer__content {
    padding-bottom: 2.25rem;
  }
}

.home-footer__title {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.home-footer__address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 576px) {
  .home-footer__address {
    font-size: 1.05rem;
    gap: 0.5rem;
  }
}

@media (min-width: 992px) {
  .home-footer__address {
    font-size: 1.15rem;
  }
}

.home-footer__address p {
  margin: 0;
}

.home-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.25rem;
}

.home-footer__link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.home-footer__link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* แถบโซเชียลติดต่อ */
.home-footer__social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem !important;
}

.home-footer__social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-footer__social-btn:hover {
  background-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* แถบท้ายสุด: นโยบายและ Copyright */
.home-footer__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  background: rgba(0, 48, 23, 0.6) !important;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.home-footer__policies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.home-footer__policy-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-footer__policy-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.home-footer__copyright {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.home-footer__powered-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.home-footer__powered-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
