/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #064e3b;
    color: #fdfcfa;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Navbar */
#navbar {
    color: #fdfcfa;
}

#navbar.scrolled {
    background-color: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(253, 252, 250, 0.05);
}

#navbar.scrolled a,
#navbar.scrolled .border {
    color: #fdfcfa;
}

#navbar.scrolled .border {
    border-color: rgba(253, 252, 250, 0.3);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }

/* Mobile Menu Toggle */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active #bar2 {
    opacity: 0;
}
#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

/* Gallery */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Select styling */
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='%23064e3b' 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;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}
