/* Custom styles for Mama 'n' Dems */

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

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

/* Hero animations - above the fold, always visible */
.hero-title,
.hero-subtitle,
.hero-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(26, 58, 42, 0.08);
    backdrop-filter: blur(10px);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* Reveal animations - below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Image hover effects */
.group:hover img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2e5238;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #2e5238;
    color: #faf8f4;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fad94;
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5.5rem);
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .hero-title {
        font-size: clamp(4rem, 7vw, 6.5rem);
    }
}

/* Ensure images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Form styles (for future contact forms) */
input,
textarea {
    font-family: inherit;
}

/* Print styles */
@media print {
    #navbar,
    .reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
