/* Custom styles that extend beyond Tailwind */

html {
    scroll-behavior: smooth;
}

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

/* Ensure all interactive elements have clear focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #46753f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for hero */
.grid-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(102, 152, 94, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

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

/* Selection color */
::selection {
    background-color: #294726;
    color: #f2f7f2;
}

/* Remove default button styles for consistency */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Ensure form inputs don't overflow on small screens */
input, textarea, select {
    max-width: 100%;
}

/* Subtle card elevation on hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}
