/* Custom styles beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f2eb;
}
::-webkit-scrollbar-thumb {
    background: #d4b88a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4a06a;
}

/* Selection color */
::selection {
    background: #f5d0b5;
    color: #6b2714;
}

/* Reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* If JS fails or is disabled, show all content */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Hero text glow for better readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Subtle line decorations */
.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #c74012, transparent);
}

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

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

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

/* Button hover effects */
button[type="submit"]:hover {
    box-shadow: 0 10px 40px -10px rgba(199, 64, 18, 0.3);
}

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

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
