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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060E17;
}
::-webkit-scrollbar-thumb {
    background: #1E2D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D3F50;
}

/* ── Selection ── */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F0D78C;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}

/* Fallback: ensure content is visible if JS is disabled */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class */
}

/* ── Gold shimmer on hover for buttons ── */
.btn-gold {
    position: relative;
    overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover::after {
    left: 100%;
}

/* ── Image hover container ── */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* ── Input focus glow ── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.3);
}

/* ── Navbar blur backdrop ── */
.nav-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

/* ── Form success animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#formSuccess.show {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Gold line animation ── */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 48px; }
}
.gold-line {
    animation: expandWidth 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Pulse dot ── */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
