/* Custom styles for Scranton Botanical Tea Bar */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 249, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile menu */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F5;
}
::-webkit-scrollbar-thumb {
    background: #EBC4B0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4785A;
}

/* Selection color */
::selection {
    background: #EBC4B0;
    color: #572F23;
}

/* Hero image composition */
.hero-image-main {
    border-radius: 24px;
    overflow: hidden;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Subtle gradient border effect */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 24px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #EBC4B0, #DCA88E, #EBC4B0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #C4785A, #DCA88E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image zoom on hover */
.img-zoom {
    transition: transform 0.7s ease;
}
.card-lift:hover .img-zoom {
    transform: scale(1.05);
}

/* Decorative leaf pattern */
.leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-3 6-9 12-9 18a9 9 0 0 0 18 0c0-6-6-12-9-18z' fill='%23C4785A' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Fade in animations (progressive enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button animation */
.menu-line-1-open {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-line-2-open {
    opacity: 0;
}
.menu-line-3-open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Map container responsive */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}
.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    pointer-events: none;
}
