/* Custom styles for Carrier Mills Fire Department website */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #050a04;
    color: #f2f7f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Navigation */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0f1a0a 0%, #1a2a14 25%, #0a1208 50%, #142110 75%, #0f1a0c 100%);
    position: relative;
}

/* Gold accent line */
.gold-line {
    background: linear-gradient(90deg, transparent, #d4890a, transparent);
    height: 2px;
    display: block;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Emergency pulse animation */
@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); 
    }
}

.emergency-pulse {
    animation: pulse-red 2s infinite;
}

/* Gold shimmer effect */
@keyframes shimmer {
    0% { 
        background-position: -200% center; 
    }
    100% { 
        background-position: 200% center; 
    }
}

.gold-shimmer {
    background: linear-gradient(90deg, #d4890a, #f6df8a, #e8a820, #d4890a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050a04;
}

::-webkit-scrollbar-thumb {
    background: #4a7c34;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a9d52;
}

/* Card hover effects */
.group:hover .group-hover\:bg-forest-600 {
    background-color: #3a6329;
}

.group:hover .group-hover\:border-gold-500\/50 {
    border-color: rgba(212, 137, 10, 0.5);
}

/* Image hover zoom */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Button transitions */
button, a {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
a:focus, button:focus {
    outline: 2px solid #d4890a;
    outline-offset: 2px;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero-gradient {
        min-height: 100vh;
        padding-top: 80px;
    }
}

/* Print styles */
@media print {
    nav, .emergency-pulse, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .text-forest-50, .text-forest-200, .text-forest-300 {
        color: black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
