/* Custom styles for Deeply Rooted Gardening */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #d4532a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83e1e;
}

/* Selection color */
::selection {
    background: #d4532a;
    color: #faf8f5;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile menu open state */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Mobile menu lines animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Service card hover - text color transition handled by Tailwind group */

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d4532a;
    outline-offset: 2px;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure hero text is readable */
#hero h1 {
    text-shadow: 0 1px 0 rgba(250, 248, 245, 0.3);
}
