:root {
    /* PRIMARY NUANCES */
    --primary-color: #039E56;
    --primary-rgb: 3, 158, 86;
    --secondary-color: #02522C;
    --secondary-rgb: 2, 82, 44;
    --text-dark: #02522C;
    --text-light: #f3fcf8; /* quasi blanc */
    --text-muted: #83a093; /* grayed */
    --background-light: var(--text-light);
    --background-card: #ffffff;

    /* SECONDARY NUANCES */
    --accent-color: #FFEE00;
    --accent-rgb: 255, 238, 0;
    --accent-color-light: var(--accent-color);
    --accent-dark: #BFB630;
    --accent-dark-rgb: 191, 182, 48;


    --gradient-hero: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--secondary-rgb), 0.85));
    --gradient-cta: linear-gradient(135deg, rgba(var(--accent-rgb),0.9), rgba(var(--accent-dark-rgb),0.9));
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-btn: 0 4px 10px rgba(var(--accent-dark-rgb), 0.4);
    --shadow-btn-active: 0 6px 15px rgba(var(--accent-dark-rgb), 0.5);
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --font-primary: century-gothic, Century Gothic, CenturyGothic, AppleGothic, Tahoma, Geneva, Verdana, sans-serif;

/*    --heroimg-large-set-lazy: image-lazy-set(
        url("images/12409-1700w.jpg") type("image/jpg"),
        "images/12409-1700w.webp" type("image/webp"))
    );
    --heroimg-medium-set-lazy: image-lazy-set(
        url("images/12409-1000w.jpg") type("image/jpg"),
        "images/12409-1000w.webp" type("image/webp"))
    );
    --heroimg-small-set-lazy: image-lazy-set(
        url("images/12409-700w.jpg") type("image/jpg"),
        "images/12409-700w.webp" type("image/webp"))
    );*/

    --heroimg-large-set-lazy: url("images/12409-1700w.webp");
    --heroimg-medium-set-lazy: url("images/12409-1000w.webp");
    --heroimg-small-set-lazy: url("images/12409-700w.webp");
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem;}
h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; position: relative; }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--secondary-color); }
h4 { font-size: 1.2rem; font-weight: 500; }

p {
    margin: 0 auto 1rem;
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}
figure {
    text-align: center;
}
    figure img {
        margin: 0 auto;
    }
    figcaption {
        color: var(--text-muted);
    }

section ul {
    text-align: left;
}

.spacer {
    margin-bottom: 3rem;
}
.centered {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    color: var(--text-dark);
    box-shadow: var(--shadow-btn-active);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.action-card .btn {
    padding: 8px 30px 6px;
    margin-top: 1rem;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
}
.main-header .logo {
    width: 175px;
    height: auto;
    transition: width 0.3s ease, height 0.3s ease;
}
    .main-header.scrolled .logo {
        width: 100px;
    }

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    transition: top 0.3s ease;
}
.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}
.main-nav li {
    margin-bottom: 0.618rem;
}
.main-nav a {
    font-weight: 500;
    color: var(--primary-color);
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

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

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

/* Mobile Menu Styles (Basic placeholder - full implementation needs JS) */
.menu-toggle {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding: 220px 0 120px 0;
    margin-top: 100px;
    background-image: var(--gradient-hero), var(--heroimg-large-set-lazy);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential pseudo-element animations */
}

.hero::before { /* Subtle overlay */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Slightly darken image */
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Section Styling --- */
section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    /* background-color: var(--background-light); Optional alternating background */
}

section h2::after { /* Underline effect for section titles */
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- About Section --- */
#about .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

#about .about-content {
    flex: 1;
}
#about .about-image {
    flex: 1;
    max-width: 450px; /* Limit image size */
}
#about .about-image img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}

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

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background-color: var(--background-card);
    padding: 35px 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Placeholder for hover */
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.mission-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block; /* Allows margin bottom */
}

.mission-card h3 {
    margin-bottom: 15px;
}

/* --- Team Section --- */
#team {
    margin-top: -80px;
    padding: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    margin-top: 40px;
}
.team-card {
    background-color: var(--background-card);
    padding: 35px 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Placeholder for hover */
}

/* --- Actions Section --- */
#actions .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    margin-top: 40px;
}

.action-card {
    background-color: var(--background-card);
    padding: 35px 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Placeholder for hover */
}
.action-card::before {

}
.action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.action-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative; /* To stay above quote mark */
    z-index: 1;
}
.highlight {
    background-color: var(--accent-color);
}

/* --- Community Section --- */
#community .testimonial-grid {
        display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--gradient-hero);
    color: var(--text-light);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    position: relative;
    font-style: italic;
}
.testimonial-card::before { /* Quote icon */
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

.testimonial-card p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    position: relative; /* To keep above quote */
    z-index: 1;
}
.testimonial-card .author {
    font-weight: 600;
    font-style: normal;
    color: var(--text-light);
    text-align: right;
}

/* --- CTA Section --- */
#cta {
    background: var(--gradient-cta);
    text-align: center;
    padding: 60px 0;
}
#cta, #cta h2, #cta p {
    color: #000;
}
#cta h2 {
    margin-bottom: 15px;
}
    #cta h2::after { /* Underline effect for section titles */
    background: var(--text-light); /* White underline */
}

#cta p {
    max-width: 600px;
    margin: 0 auto 25px auto;
}

#cta .icon {
    font-size: 2.6rem;
}

#cta .btn {
    background-color: var(--accent-dark);
    color: #fff;
    text-transform: lowercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.618rem;
    padding: 8px 30px 6px;
}
#cta .btn:hover {
        background-color: var(--background-light);
        color: var(--accent-dark);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
#cta .btn span {
    text-transform: lowercase;
    font-weight: normal;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.colors-tester {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0px;
}
    .colors-tester div {
        height: 30px;
    }

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}
.footer-content p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
.footer-socials a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero { background-image: var(--gradient-hero), var(--heroimg-medium-set-lazy); }
    .hero h1 { font-size: 2.8rem; }
    .hero p.subtitle { font-size: 1.1rem; }
    #about .container { flex-direction: column; text-align: center;}
    #about .about-image { margin-top: 30px; max-width: 80%; }
    .mission-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    html { font-size: 20px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .main-header .container { padding-left: 15px; padding-right: 15px; }
    .main-nav { display: none; position: absolute; top: 130px; right: 0 }
    .main-nav.open { display: block; }
    .main-nav ul {
        text-align: right;
        display: block;
        padding-top: 20px;
        padding-bottom: 1px;
        background-color: rgba(255, 255, 255, 0.95);
    }
    .scrolled .main-nav {
        top: 77px;
    }
    .main-nav a {
        padding: 10px 20px 3px 30px;
    }
    .menu-toggle { display: block; } /* Show hamburger */
    .hero { padding: 150px 0 100px 0; }
    .hero { background-image: var(--gradient-hero), var(--heroimg-medium-set-lazy); }
    .hero h1 { font-size: 2.2rem; }
    .hero p.subtitle { font-size: 1rem; }
    section { padding: 60px 0; }
        .mission-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .hero { background-image: var(--gradient-hero), var(--heroimg-small-set-lazy); }
    .hero h1 { font-size: 2rem; }
    .hero p.subtitle { font-size: 0.9rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .mission-card { padding: 25px 20px; }
    .testimonial-card { padding: 25px; }
        .footer-socials a { margin: 0 8px; font-size: 1.2rem; }
}
