/* Global Styles for Jay Dada Security Services */

/* Typography */
* {
    font-family: 'Montserrat', sans-serif;
}

/* Ensure sticky header works correctly */
header.sticky {
    position: -webkit-sticky;
    position: sticky;
}

/* Color Palette */
.bg-primary { background-color: #1F2A44; }
.bg-primary-alt { background-color: #232E4A; }
.bg-secondary { background-color: #C9A24D; }
.bg-accent { background-color: #D4AF37; }
.bg-light { background-color: #EDEDED; }
.text-primary { color: #1F2A44; }
.text-secondary { color: #C9A24D; }
.text-accent { color: #D4AF37; }
.text-orange { color: #F28C28; }
.border-secondary { border-color: #C9A24D; }
.border-accent { border-color: #D4AF37; }

/* Hero Carousel Styles (for index.html) */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}
.hero-slide.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 162, 77, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.carousel-arrow:hover {
    background: rgba(201, 162, 77, 1);
    transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.prev {
    left: 20px;
}
.carousel-arrow.next {
    right: 20px;
}
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(201, 162, 77, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: #C9A24D;
    border-color: #C9A24D;
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow.prev {
        left: 10px;
    }
    .carousel-arrow.next {
        right: 10px;
    }
}

/* WhatsApp Button & Drawer Styles */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    border: none;
}
.whatsapp-button:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}
.whatsapp-button:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}
.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}
.whatsapp-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.whatsapp-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.whatsapp-drawer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.whatsapp-drawer.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.whatsapp-drawer-header {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.whatsapp-drawer-header svg {
    width: 24px;
    height: 24px;
    fill: white;
}
.whatsapp-drawer-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.whatsapp-drawer-body {
    padding: 16px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
.whatsapp-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid #E5E7EB;
}
.whatsapp-contact-item:hover {
    background-color: #F3F4F6;
    border-color: #25D366;
    transform: translateX(4px);
}
.whatsapp-contact-item:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}
.whatsapp-contact-icon {
    width: 40px;
    height: 40px;
    background-color: #E6F7EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.whatsapp-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: #25D366;
}
.whatsapp-contact-info {
    flex: 1;
    min-width: 0;
}
.whatsapp-contact-name {
    font-weight: 600;
    color: #1F2937;
    font-size: 15px;
    margin-bottom: 2px;
}
.whatsapp-contact-label {
    font-size: 12px;
    color: #6B7280;
}
.whatsapp-contact-number {
    font-size: 13px;
    color: #25D366;
    font-weight: 500;
    margin-top: 2px;
}
@media (max-width: 640px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-drawer {
        bottom: 80px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

