/* Custom styles that complement Tailwind */

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

/* Selection color */
::selection {
    background: #d44a27;
    color: #FDF8F0;
}

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

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero wave animation */
@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #44403c !important;
}

.nav-scrolled .logo-text {
    color: #d44a27 !important;
}

/* Mobile menu animation */
.mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu.open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Product card image zoom on hover */
.product-card:hover img {
    transform: scale(1.1);
}

/* Button press effect */
.btn-shine:active {
    transform: scale(0.97);
}

/* Subtle pattern overlay for sections */
.stripe-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 74, 39, 0.02) 10px,
        rgba(212, 74, 39, 0.02) 20px
    );
}

/* Dot pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(212, 74, 39, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Reduce motion for accessibility */
@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;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, footer, #backToTop, .geo-circle, .geo-square, .geo-triangle {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
