/* Custom styles for John Wesley House */

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

/* Base typography */
body {
    font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

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

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

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

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

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero text glow */
.text-amber-300 {
    text-shadow: 0 0 40px rgba(253, 211, 77, 0.3);
}

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

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

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle pattern for about section */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(253, 211, 77, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(117, 48, 75, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-plum-700 {
    color: #532537 !important;
}

/* Card hover effects */
.group:hover .group-hover\:bg-plum-800 {
    background-color: #75304b;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #a85577 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 119, 0.1) !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e9ed 0%, #ebd0d9 100%);
}

/* Print styles */
@media print {
    nav, button, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-plum-900, .bg-plum-950 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Large screen optimization */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
