/**
 * Global Shared Footer & Floating Contact Widget
 * PT Sugi Harti Indonesia
 * Version: 2026.1
 */

/* ==============================================================
   1. GLOBAL SHARED FOOTER
   ============================================================== */
.footer-pro {
  background: #ffffff;
  color: #334155;
  border-top: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  clear: both;
}

.footer-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #002F6C 0%, #FFB100 50%, #002F6C 100%);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.1fr;
  gap: 40px;
  padding: 60px 24px 40px;
  box-sizing: border-box;
}

/* Company Column */
.footer-company {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 18px;
  display: inline-block;
}

.footer-company p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 20px 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: #f8fafc;
  color: #002F6C;
  border: 1px solid #e2e8f0;
}

.f-badge i {
  color: #FFB100;
  font-size: 13px;
}

/* Headings */
.footer-pro h4 {
  font-size: 16px;
  font-weight: 700;
  color: #002F6C;
  margin: 0 0 18px 0;
  position: relative;
  letter-spacing: -0.2px;
}

.footer-pro h4::after {
  content: "";
  display: block;
  width: 28px;
  height: 2.5px;
  background: #FFB100;
  margin-top: 6px;
  border-radius: 2px;
}

/* Navigation Links */
.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.footer-links-list li a {
  font-size: 13.5px;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.footer-links-list li a i {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-links-list li a:hover {
  color: #002F6C;
  transform: translateX(4px);
}

.footer-links-list li a:hover i {
  color: #002F6C;
}

/* Contact Column */
.footer-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  list-style: none !important;
}

.footer-contact-list li i {
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list li a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
  color: #002F6C;
}

/* Hours & Live Clock */
.footer-hours {
  display: flex;
  flex-direction: column;
}

.timezone {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.timezone i {
  color: #002F6C;
}

.live-clock-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 47, 108, 0.04);
}

.live-clock-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-clock-icon {
  font-size: 22px;
  color: #002F6C;
  line-height: 1;
}

.live-clock-display {
  display: flex;
  flex-direction: column;
}

.live-time-val {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  font-family: monospace, "Poppins", sans-serif;
}

.live-time-zone {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.status-badge.is-open {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-badge.is-closed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  animation: statusPulse 2s infinite ease-in-out;
}

.status-badge.is-open .status-dot {
  background: #16a34a;
}

.status-badge.is-closed .status-dot {
  background: #dc2626;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.schedule {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
  list-style: none !important;
}

.schedule li span:first-child {
  font-weight: 500;
  color: #475569;
}

.schedule li span:last-child {
  font-weight: 600;
  color: #0f172a;
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
}

.footer-bottom strong {
  color: #002F6C;
}

/* ==============================================================
   2. FLOATING CONTACT HUB (FAB) - VERTICAL SPEED DIAL (LOGOS UPWARD)
   ============================================================== */
.contact-widget,
.contact-popup-arc {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  top: auto !important;
  z-index: 9998 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Poppins", system-ui, -apple-system, sans-serif !important;
  background: transparent !important;
  width: auto !important;
}

/* Vertical Speed Dial Stack (Always-Visible Vertical Logos Upward) */
.contact-speed-dial {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Speed Dial Item: Circular Button with Logo Only */
.contact-speed-item {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(0, 47, 108, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 47, 108, 0.18) !important;
  position: relative !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.contact-speed-item img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.22s ease !important;
}

.contact-speed-item:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 8px 22px rgba(0, 47, 108, 0.3) !important;
}

.contact-speed-item:hover img {
  transform: scale(1.1) !important;
}

.contact-speed-item.whatsapp:hover {
  border-color: #25d366 !important;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35) !important;
}

.contact-speed-item.tokopedia:hover {
  border-color: #03ac0e !important;
  box-shadow: 0 8px 22px rgba(3, 172, 14, 0.35) !important;
}

.contact-speed-item.instagram:hover {
  border-color: #e1306c !important;
  box-shadow: 0 8px 22px rgba(225, 48, 108, 0.35) !important;
}

.contact-speed-item.linkedin:hover {
  border-color: #0a66c2 !important;
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.35) !important;
}

/* Tooltip on right side of speed item */
.speed-tooltip {
  position: absolute;
  left: 56px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 10000;
}

.speed-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
  border-width: 4px 4px 4px 0;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
}

.contact-speed-item:hover .speed-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulsing online green dot on WhatsApp */
.contact-online-dot {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  width: 11px !important;
  height: 11px !important;
  background: #22c55e !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7) !important;
  animation: pulseContactDot 2s infinite !important;
}

@keyframes pulseContactDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Floating Trigger Button (FAB) - Hidden because logos are now directly visible */
.contact-fab-btn {
  display: none !important;
}

.contact-fab-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 26px rgba(0, 47, 108, 0.45) !important;
}

.contact-fab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-fab-icon img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain;
  display: block;
}

