:root {
    --primary: #2c6e49; /* Forest Green */
    --primary-hover: #1f4f34;
    --primary-light: #e6f3eb;
    --accent: #f4a261; /* Warm Orange */
    --accent-hover: #e68a41;
    --accent-light: #fef2e6;
    --background: #f8fafc; /* Light Slate */
    --foreground: #1e293b; /* Dark Slate */
    --muted: #f1f5f9; /* Softer Grey */
    --muted-foreground: #64748b; /* Slate Grey */
    --border: #d1d5db; /* Light Grey Border */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --gradient-hero: linear-gradient(135deg, #2c6e49, #1e4a33);
    --gradient-accent: linear-gradient(135deg, #f4a261, #e68a41);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link-a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--foreground);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.close-button {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.close-button span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--foreground);
    position: relative;
}

.close-button span:nth-child(1) {
    transform: rotate(45deg);
}

.close-button span:nth-child(2) {
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
}

.dropdown {
    position: relative;
    overflow: visible;
}

.dropdown-toggle {
    cursor: pointer;
    color: var(--muted-foreground);
    font-weight: 500;
    background: none;
    border: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 6px;
    padding: 0.5rem 0;
    z-index: 1000;
    min-width: 180px;
    max-width: 90vw;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--foreground);
    font-weight: normal;
    transition: background-color 0.3s;
}

.dropdown-menu a:focus {
    background-color: var(--muted);
}

.dropdown-menu a span {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.dropdown-menu a:hover {
    background-color: var(--muted);
    color: var(--primary);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 3rem 1rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
    }

    .nav-links li {
        padding: 0.8rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link-a {
        color: var(--foreground);
        display: block;
    }

    .dropdown-toggle {
        color: var(--foreground);
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--muted);
        display: none;
        width: 100%;
        max-width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .close-button {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .menu-toggle span {
        width: 30px;
    }
}

noscript .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    transform: none;
}

noscript .menu-toggle,
noscript .close-button {
    display: none;
}

noscript .dropdown-menu {
    display: none;
}

noscript .dropdown:hover .dropdown-menu {
    display: block;
}
