/* =========================================
   Global Variables & Typography
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@500;700&display=swap');


:root {
    --bg-canvas: #f8f9fa;
    --text-main: #212529;
    --text-muted: #495057;
    --accent-primary: #1b4332;   /* Deep Forest */
    --accent-secondary: #2d6a4f; /* Slate Green */
    --surface-light: #ffffff;
    --border-subtle: #dee2e6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.6;
}

h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}


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

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

/* =========================================
   Navigation & Brand Asset
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--border-subtle);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    max-width: 30px;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 8px rgba(45, 106, 79, 0.6));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-primary);
}

/* =========================================
   Layout Architecture
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    /* Add this transition line */
    transition: all 0.3s ease; 
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(45, 106, 79, 0.1); /* Soft green shadow */
    border-color: var(--accent-secondary); /* Highlights the border */
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 4rem 0;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   Solarpunk Footer & Bottom Anchoring
   ========================================= */
.site-footer {
    /* Deep organic gradient */
    background: linear-gradient(135deg, var(--accent-primary) 0%, #081c15 100%);
    color: #e9ecef;
    padding: 4rem 2rem;
    margin-top: 5rem;
    /* The Solarpunk glowing accent line */
    border-top: 3px solid var(--accent-glow);
    box-shadow: 0 -4px 15px rgba(149, 213, 178, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-footer a {
    color: var(--accent-glow);
    font-weight: 600;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--accent-glow);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}