/* Custom styles for Hewitt Volunteer Fire Department */

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

/* Custom color variables */
:root {
    --emerald-950: #052e16;
    --emerald-900: #14532d;
    --emerald-800: #166534;
    --emerald-700: #15803d;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ef;
    --cream-200: #faf3e0;
    --cream-300: #f5e9cc;
    --gold: #d4a853;
    --gold-light: #e8c276;
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    color: #052e16;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Hero section */
.hero-bg {
    background: linear-gradient(135deg, #052e16 0%, #14532d 40%, #166534 70%, #15803d 100%);
}

/* Gold accent */
.gold-accent {
    color: #d4a853;
}

/* Gold line separator */
.gold-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #d4a853, #e8c276);
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(20, 83, 45, 0.25);
}

/* Navigation links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a853;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #d4a853, #e8c276);
    color: #052e16;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8c276, #f0d090);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(212, 168, 83, 0.5);
}

/* Secondary button */
.btn-secondary {
    border: 2px solid #d4a853;
    color: #d4a853;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d4a853;
    color: #052e16;
}

/* Section divider */
.section-divider {
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    height: 1px;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Fire icon animation */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.fire-icon {
    animation: flicker 2s ease-in-out infinite;
}

/* Image overlay effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 46, 22, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* 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;
    }
    
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    .btn-primary,
    .btn-secondary,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
