/* Custom styles and overrides */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #8fba7e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7e36;
}

/* Selection color */
::selection {
    background: #2f5222;
    color: #faf9f6;
}

/* Subtle pattern for off-white sections */
.bg-offwhite {
    background-image: radial-gradient(circle at 1px 1px, rgba(47,82,34,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card hover shadow refinement */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(31,54,23,0.12);
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a7e36;
    outline-offset: 2px;
}

/* Animation for mobile menu */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf9f6 inset !important;
    -webkit-text-fill-color: #1f3617 !important;
}

/* Ensure all text has proper contrast */
.text-forest-600 { color: #3a662b; }
.text-forest-700 { color: #2f5222; }
.text-forest-800 { color: #26421c; }
.text-forest-950 { color: #0f1c0a; }

/* Subtle gradient border effect on hero */
.hero-gradient {
    position: relative;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,28,10,0.3) 0%, transparent 50%, rgba(106,159,86,0.2) 100%);
    pointer-events: none;
}
