/* Final navigation and urgent-call refinements. */
.eh-navigation {
    gap: clamp(18px, 1.25vw, 28px);
    color: #4f706a;
    font-family: "DM Sans", "Manrope", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.eh-navigation > a,
.eh-dropdown-button {
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}

.eh-navigation > a:hover,
.eh-navigation > a.active,
.eh-dropdown-button:hover,
.eh-dropdown-button.active {
    color: #057b76;
}

.eh-navigation > a::after,
.eh-dropdown-button::after {
    height: 3px;
    bottom: 27px;
}

.eh-emergency-button {
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(211, 72, 63, 0.38);
    border-radius: 50%;
    background: #fff7f5;
    box-shadow: 0 8px 22px rgba(194, 66, 57, 0.13);
}

.eh-emergency-button > span:last-child {
    display: none;
}

.eh-emergency-pulse {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.eh-emergency-button:hover {
    background: #d94f45;
    border-color: #d94f45;
    transform: translateY(-2px);
}

.eh-emergency-button:hover .eh-emergency-pulse {
    background: transparent;
}

/* Soft, staggered attention animation for the three primary top-bar actions. */
.eh-call-button,
.eh-book-button {
    animation: ehTealButtonBlink 1.8s ease-in-out infinite !important;
}

.eh-doctor-button {
    animation: ehGreenButtonBlink 1.8s ease-in-out infinite !important;
}

.eh-call-button {
    animation-delay: 0s;
}

.eh-book-button {
    animation-delay: 0.65s;
}

.eh-doctor-button {
    animation-delay: 1.3s;
}

.eh-call-button::before,
.eh-book-button::before,
.eh-doctor-button::before {
    animation: ehSoftSweep 4.8s ease-in-out infinite;
}

.eh-book-button::before {
    animation-delay: 0.8s;
}

.eh-doctor-button::before {
    animation-delay: 1.6s;
}

.eh-call-button:hover,
.eh-book-button:hover,
.eh-doctor-button:hover {
    animation-play-state: paused;
}

@keyframes ehSmoothAttention {
    0%, 55%, 100% {
        filter: brightness(1);
        box-shadow: 0 9px 24px rgba(7, 157, 152, 0.12);
    }
    68% {
        filter: brightness(1.035);
        box-shadow: 0 12px 29px rgba(7, 157, 152, 0.22), 0 0 0 5px rgba(7, 157, 152, 0.07);
    }
    80% {
        filter: brightness(1);
        box-shadow: 0 9px 24px rgba(7, 157, 152, 0.12);
    }
}

@keyframes ehSoftSweep {
    0%, 58% {
        transform: translateX(-145%) skewX(-25deg);
    }
    76%, 100% {
        transform: translateX(165%) skewX(-25deg);
    }
}

@keyframes ehTealButtonBlink {
    0%, 100% {
        color: #057570;
        background: rgba(255, 255, 255, 0.9);
        border-color: #079d98;
        box-shadow: 0 8px 22px rgba(7, 157, 152, 0.12);
        transform: translateY(0) scale(1);
    }
    50% {
        color: #fff;
        background: #079d98;
        border-color: #079d98;
        box-shadow: 0 13px 32px rgba(7, 157, 152, 0.42), 0 0 0 7px rgba(7, 157, 152, 0.11);
        transform: translateY(-2px) scale(1.018);
    }
}

@keyframes ehGreenButtonBlink {
    0%, 100% {
        color: #527d2d;
        background: rgba(255, 255, 255, 0.9);
        border-color: #7eae4d;
        box-shadow: 0 8px 22px rgba(126, 174, 77, 0.13);
        transform: translateY(0) scale(1);
    }
    50% {
        color: #fff;
        background: #71a43e;
        border-color: #71a43e;
        box-shadow: 0 13px 32px rgba(113, 164, 62, 0.4), 0 0 0 7px rgba(126, 174, 77, 0.12);
        transform: translateY(-2px) scale(1.018);
    }
}

@media (max-width: 1500px) and (min-width: 1051px) {
    .eh-navigation {
        gap: clamp(12px, 1vw, 20px);
        font-size: 14px;
    }

    .eh-emergency-button {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }
}

@media (max-width: 1200px) and (min-width: 1051px) {
    .eh-emergency-button {
        display: flex;
    }
}

@media (max-width: 1050px) {
    .eh-navigation,
    .eh-navigation > a,
    .eh-dropdown-button,
    .eh-header.scrolled .eh-navigation > a,
    .eh-header.scrolled .eh-dropdown-button {
        font-family: "DM Sans", "Manrope", Arial, sans-serif;
    }

    .eh-navigation > a,
    .eh-dropdown-button,
    .eh-header.scrolled .eh-navigation > a,
    .eh-header.scrolled .eh-dropdown-button {
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .eh-action-group .eh-emergency-button {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    .eh-action-group .eh-emergency-pulse {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 640px) {
    .eh-action-group .eh-emergency-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .eh-action-group .eh-emergency-pulse {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eh-call-button,
    .eh-book-button,
    .eh-doctor-button,
    .eh-call-button::before,
    .eh-book-button::before,
    .eh-doctor-button::before {
        animation: none !important;
    }
}
