/* Pine & Fig — Custom Styles */

/* Smooth focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background-color: #A7F3D0;
    color: #064E3B;
}

/* Subtle pattern overlay for hero (optional texture) */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 30% 50%, rgba(6, 78, 59, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Ensure all images have smooth rendering */
img {
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

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

/* Button press effect */
.btn-emerald:active,
.btn-cream:active {
    transform: translateY(0) scale(0.98);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card-hover {
        transition: none;
    }
    .card-hover:hover {
        transform: none;
    }
    .animate-bounce {
        animation: none;
    }
}
