/* Custom styles for HDZ Surveying */

:root {
    --color-charcoal-900: #1a1a1a;
    --color-charcoal-800: #2d2d2d;
    --color-charcoal-700: #3d3d3d;
    --color-coral-500: #ff6f61;
    --color-coral-400: #ff8c7a;
}

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

/* Selection color */
::selection {
    background: rgba(255, 111, 97, 0.2);
    color: var(--color-charcoal-900);
}

/* Navbar transitions */
.nav-text {
    transition: color 0.4s ease;
}

.nav-btn span {
    transition: all 0.3s ease;
}

/* Mobile menu animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

body.menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Mobile menu toggle */
body.menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open #bar2 {
    opacity: 0;
}

body.menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

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

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

/* Service cards */
.service-card {
    transition: border-color 0.5s ease, background-color 0.5s ease;
}

/* Area items */
.area-item {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card,
    .area-item {
        transition: none;
    }
}

/* 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='%239ca3af' 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 0 center;
    padding-right: 2rem;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: var(--color-coral-500) !important;
}

/* Print styles */
@media print {
    header,
    #contact,
    footer {
        display: none;
    }
}
