/* ═══════════════════════════════════════════════════════════════════════════
   HOVER FOOTER — vanilla port of the 21st.dev "hover-footer" (TextHoverEffect),
   in DEPLUS colours: navy card, red glow, brand word that draws itself and
   shows a red→white→blue gradient under the cursor. JS: js/hover-footer.js
═══════════════════════════════════════════════════════════════════════════ */

.hover-footer {
  position: relative;
  overflow: hidden;
  margin: 32px;
  border-radius: 28px;
  padding: 72px 0 0;
  background: var(--color-dark);
  isolation: isolate;
}

.hf-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(125% 125% at 50% 10%, #021635 50%, rgba(214, 45, 47, 0.28) 100%);
  pointer-events: none;
}

.hf-inner { position: relative; z-index: 2; }

.hover-footer .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 48px;
}

.hover-footer .footer-col-heading {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hover-footer .footer-links-list { gap: 12px; }
.hover-footer .footer-link { transition: color 0.2s ease; }
.hover-footer .footer-link:hover { color: #fff; }

.hf-live { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.hf-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: hf-pulse 2s infinite;
}
@keyframes hf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hf-contact { margin-bottom: 28px; }
.hf-contact li { display: flex; gap: 12px; align-items: center; }
.hf-contact svg { flex-shrink: 0; color: var(--color-primary); }

.hover-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0;
}
.hover-footer .footer-bottom .footer-copyright { margin: 0; }
.hover-footer .footer-social-icons { display: flex; gap: 10px; margin: 0; }

/* Big brand word */
.hf-word {
  position: relative;
  z-index: 1;
  height: clamp(8rem, 24vw, 24rem);
  margin: 8px 0 clamp(-6rem, -6.5vw, -2rem);
  padding: 0 16px;
}
.hf-svg { width: 100%; height: 100%; cursor: default; user-select: none; display: block; }

.hf-text {
  font-family: 'Barlow Condensed', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 84px;
  letter-spacing: 1px;
  fill: transparent;
  stroke-width: 0.35;
}
.hf-ghost { stroke: rgba(255, 255, 255, 0.22); opacity: 0; transition: opacity 0.3s ease; }
.hf-draw {
  stroke: rgba(214, 45, 47, 0.55);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.hover-footer.hf-in .hf-draw { animation: hf-draw 4s ease-in-out forwards; }
@keyframes hf-draw { to { stroke-dashoffset: 0; } }
.hf-reveal { opacity: 0; stroke-width: 0.8; transition: opacity 0.3s ease; }
.hf-word.is-hover .hf-ghost { opacity: 0.7; }
.hf-word.is-hover .hf-reveal { opacity: 1; }

@media (max-width: 1024px) {
  .hover-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hover-footer .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hover-footer { margin: 12px; border-radius: 20px; padding-top: 48px; }
  .hover-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 32px; }
  .hover-footer .footer-brand-col,
  .hover-footer .footer-col:last-child { grid-column: 1 / -1; }
  .hover-footer .footer-col-heading { font-size: 16px; margin-bottom: 16px; }
  .hover-footer .footer-link { font-size: 14px; }
  .hover-footer .footer-logo-img { height: 48px; }
  .hover-footer .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .hf-word { margin-top: 0; margin-bottom: -1.5rem; }
}

/* Phones/tablets have no hover: show the brand gradient across the whole word once drawn */
@media (hover: none) {
  .hf-reveal { mask: none; stroke-width: 0.5; transition: opacity 1.2s ease 2.8s; }
  .hover-footer.hf-in .hf-reveal { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-draw { stroke-dashoffset: 0; animation: none !important; }
  .hf-pulse { animation: none; }
}
