/* ============================================================
   availability-pill.css — site-wide availability indicator
   3 variants: compact (inline) · badge (chip) · block (card)
   Single source of truth synced with AvailabilityService::pill()
   ============================================================ */

.av-pill {
    --av-color: #10b981;
    --av-bg: rgba(16, 185, 129, 0.10);
    --av-text: #047857;
    box-sizing: border-box;
    line-height: 1.3;
}
.av-pill.is-closed {
    --av-color: #94a3b8;
    --av-bg: rgba(148, 163, 184, 0.14);
    --av-text: #475569;
}
.av-pill .av-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: var(--av-color);
    flex-shrink: 0;
}
.av-pill.is-open .av-dot {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20);
    animation: avPulse 2s ease-in-out infinite;
}
@keyframes avPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20); }
    50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.04); }
}

/* ── COMPACT — inline next to a phone number / nav link ── */
.av-pill--compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--av-text);
}
.av-pill--compact .av-text { white-space: nowrap; }

/* ── BADGE — pill chip (hero, lead modal, SEO blocks) ── */
.av-pill--badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--av-bg);
    color: var(--av-text);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: -0.1px;
}
.av-pill--badge i { font-size: 13px; }

/* ── BLOCK — sticky widget / sidebar callout ── */
.av-pill--block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.av-pill--block .av-pill-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--av-text);
    margin-bottom: 8px;
}
.av-pill--block .av-pill-phone {
    display: block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.4px;
    text-decoration: none;
    line-height: 1.1;
}
.av-pill--block .av-pill-phone:hover { color: #ff8a01; }
.av-pill--block .av-pill-meta {
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 6px;
}
.av-pill--block .av-pill-hours {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.av-pill--block .av-pill-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff8a01;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    width: 100%;
}
.av-pill--block .av-pill-email:hover { color: #c45500; }

/* Existing navbar dot — closed state override */
.navbar-pc-callback-dot.is-closed { background: #cbd5e1 !important; animation: none !important; }
.cv-pulse-dot.is-closed { background: #cbd5e1 !important; animation: none !important; }

/* On dark backgrounds (hero), keep the badge readable */
.hero-dark .av-pill--badge,
.bg-navy .av-pill--badge {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}
.hero-dark .av-pill--badge.is-open { color: #6ee7b7; }
.hero-dark .av-pill--badge.is-closed { color: rgba(255, 255, 255, 0.75); }
