/* Custom styles for Wren's Jewelry Store */

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

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

/* Selection color */
::selection {
    background: #059669;
    color: #fffef8;
}

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

/* Only apply hidden state when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Reduced motion - ensure everything is always visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
}

/* Hero text glow */
h1 .text-emerald-300 {
    text-shadow: 0 0 40px rgba(110, 231, 183, 0.3);
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

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

/* Subtle pulse for CTA buttons */
@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
    }
}

/* Form styles */
input, textarea {
    border: 2px solid #d1fae5;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fffef8;
    color: #064e3b;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #6ee7b7;
}

/* Success message */
.form-success {
    animation: fadeIn 0.4s ease;
}

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

/* Map container responsive */
iframe {
    border-radius: 1.5rem;
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

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