/*
  Table of Contents:
  1. CSS Variables
  2. Global Styles
  3. Utility Classes
  4. Header & Navigation
  5. Hero Section
  6. Button Styles (Global)
  7. Form Styles (Global)
  8. Card Styles (Global & Neomorphic)
  9. Section Specific Styles
     - About Us
     - Statistics
     - Insights (Services)
     - Case Studies
     - Testimonials
     - Accolades
     - Blog
     - Sustainability
     - External Resources
     - Contact
  10. Footer
  11. Page Specific Styles (Success, Privacy, Terms)
  12. Animations & Transitions
  13. Responsive Design (Media Queries)
*/

/* 1. CSS Variables */
:root {
    --primary-color: #007BFF; /* Bright Blue */
    --accent-color-1: #FFC107; /* Bright Yellow/Amber */
    --accent-color-2: #28A745; /* Bright Green */
    --background-color: #f0f2f5; /* Light Grey for Neomorphism */
    --card-background-color: #f0f2f5;
    --text-color: #333333;
    --text-color-light: #FFFFFF;
    --text-color-headings: #222222;
    --text-color-subtle: #555555;

    /* Neomorphism Shadows */
    --shadow-color-dark-neo: #d1d9e6; /* Darker shade of --background-color */
    --shadow-color-light-neo: #ffffff; /* Lighter shade of --background-color */
    --shadow-main-neo: 6px 6px 12px var(--shadow-color-dark-neo), -6px -6px 12px var(--shadow-color-light-neo);
    --shadow-inset-neo: inset 6px 6px 12px var(--shadow-color-dark-neo), inset -6px -6px 12px var(--shadow-color-light-neo);
    --shadow-hover-neo: 8px 8px 16px var(--shadow-color-dark-neo), -8px -8px 16px var(--shadow-color-light-neo);
    --shadow-pressed-neo: inset 4px 4px 8px var(--shadow-color-dark-neo), inset -4px -4px 8px var(--shadow-color-light-neo);


    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Layout & Spacing */
    --header-height: 80px;
    --border-radius-main: 15px; /* For neomorphic rounded corners */
    --border-radius-small: 8px;
    --transition-main: all 0.3s ease-in-out;
    --section-padding-y: 4rem;
    --section-padding-x: 1.5rem;
    --container-max-width: 1200px;
}

/* 2. Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; } /* Section titles */
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

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

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

a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* 3. Utility Classes */
.main-container {
    width: 100%;
    overflow: hidden; /* Contains floats and margins */
}

.content-container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-title {
    margin-bottom: 2.5rem;
    color: var(--text-color-headings); /* Ensured dark color for light background */
}

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

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

.parallax-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 4. Header & Navigation */
.site-header {
    background-color: var(--background-color);
    box-shadow: var(--shadow-main-neo);
    padding: 0 var(--section-padding-x);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.site-header .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
}
.site-header .logo:hover {
    color: var(--accent-color-1);
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: bold;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-1);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-headings);
    margin: 5px 0;
    transition: var(--transition-main);
}

/* 5. Hero Section */
.hero-section {
    min-height: 90vh; /* Slightly less than full for better initial view */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-color-light);
    padding: var(--section-padding-y) var(--section-padding-x);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Ensure readability */
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Ensure readability */
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* 6. Button Styles (Global) */
.cta-button,
.neomorphic-button,
.submit-button,
.read-more-button,
.external-link-button,
.toggle-details-button { /* Added toggle-details-button */
    display: inline-block;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-main);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-main);
    border: none;
    text-decoration: none; /* Ensure links styled as buttons don't have underline */
}

/* Neomorphic Button Style */
.neomorphic-button,
.submit-button { /* Apply to submit button as well */
    background-color: var(--background-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-main-neo);
}

.neomorphic-button:hover,
.submit-button:hover {
    box-shadow: var(--shadow-hover-neo);
    color: var(--accent-color-1);
}

.neomorphic-button:active,
.submit-button:active {
    box-shadow: var(--shadow-pressed-neo);
    transform: translateY(1px);
}

/* CTA Button - often more prominent */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Softer, more colorful shadow */
}
.cta-button:hover {
    background-color: var(--accent-color-1);
    color: var(--text-color-headings);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

/* Read More / External Link / Toggle Details Button Styles */
.read-more-button,
.external-link-button,
.toggle-details-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
}

.read-more-button:hover,
.external-link-button:hover,
.toggle-details-button:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

/* 7. Form Styles (Global) */
.neomorphic-form .form-group {
    margin-bottom: 1.5rem;
}

