/* Header Styles */
:root {
    --header-height: 70px;
    --primary-color: #1a5d02;
    --white: #ffffff;
    --text-color: #333;
    --logo-height: 50px;
    --transition-speed: 0.3s;
    
    /* Typography Scale */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    
    --nav-font-size: var(--text-sm);
    --body-font: 'Montserrat', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --base-font-size: 16px; /* Base size for rem calculations */
}

/* Reset any conflicting styles */
.site-header,
.site-header *,
.site-header *:before,
.site-header *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base header styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    padding: 0;
    margin: 0;
    border-bottom: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1001;
    height: var(--logo-height);
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Main navigation */
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    height: 100%;
    flex-grow: 1;
    margin: 0 20px;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.2rem; /* Slightly reduced gap */
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav li {
    margin: 0;
    height: 40px;
    align-items: center;
    display: flex;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Language switcher */
.language-switcher {
    display: flex;
    gap: 6px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    height: 40px;
    align-items: center;
}

.language-switcher a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    min-width: 32px;
    text-align: center;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--primary-color);
    background-color: rgba(26, 93, 2, 0.1);
    border-color: var(--primary-color);
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    z-index: 1001;
    transition: color 0.2s ease;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* Responsive styles */
/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 20px 40px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .main-nav li {
        width: 100%;
        margin: 5px 0;
        height: auto;
    }

    .main-nav a {
        padding: 12px 16px;
        width: 100%;
        height: auto;
    }
    
    .language-switcher {
        margin: 20px 0 0;
        padding: 20px 0 0;
        border-top: 1px solid #eee;
        justify-content: center;
        width: 100%;
        display: flex;
        gap: 15px;
    }
    
    .language-switcher a {
        padding: 8px 15px;
    }
}
