/* Custom overrides and utility styles for Garnet Gardens */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f1c3a;
}
::-webkit-scrollbar-thumb {
    background: #2b4394;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b5bdb;
}

/* Selection color */
::selection {
    background: #eab308;
    color: #1d3461;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #eab308;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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

/* Mobile menu animation */
#mobileMenu {
    background: rgba(15, 28, 58, 0.98);
    border-radius: 16px;
    margin: 0 12px;
}

/* Subtle pattern for gold sections */
.bg-gold-50 {
    background-image: radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.06) 0%, transparent 50%);
}

/* Card image zoom wrapper */
.card .overflow-hidden {
    position: relative;
}

/* Reduce motion preference */
@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 !important;
        transform: none !important;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-bg {
        background-attachment: fixed;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .card:hover {
        transform: translateY(-8px);
    }
}
