/* Custom styles beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ec;
}
::-webkit-scrollbar-thumb {
    background: #3d6635;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #284324;
}

/* Selection color */
::selection {
    background: #3d6635;
    color: #faf9f5;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #3d6635;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus ring */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 102, 53, 0.3);
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(40, 67, 36, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 0;
}
