/* ================================================
   CONTACT-BAR.CSS - Static Contact Bar Styles
   Version: 1.7 - Added Height Variable
   ================================================ */

/* CSS Variable - Used by navbar and other components */
:root {
    --contact-bar-height: 49px;
}

/* Main Container */
.static-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--contact-bar-height);
    z-index: var(--z-sticky);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-sm, 14px);
    color: #e2e8f0;
    font-family: var(--font-primary, 'Inter', sans-serif);
    display: flex;
    align-items: center;
}

/* Container */
.static-contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4, 16px);
}

/* Contact Items */
.static-contact-items {
    display: flex;
    align-items: center;
    gap: var(--space-6, 24px);
    flex-wrap: wrap;
}

/* Social Items */
.static-contact-social {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
}

/* Links */
.static-contact-bar a {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition-base, 200ms) ease;
    padding: var(--space-1, 4px) var(--space-2, 8px);
    border-radius: var(--radius-base, 4px);
}

.static-contact-bar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Link Hover Colors */
.static-contact-bar a[href^="tel:"]:hover { color: var(--primary-blue, #0061ff); }
.static-contact-bar a[href^="https://wa.me"]:hover { color: #25D366; }
.static-contact-bar a[href^="mailto:"]:hover { color: var(--primary-blue, #0061ff); }
.static-contact-bar a[href*="maps.google"]:hover { color: #4285f4; }

/* Social Links */
.static-social-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-base, 6px);
    justify-content: center;
    transition: var(--transition-base, 200ms) ease;
}

.static-contact-bar .static-social-link:hover {
    background: #0077b5;
}

/* Customer Panel Button */
.static-customer-panel-btn {
    padding: var(--space-1, 6px) var(--space-4, 16px);
    background: linear-gradient(135deg, var(--primary-blue, #0061ff), var(--primary-dark, #0052d9));
    color: white;
    border-radius: var(--radius-base, 6px);
    font-weight: var(--font-semibold, 600);
    transition: var(--transition-base, 200ms) ease;
}

.static-contact-bar .static-customer-panel-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark, #0052d9), #003d7a);
}

/* Online Indicator */
.static-online-indicator {
    position: relative;
    padding-right: 4px;
}

.static-online-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: var(--accent-green, #10b981);
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Icon Animations */
@keyframes pulse-phone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.static-phone-icon {
    animation: pulse-phone 1.5s ease-in-out infinite;
}

.static-whatsapp-icon {
    animation: pulse-whatsapp 1.8s ease-in-out infinite;
}

.static-contact-bar a:hover .static-phone-icon,
.static-contact-bar a:hover .static-whatsapp-icon {
    animation-play-state: paused;
}

/* Hero Mode */
.hero-text {
    color: #e2e8f0;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-semibold, 600);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 991px) {
    .static-contact-bar {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .static-contact-items {
        gap: var(--space-4, 16px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .static-phone-icon,
    .static-whatsapp-icon {
        animation: none;
    }
    
    .static-contact-bar a,
    .static-social-link,
    .static-customer-panel-btn {
        transition: none;
    }
}

.static-contact-bar a:focus-visible {
    outline: 2px solid var(--primary-blue, #0061ff);
    outline-offset: 2px;
}

@media print {
    .static-contact-bar {
        display: none;
    }
}