/* Custom CSS for Evergreen Ply & Hardware */

:root {
    --primary-color: #2c5d31;
    --secondary-color: #f7f7f7;
    --accent-color: #d4a574;
    --wood-brown: #8b4513;
    --steel-gray: #4a5568;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #e5e7eb;
    --success-green: #22c55e;
    --wood-texture: linear-gradient(45deg, #f5f5dc 25%, transparent 25%), 
                     linear-gradient(-45deg, #f5f5dc 25%, transparent 25%), 
                     linear-gradient(45deg, transparent 75%, #f5f5dc 75%), 
                     linear-gradient(-45deg, transparent 75%, #f5f5dc 75%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Logo */
.logo-icon {
    width: 40px;
    height: 40px;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--wood-brown) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wood-texture);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: 1;
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Feature Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(44, 93, 49, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 2px solid rgba(44, 93, 49, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wood-texture);
    background-size: 8px 8px;
    opacity: 0.1;
}

/* Product Cards */
.product-card {
    height: 100%;
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(44, 93, 49, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    border: 2px solid rgba(44, 93, 49, 0.2);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wood-texture);
    background-size: 10px 10px;
    opacity: 0.1;
}

/* Testimonial Cards */
.testimonial-card {
    height: 100%;
}

.rating {
    color: var(--accent-color);
}

/* Logo enhancements */
.brand-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Professional card enhancements */
.professional-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.professional-card:hover::before {
    transform: scaleY(1);
}

.professional-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Bootstrap Override - Brand Color Consistency */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

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

.link-primary:hover {
    color: var(--wood-brown) !important;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 93, 49, 0.25);
}

/* WhatsApp button enhancement */
.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

/* Construction-themed enhancements */
.construction-accent {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.wood-grain-bg {
    background: var(--wood-texture);
    background-size: 15px 15px;
    position: relative;
}

.wood-grain-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 93, 49, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 3rem;
}