/* ===== CUSTOM STYLES FOR VESSEL TEA ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== NAVBAR SCROLL STATE ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default state: visible (progressive enhancement — works without JS) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hidden state (applied via JS only for enhanced motion) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.hidden-reveal,
    .reveal-left.hidden-reveal,
    .reveal-right.hidden-reveal {
        opacity: 0;
    }
    .reveal-up.hidden-reveal {
        transform: translateY(32px);
    }
    .reveal-left.hidden-reveal {
        transform: translateX(-32px);
    }
    .reveal-right.hidden-reveal {
        transform: translateX(32px);
    }
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== FORM FOCUS STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* ===== CARD TILT EFFECT ===== */
.group:hover .group-hover\:scale-105 {
    will-change: transform;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

/* ===== REDUCED MOTION ===== */
@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;
    }
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
