/* ═══════════════════════════════════════════════════════════
   PREMIUM TOP SOCIAL BAR - ABOVE HEADER
   Fully responsive: desktop → mini-laptop → tablet → mobile
   Email & CTA become icon-only with tooltip on small screens
   ═══════════════════════════════════════════════════════════ */

/* ── Bar itself ── */
.top-social-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #0a0f1c 0%, #141b2d 50%, #0a0f1c 100%);
    border-bottom: 1px solid rgba(58, 123, 213, 0.15);
    height: 42px;
    display: flex;
    align-items: center;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing bottom accent line */
.top-social-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(58, 123, 213, 0.4) 20%,
        rgba(0, 210, 255, 0.4) 50%,
        rgba(58, 123, 213, 0.4) 80%,
        transparent 100%);
    pointer-events: none;
}

/* ── Inner wrapper ── */
.top-social-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

/* ── Left: phone + email ── */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 0;
}

.top-bar-left a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.top-bar-left a:hover { color: #ffffff; }

.top-bar-left a i {
    font-size: 11px;
    color: #3A7BD5;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.top-bar-left a:hover i { color: #00D2FF; }

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ── Right: social icons + CTA ── */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.top-bar-social-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
}

.top-bar-social-link:hover { color: #ffffff; transform: translateY(-1px); }

.top-bar-social-link.social-instagram:hover { color: #E4405F; box-shadow: 0 0 10px rgba(228,64,95,0.3); }
.top-bar-social-link.social-facebook:hover  { color: #1877F2; box-shadow: 0 0 10px rgba(24,119,242,0.3); }
.top-bar-social-link.social-youtube:hover   { color: #FF0000; box-shadow: 0 0 10px rgba(255,0,0,0.3); }
.top-bar-social-link.social-twitter:hover   { color: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,0.2); }
.top-bar-social-link.social-linkedin:hover  { color: #0A66C2; box-shadow: 0 0 10px rgba(10,102,194,0.3); }
.top-bar-social-link.social-whatsapp:hover  { color: #25D366; box-shadow: 0 0 10px rgba(37,211,102,0.3); }

.top-bar-social-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
    flex-shrink: 0;
}

/* ── CTA pill ── */
.top-bar-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(58,123,213,0.2) 0%, rgba(0,210,255,0.15) 100%);
    border: 1px solid rgba(58, 123, 213, 0.3);
    border-radius: 20px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.top-bar-cta:hover {
    background: linear-gradient(135deg, rgba(58,123,213,0.35) 0%, rgba(0,210,255,0.25) 100%);
    border-color: rgba(58, 123, 213, 0.5);
    box-shadow: 0 0 16px rgba(58, 123, 213, 0.2);
    transform: translateY(-1px);
}

.top-bar-cta i { font-size: 10px; }

/* ── Push nav down ── */
.main-nav { top: 42px !important; }

/* ── Hide on scroll (JS adds .hidden) ── */
.top-social-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   TOOLTIP SYSTEM
   Used for icon-only email & CTA on smaller screens
   ═══════════════════════════════════════════════════════════ */
.top-bar-tooltip {
    position: absolute;
    bottom: calc(-100% - 18px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a2540;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(58, 123, 213, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10001;
    letter-spacing: 0.2px;
}

/* Arrow on tooltip */
.top-bar-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(58, 123, 213, 0.25);
}

.top-bar-tooltip::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #1a2540;
}

/* Show tooltip on hover AND touch (.tooltip-active set by JS) */
.top-bar-left a:hover .top-bar-tooltip,
.top-bar-cta:hover .top-bar-tooltip,
.top-bar-left a.tooltip-active .top-bar-tooltip,
.top-bar-cta.tooltip-active .top-bar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   MINI LAPTOP  1025px – 1200px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .top-social-bar-inner { padding: 0 30px; }
    .top-bar-left { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET LANDSCAPE  769px – 1024px
   Email becomes icon-only with tooltip
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .top-social-bar-inner { padding: 0 20px; }
    .top-bar-left { gap: 10px; }

    /* Email: hide text, keep icon, show tooltip */
    .top-bar-left .top-bar-email .top-bar-text { display: none; }
    .top-bar-left .top-bar-email { gap: 0; }
    .top-bar-left .top-bar-email i { font-size: 13px; }

    .top-bar-left a { font-size: 12px; }
    .top-bar-social-link { width: 28px; height: 28px; font-size: 12px; }
    .top-bar-cta { font-size: 10.5px; padding: 4px 12px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET PORTRAIT  577px – 768px
   Phone & email icon-only with tooltip
   CTA becomes icon-only circle with tooltip
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .top-social-bar { height: 38px; }
    .main-nav { top: 38px !important; }
    .top-social-bar-inner { padding: 0 14px; }

    /* Phone: icon only */
    .top-bar-left .top-bar-phone .top-bar-text { display: none; }
    .top-bar-left .top-bar-phone { gap: 0; }
    .top-bar-left .top-bar-phone i { font-size: 13px; }

    /* Email: icon only */
    .top-bar-left .top-bar-email .top-bar-text { display: none; }
    .top-bar-left .top-bar-email { gap: 0; }
    .top-bar-left .top-bar-email i { font-size: 13px; }

    .top-bar-social-link { width: 26px; height: 26px; font-size: 12px; }
    .top-bar-right { gap: 2px; }

    /* CTA: icon-only circle with tooltip */
    .top-bar-social-divider { display: flex; }
    .top-bar-cta {
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .top-bar-cta .top-bar-cta-text { display: none; }
    .top-bar-cta i { font-size: 12px; margin: 0; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE  ≤ 576px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .top-social-bar { height: 36px; }
    .main-nav { top: 36px !important; }
    .top-social-bar-inner { padding: 0 12px; }

    .top-bar-left a i { font-size: 12px; }
    .top-bar-social-link { width: 26px; height: 26px; font-size: 12px; }
    .top-bar-right { gap: 1px; }

    .top-bar-cta {
        width: 26px;
        height: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════
   VERY SMALL  ≤ 360px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .top-social-bar-inner { padding: 0 10px; }
    .top-bar-social-link.social-youtube,
    .top-bar-social-link.social-twitter { display: none; }
    .top-bar-social-link { width: 24px; height: 24px; font-size: 11px; }
    .top-bar-cta { width: 24px; height: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
    .top-social-bar { display: none !important; }
    .main-nav { top: 0 !important; }
}
