/* ============================================
   Sunburst St Petersburg — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #7B2D3B;
    color: #FEFCFB;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(32px);
}

.reveal[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }

/* --- Navbar Transition --- */
#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled a:not(.bg-burgundy-800):not(.border):not(#menu-btn *) {
    color: #2A201A;
}

#navbar.scrolled #nav-logo-sub,
#navbar.scrolled .text-sand-600,
#navbar.scrolled .text-sand-700 {
    color: #6B5642;
}

#navbar.scrolled #menu-btn #bar1,
#navbar.scrolled #menu-btn #bar2,
#navbar.scrolled #menu-btn #bar3 {
    background-color: #2A201A;
}

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

#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* --- Menu Icon Animation --- */
#menu-btn.active #bar1 {
    transform: translateY(7px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
    transform: translateX(-8px);
}

#menu-btn.active #bar3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.5rem;
}

/* --- Card Hover Effects --- */
.reveal.group:hover .rounded-sm overflow-hidden img,
.reveal.group:hover img {
    transform: scale(1.05);
}

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

/* --- Subtle Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .reveal {
        transform: none;
        opacity: 1;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