.contact-fab-btn .close-icon {
  position: absolute;
  font-size: 20px;
  color: #ffffff;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-widget.is-open .contact-fab-btn .contact-fab-icon,
.contact-widget.active .contact-fab-btn .contact-fab-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.contact-widget.is-open .contact-fab-btn .close-icon,
.contact-widget.active .contact-fab-btn .close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Green Pulse Online Badge */
.contact-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.contact-widget.is-open .contact-fab-badge,
.contact-widget.active .contact-fab-badge {
  display: none !important;
}

/* Tooltip on hover */
.contact-fab-tooltip {
  position: absolute;
  left: 62px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-fab-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
}

.contact-fab-btn:hover .contact-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.contact-widget.is-open .contact-fab-tooltip,
.contact-widget.active .contact-fab-tooltip {
  display: none !important;
}

/* Popup Menu Card (Hidden by default, expands on click) */
.contact-dock-card,
.contact-menu-wrapper {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 16px 40px -8px rgba(0, 47, 108, 0.22), 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  min-width: 230px;
}

.contact-widget.is-open .contact-dock-card,
.contact-widget.is-open .contact-menu-wrapper,
.contact-widget.active .contact-dock-card,
.contact-widget.active .contact-menu-wrapper {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.contact-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(0, 47, 108, 0.08);
  margin-bottom: 8px;
}

.contact-dock-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #002F6C;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-dock-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-dock-close:hover {
  color: #dc2626;
}

.contact-menu-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 12px 7px 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.contact-item:hover {
  transform: translateX(4px) scale(1.01) !important;
  box-shadow: 0 4px 14px rgba(0, 47, 108, 0.12) !important;
}

.contact-item.whatsapp:hover { border-color: #25d366 !important; background: #f0fdf4 !important; }
.contact-item.tokopedia:hover { border-color: #03ac0e !important; background: #f0fdf4 !important; }
.contact-item.instagram:hover { border-color: #e1306c !important; background: #fdf2f8 !important; }
.contact-item.linkedin:hover { border-color: #0077b5 !important; background: #f0f9ff !important; }

.contact-icon-wrapper {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.contact-icon-wrapper img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
}

.contact-item-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.2 !important;
  display: block !important;
}

.contact-item-sub {
  font-size: 10px !important;
  color: #64748b !important;
  display: block !important;
}

.mobile-nav-active .contact-widget,
.mobile-nav-active .contact-popup-arc {
  display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 50px 20px 30px;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 16px 24px;
  }
  .live-clock-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-widget,
  .contact-popup-arc {
    bottom: 18px !important;
    left: 18px !important;
  }
  .contact-item {
    min-width: 175px;
    padding: 6px 12px 6px 8px;
  }
  .contact-fab-tooltip {
    display: none;
  }
}


/* BULLETPROOF FAILSAFE OVERRIDES */
.footer-pro ul,
.footer-pro ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-pro li {
  list-style: none !important;
}

.footer-pro li::before,
.footer-pro li::marker {
  display: none !important;
  content: "" !important;
}

#floatingContact,
.contact-widget,
.contact-popup-arc {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  top: auto !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#floatingContact img,
.contact-widget img,
.contact-popup-arc img,
.contact-item img,
.contact-icon-wrapper img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
}

#contactFabBtn img,
.contact-fab-btn img,
.contact-fab-icon img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Bulletproof Bootstrap Modal & Backdrop Stacking Fix */
.modal {
  z-index: 10600 !important;
}
.modal-backdrop {
  z-index: 10550 !important;
}
#pdfModal,
#shiProjectPreview,
#shiTeamModal,
#product-modal {
  z-index: 10600 !important;
}

/* ==============================================================
   COMPACT MOBILE FLOATING CONTACT WIDGET (SOLUSI ITEM 1)
   ============================================================== */
.contact-speed-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  #floatingContact,
  .contact-widget,
  .contact-popup-arc {
    bottom: 16px !important;
    left: 16px !important;
    z-index: 9990 !important;
  }

  .contact-speed-dial {
    gap: 8px !important;
  }

  .contact-speed-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: #002F6C !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 47, 108, 0.3) !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
  }

  .contact-speed-toggle:active {
    transform: scale(0.92) !important;
  }

  /* Default mobile: sembunyikan 3 tombol non-WhatsApp agar tidak menutupi 1/3 layar */
  #floatingContact .contact-speed-dial .contact-speed-item:not(.whatsapp),
  #floatingContact .contact-speed-item:not(.whatsapp),
  .contact-widget .contact-speed-dial .contact-speed-item:not(.whatsapp) {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(10px) scale(0.85) !important;
    pointer-events: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Saat terbuka: tampilkan 3 tombol dengan rapi ke atas */
  #floatingContact.is-open .contact-speed-dial .contact-speed-item:not(.whatsapp),
  #floatingContact.active .contact-speed-dial .contact-speed-item:not(.whatsapp),
  .contact-widget.is-open .contact-speed-dial .contact-speed-item:not(.whatsapp),
  .contact-widget.active .contact-speed-dial .contact-speed-item:not(.whatsapp) {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }

  .contact-speed-item {
    width: 44px !important;
    height: 44px !important;
  }

  #floatingContact img,
  .contact-speed-item img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  .speed-tooltip {
    display: none !important;
  }
}

