/* ==========================================================================
   Footer & Contact Info Component Styles
   Home Solutions Durgapur - Modern, Premium Layout
   ========================================================================== */

.site-footer {
  background-color: var(--page-bg);
  padding: 85px 0 95px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.footer-col {
  height: 100%;
}

.footer-heading {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 1.45rem; /* ~23px */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.2px;
}

/* Company Logo */
.footer-logo-wrap {
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-height: 65px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.footer-logo:not([src]),
.footer-logo[src=""] {
  width: 65px;
  height: 65px;
  background-color: #e2e8f0;
  border-radius: var(--radius-sm, 8px);
  display: block;
}

/* Subheadings & Info blocks */
.footer-info-block {
  margin-bottom: 1.25rem;
}

.footer-subheading {
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-address {
  color: var(--body-text);
  font-family: var(--font-main);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 340px;
}

/* Social icons */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 1.25rem 0 1.5rem;
}

.footer-social-icon {
  color: var(--primary-navy);
  background-color: rgba(8, 15, 92, 0.06);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  color: var(--white);
  background-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 15, 92, 0.2);
}

/* Contact Links */
.footer-contact-link {
  display: block;
  color: var(--body-text);
  font-family: var(--font-main);
  font-size: 0.94rem;
  line-height: 1.65;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-contact-link:hover {
  color: var(--primary-navy-light);
  transform: translateX(2px);
}

/* Business Hours */
.business-hours-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.business-hour-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.94rem;
  color: var(--body-text);
  line-height: 2;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(8, 15, 92, 0.08);
}

.business-hour-item:last-child {
  border-bottom: none;
}

.business-hour-item .day-label {
  min-width: 115px;
  color: var(--primary-navy);
  font-weight: 600;
}

.business-hour-item .time-label {
  color: var(--body-text);
  font-weight: 400;
}

/* Google Maps Container */
#map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background-color: #e2e8f0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  position: relative;
}

.map-embed-wrapper {
  width: 100%;
  height: 100%;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Bottom Copyright Bar
   ========================================================================== */

.copyright-bar {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 18px 0;
  width: 100%;
}

.copyright-text {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
}

.copyright-heart {
  color: #ff4d4f;
  margin: 0 4px;
  display: inline-block;
  font-size: 0.95rem;
}

/* ==========================================================================
   WhatsApp Floating Chat Widget
   ========================================================================== */

.wa-widget-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-main);
}

/* Floating Action Trigger Row */
.wa-trigger-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Collapsed State: Speech Bubble (to the left of WhatsApp button) */
.wa-speech-bubble {
  position: relative;
  background: #ffffff;
  color: #2c3e50;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, box-shadow 0.25s ease;
  user-select: none;
}

/* Triangular pointer pointing to the circular WhatsApp button */
.wa-speech-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #ffffff;
}

.wa-speech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.wa-widget-container.wa-is-open .wa-speech-bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85) translateX(10px);
}

/* Circular Floating Action Buttons (56px) */
.wa-floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  position: relative;
  z-index: 10;
}

.wa-floating-btn:hover {
  transform: scale(1.06) translateY(-2px);
}

/* Green Circular WhatsApp Button */
.wa-btn-open {
  background-color: #25D366;
  color: #ffffff;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  animation: whatsappHop 2.8s ease-in-out infinite;
}

.wa-btn-open:hover {
  background-color: #20bd5a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  animation-play-state: paused;
  transform: scale(1.06) translateY(-2px);
}

/* Subtle Natural WhatsApp Hopping Animation */
@keyframes whatsappHop {
  0%, 70%, 100% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-15px);
  }
  82% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-10px);
  }
  94% {
    transform: translateY(0);
  }
}

.wa-btn-open i {
  color: #ffffff;
  line-height: 1;
}

/* Hide green button when chat is open */
.wa-widget-container.wa-is-open .wa-btn-open {
  display: none;
}

/* Purple Circular Close Button */
.wa-btn-close {
  display: none;
  background-color: #9f77cf;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wa-btn-close:hover {
  background-color: #8e64c2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.wa-btn-close i {
  color: #ffffff;
  line-height: 1;
}

/* Show purple close button when chat is open */
.wa-widget-container.wa-is-open .wa-btn-close {
  display: flex;
}

/* Expanded WhatsApp Chat Panel */
.wa-chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 330px;
  height: 420px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 120px);
  background-color: #efeae2;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-dropdown, 0 12px 36px rgba(0, 0, 0, 0.22));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  pointer-events: none;
  z-index: 9;
}

