/* Custom styles for All Phazes Cafe */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7fa352;
}

/* Animation classes for scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #5f8334 0%, #3c5424 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a6a2a 0%, #283818 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 84, 36, 0.3);
}

.btn-outline {
    border: 2px solid rgba(254, 253, 248, 0.8);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(254, 253, 248, 0.15);
    border-color: rgba(254, 253, 248, 1);
}

.cta-btn {
    background: linear-gradient(135deg, #5f8334 0%, #4a6a2a 100%);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #4a6a2a 0%, #3c5424 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 84, 36, 0.35);
}

/* Map pin animation */
.map-link:hover .map-pin {
    transform: translateY(-4px);
}

.map-pin {
    transition: transform 0.3s ease;
}

/* Glass card effect */
.glass-card {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Navigation blur */
.nav-blur {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Service card hover */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Hero pattern */
.hero-pattern {
    background-image: url('https://images.pexels.com/photos/5531017/pexels-photo-5531017.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280');
    background-size: cover;
    background-position: center;
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(20, 29, 12, 0.88) 0%, rgba(44, 56, 24, 0.82) 50%, rgba(60, 84, 36, 0.70) 100%);
}

/* Wave divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

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

/* Print styles */
@media print {
    .wave-divider,
    .mobile-menu,
    #menuBtn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .glass-card {
        background: #fff;
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .cta-btn {
        border: 2px solid ButtonText;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-pattern {
        background-position: 60% center;
    }

    .wave-divider svg {
        height: 40px;
    }
}
