/* 
    Custom Styles for Thinking Cup Coffee Hub
    Overrides and enhancements for Tailwind CSS
*/

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    /* Force font rendering for better readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography adjustments */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

p, a, button, input, textarea {
    font-family: 'Lato', sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #2D3748;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D53F8C;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out forwards;
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* If JS is disabled or fails, content is still visible (progressive enhancement) */
/* But if JS runs, we add classes for animation */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D53F8C;
    outline-offset: 2px;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
