/* ============================================
   Southern Sneaux — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8ec;
}
::-webkit-scrollbar-thumb {
    background: #d4aed7;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bb7fc0;
}

/* --- Selection --- */
::selection {
    background: #d4aed7;
    color: #3a1639;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D8E, #D4922A);
    border-radius: 9999px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* --- Header Scrolled State --- */
#site-header.scrolled {
    background: rgba(253, 248, 236, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 142, 0.08), 0 4px 20px rgba(123, 45, 142, 0.06);
}

#site-header.scrolled .font-serif {
    color: #3a1639;
}

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

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

.mobile-nav-link {
    position: relative;
}

/* --- Reveal Animations --- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.35s; }

/* --- Card Hover Effects --- */
.reveal-on-scroll .group:hover svg {
    filter: drop-shadow(0 4px 12px rgba(212, 146, 42, 0.4));
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D8E;
    outline-offset: 2px;
}

/* --- Image Hover Zoom --- */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rounded-2xl.overflow-hidden:hover img,
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .rounded-2xl.overflow-hidden img,
    .rounded-3xl.overflow-hidden img {
        transition: none;
    }
    .nav-link::after {
        transition: none;
    }
    #site-header {
        transition: none;
    }
}

/* --- Mobile Adjustments --- */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
