/* Custom styles for OTM Customs */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #a61640;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #871134;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #71102c;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(135, 17, 52, 0.08);
}

#navbar.scrolled .font-serif {
    color: #71102c;
}

#navbar.scrolled .text-burgundy-600 {
    color: #a61640;
}

#navbar.scrolled a.text-gray-600 {
    color: #4b5563;
}

#navbar.scrolled a.text-gray-600:hover {
    color: #a61640;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #a61640;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a61640, #f9a3b8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Contact form inputs */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(166, 22, 64, 0.1);
}

/* Button hover effects */
a[href^="tel"] {
    position: relative;
    overflow: hidden;
}

a[href^="tel"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href^="tel"]:hover::after {
    opacity: 1;
}

/* Fade in animation for scroll reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-delay-1 { transition-delay: 0.1s; }
    .fade-in-delay-2 { transition-delay: 0.2s; }
    .fade-in-delay-3 { transition-delay: 0.3s; }
    .fade-in-delay-4 { transition-delay: 0.4s; }
    .fade-in-delay-5 { transition-delay: 0.5s; }
    .fade-in-delay-6 { transition-delay: 0.6s; }
}

/* 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;
    }
}

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

#mobileMenu.open {
    transform: translateX(0);
}

/* Pulse animation for hero dot */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Subtle floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

/* Print styles */
@media print {
    nav, #contactForm, button, .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-950 {
        background: #3d0716 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
