/* Custom styles for Mejia Landscaping & Construction */

:root {
    --charcoal-950: #0D0D0D;
    --charcoal-900: #1A1A1A;
    --charcoal-800: #2A2A2A;
    --coral-500: #E8734A;
    --coral-400: #F08960;
}

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal-950);
}
::-webkit-scrollbar-thumb {
    background: var(--charcoal-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--coral-500), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Project cards */
.project-card {
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.project-card:hover::after {
    border-color: rgba(232, 115, 74, 0.3);
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: rgba(232, 115, 74, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-scrolled .nav-link:hover {
    color: var(--coral-400) !important;
}

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-up.delay-1 { transition-delay: 0.1s; }
    .fade-in-up.delay-2 { transition-delay: 0.2s; }
    .fade-in-up.delay-3 { transition-delay: 0.3s; }
    .fade-in-up.delay-4 { transition-delay: 0.4s; }
    .fade-in-up.delay-5 { transition-delay: 0.5s; }
}

/* Selection color */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: white;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
}

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

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

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
