/* ===== Custom Styles for T & T Donuts ===== */

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

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

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

::-webkit-scrollbar-thumb {
    background: #811a39;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c1e42;
}

/* Selection color */
::selection {
    background: #ff6b4a;
    color: #fefcfb;
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 1px 0 rgba(129, 26, 57, 0.1);
}

#navbar.scrolled .font-serif {
    color: #3a0a17;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu button animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* ===== Section Dividers ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f3a5b8, transparent);
}

/* ===== Card Hover Effects ===== */
.group:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Image Hover ===== */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Form Focus States ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

/* ===== Button Hover Glow ===== */
button:hover,
a:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav,
    #contact,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
