/* =============================================
   FLOATING BUTTONS
   Left: + button (always physical left)
   Right: call button (always physical right)
   ============================================= */

/* Reset direction for floating buttons */
.hcf-left,
.hcf-right,
.hcf-menu {
    direction: ltr !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
.hcf-left *,
.hcf-right *,
.hcf-menu * {
    box-sizing: border-box !important;
}

/* ===== LEFT BUTTON ===== */
.hcf-left {
    position: fixed !important;
    z-index: 999999 !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
    transform: none !important;
}

.hcf-left__btn {
    width: 58px;
    height: 58px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: #2A5F8E;
    box-shadow: 0 8px 28px rgba(42,95,142,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 3;
}

.hcf-left__btn:hover {
    background: #E76F2D;
    box-shadow: 0 10px 32px rgba(231,111,45,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.06);
}

.hcf-left__btn:active {
    transform: scale(0.94);
}

.hcf-left__plus {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.hcf-left.is-open .hcf-left__plus {
    transform: rotate(45deg);
}

/* ===== RIGHT BUTTON ===== */
.hcf-right {
    position: fixed !important;
    z-index: 999999 !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;

    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: #25D366;
    box-shadow: 0 8px 28px rgba(37,211,102,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: hcfPulse 2s infinite;
}

.hcf-right:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 34px rgba(37,211,102,0.44), inset 0 1px 0 rgba(255,255,255,0.22);
    animation: none;
}

.hcf-right:active {
    transform: scale(0.94);
}

.hcf-right__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hcf-right__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

@keyframes hcfPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== POPUP MENU ===== */
.hcf-menu {
    position: absolute;
    left: 0 !important;
    right: auto !important;
    bottom: calc(100% + 14px);
    min-width: 240px;
    padding: 8px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(240,245,255,0.85));
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 6px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.7);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.94);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), visibility 0.22s ease;
}

.hcf-left.is-open .hcf-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ===== MENU ROWS ===== */
.hcf-menu__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 16px;
    color: #1A2A3A;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hcf-menu__row:hover {
    background: rgba(42,95,142,0.07);
    transform: translateX(5px);
}

.hcf-menu__row + .hcf-menu__row {
    border-top: 1px solid rgba(42,95,142,0.06);
}

/* ===== ICON CIRCLES ===== */
.hcf-menu__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hcf-menu__row:hover .hcf-menu__icon {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.hcf-menu__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.hcf-menu__label {
    white-space: nowrap;
}

/* Brand icon colors */
.hcf-menu__row--instagram .hcf-menu__icon { background: linear-gradient(135deg,#833AB4,#E1306C,#F77737); color:#fff; }
.hcf-menu__row--telegram  .hcf-menu__icon { background: #229ED9; color:#fff; }
.hcf-menu__row--email     .hcf-menu__icon { background: #2A5F8E; color:#fff; }
.hcf-menu__row--whatsapp  .hcf-menu__icon { background: #25D366; color:#fff; }
.hcf-menu__row--phone     .hcf-menu__icon { background: #E76F2D; color:#fff; }

/* ===== STAGGER ===== */
.hcf-left.is-open .hcf-menu__row:nth-child(1) { animation: hcfUp .25s .00s both; }
.hcf-left.is-open .hcf-menu__row:nth-child(2) { animation: hcfUp .25s .04s both; }
.hcf-left.is-open .hcf-menu__row:nth-child(3) { animation: hcfUp .25s .08s both; }
.hcf-left.is-open .hcf-menu__row:nth-child(4) { animation: hcfUp .25s .12s both; }
.hcf-left.is-open .hcf-menu__row:nth-child(5) { animation: hcfUp .25s .16s both; }

@keyframes hcfUp {
    from { opacity:0; transform:translateY(12px) scale(0.92); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hcf-left  { left: 16px !important; bottom: 16px !important; }
    .hcf-right { right: 16px !important; bottom: 16px !important; }

    .hcf-left__btn,
    .hcf-right { width: 52px !important; height: 52px !important; }

    .hcf-left__plus { font-size: 30px; }

    .hcf-menu { min-width: 210px; padding: 6px; }
    .hcf-menu__row { padding: 10px 14px; font-size: 13.5px; gap: 12px; }
    .hcf-menu__icon { width: 38px; height: 38px; min-width: 38px; flex: 0 0 38px; }
    .hcf-menu__icon svg { width: 20px; height: 20px; }
    .hcf-right__icon svg { width: 24px; height: 24px; }
}

@media (max-width: 400px) {
    .hcf-left  { left: 12px !important; }
    .hcf-right { right: 12px !important; }

    .hcf-left__btn,
    .hcf-right { width: 48px !important; height: 48px !important; }

    .hcf-left__plus { font-size: 27px; }
}

/* ===== ELEMENTOR ===== */
.elementor-editor-active .hcf-left,
.elementor-editor-active .hcf-right {
    display: none !important;
}