.neomorphic-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color-headings);
    text-align: left;
}

.neomorphic-input,
.neomorphic-textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius-small);
    border: none; /* Remove default border */
    background-color: var(--background-color);
    box-shadow: var(--shadow-inset-neo);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition-main);
}

.neomorphic-input:focus,
.neomorphic-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset-neo), 0 0 0 2px var(--primary-color); /* Add outline focus */
}

.neomorphic-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 8. Card Styles (Global & Neomorphic) */
.card, .neomorphic-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main-neo);
    padding: 1.5rem;
    transition: var(--transition-main);
    overflow: hidden; /* Ensures content stays within rounded corners */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content including image container and text block */
    text-align: center; /* Center text within card-content */
}

.card:hover, .neomorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover-neo);
}

.card-image { /* Container for the image */
    width: 100%;
    max-height: 250px; /* Fixed height for image container */
    margin-bottom: 1rem;
    border-radius: var(--border-radius-small);
    overflow: hidden; /* Clip image to rounded corners */
    display: flex;       /* For centering the image itself if it's smaller */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%; /* Make image fill the container */
    object-fit: cover; /* Cover the area, crop if necessary */
    object-position: center;
    border-radius: var(--border-radius-small); /* Apply to image if it's direct child */
}

.card-content {
    width: 100%; /* Ensure content block takes width */
}

.card-content h3 {
    margin-top: 0;
    color: var(--text-color-headings);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-subtle);
}


/* 9. Section Specific Styles */

/* About Us */
.about-us-section .about-us-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.about-us-section .about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.about-us-section .about-text p {
    text-align: justify;
}
.about-us-section .about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Control image size */
    margin: 0 auto; /* Center if it takes less than flex-basis */
}
.about-us-section .about-image img {
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main-neo);
}


/* Statistics */
.statistics-section {
    background-color: var(--background-color) !important; /* Override potential generic section bg */
}
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.stat-item {
    padding: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.stat-description {
    font-size: 1rem;
    color: var(--text-color-subtle);
}

/* Insights (Services) */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.insights-grid .card .card-image {
    height: 200px; /* Consistent height for service images */
}

/* Case Studies */
.custom-slider-container { /* Basic styling, JS will handle slide logic */
    display: flex; /* If you plan a horizontal scroll or flex-based slider */
    overflow-x: auto; /* For basic scrollable items if not using JS slider */
    gap: 1.5rem;
    padding-bottom: 1rem; /* Space for scrollbar if visible */
}
.case-study-slide {
    min-width: 320px; /* Or a percentage for JS sliders */
    flex-shrink: 0; /* Prevent shrinking in flex container */
}
.case-study-slide .card-image {
    height: 220px;
}
.details-content {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e9edf0; /* Slightly different background for details */
    border-radius: var(--border-radius-small);
    text-align: left;
    font-size: 0.9rem;
}
.details-content p {
    text-align: justify;
}

/* Testimonials */
.testimonial-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
}
.testimonial-slide {
    min-width: 300px;
    max-width: 450px; /* Control max width of a testimonial */
    flex-shrink: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center photo and text block */
}
.testimonial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-main-neo);
}
.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-quote {
    font-style: italic;
    color: var(--text-color-subtle);
    text-align: center;
}
.testimonial-quote footer {
    margin-top: 1rem;
    font-style: normal;
    font-weight: bold;
}
.testimonial-quote cite {
    display: block;
    color: var(--text-color-headings);
}
.testimonial-quote small {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Accolades */
.accolades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.accolade-item .card-image {
    height: 120px; /* Smaller images for logos/badges */
    width: auto;
    max-width: 180px; /* Control logo width */
    margin-bottom: 1rem;
}
.accolade-item .card-image img {
    object-fit: contain; /* Logos should be contained, not cropped */
}
.accolade-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-grid .card .card-image {
    height: 200px;
}
.blog-grid .post-meta {
    font-size: 0.8rem;
    color: var(--text-color-subtle);
    margin-bottom: 0.5rem;
}
.blog-grid .read-more-button {
    margin-top: 1rem;
}

/* Sustainability */
.sustainability-section .sustainability-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.sustainability-section .sustainability-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.sustainability-section .sustainability-text p,
.sustainability-section .sustainability-text ul li {
    text-align: justify;
}
.sustainability-section .sustainability-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.sustainability-section .sustainability-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
}
.sustainability-section .sustainability-image img {
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main-neo);
}

