/* ============================================
   Loose Moose — Custom Styles
   ============================================ */

/* Base & Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #cc4417;
    color: #fdfbf7;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav.scrolled .nav-link {
    color: #5d3f20;
}

.nav.scrolled .nav-link:hover {
    color: #cc4417;
}

.nav.scrolled .font-serif.text-xl {
    color: #312110;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .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
   ============================================ */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

/* ============================================
   Typography Enhancements
   ============================================ */
.font-serif {
    letter-spacing: -0.02em;
}

/* ============================================
   Smooth Scroll Offset for Anchors
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #cc4417;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Image Placeholder Fallbacks
   ============================================ */
img {
    background: linear-gradient(135deg, #e8d19a 0%, #f3e8cc 50%, #d9b46a 100%);
}

/* ============================================
   Subtle Texture Overlay
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23312110' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Card Hover Glow
   ============================================ */
.group:hover .w-14 {
    box-shadow: 0 0 20px rgba(204, 68, 23, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #cc4417;
}
