/* Custom styles for Rustic Threads */

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
    background: #fce7eb;
    color: #7a1f30;
}

/* Hero image collage animation on desktop */
@media (prefers-reduced-motion: no-preference) {
    .hero-image-col .img-overlap:nth-child(2) {
        animation: float-slow 6s ease-in-out infinite;
    }
    .hero-image-col .img-overlap:nth-child(3) {
        animation: float-slow 6s ease-in-out infinite reverse;
        animation-delay: 1s;
    }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Subtle pattern overlay for hero text area */
.hero-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(184, 50, 74, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(234, 130, 79, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

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

/* Nav active state */
.nav-link-active {
    color: #b8324a !important;
}

/* Decorative divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b8324a, #ea824f);
    border-radius: 2px;
    margin: 0 auto;
}

/* Button focus ring */
.btn-primary:focus-visible {
    outline: 2px solid #b8324a;
    outline-offset: 2px;
}
