/* ============================================
   Second Affair Consignment Boutique
   Custom Styles — burgundy & blush palette
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img, svg {
    display: block;
    max-width: 100%;
}

/* ── Scroll Reveal (progressive enhancement) ── */
/* Default state: visible. JS adds .revealed for animation. */
.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);
}

/* Hidden by default for scroll-reveal — JS adds visible state */
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: none;
    }
}

/* ── Navbar ── */
#navbar {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 0, 32, 0.06);
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.06);
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    display: block;
    text-align: center;
}

/* ── Hero ── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    display: block;
}

/* ── Button hover effects ── */
a {
    text-decoration: none;
}

/* ── Selection ── */
::selection {
    background: rgba(128, 0, 32, 0.12);
    color: #800020;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdfb;
}
::-webkit-scrollbar-thumb {
    background: #f9c4d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f09fb3;
}

/* ── Map container ── */
iframe {
    border: 0;
}

/* ── Typography refinements ── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
}

/* ── Image aspect ratios ── */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* ── Subtle hover for collection cards ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