.wa-widget-container.wa-is-open .wa-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Green Header */
.wa-chat-header {
  background-color: #3f9876;
  height: 50px;
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.wa-header-icon {
  font-size: 26px;
  color: #ffffff;
  line-height: 1;
}

.wa-header-btn-close {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-header-btn-close:hover {
  opacity: 1;
  transform: translateY(1px);
}

/* Chat Body with Subtle WhatsApp Doodle Background */
.wa-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 14px 14px;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23746651' stroke-width='1.1' opacity='0.08'%3E%3Cpath d='M20 25 a8 8 0 0 1 16 0 v4 a4 4 0 0 1 -8 4 a4 4 0 0 1 -8 -4 z'/%3E%3Ccircle cx='70' cy='30' r='8'/%3E%3Cpath d='M70 26 v4 l3 2'/%3E%3Cpath d='M120 20 q12 0 12 12 t-12 12 q-4 0 -8 -3 l-6 2 l2 -6 q-3 -4 -3 -5 q0 -12 15 -12'/%3E%3Cpath d='M25 80 l12 8 l-12 8 z'/%3E%3Cpath d='M75 75 l5 10 l10 2 l-7 7 l2 10 l-9 -5 l-9 5 l2 -10 l-7 -7 l10 -2 z'/%3E%3Cpath d='M125 70 a6 6 0 0 1 10 10 l-10 11 l-10 -11 a6 6 0 0 1 10 -10 z'/%3E%3Ccircle cx='80' cy='135' r='10'/%3E%3Cpath d='M76 135 a4 4 0 0 0 8 0'/%3E%3C/svg%3E");
  background-repeat: repeat;
  overflow-y: auto;
  position: relative;
}

/* Incoming Message Bubble */
.wa-message-bubble {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  padding: 10px 14px 6px 14px;
  border-radius: 0 12px 12px 12px;
  max-width: 86%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  margin-bottom: auto;
  position: relative;
}

.wa-message-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 8px solid #ffffff;
  border-left: 8px solid transparent;
}

.wa-message-text {
  font-size: 0.92rem;
  line-height: 1.42;
  color: #111b21;
  font-weight: 400;
}

.wa-message-time {
  font-size: 0.72rem;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* Message Input Area at Bottom */
.wa-input-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.wa-input-pill {
  flex: 1;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
  gap: 8px;
}

.wa-emoji-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #9cb1bc;
  font-size: 19px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wa-emoji-btn:hover {
  color: #7b94a2;
  transform: scale(1.1);
}

.wa-input-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #111b21;
  padding: 4px 0;
}

.wa-input-field::placeholder {
  color: #9aa8af;
}

.wa-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #b5d5e2;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.wa-send-btn:hover {
  background-color: #9ec5d6;
  transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.wa-send-btn i {
  color: #ffffff;
  margin-left: 2px;
}

/* Responsive Adaptations */
@media (max-width: 991.98px) {
  .site-footer {
    padding: 60px 0 70px;
  }

  .footer-heading {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  #map {
    height: 320px;
    margin-top: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 45px 0 55px;
  }

  .footer-heading {
    font-size: 1.25rem;
  }

  .business-hour-item {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .business-hour-item .day-label {
    min-width: 100px;
  }

  #map {
    height: 280px;
    margin-top: 1.5rem;
  }

  .copyright-bar {
    padding: 16px 0;
  }

  .copyright-text {
    font-size: 0.85rem;
  }

  .wa-widget-container,
  .floating-contact-container {
    bottom: 20px;
    right: 20px;
  }

  .wa-floating-btn,
  .floating-btn {
    width: 52px;
    height: 52px;
  }

  .wa-btn-open {
    font-size: 28px;
  }

  .wa-btn-close {
    font-size: 24px;
  }

  .wa-speech-bubble {
    font-size: 0.88rem;
    padding: 7px 15px;
  }

  .wa-chat-panel {
    bottom: 68px;
    right: 0;
    width: min(320px, calc(100vw - 36px));
    height: min(400px, calc(100vh - 100px));
  }
}

@media (max-width: 480px) {
  #map {
    height: 250px;
  }

  .footer-address {
    font-size: 0.88rem;
  }

  .footer-contact-link {
    font-size: 0.88rem;
    word-break: break-all;
  }

  .business-hour-item {
    font-size: 0.86rem;
    gap: 0.35rem;
  }

  .business-hour-item .day-label {
    min-width: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-widget-container,
  .wa-floating-btn,
  .wa-btn-open,
  .floating-whatsapp,
  .floating-contact-container {
    animation: none !important;
  }
}

