/* Southern Thymes Cafe — Custom Styles */

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0f0d0a;
}

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

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

/* Selection */
::selection {
    background: #C4956A;
    color: #0f0d0a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero Animations */
.hero-content {
    animation: fadeInUp 1s ease forwards;
}

.hero-image {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(15, 13, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 149, 106, 0.1);
}

.navbar-scrolled .nav-link {
    color: rgba(232, 213, 196, 0.8) !important;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line-1-open {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-line-2-open {
    opacity: 0;
}

.menu-line-3-open {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Menu Items */
.menu-item {
    position: relative;
    padding-left: 1rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #C4956A;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

/* Image Hover Effects */
.gallery-image {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Button Hover Glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(196, 149, 106, 0.3);
}

/* Form Inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C4956A !important;
    box-shadow: 0 0 0 1px rgba(196, 149, 106, 0.2);
}

/* Decorative Divider */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C4956A, transparent);
}

/* Parallax-like subtle movement */
.parallax-slow {
    will-change: transform;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
    
    /* Reduce image overlap on mobile */
    .hero-image-stack {
        display: none;
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 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;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

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

/* Loading State */
.page-loaded .hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.page-loaded .hero-image {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
}
