/* ============================================
   Recycled Base Materials - Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theme */
:root {
    /* Colors */
    --primary-color: #16a34a;
    --primary-dark: #15803d;
    --primary-darker: #166534;
    --secondary-color: #6c757d;
    --text-color: #333;
    --text-gray: #4b5563;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --light-bg: #f3f4f6;
    --border-color: #dee2e6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ============================================
   Header and Navigation
   ============================================ */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-normal);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* ============================================
   Main Content
   ============================================ */
main {
    width: 100%;
    margin: 0;
    padding: 0;
}

section {
    padding: var(--spacing-xl) 0;
    min-height: 400px;
}

main section:not(.hero) {
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                      url('../assets/images/plantbanner.png');
    background-size: cover;
    background-position: center;
/*    background-attachment: fixed; */
}

/* ============================================
   Services Section
   ============================================ */
#services {
    background-color: var(--light-bg);
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-darker);
    margin-bottom: var(--spacing-md);
}

#services h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1.5rem auto;
}

.services-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: left;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: block;
}

.service-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: bold;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
#about h2 {
    font-size: 2.5rem;
    color: var(--primary-darker);
    margin-bottom: 1.5rem;
}

#about h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-size: 1.05rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* ============================================
   Testimonials Section
   ============================================ */
#testimonials {
    background-color: var(--light-bg);
    padding: 5rem var(--spacing-lg);
}

#testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-darker);
    margin-bottom: var(--spacing-md);
}

#testimonials h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1.5rem auto;
}

.testimonials-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    max-height: 432px;
}

.testimonial-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    flex-grow: 1;
    max-height: 252px;
    overflow-y: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
}

.author-info h4 {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ============================================
   Contact Section
   ============================================ */
#contact h2 {
    font-size: 2.5rem;
    color: var(--primary-darker);
    margin-bottom: 1.5rem;
}

#contact h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 1.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info p:first-child {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-darker);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: white;
    transition: border-color var(--transition-normal);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.contact-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 0.75rem var(--spacing-md);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.contact-form button:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--light-bg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    color: var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        transition: left var(--transition-normal);
    }

    .nav-links.mobile-open {
        left: 0;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Headings */
    #services h2,
    #about h2,
    #testimonials h2,
    #contact h2 {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    #testimonials {
        padding: 3rem var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
