/* Custom styles and overrides */

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fefce8;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #d97706;
    color: #022c22;
}

/* Hero image overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.7) 0%, rgba(2, 44, 34, 0.4) 100%);
}

/* Nav scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.1);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
}

/* Amber accent line */
.amber-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d97706, #fbbf24);
    border-radius: 2px;
}

/* Subtle pattern for sections */
.pattern-grid {
    background-image: radial-gradient(circle, rgba(6, 78, 59, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Testimonial card subtle border animation */
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #fbbf24, #d97706);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.testimonial-card:hover::before {
    opacity: 1;
}

/* Form input transitions */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Ensure all text is readable */
.text-emerald-800 { color: rgb(6, 78, 59); }
.text-emerald-700 { color: rgb(4, 120, 87); }
.text-emerald-600 { color: rgb(5, 150, 105); }
.text-emerald-950 { color: rgb(1, 26, 20); }
.text-cream-50 { color: rgb(255, 254, 248); }

/* Responsive adjustments */
@media (max-width: 640px) {
    .stat-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 1rem;
    }
}
