/* Custom styles that complement Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(123, 45, 59, 0.6);
    color: #faf8f5;
}

/* Subtle grain texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
    z-index: 9999;
}

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

/* Custom underline animation for links */
a.hover-underline {
    position: relative;
}
a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a574;
    transition: width 0.3s ease;
}
a.hover-underline:hover::after {
    width: 100%;
}

/* Parallax-like subtle movement for hero images */
@supports (background-attachment: fixed) {
    .hero-pattern {
        background-attachment: fixed;
    }
}
