/* ============================================
   Middle East Jewelry — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(131, 33, 33, 0.2);
    color: #3a0c0c;
}

/* ============================================
   Navbar
   ============================================ */
.navbar-scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(131, 33, 33, 0.08);
}

.navbar-scrolled .font-serif {
    color: #3a0c0c;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — only active when
   JavaScript runs and user prefers motion.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays */
    .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; }
}

/* Default state: content is visible (no JS fallback) */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Hover micro-interactions
   ============================================ */
a {
    transition: color 0.3s ease;
}

button, .group-hover\:scale-105, .group-hover\:scale-110 {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Form focus styles
   ============================================ */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(131, 33, 33, 0.1);
}

/* ============================================
   Image placeholder fallback
   ============================================ */
img {
    background: linear-gradient(135deg, #f5ead8 0%, #fce7e7 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a12525;
}

/* ============================================
   Mobile menu animation
   ============================================ */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
