/**
 * Helper Home — Footer layout (grid only, no absolute positioning)
 */

.site-footer {
  position: relative;
  background: #0a0a0a;
  color: rgba(255, 253, 248, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 72px 0 28px;
  overflow: visible;
}

.footer-container {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.25fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  min-width: 0;
  position: static;
  transform: none;
  margin: 0;
  float: none;
}

.footer-col p,
.footer-col a,
.footer-col li,
.footer-col span {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 22px;
  max-width: 100%;
}

.site-footer .site-logo-footer,
.footer-brand-link .site-logo-footer {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-desc {
  max-width: 280px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.footer-heading {
  margin: 0 0 18px;
  color: #e6b969 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links a,
.footer-contact a,
.site-footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.65;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.site-footer a:hover {
  color: #e6b969 !important;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact .contact-item {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  white-space: normal;
}

.site-footer a.is-hidden,
.footer-links li:has(a.is-hidden) {
  display: none !important;
}

.footer-follow-block.is-empty > .footer-heading:first-of-type,
.footer-follow-block.is-empty > .footer-links {
  display: none;
}

.footer-follow-block.is-empty .footer-subheading {
  margin-top: 0;
}

@media (min-width: 768px) {
  .footer-contact .contact-item:not(.contact-item--email) {
    white-space: nowrap;
  }
}

.footer-contact .contact-item--email a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.footer-address {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-address span {
  display: block;
}

.footer-subheading {
  margin: 28px 0 14px;
  color: #e6b969 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-trust li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.footer-trust .duty-line {
  display: block;
  margin-top: 2px;
  color: rgba(230, 185, 105, 0.9);
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom a {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.footer-bottom a:hover {
  color: #e6b969 !important;
}

/* Desktop float clearance — keep Call/WhatsApp off bottom bar links */
@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 48px;
  }

  .footer-bottom {
    padding-right: 140px;
  }

  .hh-float-contact {
    bottom: 1.5rem;
    right: 1.25rem;
  }
}

/* 1024–1199 / tablet: 2x2 */
@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px 48px;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding-top: 56px;
    padding-bottom: max(110px, calc(68px + var(--hh-sticky-bar-h, 68px) + env(safe-area-inset-bottom, 0px)));
  }

  .footer-container {
    width: min(1320px, calc(100% - 40px));
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: max(110px, calc(68px + var(--hh-sticky-bar-h, 68px) + env(safe-area-inset-bottom, 0px)));
  }

  .footer-container {
    width: calc(100% - 40px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer .site-logo-footer,
  .footer-brand-link .site-logo-footer {
    max-width: 150px;
    max-height: 84px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .footer-container {
    width: calc(100% - 32px);
  }
}

/* ====================================================
   Helper Home — Footer Social Buttons (Instagram & Facebook)
   ==================================================== */

.site-footer .footer-social-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 100%;
}

/* Override .hh-social a icon-circle sizing (2.4rem) so labeled pills do not overlap */
.site-footer .footer-social-buttons.hh-social a.footer-social-btn,
.site-footer .hh-social a.footer-social-btn,
.site-footer .footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 36px;
  max-width: none;
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 9999px;
  border: 1px solid rgba(230, 185, 105, 0.4);
  background: rgba(255, 255, 255, 0.03);
  color: #e6b969 !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  user-select: none;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

.site-footer .footer-social-btn .footer-social-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: #e6b969;
  transition: transform 0.25s ease, color 0.25s ease;
}

.site-footer .footer-social-btn:hover:not(.is-disabled) {
  border-color: #e6b969;
  background: rgba(230, 185, 105, 0.16);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(230, 185, 105, 0.22);
}

.site-footer .footer-social-btn:hover:not(.is-disabled) .footer-social-icon {
  color: #ffffff;
  transform: scale(1.1);
}

.site-footer .footer-social-btn:active:not(.is-disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(230, 185, 105, 0.15);
}

.site-footer .footer-social-btn:focus-visible {
  outline: 2px solid #e6b969;
  outline-offset: 3px;
}

/* Facebook disabled / placeholder state (until official URL configured) */
.site-footer .footer-social-btn.is-disabled {
  opacity: 0.72;
  border-color: rgba(230, 185, 105, 0.25);
  background: rgba(255, 255, 255, 0.015);
  color: rgba(230, 185, 105, 0.7) !important;
  cursor: default;
}

.site-footer .footer-social-btn.is-disabled .footer-social-icon {
  color: rgba(230, 185, 105, 0.7);
}

.site-footer .footer-social-btn.is-disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(230, 185, 105, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(230, 185, 105, 0.85) !important;
}

/* Fallback & legacy support */
.site-footer .hh-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .site-footer .footer-social-buttons {
    gap: 8px;
    margin-bottom: 20px;
  }

  .site-footer .footer-social-btn {
    padding: 7px 13px;
    font-size: 12.5px !important;
  }
}
