/* Custom styles for Yampa Fire Protection District website */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle,
    .geo-square {
        animation: float 6s ease-in-out infinite;
    }
    .geo-circle:nth-child(2n) {
        animation-delay: -2s;
        animation-duration: 8s;
    }
    .geo-circle:nth-child(3n) {
        animation-delay: -4s;
        animation-duration: 7s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Service card image hover */
.service-card img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    border-radius: 2px;
}

/* Image aspect ratios */
.aspect-card {
    aspect-ratio: 5/3;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuBtn { display: none !important; }
    .hero-grid { min-height: auto; }
    body { color: #000; background: #fff; }
}
