/* ========================================
   Eclipse Coffee & Tea — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0faf7;
}
::-webkit-scrollbar-thumb {
    background: #7ed4b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52be96;
}

/* Selection color */
::selection {
    background-color: #7ed4b8;
    color: #0F4C75;
}

/* Card hover effects */
.card-hover {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
    border-color: #afE5D2;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(15, 76, 117, 0.08) !important;
}

/* Reveal animation — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    img {
        transition: none;
    }
    .card-hover:hover {
        transform: none;
    }
}

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

/* Image hover zoom wrapper */
.rounded-2xl.overflow-hidden {
    position: relative;
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
