/* Custom styles for Society Hill Fire Station No 1 */

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

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

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06), 0 4px 20px rgba(13, 27, 42, 0.06) !important;
}

.nav-scrolled .nav-link {
    color: #143250 !important;
}

.nav-scrolled .nav-link:hover {
    color: #16a34a !important;
    background: #dcfce7 !important;
}

/* Image hover transitions */
img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #0d1b2a;
}

/* Print styles */
@media print {
    nav, #back-to-top, .pulse-ring, .float-slow, .float-medium, .float-fast {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* 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;
    }
    
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .reveal-up {
        transition-delay: 0.15s;
    }
}

/* Ensure form inputs have proper styling across browsers */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
}

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

::-webkit-scrollbar-track {
    background: #eef3f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #143250;
}
