/* ============================================
   Deep Barrel — Custom Styles
   ============================================ */

/* Base reset & smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ef;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #047857;
    color: #fefdf8;
}

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

/* Hero image overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(2, 44, 34, 0.15) 0%, rgba(2, 44, 34, 0.05) 100%);
}

/* Card hover lift effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pattern for cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(6, 78, 59, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .group-hover\:scale-105,
    .transition-all,
    .transition-colors,
    .transition-transform {
        transition: none;
        transform: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input focus ring animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Ensure fixed nav doesn't overlap content */
section[id] {
    scroll-margin-top: 80px;
}

/* Print styles */
@media print {
    header,
    #contact,
    footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
