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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* ========== SCROLL REVEAL ========== */
/* Default state: content is VISIBLE (no JS required) */
.scroll-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);
}

/* Progressive enhancement: JS adds .revealed for animated entrance */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ========== NAVIGATION ========== */
header {
    transition: box-shadow 0.3s ease;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}

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

/* ========== BACK TO TOP ========== */
#back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========== CARD HOVER EFFECTS ========== */
.group:hover .rounded-2xl:first-child svg {
    transform: scale(1.1);
}

/* ========== FORM FOCUS STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.15);
}

/* ========== SELECTION COLOR ========== */
::selection {
    background: #f9ddd3;
    color: #8b4028;
}

/* ========== MOBILE NAV HEIGHT ========== */
header nav {
    height: 72px;
}
