/* ========================================
   The Witches Conservatory — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
======================================== */

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

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

body {
    background-color: #060E1F;
    color: #FBF0D0;
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E2AD3C;
}

/* Selection */
::selection {
    background: #C9A84C;
    color: #060E1F;
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   Content is visible by default; JS adds animation
======================================== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background: rgba(6, 14, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #E2AD3C;
}

/* ========================================
   Mobile Menu
======================================== */
#mobileMenu {
    z-index: 40;
}

.mobile-link {
    position: relative;
}

/* ========================================
   Input Focus States
======================================== */
input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* ========================================
   Button Hover Effects
======================================== */
button,
a[href^="tel:"],
a[href^="mailto:"] {
    cursor: pointer;
}

/* ========================================
   Image Loading
======================================== */
img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========================================
   Utility
======================================== */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
}
