/* Custom styles for Crystal Brown, Texas Legacy Realty */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #b91d43;
    color: #fefdfb;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    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");
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

/* Custom focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #971537;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.nav-scrolled {
    backdrop-filter: blur(12px);
}

/* Image hover zoom */
.service-card img,
#about img,
#why-burleson img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative line animation */
.divider-ornament {
    background: linear-gradient(90deg, #971537, #f8c9d6);
}

/* Ensure all text has proper contrast */
.text-burgundy-100 { color: #fdf2f4; }
.text-burgundy-200 { color: #fad0d9; }
.text-burgundy-300 { color: #f6a6b8; }

/* Print styles */
@media print {
    nav, #contact-form, button { display: none; }
    body { color: #000; background: #fff; }
    .serif { font-family: Georgia, serif; }
}
