/* Custom styles complementing Tailwind CSS */

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

/* Selection color */
::selection {
    background-color: #047857;
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Image loading placeholder */
img {
    background-color: #e7e5e4;
}

/* Prevent flash of unstyled content */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Print styles */
@media print {
    nav, #mobileMenu, .reveal, footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    #hero {
        min-height: auto;
        background: #064e3b;
        padding: 2rem;
    }
    section {
        padding: 1rem 0;
    }
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Ensure map container is responsive */
iframe {
    max-width: 100%;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animations on hero */
@media (prefers-reduced-motion: no-preference) {
    .absolute.-top-4.right-0 {
        animation: float1 4s ease-in-out infinite;
    }
    .absolute.top-32.right-12 {
        animation: float2 5s ease-in-out infinite;
    }
    .absolute.bottom-8.right-4 {
        animation: float3 4.5s ease-in-out infinite;
    }
    @keyframes float1 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
    @keyframes float2 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(6px); }
    }
    @keyframes float3 {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Reduced motion - disable all animations */
@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;
    }
}
