/* ============================================
   Bear Tracks — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a0f20;
}
::-webkit-scrollbar-thumb {
    background: #5c2648;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #712d58;
}

/* --- Selection --- */
::selection {
    background: #d97706;
    color: #2a0f20;
}

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

/* --- Base Typography --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar Transition States --- */
.nav-scrolled {
    background: rgba(42, 15, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(92, 38, 72, 0.3);
}

/* --- Mobile Menu States --- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* --- Button Focus Styles --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* --- Scroll Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }

    .reveal[data-reveal="scale"] {
        transform: scale(0.95);
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Image Hover Effects --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Card Hover Glow --- */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* --- Custom Focus for Form Inputs --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px #d97706;
}

/* --- Print Styles --- */
@media print {
    nav,
    #contact-form,
    .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 .italic {
        font-size: 2.25rem;
    }
}

/* --- Landscape phone adjustments --- */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 6rem 0;
    }
}
