/* ============================================
   The Shed — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #f04e1e;
    color: #ffffff;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible
   by default; JS adds the animated state.
   ============================================ */

/* Default: all elements visible */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When JS adds the 'revealed' class */
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced motion: never animate */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Header scroll state
   ============================================ */
#site-header.scrolled {
    background: rgba(11, 13, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   Mobile menu
   ============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   Card hover effects
   ============================================ */
.group:hover .group-hover\:bg-coral-500 {
    background-color: #f04e1e;
}

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

/* ============================================
   Image aspect ratio utilities
   ============================================ */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* ============================================
   Subtle scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e2329;
}
::-webkit-scrollbar-thumb {
    background: #525b69;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #717987;
}
