/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --color-primary: #5E8C6A; /* Eco Green */
    --color-primary-dark: #4a7055; /* Darker Eco Green */
    --color-accent: #D4A373; /* Warm Earthy/Terracotta Accent */
    --color-accent-dark: #b88a5f; /* Darker Accent */

    --color-text-light: #FFFFFF;
    --color-text-on-dark: #EAF0E5; /* Slightly off-white for text on dark backgrounds */
    --color-text-dark: #333333;
    --color-text-darker: #222222; /* For strong titles */
    --color-text-muted: #6c757d;

    --color-background-body: #FFFFFF;
    --color-background-light-eco: #F0F5EE; /* Very Light, slightly greenish white */
    --color-background-section-light: #FFFFFF;
    --color-background-dark: #2c3e50; /* Deep, slightly desaturated blue-grey */
    --color-background-accent-section: var(--color-primary); /* Example: use primary for an accent bg */

    --color-border: #dee2e6;
    --color-border-eco: #cddbcc; /* Softer border for eco theme */

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);

    --transition-speed: 0.3s;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    line-height: 1.7;
    font-size: 1rem; /* Approx 16px */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-darker);
    margin-bottom: 0.75em; /* Consistent bottom margin */
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2.2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.0rem; }


p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

/* Section Base Styles */
section {
    padding: 60px 0;
    overflow: hidden; /* For AOS animations */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text-darker);
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-bg-light-eco {
    background-color: var(--color-background-light-eco);
}

.section-bg-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-on-dark);
}
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4, .section-bg-dark h5, .section-bg-dark h6 {
    color: var(--color-text-light);
}
.section-bg-dark p {
    color: var(--color-text-on-dark);
}

.section-bg-accent {
    background-color: var(--color-background-accent-section);
    color: var(--color-text-light);
}
.section-bg-accent h1, .section-bg-accent h2, .section-bg-accent h3, .section-bg-accent h4, .section-bg-accent h5, .section-bg-accent h6 {
    color: var(--color-text-light);
}
.section-bg-accent p {
    color: var(--color-text-light);
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
    background-color: var(--color-background-light-eco) !important; /* Override Bootstrap */
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    max-height: 50px;
    transition: transform var(--transition-speed) ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-dark) !important; /* Bootstrap override */
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    visibility: hidden;
    transition: all var(--transition-speed) ease-in-out;
}

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

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    visibility: visible;
    width: 70%;
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(94, 140, 106, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Sticky Header adjustment */
.sticky-top {
    /* Bootstrap handles this, but custom styling can be added if needed */
}

/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.btn {
    font-family: var(--font-primary);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn-primary,
input[type='submit'].btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover,
input[type='submit'].btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary, .main-cta-button, .cta-button-secondary { /* Main CTA button in Hero */
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-light);
}
.main-cta-button {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-light);
}

.main-cta-button:hover, .btn-secondary:hover, .cta-button-secondary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light.cta-button-secondary { /* For contact CTA on dark bg */
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
    color: var(--color-primary);
}

.btn-light.cta-button-secondary:hover {
    background-color: var(--color-background-light-eco);
    border-color: var(--color-background-light-eco);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    width: 100%;
    min-height: 85vh; /* Natural height based on content is preferred, but hero needs some min height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    margin: 0 0 20px 0;
    font-size: 3.5rem; /* Responsive adjustments below */
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text-light); /* Ensures white text as requested */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-section p.lead {
    color: var(--color-text-light); /* Ensures white text as requested */
    margin-bottom: 30px;
    font-size: 1.3rem; /* Responsive adjustments below */
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Responsive font sizes for hero */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p.lead { font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .hero-section { min-height: 70vh; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p.lead { font-size: 1rem; }
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.feature-card {
    background-color: var(--color-background-section-light);
    border: 1px solid var(--color-border-eco);
    border-radius: var(--border-radius-lg);
    padding: 25px 20px;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: var(--shadow-sm);
    text-align: center; /* Center content within card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card .card-image { /* Container for icon/image */
    margin-bottom: 20px;
    height: 80px; /* Fixed height for icon container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .animated-icon {
    width: 70px; /* Adjust as needed */
    height: 70px;
    object-fit: contain; /* Or cover, depending on icon style */
    transition: transform var(--transition-speed) ease;
}

.feature-card:hover .animated-icon {
    transform: scale(1.1);
}

.feature-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.feature-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# Statistics Section
--------------------------------------------------------------*/
#statistics {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    /* background-attachment: fixed; Parallax to be handled by JS if more complex */
    position: relative;
}

.statistic-widget {
    padding: 20px;
    text-align: center;
}

.statistic-widget .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    display: block;
    margin-bottom: 5px;
}

.statistic-widget .stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Insights Section (Accordion)
--------------------------------------------------------------*/
#insights .accordion-item {
    border: 1px solid var(--color-border-eco);
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-background-section-light);
}

#insights .accordion-button {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-darker);
    background-color: var(--color-background-light-eco);
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
}
#insights .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: #e0e8dd; /* Slightly darker eco light */
    box-shadow: inset 0 -1px 0 var(--color-border-eco);
}

#insights .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(94, 140, 106, 0.25); /* Primary color focus */
}

#insights .accordion-button::after { /* Custom icon */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235E8C6A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform var(--transition-speed) ease-in-out;
}
#insights .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

