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

body {
    background-color: #040814;
}

::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #f0d060;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #040814;
}
::-webkit-scrollbar-thumb {
    background: #1e2d4a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

/* ── Nav ── */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f0d060 !important;
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #d4a017;
    transition: width 0.3s ease;
}

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

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Scroll Indicator ── */
@keyframes scroll-line {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ── Reveal Animations ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Gold Gradient Text Fallback ── */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d060 0%, #d4a017 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button Ripple ── */
button, a {
    position: relative;
    overflow: hidden;
}

/* ── Form Focus States ── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3);
}

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

/* ── Card Hover ── */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }

    h1 {
        font-size: 2.75rem !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 4rem !important;
    }
}

/* ── Print ── */
@media print {
    body {
        background: white;
        color: black;
    }

    #site-header, #mobile-menu {
        display: none;
    }
}
