:root {
    /* Color Palette */
    --primary-color: #4A7C59; /* Forest Green */
    --secondary-color: #E8A87C; /* Soft Terracotta */
    --accent-color: #61B0B7; /* Muted Teal */
    --text-dark: #2C3E50; /* Dark Slate Blue */
    --text-light: #F9F7F3; /* Creamy Off-White */
    --background-light: #FAF8F5; /* Very Light Cream */
    --background-dark: #34495E; /* Dark Slate Blue for contrast */
    --gradient-start: #5a9e6b;
    --gradient-end: #3d6a4a;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-circle: 50%;

    /* Shadow */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-ease: all 0.3s ease-in-out;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-ease);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 600; }
h3 { font-size: 2.2rem; font-weight: 600; }
h4 { font-size: 1.8rem; font-weight: 600; }
p { margin-bottom: var(--spacing-sm); }

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--background-light);
}

.text-center {
    text-align: center;
}

.section-tagline {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-description {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.15rem;
    color: rgba(44, 62, 80, 0.8);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Utility classes for images and elements */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded {
    border-radius: var(--border-radius-md);
}

.rounded-circle {
    border-radius: var(--border-radius-circle);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-ease);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.9rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}
.btn-text i {
    transition: transform 0.3s ease;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--background-dark);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.sticky {
    padding: var(--spacing-xs) 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-ease);
}

.logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: rgba(249, 247, 243, 0.8);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: var(--spacing-lg);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-ease);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 1;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.7);
    transform: scale(1.05); /* Slight scale for visual pop */
    transition: transform 0.5s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.7) 0%, rgba(52, 73, 94, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(249, 247, 243, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* About Section */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}
.about-image img {
    border: 8px solid var(--background-light); /* Adds a nice frame */
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition-ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card img {
    margin-bottom: var(--spacing-sm);
    object-fit: cover;
    height: 200px;
    width: 100%;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.7);
    flex-grow: 1;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: linear-gradient(145deg, var(--background-light), #ffffff);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-ease);
    text-align: center;
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(45deg, var(--accent-color), #61b0b7c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(44, 62, 80, 0.7);
    margin-bottom: var(--spacing-md);
}

/* Community / Testimonials */
.community-section {
    position: relative;
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-lg) auto;
    overflow: hidden;
}

.testimonial-item {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default, shown by JS */
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative; /* For quotes positioning */
}

.testimonial-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.testimonial-item .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    position: relative;
    z-index: 1; /* Ensure text is above pseudo-elements */
}
.testimonial-item .quote::before {
    content: "\201C"; /* Left double quotation mark */
    font-size: 4em;
    color: var(--secondary-color);
    position: absolute;
    top: -0.5em;
    left: -0.3em;
    opacity: 1;.2;
    z-index: 0;
}
.testimonial-item .quote::after {
    content: "\201D"; /* Right double quotation mark */
    font-size: 4em;
    color: var(--secondary-color);
    position: absolute;
    bottom: -0.5em;
    right: -0.3em;
    opacity: 1;.2;
    z-index: 0;
}


.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.client-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.client-info cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 var(--spacing-md);
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius-circle);
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    text-align: left;
}

.contact-info {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-size: 1.1rem;
}

.contact-info p i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.social-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    color: var(--text-light);
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

textarea {
    resize: vertical;
}

.btn-full-width {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px; /* Default height */
    border: 0;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: rgba(249, 247, 243, 0.8);
    padding-top: var(--spacing-xl);
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(249, 247, 243, 0.1);
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.footer-col p {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul {
    margin: 0;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: rgba(249, 247, 243, 0.7);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-col .social-links a {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.15);
}
.footer-col .social-links a:hover {
    background-color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.newsletter-form input::placeholder {
    color: rgba(249, 247, 243, 0.6);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    text-align: center;
    color: rgba(249, 247, 243, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Off-screen by default */
        width: 70%;
        height: 100vh;
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
        box-shadow: var(--shadow-lg);
        padding-top: 60px; /* To clear fixed header if any */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.8rem 0;
        color: var(--text-light);
    }

    .nav-cta {
        margin: 0;
        width: 80%;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Important for mobile menu: ensure nav-menu is not hidden by default if not active */
    .navbar .nav-menu {
        display: flex; 
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .hero-actions .btn-large {
        width: 80%;
        margin: 0 auto;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 1; /* Content before image on mobile */
    }
    .about-image {
        order: 2;
    }

    .testimonial-item {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .carousel-nav {
        transform: translateY(-50%);
        top: calc(50% + 50px); /* Adjust for smaller testimonial height */
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .product-grid, .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .social-links,
    .newsletter-form {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions .btn-large {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .product-card img {
        height: 150px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .testimonial-item .quote {
        font-size: 1.1rem;
    }
    .client-avatar {
        width: 50px;
        height: 50px;
    }
    .client-info cite {
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input,
    .newsletter-form button {
        border-radius: var(--border-radius-sm);
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    .newsletter-form button {
        margin-top: 0;
    }
}

/* Animations for reveal-on-scroll */
.reveal-on-scroll, .reveal-item {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible, .reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific reveal-item animations for staggered effect */
.product-card.reveal-item { transition-delay: 0.1s; }
.product-card.reveal-item:nth-child(2) { transition-delay: 0.2s; }
.product-card.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.product-card.reveal-item:nth-child(4) { transition-delay: 0.4s; }

.service-card.reveal-item { transition-delay: 0.1s; }
.service-card.reveal-item:nth-child(2) { transition-delay: 0.2s; }
.service-card.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.service-card.reveal-item:nth-child(4) { transition-delay: 0.4s; }

.contact-info.reveal-item { transition-delay: 0.1s; }
.contact-form.reveal-item { transition-delay: 0.2s; }
.map-container.reveal-item { transition-delay: 0.3s; }


/* Accessibility */
body.no-scroll {
    overflow: hidden;
}

/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
