/* Custom styles for KG Gifts */

:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #0f2140;
    --color-gold-500: #c9982e;
    --color-gold-400: #d4a853;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .nav-link {
    color: #0a1628;
}

#navbar.scrolled .nav-link:hover {
    color: #c9982e;
}

#navbar.scrolled #nav-logo {
    color: #0a1628;
}

#navbar.scrolled #mobile-toggle svg {
    color: #0a1628;
}

/* Nav link hover underline */
.nav-link {
    color: rgba(10, 22, 40, 0.7);
    position: relative;
}

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

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

.nav-link:hover {
    color: #0a1628;
}

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-tagline {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #c9982e;
    transform: scale(1.05);
}

/* Gold accent divider */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9982e, #d4a853);
    border-radius: 2px;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #c9982e;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f7f4;
}

::-webkit-scrollbar-thumb {
    background: #0f2140;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #152e58;
}

/* Selection color */
::selection {
    background-color: rgba(201, 152, 46, 0.2);
    color: #0a1628;
}
