/* public/css/text-highlight-animation.css
 * TEXT HIGHLIGHT ANIMATION — 24H/24 & 7J/7
 * Adds smooth animation to the highlighted time text in hero section.
 * Animates the SVG stroke/underline with delay to create emphasis.
 */

.main-heading .text-highlight {
  position: relative;
  display: inline-block;
}

.main-heading .text-highlight svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.15);
  width: 110%;
  height: 130%;
  overflow: visible;
  pointer-events: none;
}
.main-heading .text-highlight svg path {
  stroke: #C8A96A;
  animation: drawStroke 1.2s ease-in-out 0.6s forwards;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.main-heading .text-highlight {
  animation: highlightPulse 1.5s ease-in-out 0.5s;
}

@keyframes highlightPulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    color: #89b92e;
  }
  100% {
    opacity: 1;
    color: inherit;
  }
}
