/* Custom styles for Arriba Home Improvement */

:root {
    --terra-500: #e36c4a;
    --terra-600: #d45430;
    --terra-700: #b44022;
    --navy-800: #162d4a;
    --navy-900: #0f2136;
    --sand-50: #fefdfb;
    --sand-100: #fdf9f0;
    --sand-200: #faf2de;
}

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation */
.nav-fixed {
    transition: box-shadow 0.3s ease;
}

.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra-600);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--navy-800) !important;
}

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

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

.mobile-nav-link {
    transition: color 0.2s ease;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--sand-100);
}

::-webkit-scrollbar-thumb {
    background: var(--terra-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terra-600);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 108, 74, 0.15);
}

/* Button hover effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, var(--sand-200) 0%, var(--sand-100) 100%);
}

/* Print styles */
@media print {
    nav,
    .mobile-menu-btn,
    #contact-form,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900,
    .bg-terra-600 {
        background: #333 !important;
    }
}
