/* ============================================
   Stage Stop — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(184, 82, 50, 0.2);
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d98f76;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a33e25;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

/* Scroll Reveal */
.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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(32px);
}

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

/* Navbar transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Menu item hover */
#menu li {
    position: relative;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d98f76;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Image aspect ratios */
img {
    display: block;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Subtle text shadow for readability on images */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Custom underline for serif highlights */
.font-serif em {
    font-style: italic;
}
