/* ============================================
   STATUARY GARDENS AND GIFTS — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* --- Selection --- */
::selection {
    background: rgba(201, 168, 76, 0.25);
    color: #faf8f2;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f2419;
}
::-webkit-scrollbar-thumb {
    background: #2d4a2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a603a;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-100 { transition-delay: 100ms; }
    .reveal.delay-200 { transition-delay: 200ms; }
    .reveal.delay-300 { transition-delay: 300ms; }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(8, 20, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 74, 45, 0.4);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* --- Image hover containers --- */
.group:hover img {
    transform: scale(1.05);
}

/* --- Form focus states --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Button ripple-like glow --- */
button[type="submit"]:hover {
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.2);
}

/* --- Smooth anchor offsets for fixed nav --- */
section[id] {
    scroll-margin-top: 80px;
}

/* --- Responsive typography adjustments --- */
@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 72px;
    }
}

/* --- Gold shimmer on hover for special elements --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Image loading placeholder --- */
img {
    background-color: #1a3a2a;
}

/* --- Focus visible for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Landscape mobile adjustments --- */
@media (max-height: 500px) and (orientation: landscape) {
    #navbar {
        height: 56px;
    }
    section[id] {
        scroll-margin-top: 64px;
    }
}
