/* Co-Weave Custom Styles */

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #2a6898;
    outline-offset: 2px;
}

/* Button focus states */
button:focus,
a:focus {
    outline: 2px solid #2a6898;
    outline-offset: 2px;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Prose styles for about page */
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Card hover effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Gradient overlay for hero images */
.hero-overlay {
    background: linear-gradient(135deg, rgba(42, 104, 152, 0.95) 0%, rgba(26, 53, 106, 0.95) 100%);
}

/* Animation for CTA buttons */
.cta-button {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 118, 66, 0.3);
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Loading state for HTMX forms */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* Improve image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2a6898;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Selection colors */
::selection {
    background-color: #2a6898;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a356a;
}
