/* Mahuron's Building Supply — Custom Styles */

:root {
    --color-navy-950: #040d1a;
    --color-navy-900: #0a1628;
    --color-navy-800: #0f2140;
    --color-gold-500: #c9a84c;
    --color-gold-400: #d4b76a;
    --color-cream-50: #faf8f4;
    --color-cream-100: #f5f0e8;
    --color-cream-200: #ede6d8;
}

html {
    scroll-behavior: smooth;
}

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

/* Reveal animations — progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

/* Without JS, all content is visible by default */
@supports not selector(.reveal.revealed) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-navy-900);
}

/* Selection color */
::selection {
    background: var(--color-gold-500);
    color: var(--color-navy-950);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile menu animations */
.menu-line {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-cream-200);
}

.mobile-link:last-child {
    border-bottom: none;
}
