/* Pikes Peak Gutters - Custom Styles */

/* Reset and Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Colors */
:root {
    --slate-blue: #2C3E50;
    --metallic-copper: #B87333;
}

/* Utility Classes for Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--metallic-copper);
    outline-offset: 2px;
}

/* Skip to Main Content Link (Accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--metallic-copper);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Smooth Scroll Offset for Sticky Nav */
section {
    scroll-margin-top: 80px;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Lazy Loading Image Placeholder */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Form Enhancements */
input::placeholder,
textarea::placeholder {
    opacity: 0.7;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Hero Section Overlay Enhancement */
.hero-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(44, 62, 80, 0.5) 100%);
}

/* Print Styles for Accessibility */
@media print {
    header,
    footer,
    #mobile-menu-btn,
    .no-print {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .bg-slate-blue {
        background-color: #000 !important;
    }
    
    .bg-metallic-copper {
        background-color: #8B4513 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--metallic-copper);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-blue);
}

/* Selection Color */
::selection {
    background-color: var(--metallic-copper);
    color: white;
}

::-moz-selection {
    background-color: var(--metallic-copper);
    color: white;
}