/* External Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-item {
    padding: 1.5rem;
    text-align: left; /* Content in resource cards is usually left-aligned */
}
.resource-item h4 {
    text-align: left;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.resource-item p {
    font-size: 0.9rem;
    color: var(--text-color-subtle);
    text-align: left;
}
.resource-item .external-link-button {
    margin-top: 1rem;
    display: inline-block; /* Ensure it aligns well */
}


/* Contact */
.contact-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}
.contact-form-container form {
    flex: 1.5; /* Form takes more space */
    min-width: 300px;
}
.contact-details {
    flex: 1;
    min-width: 280px;
    padding: 1.5rem;
    background-color: var(--card-background-color); /* Could be neomorphic card too */
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main-neo);
    text-align: left;
}
.contact-details h3 {
    text-align: left;
    margin-bottom: 1rem;
}
.contact-details p {
    text-align: left;
    margin-bottom: 0.8rem;
    color: var(--text-color-subtle);
}
.contact-details p strong {
    color: var(--text-color-headings);
}
.contact-details a {
    color: var(--primary-color);
}
.contact-details a:hover {
    color: var(--accent-color-1);
}
.contact-image-real {
    margin-top: 1.5rem;
    height: auto; /* Let height be auto based on image content */
    max-height: 200px; /* But constrain it */
}
.contact-image-real img {
    border-radius: var(--border-radius-small);
}


/* 10. Footer */
.site-footer {
    background-color: #333; /* Darker footer */
    color: #ccc;
    padding: 3rem var(--section-padding-x) 1rem;
    text-align: center;
}
.site-footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}
.site-footer .footer-nav,
.site-footer .footer-social,
.site-footer .footer-contact-info {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too narrow */
}
.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: left;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: #bbb;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}
.site-footer .footer-social a {
    display: inline-block; /* For better spacing if needed */
    margin-bottom: 0.3rem; /* Spacing for stacked social links */
}
.footer-copyright {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* 11. Page Specific Styles */
/* Success Page */
body.success-page { /* Add class="success-page" to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page .main-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-page .success-content {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main-neo);
    max-width: 600px;
}
.success-page .success-content h1 {
    color: var(--accent-color-2); /* Green for success */
}

/* Privacy & Terms Pages */
body.privacy-page main,
body.terms-page main { /* Add class="privacy-page" or "terms-page" to body of these HTMLs */
    padding-top: calc(var(--header-height) + 2rem); /* Space for fixed header + a bit more */
}
.privacy-page .content-container h1,
.terms-page .content-container h1 {
    margin-bottom: 2rem;
}
.privacy-page .content-container h2,
.terms-page .content-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}
.privacy-page .content-container p,
.terms-page .content-container p,
.privacy-page .content-container ul li,
.terms-page .content-container ul li {
    text-align: justify;
}
.privacy-page .content-container ul,
.terms-page .content-container ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}


/* 12. Animations & Transitions */
/* GSAP will handle complex animations. CSS for simple transitions. */
/* Scroll-triggered fade-in (basic example, enhance with JS) */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 13. Responsive Design (Media Queries) */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .contact-form-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 3rem;
    }
    .main-nav {
        display: none; /* Hide nav for burger */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: var(--shadow-main-neo);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 999; /* Make sure it's above content */
    }
    .main-nav.active {
        display: flex; /* Show when burger is clicked */
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* Reduced gap for vertical layout */
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
    }
    .main-nav a::after { /* Adjust underline for full width links */
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: 50%; /* Or adjust as preferred for centered underline */
    }

    .burger-menu {
        display: block; /* Show burger on mobile */
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .about-us-section .about-us-content,
    .sustainability-section .sustainability-content {
        flex-direction: column;
    }
    .about-us-section .about-text,
    .sustainability-section .sustainability-text {
        text-align: center; /* Center text on mobile */
    }
     .about-us-section .about-text p,
     .sustainability-section .sustainability-text p,
     .sustainability-section .sustainability-text ul li {
        text-align: left; /* Keep paragraph text readable */
    }


    .statistics-grid,
    .insights-grid,
    .accolades-grid,
    .blog-grid,
    .resources-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .site-footer h4,
    .site-footer .footer-nav,
    .site-footer .footer-social,
    .site-footer .footer-contact-info {
        text-align: center;
        width: 100%;
    }
     .site-footer ul {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-x: 1rem;
    }
    .hero-title { font-size: 1.8rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .cta-button, .neomorphic-button, .submit-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
div{
    opacity: 1 !important;
}