/* Custom Styles for Brew Atelier */

:root {
    --primary-brown: #A67C52;
    --bg-cream: #F5F2ED;
    --dark-bg: #1A1A1A;
}

body {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Navbar Base & Scrolled State */
#navbar {
    background-color: #F5F2ED; /* Сплошной цвет фона сайта */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Custom Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

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

/* Image Hover Effects */
.group:hover img {
    transform: scale(1.1);
}

/* Line Clamp for Menu Descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .aspect-square {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .px-12 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link {
    position: relative;
    padding: 0.5rem 0;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-brown);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
