/* ==========================================================================
   GREEN VALLEY TRADES - CUSTOM CSS
   Bootstrap 5 Customizations
   ========================================================================== */

/* 1. BASE STYLES */
:root {
    --primary-green: #065f46;
    --secondary-green: #059669;
    --light-green: #d1fae5;
    --dark-green: #064e3b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    padding-top: 76px; /* For fixed navbar */
    color: var(--gray-800);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
}

/* Custom text color classes */
.text-gray-50 { color: var(--gray-50) !important; }
.text-gray-100 { color: var(--gray-100) !important; }
.text-gray-200 { color: var(--gray-200) !important; }
.text-gray-300 { color: var(--gray-300) !important; }
.text-gray-400 { color: var(--gray-400) !important; }
.text-gray-500 { color: var(--gray-500) !important; }
.text-gray-600 { color: var(--gray-600) !important; }
.text-gray-700 { color: var(--gray-700) !important; }
.text-gray-800 { color: var(--gray-800) !important; }
.text-gray-900 { color: var(--gray-900) !important; }

/* Hover effect for footer links */
.hover-white:hover {
    color: #ffffff !important;
}

/* 2. HERO SECTIONS */
.hero-section {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9));
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero/hero-home.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-80 {
    min-height: 80vh;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Page-specific hero backgrounds */
.hero-about {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-about.jpg') center/cover no-repeat;
}

.hero-products {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-products.jpg') center/cover no-repeat;
}

.hero-services {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-services.jpg') center/cover no-repeat;
}

.hero-quality {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-quality.jpg') center/cover no-repeat;
}

.hero-sustainability {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-sustainability.jpg') center/cover no-repeat;
}

.hero-contact {
    background: linear-gradient(rgba(6, 95, 70, 0.9), rgba(6, 78, 59, 0.9)), url('/assets/images/hero/hero-contact.jpg') center/cover no-repeat;
}

/* 3. UTILITY CLASSES */
.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-purple-50 {
    background-color: #faf5ff;
}

.text-purple {
    color: #7c3aed;
}

/* 4. COMPONENT STYLES */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Card improvements */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card-img-top {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. BUTTON ENHANCEMENTS */
.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* 6. NAVIGATION ENHANCEMENTS */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--gray-700) !important;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

/* 7. SECTION SPACING */
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* 8. FORM STYLES */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}

/* 9. TABLE STYLES */
.table-success thead th {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* 10. BACK TO TOP */
#backToTop {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 11. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* 12. ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 13. PRINT STYLES */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* 14. QUALITY TABLE */
.quality-table th {
    background-color: var(--primary-green);
    color: white;
}

.quality-table td, .quality-table th {
    padding: 0.75rem;
    vertical-align: middle;
}

/* 15. PROCESS STEPS */
.process-step {
    position: relative;
    padding: 1rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--light-green);
    z-index: 1;
}

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* 16. CSR CARDS */
.csr-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.csr-card:hover {
    transform: translateY(-5px);
}

.csr-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* 17. METRIC COUNTERS */
.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

/* 18. CUSTOM ALERTS */
.alert-custom {
    border-left: 4px solid var(--primary-green);
    border-radius: 0.5rem;
}

/* 19. PRODUCT CATEGORIES */
.product-category {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--light-green);
    border-radius: 2rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-category:hover,
.product-category.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* 20. BREADCRUMB */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* 21. OPACITY UTILITIES */
.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

/* 22. TEXT SHADOW FOR HERO TEXT */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer hover effects */
.hover-text-success:hover {
    color: #198754 !important;
    transition: color 0.3s ease;
}

/* Badge styling */
.badge.bg-success.bg-opacity-25 {
    background-color: rgba(25, 135, 84, 0.25) !important;
}

/* Back to top button animation */
#backToTop {
    transition: all 0.3s ease;
    opacity: 0.9;
}

#backToTop:hover {
    opacity: 1;
    transform: translateY(-3px);
}