/* style.css */

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Color Palette - Neutral & Eco-Minimalism */
    --primary-color: #4CAF50; /* A calm, natural green for primary actions */
    --primary-color-dark: #388E3C; /* Darker green for hover states */
    --secondary-color: #8D6E63; /* Earthy brown for secondary elements */
    --accent-color: #FFC107; /* A subtle warm accent */
    
    --background-color: #F7F9F9; /* Off-white, soft background */
    --background-dark-color: #263238; /* A deep, muted grey-blue for dark sections */
    --surface-color: #FFFFFF; /* For cards and modals */
    --border-color: #E0E0E0; /* Light grey for borders and dividers */

    /* Typography */
    --text-color: #333333; /* Dark grey for main text for high contrast */
    --text-color-light: #FFFFFF; /* White text for dark backgrounds */
    --heading-color: #222222; /* Even darker for strong titles */
    --text-muted-color: #757575; /* Lighter grey for subtitles and meta text */
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 8px;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin: 0 0 1rem 0;
}

h1 { font-size: 3.052rem; }
h2 { font-size: 2.441rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
h3 { font-size: 1.953rem; }
h4 { font-size: 1.563rem; }
h5 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

/* ---------------------------------- */
/*         Layout & Helpers           */
/* ---------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.main-container {
    overflow-x: hidden; /* Prevents horizontal scroll from AOS animations */
}

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

.section-padding-small {
    padding: 3rem 0;
}

.section-padding-dark {
    padding: 6rem 0;
    background-color: var(--background-dark-color);
    color: var(--text-color-light);
}

.section-padding-dark h1,
.section-padding-dark h2,
.section-padding-dark h3,
.section-padding-dark h4 {
    color: var(--text-color-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    text-align: center;
    margin-top: -3rem;
    margin-bottom: 2rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.column {
    flex: 1;
    min-width: 300px;
}

.is-two-thirds {
    flex: 2;
}

/* ---------------------------------- */
/*         Reusable Components        */
/* ---------------------------------- */

/* --- Buttons --- */
.btn, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* --- Cards --- */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

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

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h4 {
    margin-bottom: 0.5rem;
}

/* --- Forms --- */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.btn-submit {
    width: 100%;
}

/* ---------------------------------- */
/*        Header & Navigation         */
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--heading-color);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

.navbar-nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*          Section Styles            */
/* ---------------------------------- */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-color-light);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 1rem;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Testimonials / Customer Stories --- */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.slider {
    display: flex;
    overflow: hidden;
}
.slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.slider-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
blockquote {
    font-style: italic;
    color: var(--text-muted-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
}
.progress-indicator label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
}
.progress-indicator progress {
    width: 100%;
    height: 10px;
    accent-color: var(--primary-color);
}


/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Media Section --- */
.media-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    filter: grayscale(100%);
    opacity: 0.7;
}
.media-logos img {
    max-height: 40px;
}

/* --- Events Section --- */
.events-list {
    max-width: 900px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}
.event-date {
    flex-shrink: 0;
    text-align: center;
    background-color: var(--primary-color-dark);
    color: var(--text-color-light);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    font-weight: 700;
}
.event-date span {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}
.event-details {
    flex-grow: 1;
}
.event-details h4 {
    margin-bottom: 0.25rem;
}
.event-details p {
    margin: 0;
    color: var(--text-muted-color);
}
.event-item .btn {
    flex-shrink: 0;
}

/* --- External Resources --- */
.resource-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.resource-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}
.resource-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light);
}

/* ---------------------------------- */
/*          Footer Styles             */
/* ---------------------------------- */
.site-footer {
    background-color: var(--background-dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul a:hover {
    color: var(--text-color-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*          Modal Styles              */
/* ---------------------------------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    color: var(--text-muted-color);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--heading-color);
}

/* ---------------------------------- */
/*       Specific Page Styles         */
/* ---------------------------------- */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

.legal-page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
}

.legal-page-content h2 {
    margin-top: 2.5rem;
}


/* ---------------------------------- */
/*        Responsive Design           */
/* ---------------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.8rem; }
    .section-padding, .section-padding-dark { padding: 4rem 0; }
    .section-title { margin-bottom: 2.5rem; }
    
    .columns-container {
        flex-direction: column;
    }
    .columns-container.reverse-columns {
        flex-direction: column-reverse;
    }

    /* Mobile Navigation */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }
    
    .navbar-menu.is-active {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .navbar-nav a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }
    
    .burger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .event-item .btn {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
}