/* 1. Variable Definitions */
:root {
    --bg-color: #fcfdfa;
    --section-bg: #2d5a27;
    --card-bg: #5ea052;
    --text-main: #ffffff;
    --text-dim: #4d4c4c;
    --text-dark: #2d5a27;
    --primary: #5ea052;
    --primary-hover: #2d5a27;
    --accent: #ff6c01;
    --footer-bg: #132411;
    --container-width: 1100px;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* 3. Navigation */
.navbar {
    background: var(--section-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: underline var(--accent);
    z-index: 1001; /* Stay above mobile overlay */
}

.logo span {
    color: var(--primary);
}

/* Desktop Nav Default */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Stay above mobile overlay */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* 4. Sections & Components */
/*page header*/
.page-header {
    text-align: center;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 2.5rem;
}

.features { padding: 20px 0; }


.hero {
    padding: 80px 0;
    text-align: center;
    color: var(--text-dark);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 15px rgba(227, 24, 55, 0.2));
}

.grid { display: grid; gap: 20px; }

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: 0.3s;
}

.card h3 { color: var(--text-main); margin-bottom: 1rem; }

.card-alt{
    background: none;
    color: var(--text-dark);
    border: 2px var(--accent) solid;
}

.card-alt h3 {
    color: var(--accent)
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
}

.btn-secondary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary:hover { background: #fff; color: #000; }

.btn-nav { padding: 0.5rem 1.2rem; font-size: 0.9rem; border-color: var(--accent); }

/* --- Mobile Navigation Logic --- */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--footer-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    /* Animation */
    #mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    #mobile-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* --- Desktop Scaling --- */
@media (min-width: 768px) {
    .menu-toggle { display: none !important; }

    .nav-container {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        display: flex !important;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-links a { font-size: 1rem; text-transform: none; }
    .nav-links a:hover { color: var(--primary); }

    .hero-grid {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero h1 { font-size: 4rem; }
    .grid { grid-template-columns: repeat(3, 1fr); }

    .features { padding: 40px 0; }
}