/* Procella Media — custom styles on top of the compiled Tailwind build */

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

/* Fade-in on scroll (class added by js/main.js) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Navigation sticky behavior */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* Print styles */
@media print {
    nav, footer, button, .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

#mobileMenu.hidden {
    max-height: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
}

/* Legal document typography (privacy policy, terms of service) */
.legal-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b3c;
}

.legal-content h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2b3c;
}

.legal-content p {
    margin: 0.75rem 0;
    color: #334155;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: #334155;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin: 0.35rem 0;
}

/* Respect the user's motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
