/* Custom styles for High Rize Dispensary */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
    background: #d4456e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8264b;
}

/* Selection color */
::selection {
    background: #f9cfd8;
    color: #800020;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    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(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link transitions */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(128, 0, 32, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-link:last-child {
    border-bottom: none;
}
.mobile-link:hover {
    color: #d4456e;
    padding-left: 0.5rem;
}

/* Hero decorative leaves animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.top-32.left-10 {
        animation: float 6s ease-in-out infinite;
    }
    .absolute.bottom-40.right-16 {
        animation: float 5s ease-in-out infinite 1s;
    }
}

/* Button hover effects */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fdf0f2 0%, #fce4e8 100%);
}

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

/* Product card image hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #800020 0%, #d4456e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.12);
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Ensure all interactive elements have proper contrast */
button, a {
    cursor: pointer;
}

/* Mobile menu open state */
#mobileMenu.open {
    display: block;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Ensure text is readable on all backgrounds */
.text-burgundy-600 {
    color: #9a1a3d;
}
.text-burgundy-500 {
    color: #b8264b;
}
.text-burgundy-700 {
    color: #800020;
}
.text-burgundy-800 {
    color: #6b001a;
}
.text-burgundy-900 {
    color: #3d000e;
}
