/* Custom Styles for Floral Connection */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #71964f;
}

/* Hero animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu transitions */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(35, 47, 24, 0.08);
}

.nav-scrolled .menu-line {
    background: #314421 !important;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Image optimization */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

/* Gallery hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Subtle pattern overlay for sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(189, 213, 176, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(189, 213, 176, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Testimonial card hover */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
}

/* Form input focus transitions */
input:focus,
textarea:focus,
select:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}
