/* ===== Custom Styles for Worsham Woodworks ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #E8634B;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F07862;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #E8634B;
    outline-offset: 2px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-2deg); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Card hover lift */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Coral gradient text utility */
.text-coral-gradient {
    background: linear-gradient(135deg, #E8634B 0%, #F07862 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle, rgba(232, 99, 75, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.open {
    max-height: 500px;
}

/* Form input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #FAF6F3 inset !important;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.97);
}

/* Product card image zoom container */
.group .relative.h-64 {
    overflow: hidden;
}

/* Geometric decorative elements */
.geo-shape-1 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.geo-shape-2 {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Ensure hero image doesn't cause layout shift */
#hero img {
    will-change: transform;
}

/* Print styles */
@media print {
    nav, #contactForm, button { display: none; }
    body { background: white; color: black; }
}
