/* Custom Styles for The Bake Shop */

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

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

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

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

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

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #f5a3b5;
    transition: width 0.3s ease;
}

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

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Hero Section Parallax Effect */
#home {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
}

/* Card Hover Effects */
.bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-8px);
}

/* Form Input Focus Effects */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(135, 19, 49, 0.1);
}

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

/* Testimonial Cards */
.bg-white.p-8 {
    position: relative;
    overflow: hidden;
}

.bg-white.p-8::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: 'Playfair Display', serif;
    color: rgba(135, 19, 49, 0.05);
    line-height: 1;
}

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

/* Fade In Animation for Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Loading State for Form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif.text-4xl {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    .font-serif.text-5xl {
        font-size: 2.75rem;
        line-height: 1.1;
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-white {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-burgundy-700 {
        background-color: #000;
    }
    
    .text-burgundy-700 {
        color: #000;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid #f5a3b5;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #f5a3b5;
    color: #3f0713;
}
