/* Custom styles and overrides */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d9a9be;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85572;
}

/* Selection color */
::selection {
    background: #d9a9be;
    color: #4c1f2c;
}

/* Scroll reveal animations — progressive enhancement only */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav active state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(76, 31, 44, 0.06);
}

/* Image hover zoom */
img {
    transition: opacity 0.3s ease;
}

/* Subtle line decorations */
h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, #f5a623, transparent);
    margin-top: 16px;
}

h2.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
