/* Custom styles for Cream 4 You */

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 34, 64, 0.08);
}

nav.scrolled .font-serif {
    color: #102240;
}

/* Hero image gradient overlay fix */
#hero img {
    image-rendering: -webkit-optimize-contrast;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6ee;
}
::-webkit-scrollbar-thumb {
    background: #102240;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #162f56;
}

/* Selection color */
::selection {
    background: #c8963e;
    color: #0a1628;
}

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

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

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

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a855, #c8963e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
