/* ===== Custom Styles for Pattie Hut ===== */

:root {
    --forest-700: #1B4332;
    --forest-950: #0a1a13;
    --warm-400: #d4a373;
    --warm-50: #fdf8f0;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--warm-50);
}
::-webkit-scrollbar-thumb {
    background: var(--forest-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-950);
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: var(--forest-950);
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Reveal animations — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu */
.mobile-nav-link {
    transition: opacity 0.3s ease;
}

/* Card hover effects */
.card-featured {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-featured:hover {
    transform: translateY(-4px);
}

/* Diagonal clip for about section */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--forest-700);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
}
