/* ============================================
   Cake Shop LD — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #D1FAE5;
    color: #064E3B;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FDFBF7, transparent);
    pointer-events: none;
}

/* ============================================
   Features Strip
   ============================================ */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal[data-delay="1"] { transition-delay: 0.1s; }
    .reveal[data-delay="2"] { transition-delay: 0.2s; }
    .reveal[data-delay="3"] { transition-delay: 0.3s; }
    .reveal[data-delay="4"] { transition-delay: 0.4s; }
    .reveal[data-delay="5"] { transition-delay: 0.5s; }
}

/* Default visible state for accessibility */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Contact Form
   ============================================ */
#contact-form input,
#contact-form textarea {
    background: #FDFBF7;
}

#contact-form input:focus,
#contact-form textarea:focus {
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ============================================
   Back to Top
   ============================================ */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 768px) {
    #hero::after {
        height: 60px;
    }
}
