/* theme.css */

:root {
    /* --- Color Palette --- */
    
    /* Eco Green Series */
    --color-green-50: #F0FDF4;
    --color-green-100: #DCFCE7;
    --color-green-200: #BBF7D0;
    --color-green-300: #86EFAC;
    --color-green-400: #4ADE80;
    --color-green-500: #22C55E;
    --color-green-600: #16A34A;
    --color-green-700: #15803D;
    --color-green-800: #166534;

    /* Sky Blue Series */
    --color-blue-50: #F0F9FF;
    --color-blue-100: #E0F2FE;
    --color-blue-200: #BAE6FD;
    --color-blue-300: #7DD3FC;
    --color-blue-400: #38BDF8;
    --color-blue-500: #0EA5E9;
    --color-blue-600: #0284C7;
    --color-blue-700: #0369A1;

    /* Neutrals & Backgrounds */
    --color-white: #ffffff;
    --color-white-2:#dbfab767;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-bg-light: #F8FBF8;
    --color-bg-dark: #0F172A;

    /* Text Colors */
    --text-primary-light: #1A2E05;
    --text-secondary-light: #4D6B2F;
    --text-primary-dark: #EAFEEA;
    
    /* --- Typography --- */
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* --- Dimensions & Spacing --- */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    --container-width-md: 768px;
    --container-width-lg: 1024px;
    --container-width-xl: 1140px;
    
    --section-spacing: 5rem;
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */

/* Hamburger Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-green-300);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-menu-toggle span {
    width: 2rem;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-green-800);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-logo {
    width: 2rem;
    height: 2rem;
    background: var(--color-white);
    padding: 0.5rem;
    border-radius: 50%;
}

.mobile-menu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-menu-title {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-green-300);
}

.mobile-menu-close:active {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-menu-close:focus {
    outline: 2px solid var(--color-green-300);
    outline-offset: 2px;
}

.mobile-menu-close .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Mobile Menu Links */
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.mobile-menu-links .menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links .menu-link:hover,
.mobile-menu-links .menu-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-green-300);
    padding-left: 2rem;
}

.mobile-menu-links .menu-link:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu Actions */
.mobile-menu-actions {
    padding: 1.5rem;
    padding-bottom: 5.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-shrink: 0;
    background-color: var(--color-green-800);
    position: relative;
    z-index: 10;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
    display: flex;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    min-height: 44px;
    align-items: center;
}

/* Show hamburger button on mobile, hide on desktop */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Show hamburger button on mobile */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
}