/* Custom styles for Homes Via Carrie */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Selection color */
::selection {
    background: #ff5a2e;
    color: #ffffff;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Service card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle line animations */
.border-l-2 {
    border-left-width: 2px;
}

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Reduced motion preferences */
@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;
    }
    
    .group img {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #ff5a2e;
    outline-offset: 2px;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Subtle card shadow */
.shadow-lg {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
}

/* Coral shadow */
.shadow-coral-500\/20 {
    box-shadow: 0 10px 40px -10px rgba(255, 90, 46, 0.2);
}
