/* Paw Paw's Sno-Palace — Custom Styles */

/* Base reset & smooth scrolling handled in HTML */

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #ecfdf5;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    min-height: 4px;
}

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}

/* Reduce motion preference */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .gold-shimmer {
        animation: none;
        background: linear-gradient(90deg, #d4a843, #f0d48a, #d4a843);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .particle {
        animation: none;
        opacity: 0.6;
    }
    
    .cta-pulse {
        animation: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-line {
        animation: growLine 1s ease-out 0.5s forwards;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .treat-card {
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                    box-shadow 0.4s ease;
    }
}

/* Print styles */
@media print {
    nav, .cta-pulse, .particle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #1a1a1a !important;
    }
    
    .bg-emerald-950, .bg-emerald-900, .bg-emerald-800 {
        background: white !important;
    }
    
    .text-cream-800, .text-emerald-200, .text-gold-400 {
        color: #1a1a1a !important;
    }
}
