/* ==========================================================================
   Top Header - Call Bar (LG Repair Service)
   ========================================================================== */

.top-call-bar {
    background: linear-gradient(90deg, #a6192e 0%, #d81f35 100%);
    color: #ffffff;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.top-call-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    text-align: center;
}

.top-call-bar__text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
}

.top-call-bar__badge {
    display: inline-block;
    background: #ffe600;
    color: #7a0d1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.top-call-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #a6192e;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.6);
    animation: callBlink 1.4s ease-in-out infinite;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.top-call-bar__link:hover,
.top-call-bar__link:focus-visible {
    background: #ffe600;
    color: #7a0d1c;
    transform: scale(1.05);
    outline: none;
}

.top-call-bar__icon {
    display: inline-block;
    animation: iconRing 1s ease-in-out infinite;
    line-height: 1;
    font-size: 16px;
}

/* Blink / pulse highlight animation */
@keyframes callBlink {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Little phone-ring wiggle on the icon */
@keyframes iconRing {
    0%,
    100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(-15deg);
    }
    40% {
        transform: rotate(12deg);
    }
    60% {
        transform: rotate(-8deg);
    }
    80% {
        transform: rotate(6deg);
    }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .top-call-bar__link,
    .top-call-bar__icon {
        animation: none;
    }
}

/* ---------------- Mobile responsive ---------------- */
@media (max-width: 600px) {
    .top-call-bar {
        padding: 8px 10px;
    }

    .top-call-bar__inner {
        flex-direction: column;
        gap: 6px;
    }

    .top-call-bar__text {
        font-size: 13px;
    }

    .top-call-bar__link {
        font-size: 16px;
        padding: 7px 14px;
    }

    .top-call-bar__badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 360px) {
    .top-call-bar__text {
        display: none;
    }
}
