/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f3eb;
}
::-webkit-scrollbar-thumb {
    background: #9bbf8e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #749c62;
}

/* Selection color */
::selection {
    background: #537a44;
    color: #fbf9f5;
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(83, 122, 68, 0.15);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover {
    color: #c5d9bc;
    padding-left: 0.5rem;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(17, 24, 13, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.navbar-transparent {
    background: transparent !important;
}

/* Hamburger animation */
#mobile-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active #bar2 {
    opacity: 0;
}
#mobile-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Leaf pattern background */
.leaf-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 C40 15, 50 25, 30 55 C10 25, 20 15, 30 5Z' fill='%23537a44' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    position: fixed;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #749c62;
    outline-offset: 2px;
}

/* Select arrow */
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='%23537a44' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* Print styles */
@media print {
    header, footer, .reveal { display: none; }
    body { color: #000; background: #fff; }
    .hero-pattern { background: #22301e !important; }
}
