/* Custom Styles for O.B. Donuts Memphis */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Pattern for Background */
.pattern-dots {
    background-image: radial-gradient(#0f172a 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Typography Enhancements */
.font-serif {
    font-feature-settings: "liga", "clig";
}

/* Scroll Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.reveal-img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-out;
}

.reveal-img.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

/* Staggered Delays */
.reveal-card:nth-child(1) { transition-delay: 0.1s; }
.reveal-card:nth-child(2) { transition-delay: 0.2s; }
.reveal-card:nth-child(3) { transition-delay: 0.3s; }

/* Hero Animations */
.hero-subtitle {
    animation: slideDown 0.8s ease-out forwards;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-text {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-btns {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Mobile Menu Transitions */
#mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
