/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0a0f0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Selection */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f4;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(10, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-link {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */
/* Scroll reveal — progressive enhancement: content is visible by default */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-card {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible,
    .reveal-card.visible {
        opacity: 1;
        transform: none;
    }
}

/* Card stagger delay */
.reveal-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.15s; }
.reveal-card:nth-child(4) { transition-delay: 0.2s; }
.reveal-card:nth-child(5) { transition-delay: 0.25s; }
.reveal-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== HERO ===== */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0f0a, transparent);
    pointer-events: none;
}

/* ===== GOLD ACCENT LINE ANIMATION ===== */
@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="tel:+13157256060"],
a[href="#visit"] {
    position: relative;
    overflow: hidden;
}

a[href="tel:+13157256060"]::before,
a[href="#visit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href="tel:+13157256060"]:hover::before,
a[href="#visit"]:hover::before {
    opacity: 1;
}

/* ===== PRODUCE CARDS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== IMAGE ASPECT RATIOS ===== */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h1 br {
        display: none;
    }
    
    #hero h1::after {
        content: ' has to offer';
    }
}

@media (min-width: 769px) {
    #hero h1 br {
        display: block;
    }
}

/* ===== LOADING STATE ===== */
body.loaded #hero img {
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

/* ===== MISC ===== */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}
