/* Sol alt iletişim FAB (getbutton.io tarzı) */
@keyframes fab-contact-shake {
    0%,
    86%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    87% {
        transform: translate3d(-2px, 1px, 0) rotate(-5deg);
    }
    88% {
        transform: translate3d(2px, -1px, 0) rotate(5deg);
    }
    89% {
        transform: translate3d(-2px, 0, 0) rotate(-4deg);
    }
    90% {
        transform: translate3d(2px, 1px, 0) rotate(4deg);
    }
    91% {
        transform: translate3d(-1px, 0, 0) rotate(-2deg);
    }
    92% {
        transform: translate3d(1px, 0, 0) rotate(2deg);
    }
    93% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.fab-contact {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10050;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
    font-family: var(--bs-font-sans-serif, 'Mulish', sans-serif);
}

.fab-contact__bubble {
    position: relative;
    max-width: 13rem;
    margin: 0 0 0.7rem 0;
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(30, 46, 62, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.8rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.fab-contact__bubble::before,
.fab-contact__bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.fab-contact__bubble::before {
    left: -11px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 11px 9px 0;
    border-color: transparent rgba(255, 255, 255, 0.22) transparent transparent;
}

.fab-contact__bubble::after {
    left: -9px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 10px 8px 0;
    border-color: transparent rgba(30, 46, 62, 0.52) transparent transparent;
}

.fab-contact.is-open .fab-contact__bubble {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    pointer-events: none;
}

.fab-contact__main {
    position: relative;
    flex: 0 0 auto;
    width: 3.5rem;
}

.fab-contact__backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(30, 46, 62, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fab-contact.is-open .fab-contact__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fab-contact__actions {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.5rem;
    height: 3.5rem;
    z-index: 10055;
    pointer-events: none;
}

.fab-contact.is-open .fab-contact__actions {
    pointer-events: auto;
}

.fab-contact__btn {
    position: absolute;
    left: 0.25rem;
    bottom: 0;
    z-index: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 46, 62, 0.28);
    opacity: 0;
    transform: translateY(0) scale(0.55);
    transition:
        transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
        opacity 0.28s ease,
        box-shadow 0.2s ease;
    pointer-events: none;
}

.fab-contact.is-open .fab-contact__btn {
    pointer-events: auto;
}

.fab-contact__btn:hover {
    box-shadow: 0 6px 20px rgba(30, 46, 62, 0.38);
    color: #fff;
}

.fab-contact__btn--phone {
    z-index: 3;
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.fab-contact__btn--phone:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    color: #fff;
}

.fab-contact__btn--wa {
    z-index: 2;
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.fab-contact__btn--wa:hover {
    background: #20bd5a;
    box-shadow: 0 6px 20px rgba(32, 189, 90, 0.45);
    color: #fff;
}

.fab-contact__btn--addr {
    background: #facc15;
    color: #713f12;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
}

.fab-contact__btn--addr:hover {
    background: #eab308;
    color: #422006;
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.5);
}

/* Üstten alta: telefon — WhatsApp — konum (ana düğmenin hemen üstünde konum) */
.fab-contact.is-open .fab-contact__btn--phone {
    transform: translateY(-12.25rem) scale(1);
    opacity: 1;
    transition-delay: 0.06s;
}

.fab-contact.is-open .fab-contact__btn--wa {
    transform: translateY(-8.25rem) scale(1);
    opacity: 1;
    transition-delay: 0.12s;
}

.fab-contact.is-open .fab-contact__btn--addr {
    transform: translateY(-4.25rem) scale(1);
    opacity: 1;
    transition-delay: 0.18s;
}

.fab-contact__toggle {
    position: relative;
    z-index: 10056;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 18px rgba(22, 101, 52, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: fab-contact-shake 4.5s ease-in-out infinite;
}

.fab-contact__toggle:hover {
    box-shadow: 0 6px 22px rgba(22, 101, 52, 0.55);
    background: #16a34a;
}

.fab-contact.is-open .fab-contact__toggle {
    animation: none;
    transform: rotate(90deg);
    background: #15803d;
    color: #fff;
}

.fab-contact__wa-icon {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

@media (max-width: 575.98px) {
    .fab-contact {
        left: 0.75rem;
        bottom: 0.75rem;
        gap: 0.35rem;
    }

    .fab-contact__bubble {
        max-width: 9.5rem;
        margin-bottom: 0.55rem;
        font-size: 0.82rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-contact__toggle {
        animation: none;
    }
}