#insights .accordion-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}
#insights .lead {
    color: var(--color-text-dark);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.resource-card {
    background-color: var(--color-background-section-light);
    border: 1px solid var(--color-border-eco);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column; /* Ensure content stacks vertically */
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-card .card-title a {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary);
    text-decoration: none;
}
.resource-card .card-title a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.resource-card .card-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex-grow: 1; /* Makes card text take available space for consistent height */
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
#partners .partner-logo {
    max-height: 75px; /* Control logo height */
    width: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center logos if col is wider */
    filter: grayscale(80%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

#partners .partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
#partners .carousel-control-prev-icon,
#partners .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 10px; /* Make arrows more visible */
    background-size: 60%;
}

/*--------------------------------------------------------------
# Contact CTA Section
--------------------------------------------------------------*/
#contact-cta {
    background-color: var(--color-primary); /* Using primary color */
}
#contact-cta h2, #contact-cta p {
    color: var(--color-text-light);
}
#contact-cta .section-title::after {
    background: var(--color-accent); /* Accent color for the underline */
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-on-dark);
    font-size: 0.9rem;
}

.footer .footer-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer .footer-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    bottom: 0;
    left: 0;
}
.footer .text-center .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer p, .footer .contact-info-footer p {
    color: var(--color-text-on-dark);
    line-height: 1.6;
}

.footer .footer-link {
    color: var(--color-text-on-dark);
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
    display: inline-block;
    padding: 5px 0;
}

.footer .footer-link:hover {
    color: var(--color-accent);
    padding-left: 5px;
    text-decoration: none;
}

.footer .social-links a.footer-social-link {
    font-size: 1rem; /* Adjust as needed for text links */
    display: inline-block;
    color: var(--color-text-on-dark);
    line-height: 1;
    padding: 8px 0;
    margin-right: 15px; /* Space between text links */
    transition: var(--transition-speed);
    text-decoration: none;
}

.footer .social-links a.footer-social-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer .border-top-eco {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border for dark bg */
}
.footer .contact-info-footer i {
    color: var(--color-accent);
}

/*--------------------------------------------------------------
# Privacy & Terms Pages
--------------------------------------------------------------*/
.static-page-content {
    padding-top: 100px; /* Avoid overlap with fixed header */
    padding-bottom: 60px;
    min-height: calc(100vh - 180px); /* Adjust 180px based on header and footer height */
}
.static-page-content h1 {
    margin-bottom: 30px;
    text-align: center;
}
.static-page-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# Success Page (success.html)
--------------------------------------------------------------*/
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--color-background-light-eco);
    padding: 20px;
}
.success-page-container .card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--color-background-section-light);
}
.success-page-container h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.success-page-container .icon-success {
    font-size: 5rem; /* If using font icon */
    color: var(--color-primary);
    margin-bottom: 20px;
    /* Example for SVG/Image placeholder */
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}


/*--------------------------------------------------------------
# Form Styling (General for contacts.html)
--------------------------------------------------------------*/
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-eco);
    padding: 10px 15px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-family: var(--font-secondary);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(94, 140, 106, 0.25); /* Primary color focus */
}

.form-label {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

/* Specific for contact form on contacts.html */
#contact-form-section .contact-form-container {
    background: var(--color-background-section-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}
#contact-form-section .form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-darker);
}


/*--------------------------------------------------------------
# Read More Link Style
--------------------------------------------------------------*/
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed) ease, border-bottom-color var(--transition-speed) ease;
}
.read-more-link:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent-dark);
    text-decoration: none;
}
.read-more-link::after {
    content: " \2192"; /* Right arrow */
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}
.read-more-link:hover::after {
    transform: translateX(4px);
}


/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 767.98px) {
    section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .section-title::after {
        width: 50px;
        height: 2px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .navbar-nav .nav-link::before {
        bottom: 0;
    }
    .footer .text-md-start {
        text-align: center !important;
    }
    .footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* General Card Styling for images (STRICT) */
.card {
    display: flex;
    flex-direction: column;
    /* align-items: center; Applied to specific cards like feature-card if needed */
}

.card .card-image, .card .image-container { /* For wrapping images in cards */
    text-align: center; /* Center image if it's inline-block or has auto margins */
    /* Example fixed height for consistent image display in rows of cards, adjust as needed */
    /* height: 200px; This should be specific to card types if required */
    overflow: hidden; /* Ensure image respects container bounds */
    display: flex; /* To center image if it's smaller than container */
    align-items: center;
    justify-content: center;
}

.card .card-image img, .card .image-container img {
    width: 100%; /* Make image fill container width */
    height: 100%; /* Make image fill container height if container has fixed height */
    object-fit: cover; /* Crop image to fit, maintaining aspect ratio */
    margin: 0 auto; /* Center block-level image if container is wider */
}

/* Centering content in various card-like elements */
.card-content, .item-content, .testimonial-content, .team-member-content, .product-card-content {
    text-align: center; /* Default centering, can be overridden */
}

/* Ensure card body in Bootstrap cards allows for centering */
.card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow body to grow and push footer content down if any */
    /* text-align: center; Is already handled by parent for feature-card, general cards might not need this */
}

/* Ensure correct display for card elements using d-flex for rows */
.row.d-flex .card {
    height: 100%; /* Make cards in a flex row take full height of tallest card */
}


/* Fix for icons in footer if FontAwesome is used */
.contact-info-footer .fas { /* Assuming FontAwesome class */
    width: 20px; /* Give icon some space */
    text-align: center;
}