/* Custom styles supplementing Tailwind CSS */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefdfb;
}

::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec6c93;
}

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

/* Subtle pattern for cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(161, 21, 56, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Ensure mobile menu links have proper hover */
.mobile-nav-link {
    color: #71172e;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: #c1234e;
    padding-left: 8px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefdfb inset !important;
    -webkit-text-fill-color: #71172e !important;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

/* Print styles */
@media print {
    .fixed, header, .mobile-menu, #menu-overlay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
