/* Custom styles — editorial, bold, terracotta & sand */

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

/* Selection color */
::selection {
    background-color: #c96048;
    color: #fdfcfa;
}

/* Subtle fade-in for below-fold sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar shadow on scroll */
.navbar-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom wrapper */
img {
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4eadd;
}
::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c48d5c;
}

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

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

/* Ensure hero text is readable */
.hero-headline {
    text-wrap: balance;
}

/* Card image container overflow fix */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
