/* 
 * Diwan Cafe Custom Styles
 * Classic, Elegant, Refined
 */

/* Base Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    /* Fallback font stack if Playfair/Lato fails */
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delays for grid items */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

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

/* Form Styles */
input, textarea {
    background-color: #fbf8f1;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #064e3b;
    background-color: #ffffff;
}

/* Utility for text contrast */
.text-emerald-900 {
    color: #022c22;
}

.bg-emerald-900 {
    background-color: #022c22;
}

.bg-emerald-850 {
    background-color: #064e3b;
}
