/* Custom styles for Glow Beauty Co */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal base - always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS enhances */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal,
    .js-enabled .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    img {
        transition: none;
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
    backdrop-filter: blur(10px);
}

/* Selection color */
::selection {
    background: #047857;
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Image hover zoom wrapper */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Ensure all text has proper contrast */
.text-emerald-800\/70 {
    color: rgb(4 95 70 / 0.7);
}

.text-emerald-700\/60 {
    color: rgb(4 120 87 / 0.6);
}

.text-emerald-200\/80 {
    color: rgb(110 231 183 / 0.8);
}

.text-emerald-400\/70 {
    color: rgb(52 211 153 / 0.7);
}

.text-emerald-500 {
    color: rgb(16 185 129);
}

.text-emerald-600 {
    color: rgb(5 150 105);
}
