/* =========================================================
   Topkon hover icons
   Converted from itshover.com (Apache-2.0) to plain CSS,
   no React or extra libraries needed.
   An icon animates when you hover the icon itself OR the
   link/button/line it sits inside.
   ========================================================= */

.ih {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
  overflow: visible;
}
.ih * { transform-box: view-box; }

/* ---------- Phone: sound waves pulse ---------- */
.ih-phone .wave-in  { transform-origin: 21.5px 10.5px; }
.ih-phone .wave-out { transform-origin: 24px 8px; }
:is(a, button):hover .ih-phone .wave-in,
.ih-phone:hover .wave-in  { animation: ih-wave-in .4s ease-in-out; }
:is(a, button):hover .ih-phone .wave-out,
.ih-phone:hover .wave-out { animation: ih-wave-out .45s ease-in-out .1s; }
@keyframes ih-wave-in  { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: 1;  transform: scale(1.15); } }
@keyframes ih-wave-out { 0%,100% { opacity: .2; transform: scale(1); } 50% { opacity: .8; transform: scale(1.25); } }

/* ---------- Mail: envelope flap opens ---------- */
.ih-mail .flap { transform-origin: 12px 7px; transition: transform .5s ease-in-out; }
:is(a, button):hover .ih-mail .flap,
.ih-mail:hover .flap { transform: scaleY(.5); }

/* ---------- Map pin: center dot blinks while hovered ---------- */
:is(a, button, address, li, p):hover .ih-pin .dot,
.ih-pin:hover .dot { animation: ih-blink .6s ease-in-out infinite; }
@keyframes ih-blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Clock: hands spin a full turn ---------- */
.ih-clock .hands { transform-origin: 12px 12px; transition: transform 1s ease-in-out; }
:is(a, button, li, p):hover .ih-clock .hands,
.ih-clock:hover .hands { transform: rotate(360deg); }

/* ---------- Message bubble: draws itself, then pops ---------- */
.ih-msg .bubble { transform-origin: 12px 12px; stroke-dasharray: 1; stroke-dashoffset: 0; }
:is(a, button):hover .ih-msg .bubble,
.ih-msg:hover .bubble { animation: ih-draw .6s ease-in-out, ih-pop .3s ease-out .6s; }
@keyframes ih-draw { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes ih-pop  { 50% { transform: scale(1.05); } }

/* ---------- Facebook: little bounce ---------- */
.ih-fb .f { transform-origin: 12px 12px; }
:is(a, button):hover .ih-fb .f,
.ih-fb:hover .f { animation: ih-bounce .5s ease-in-out; }
@keyframes ih-bounce { 30% { transform: scale(.9); } 65% { transform: scale(1.05); } }

/* ---------- Arrow: nudges right ---------- */
:is(a, button):hover .ih-arrow .arrow,
.ih-arrow:hover .arrow { animation: ih-nudge .5s ease-in-out; }
@keyframes ih-nudge { 50% { transform: translateX(4px); } }

/* ---------- Fit to Topkon's existing styles ---------- */
.footer-icon.ih { width: 18px; height: 18px; }
.footer-icon.ih-phone { stroke-width: 2.67; }
.social-icon .ih { width: 28px; height: 28px; }
.hero2__btn .ih { margin-right: 8px; }
.btn .ih-arrow { margin-left: 8px; vertical-align: -3px; }

/* Respect people who turn off animations on their device */
@media (prefers-reduced-motion: reduce) {
  .ih * { animation: none !important; transition: none !important; }
}
