/* Additional custom styles */

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

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

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

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

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

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

/* Print styles */
@media print {
    .scroll-indicator,
    .mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #964b33;
        color: #faf8f6;
    }
    
    .btn-secondary {
        border-color: #964b33;
        color: #964b33;
    }
}

/* Ensure all images have proper loading attributes */
img {
    max-width: 100%;
    height: auto;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #d49278;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #c47655;
}

/* Loading state for buttons */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subtle hover effect for service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(196, 118, 85, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navigation active state */
nav a.active {
    color: #c47655;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
    
    #contact-form {
        padding: 1.5rem;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .service-card:hover {
        box-shadow: 0 20px 40px rgba(196, 118, 85, 0.1);
    }
}
