/* Custom styles for Salty Blonde Hair Company */

:root {
    --color-teal-50: #f0fdfa;
    --color-teal-100: #ccfbf1;
    --color-teal-200: #99f6e4;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-teal-800: #115e59;
    --color-teal-900: #134e4a;
    --color-teal-950: #042f2e;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Lato', sans-serif;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
}

/* Fallback: ensure content is visible without JS */
@supports not (animation-name: test) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-track {
    background: var(--color-teal-50);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-600);
}

/* Selection color */
::selection {
    background: var(--color-teal-200);
    color: var(--color-teal-950);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-teal-600) !important;
}

/* Image loading placeholder */
img {
    background-color: var(--color-teal-100);
}

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

/* Smooth image hover */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Decorative line animations */
.w-px {
    transition: height 0.3s ease;
}

/* Button hover effects */
a, button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
