/* Custom styles that complement Tailwind */
html {
    scroll-behavior: smooth;
}

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

/* Hero geometric shapes */
.hero-diamond {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #8abb8a;
    transform: rotate(45deg);
    opacity: 0.5;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #2d5c2d 0%, #5fa05f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

::-webkit-scrollbar-track {
    background: #f3ead8;
}

::-webkit-scrollbar-thumb {
    background: #b9d4b9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8abb8a;
}

/* Selection color */
::selection {
    background: #dce8dc;
    color: #1a331a;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-forest-400\/30 {
    background-color: rgba(138, 187, 138, 0.3);
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232d5c2d' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Gallery snap behavior */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}
