/* ============================================
   Family WR — Custom Styles
   ============================================ */

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f5f7;
}
::-webkit-scrollbar-thumb {
    background: #c5c8cf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ba1ad;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================
   Mobile Menu Transitions
   ============================================ */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    opacity: 0;
}

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

/* ============================================
   Navbar scroll state
   ============================================ */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Button micro-interactions
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form focus states
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* ============================================
   Reduced motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
    a, button {
        transition: none;
    }
}

/* ============================================
   Tablet and up adjustments
   ============================================ */
@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   Mobile adjustments
   ============================================ */
@media (max-width: 767px) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}
