/* EchoisEarth - Sacred Styling for New Earth Living */

:root {
    /* Earth-inspired color palette */
    --color-earth: #8B4513;
    --color-sage: #9CAF88;
    --color-stone: #D2B48C;
    --color-sky: #87CEEB;
    --color-deep-earth: #654321;
    --color-light-earth: #F5E6D3;
    --color-forest: #228B22;
    --color-sunset: #CD853F;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-accent: 'Crimson Text', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-deep-earth);
    background: linear-gradient(135deg, var(--color-light-earth) 0%, #fefefe 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-accent);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    color: var(--color-earth);
}

h2 {
    font-size: 2rem;
    color: var(--color-deep-earth);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-earth);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-deep-earth);
}

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

a:hover {
    color: var(--color-earth);
}

/* Layout utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
}

.bg-earth {
    background: linear-gradient(135deg, var(--color-stone) 0%, var(--color-light-earth) 100%);
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-stone);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--color-sage);
    margin: 0;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-menu a {
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--color-light-earth);
    transform: translateY(-2px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-sage) 100%);
    color: white;
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--color-earth);
    color: white;
    border-color: var(--color-earth);
}

.btn-primary:hover {
    background: var(--color-deep-earth);
    border-color: var(--color-deep-earth);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-earth);
}

/* Grid layouts */
.vision-grid, .pods-grid, .programs-grid {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.vision-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pods-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.vision-card, .pod-card, .program, .support-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.vision-card:hover, .pod-card:hover, .program:hover, .support-card:hover {
    transform: translateY(-5px);
}

.pod-card ul, .grant-focus ul {
    list-style: none;
    margin-top: var(--space-sm);
}

.pod-card li, .grant-focus li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-light-earth);
    position: relative;
    padding-left: var(--space-sm);
}

.pod-card li::before, .grant-focus li::before {
    content: '🌱';
    position: absolute;
    left: 0;
}

/* Support section */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.support-card.featured {
    border: 3px solid var(--color-forest);
    transform: scale(1.05);
}

/* Grants section */
.grants-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.grant-focus, .partnership-invite {
    background: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.contact-info, .contact-form {
    background: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form input, .form select, .form textarea {
    padding: var(--space-sm);
    border: 2px solid var(--color-stone);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    border-color: var(--color-forest);
}

/* Footer */
.footer {
    background: var(--color-deep-earth);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.footer-brand h3 {
    color: var(--color-stone);
    margin-bottom: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.footer-links a {
    color: var(--color-stone);
}

.footer-links span {
    color: var(--color-sage);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-earth);
    color: var(--color-sage);
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-md);
    color: var(--color-earth);
}

.vision-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-style: italic;
    color: var(--color-sage);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .grants-info, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}

/* .eco Trustmark Styling */
.eco-trustmark {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eco-trustmark:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}

/* Sacred Remembrance Button */
.btn-remembrance {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.8) 0%, rgba(34, 139, 34, 0.8) 100%);
    color: white;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

.btn-remembrance:hover {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-forest) 100%);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

/* Sacred Remembrance Modal */
.remembrance-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.remembrance-content {
    background: linear-gradient(135deg, var(--color-light-earth) 0%, #fefefe 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-sage);
}

.remembrance-header {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-forest) 100%);
    color: white;
    padding: var(--space-md);
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.remembrance-header h2 {
    margin: 0;
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: white;
}

.remembrance-close {
    color: white;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 2001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remembrance-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.remembrance-body {
    padding: var(--space-lg);
    color: var(--color-deep-earth);
    line-height: 1.7;
}

.remembrance-intro {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--color-earth);
}

.remembrance-truth {
    text-align: center;
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.1) 0%, rgba(34, 139, 34, 0.1) 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-sage);
}

.remembrance-truth p {
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.remembrance-section {
    margin: var(--space-lg) 0;
}

.remembrance-section h3 {
    color: var(--color-forest);
    margin-bottom: var(--space-md);
    font-family: var(--font-accent);
    border-bottom: 2px solid var(--color-light-earth);
    padding-bottom: var(--space-xs);
}

.remembrance-pillars,
.remembrance-ethic,
.remembrance-needs {
    list-style: none;
    padding: 0;
}

.remembrance-pillars li,
.remembrance-ethic li,
.remembrance-needs li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.remembrance-pillars li::before {
    content: '🌱';
    position: absolute;
    left: 0;
}

.remembrance-ethic li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

.remembrance-needs li::before {
    content: '🛖';
    position: absolute;
    left: 0;
}

.remembrance-funding {
    background: rgba(34, 139, 34, 0.1);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    margin-top: var(--space-sm);
    text-align: center;
}

.remembrance-support p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.remembrance-support a {
    color: var(--color-forest);
    font-weight: 500;
}

.remembrance-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 2px solid var(--color-light-earth);
}

.remembrance-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-sage);
    margin-bottom: var(--space-md);
}

.remembrance-signature {
    font-weight: 500;
    color: var(--color-earth);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive for Remembrance Modal */
@media (max-width: 768px) {
    .remembrance-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .remembrance-header h2 {
        font-size: 1.5rem;
    }
    
    .remembrance-body {
        padding: var(--space-md);
    }
    
    .btn-remembrance {
        width: 100%;
        margin-top: var(--space-sm);
    }
}