/************************** 
* 18. environment styles
***************************/
/* Base styles */
:root {
    --primary: #10b981;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    --accent: #60a5fa;
    --accent-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #1f2937;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;

}

/* increase font size of rem*/
html {
    font-size: 15px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.min-h-screen {
    min-height: 100vh;
}

.flex-grow {
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Initiatives Section */
.initiatives {
    padding: 4rem 0;
}

.initiatives h2 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
}

.card-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--background);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 1rem;
}

.card-header h3 {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.card-content {
    padding: 0 1rem;
}

.icon {
    margin-right: 0.5rem;
}

.sun {
    color: #f59e0b;
}

.droplets {
    color: #3b82f6;
}

/* Practices Section */
.practices {
    background-color: var(--muted);
    padding: 4rem 0;
}

.practices h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 2rem;
}

.practice-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.practice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.practice:hover {
    transform: scale(1.05);
}

.practice .icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.practice h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Call to Action Section */
.cta {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.button.primary:hover {
    background-color: #059669;
}

.button.secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.button.secondary:hover {
    background-color: #e5e7eb;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p,
    .cta p {
        font-size: 1rem;
    }

    .initiatives h2,
    .practices h2,
    .cta h2 {
        font-size: 1.75rem;
    }

    .button-container {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}