/* ===== THE SPICERY — Custom Styles ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* Selection */
::selection {
    background-color: #D4A017;
    color: #240a20;
}

/* ===== HERO IMAGE STACK ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.hero-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ===== NAVBAR SCROLL STATE ===== */
#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 39, 96, 0.08);
}

#site-header.scrolled .font-display {
    color: #240a20;
}

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

/* ===== PRODUCT CARD HOVER ===== */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.product-card img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* ===== BUTTON RIPPLE EFFECT ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

/* ===== SMOOTH SCROLL OFFSET FOR FIXED NAV ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B2760;
}

/* ===== FORM STYLES ===== */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a2e;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6B2760;
    box-shadow: 0 0 0 3px rgba(107, 39, 96, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    background-color: #6B2760;
    color: #fff;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #5a1f50;
    transform: translateY(-1px);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Success message */
.form-success {
    display: none;
    padding: 1rem 1.25rem;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.75rem;
    color: #065f46;
    font-weight: 500;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
