/* ========================================
   ANNOUNCEMENT BAR - ROTATING PROMOTIONS
   ======================================== */

/* 
   HOW TO UPDATE PROMOTIONS:
   1. Edit the HTML in each page (index.html, services.html, etc.)
   2. Find the section: <!-- Announcement Bar -->
   3. Add/edit/remove <div class="announcement-slide"> elements
   4. Each slide should have a title, description, and CTA button
*/

.announcement-bar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    display: block !important;
    margin: 0 !important;
    padding: 0;
    line-height: 1;
}

.announcement-bar.hidden {
    display: none !important;
}

.announcement-container {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1;
}

.announcement-slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.announcement-slide {
    min-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    gap: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.announcement-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.announcement-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.announcement-text {
    flex: 1;
}

.announcement-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.announcement-description {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

.announcement-cta {
    flex-shrink: 0;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.announcement-btn svg {
    width: 16px;
    height: 16px;
}

/* Close Button */
.announcement-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

.announcement-close svg {
    width: 16px;
    height: 16px;
}

/* Navigation Dots */
.announcement-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.announcement-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.announcement-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.announcement-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Hidden State */
.announcement-bar.hidden {
    display: none;
}

/* Dark Mode Support */
body.dark-mode .announcement-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

body.dark-mode .announcement-btn {
    background: #1e293b;
    color: #60a5fa;
}

body.dark-mode .announcement-btn:hover {
    background: #0f172a;
}

/* Tablet Responsive (iPad, etc.) */
@media (min-width: 769px) and (max-width: 1024px) {
    .announcement-slide {
        padding: 12px 20px;
        gap: 16px;
    }
    
    .announcement-title {
        font-size: 17px;
    }
    
    .announcement-description {
        font-size: 13px;
    }
    
    .announcement-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .announcement-slide {
        flex-direction: column;
        padding: 12px 16px 24px 16px;
        text-align: center;
        gap: 12px;
    }
    
    .announcement-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .announcement-title {
        font-size: 16px;
    }
    
    .announcement-description {
        font-size: 13px;
    }
    
    .announcement-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .announcement-close {
        top: 8px;
        transform: translateY(0);
        right: 8px;
    }
    
    .announcement-dots {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 8px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .announcement-slide {
        padding: 10px 12px 20px 12px;
    }
    
    .announcement-title {
        font-size: 14px;
    }
    
    .announcement-description {
        font-size: 12px;
    }
    
    .announcement-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .announcement-icon {
        width: 32px;
        height: 32px;
    }
    
    .announcement-icon svg {
        width: 16px;
        height: 16px;
    }
}
