/* === Custom Styles for Meinhardt Gardens & Trees === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F5;
}
::-webkit-scrollbar-thumb {
    background: #955065;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7d4155;
}

/* Selection color */
::selection {
    background: #d6b3bc;
    color: #30171e;
}

/* === Reveal Animations (progressive enhancement) === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Navbar transitions === */
#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(48, 23, 30, 0.08);
}

#navbar.scrolled .font-serif {
    color: #562f3e !important;
}

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

/* === Button ripple effect === */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

/* === Focus styles for accessibility === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Hero parallax-like effect === */
#hero {
    perspective: 1px;
}

#hero img {
    will-change: transform;
}

/* === Card hover effects === */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* === Amber accent line animation === */
.flex.items-center.gap-2.mb-2 span {
    transition: width 0.4s ease;
}

/* === Back to top button === */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* === Mobile menu link hover === */
.mobile-link {
    position: relative;
}

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

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

/* === Print styles === */
@media print {
    #navbar, #back-to-top, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
