/* Custom styles to complement Tailwind CSS */

/* Font family */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Custom focus styles for better accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Remove default button focus outline when using custom focus styles */
button:focus {
    outline: none;
}

/* Custom button hover effects */
.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom prose styles for better readability */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose p {
    margin-bottom: 1.5em;
}

/* Navigation active state */
.nav-link.active {
    color: #111827;
    border-bottom: 2px solid #000;
    font-weight: 500;
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.2s ease-in-out;
}

#mobile-menu.hidden {
    animation: fadeOut 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Form input enhancements */
input[type="text"],
input[type="email"],
textarea {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Custom spacing for sections */
.page-section {
    min-height: 60vh;
}

/* Responsive typography */
@media (max-width: 640px) {
    .prose {
        font-size: 1rem;
    }
    
    .prose h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .prose h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* Loading animation for form submissions */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

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

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

/* Print styles */
@media print {
    nav,
    footer,
    button {
        display: none !important;
    }
    
    .page-section {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600,
    .text-gray-700 {
        color: #000;
    }
    
    .bg-gray-50 {
        background-color: #f9f9f9;
        border: 1px solid #ccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
    /* Keep the site light as per requirements, but provide fallback */
    body {
        background-color: #fff;
        color: #000;
    }
}

/* Focus visible for better keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
