/* Custom styles and overrides */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f3c3b5;
    color: #6d2e22;
}

/* Animation for floating card */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Subtle gradient animation for hero */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, #fdf6ed 0%, #fdf0ed 50%, #faebd5 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4654a;
    outline-offset: 2px;
}

/* Reduced motion preference */
@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 animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-terracotta-500 {
    background-color: #d4654a;
}

/* Button hover lift effect */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Form focus ring */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 101, 74, 0.2);
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #fdf6ed 0%, #faebd5 50%, #fdf6ed 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[loading="lazy"] {
    background: transparent;
    animation: none;
}

/* Print styles */
@media print {
    nav,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-gradient-to-br {
        background: #fff !important;
    }
}
