/* ── Custom Styles for Mona's Unique Gifts ── */

/* Scroll progress bar */
html {
    scroll-behavior: smooth;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Navbar transitions ── */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#navbar.scrolled .font-serif {
    color: #1c1917 !important;
}

/* ── Mobile menu ── */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hamburger animation ── */
.menu-line {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(2.5px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-2.5px) rotate(-45deg);
    width: 1.25rem;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
    }
}

/* ── Image hover parallax ── */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e0725a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

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

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

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

/* ── Mobile responsive adjustments ── */
@media (max-width: 767px) {
    #hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    h1 {
        font-size: 2.75rem !important;
        line-height: 1.05 !important;
    }

    .lg\:text-7xl,
    .xl\:text-8xl {
        font-size: 2.5rem !important;
    }

    .floating-badge {
        display: none;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 3.5rem !important;
    }
}
