/* ===================================
   REUSABLE TOP CONTACT BAR COMPONENT
   Compatible with all HTML pages
   =================================== */

:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF9E35;
    --gold: #FFD700;
    --dark: #2d2d2d;
    --light: #ffffff;
    --text-light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(255, 107, 53, 0.2);
}

/* ===================================
   MAIN CONTACT BAR STYLING
   =================================== */

.top-contact-bar {
    background: var(--primary-orange);
    color: var(--light);
    padding: 0;
    height: 70px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 15px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDownFadeIn 0.8s ease-out;
    overflow: hidden;
}


/* ===================================
   CONTACT INFORMATION STYLING
   =================================== */

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 20px;
    transform: translateY(-5px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.contact-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* Icon-specific animations and colors */
.phone-icon {
    animation-delay: 0.2s;
}

.email-icon {
    animation-delay: 0.4s;
}

.location-icon {
    animation-delay: 0.6s;
}

.contact-item:hover .contact-icon {
    background: var(--gold);
    color: var(--dark);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.contact-item:hover .contact-text {
    color: var(--gold);
    font-weight: 600;
}

/* Social media styling removed - using header social icons instead */

/* ===================================
   TOGGLE BUTTON STYLING
   =================================== */

.contact-bar-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.contact-bar-toggle:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
}

.contact-bar-toggle i {
    transition: transform 0.3s ease;
}

/* ===================================
   COLLAPSED STATE
   =================================== */

.top-contact-bar.collapsed {
    padding: 6px 0;
    transform: translateY(-50%);
}

.top-contact-bar.collapsed .contact-info,
.top-contact-bar.collapsed .top-social-links {
    opacity: 0;
    pointer-events: none;
}

.top-contact-bar.collapsed .contact-bar-toggle i {
    transform: rotate(180deg);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes slideDownFadeIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .top-contact-bar {
        padding: 15px 0;
    }

    .contact-info {
        gap: 35px;
    }

    .contact-text {
        font-size: 14px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .contact-info {
        gap: 30px;
    }

    .contact-text {
        font-size: 13px;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .contact-info {
        gap: 20px;
    }

    .contact-text {
        font-size: 12px;
    }

    .location-item {
        display: none;
    }

    .top-social-links {
        gap: 12px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .top-contact-bar {
        padding: 10px 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .contact-item {
        gap: 6px;
    }

    .contact-text {
        font-size: 11px;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }

    .location-item {
        display: none;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .top-contact-bar {
        padding: 2px 0;
    }

    .row {
        margin: 0 -5px;
    }

    .col-12 {
        padding: 0 5px;
    }

    .contact-info {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .contact-item {
        gap: 5px;
        font-size: 10px;
    }

    .contact-text {
        font-size: 10px;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .location-item {
        display: none;
    }

    .contact-bar-toggle {
        width: 24px;
        height: 24px;
        font-size: 10px;
        right: 10px;
    }
}

/* Extra Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .top-contact-bar {
        padding: 6px 0;
    }

    .contact-item {
        gap: 4px;
    }

    .contact-text {
        font-size: 9px;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

@media (prefers-reduced-motion: reduce) {

    .top-contact-bar,
    .contact-item,
    .social-link,
    .contact-icon,
    .contact-bar-toggle {
        animation: none;
        transition: none;
    }

    .top-contact-bar::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .top-contact-bar {
        background: var(--dark);
        border-bottom: 2px solid var(--primary-orange);
    }

    .contact-icon {
        background: var(--primary-orange);
        color: var(--light);
    }

    .social-link {
        background: var(--primary-orange);
        color: var(--light);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .top-contact-bar {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
        border-bottom: 1px solid #ccc;
    }

    .contact-bar-toggle,
    .top-social-links {
        display: none !important;
    }

    .contact-info {
        justify-content: flex-start;
    }

    .contact-icon {
        background: none !important;
        color: black !important;
    }
}