/* Custom styles for Colony North */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement: animate on scroll when JS is enabled */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.animated) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(131, 20, 67, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Custom focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.1);
}

/* Subtle gradient border on cards */
.bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
}

/* Hero text shadow for readability */
h1, h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove default button styles */
button {
    cursor: pointer;
    border: none;
    background: none;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #831443;
}
