﻿/* HYDROFLEX - PLYWAJACE PRZYCISKI */

.hf-wa-stack {
    position: fixed;
    left: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.hf-wa {
    position: relative;
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #F47B32 0%,
        #E56B28 55%,
        #C9561D 100%
    );

    text-decoration: none !important;

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.25),
        0 0 0 0 rgba(229,107,40,0.30);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    animation: hf-pulse 2.8s ease-in-out infinite;
}


/* IKONA */

.hf-wa img {
    width: 26px;
    height: 26px;

    display: block;

    transition: transform 0.2s ease;
}


/* PULS */

@keyframes hf-pulse {

    0% {
        box-shadow:
            0 6px 18px rgba(0,0,0,0.25),
            0 0 0 0 rgba(229,107,40,0.30);
    }

    50% {
        box-shadow:
            0 7px 20px rgba(0,0,0,0.26),
            0 0 0 8px rgba(229,107,40,0.08);
    }

    100% {
        box-shadow:
            0 6px 18px rgba(0,0,0,0.25),
            0 0 0 0 rgba(229,107,40,0.30);
    }
}


/* HOVER */

.hf-wa:hover {
    background: linear-gradient(
        135deg,
        #FF853A 0%,
        #E56B28 45%,
        #C9561D 100%
    );

    transform: translateY(-3px) scale(1.07);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.28),
        0 0 18px rgba(229,107,40,0.28);
}


.hf-wa:hover img {
    transform: scale(1.10);
}


/* TOOLTIP */

.hf-wa:before {
    content: attr(data-label);

    position: absolute;

    left: 66px;
    top: 50%;

    transform: translateY(-50%);

    background: #141414;

    color: #FFFFFF;

    padding: 8px 12px;

    border-radius: 7px;

    border: 1px solid rgba(229,107,40,0.35);

    font-size: 13px;
    font-weight: 600;
    font-family: Arial, sans-serif;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.25);

    transition:
        opacity 0.2s ease,
        left 0.2s ease;
}


.hf-wa:hover:before {
    opacity: 1;
    left: 70px;
}


/* MOBILE */

/* MOBILE */

@media (max-width: 600px) {

    .hf-wa-stack {
        left: 12px;
        bottom: 76px;
        gap: 8px;
    }

    .hf-wa {
        width: 44px;
        height: 44px;
    }

    .hf-wa img {
        width: 20px;
        height: 20px;
    }

    .hf-wa:before {
        left: 52px;
        font-size: 11px;
        padding: 7px 10px;
    }

    .hf-wa:hover:before {
        left: 56px;
    }
}
/* =========================================================
   HYDROFLEX - PRZYCISK "ZADZWOŃ" FAB
========================================================= */

.call-button {
  position: fixed;
  left: 20px;
  bottom: 20px;

  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;

  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 50% !important;

  background: linear-gradient(
    135deg,
    #F47B32 0%,
    #E56B28 55%,
    #C9561D 100%
  ) !important;

  color: #FFFFFF !important;
  text-decoration: none !important;

  box-sizing: border-box !important;

  z-index: 9999;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.25),
    0 0 0 0 rgba(229,107,40,0.30);

  animation: hf-call-pulse 2.8s ease-in-out infinite;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


/* =========================================================
   IKONA
========================================================= */

.call-button i,
.call-button .fa-mobile-alt {
  margin: 0 !important;

  font-size: 24px !important;
  line-height: 1 !important;

  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;

  transition: transform 0.2s ease;
}


/* jeśli masz span z tekstem - chowamy,
   bo robimy okrągły FAB */
.call-button span {
  display: none !important;
}


/* =========================================================
   PULS
========================================================= */

@keyframes hf-call-pulse {

  0% {
    box-shadow:
      0 6px 18px rgba(0,0,0,0.25),
      0 0 0 0 rgba(229,107,40,0.30);
  }

  50% {
    box-shadow:
      0 7px 20px rgba(0,0,0,0.26),
      0 0 0 8px rgba(229,107,40,0.08);
  }

  100% {
    box-shadow:
      0 6px 18px rgba(0,0,0,0.25),
      0 0 0 0 rgba(229,107,40,0.30);
  }
}


/* =========================================================
   HOVER
========================================================= */

.call-button:hover {
  background: linear-gradient(
    135deg,
    #FF853A 0%,
    #E56B28 45%,
    #C9561D 100%
  ) !important;

  color: #FFFFFF !important;

  transform:
    translateY(-3px)
    scale(1.07);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.28),
    0 0 18px rgba(229,107,40,0.28);

  animation-play-state: paused;
}


.call-button:hover i {
  transform: scale(1.12);
}


/* =========================================================
   TOOLTIP "ZADZWOŃ"
========================================================= */

.call-button:before {
  content: "Zadzwoń";

  position: absolute;

  left: 66px;
  top: 50%;

  transform: translateY(-50%);

  padding: 8px 12px;

  background: #141414;

  color: #FFFFFF;

  border: 1px solid rgba(229,107,40,0.35);
  border-radius: 7px;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;

  opacity: 0;

  pointer-events: none;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.25);

  transition:
    opacity 0.2s ease,
    left 0.2s ease;
}


.call-button:hover:before {
  opacity: 1;
  left: 70px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .call-button {
    left: 12px;
    bottom: 20px;

    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .call-button i,
  .call-button .fa-mobile-alt {
    font-size: 20px !important;
  }

  .call-button:before {
    left: 52px;

    padding: 7px 10px;

    font-size: 11px;
  }

  .call-button:hover:before {
    left: 56px;
  }
}