/* Custom styles for Willow Creek Mercantile */

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0f1c48;
    background: #f8fafc;
    overflow-x: hidden;
}

/* Hero pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(30,58,138,0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Grain texture overlay */
.grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Accent underline */
.accent-underline {
    position: relative;
    display: inline-block;
}

.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #86efac);
    border-radius: 2px;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30,58,138,0.1);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #193074);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #193074, #14265e);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,58,138,0.3);
}

/* Mint button */
.btn-mint {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transition: all 0.3s ease;
}

.btn-mint:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}

/* Image fade-in */
.img-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.img-fade.loaded {
    opacity: 1;
}

/* Wave decoration */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-decoration svg {
    display: block;
    width: 100%;
    height: 60px;
}

@media (max-width: 768px) {
    .wave-decoration svg {
        height: 40px;
    }
}

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #4ade80;
    color: #0f1c48;
}
