/* ===== CUSTOM STYLES ===== */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

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

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    /* Default: fully visible */
}

/* Only apply hidden state when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

/* Reduced motion: no animation needed, content is already visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal.revealed {
        animation: none;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f0;
}
::-webkit-scrollbar-thumb {
    background: #f9cfd9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f4a3b8;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ec6988;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #7B2D3B;
}

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

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

/* Remove transform on touch devices */
@media (hover: none) {
    .group:hover {
        transform: none;
    }
}

/* Active state for buttons */
button:active {
    transform: scale(0.98) !important;
}

/* Form select arrow styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .scroll-reveal { display: none; }
    body { background: white; color: black; }
}
