/* Colonial Voluntary Benefits — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1526;
}
::-webkit-scrollbar-thumb {
    background: #d4a824;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e6be39;
}

/* Selection color */
::selection {
    background: #d4a824;
    color: #0a1526;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(10, 21, 38, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Hero cards float on load */
@media (prefers-reduced-motion: no-preference) {
    .float-card {
        animation: float 4s ease-in-out infinite;
    }
    .float-card-delay {
        animation: float 4s ease-in-out infinite;
        animation-delay: 1s;
    }
    .float-card-slow {
        animation: float 5s ease-in-out infinite;
        animation-delay: 2s;
    }
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a824 0%, #f4e0a0 50%, #d4a824 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Map container */
section iframe {
    transition: filter 0.3s ease;
}

section iframe:hover {
    filter: grayscale(40%) contrast(1.05);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 36, 0.15);
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage, iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
