:root {
    /* Colors - Premium Timber & Gold */
    --color-primary: #1A4D2E;
    /* Richer Forest Green */
    --color-primary-dark: #0D2615;
    /* Darker, almost black green */
    --color-secondary: #4F772D;
    /* Natural Moss Green */
    --color-accent: #C5A059;
    /* Metallic Gold */
    /* Wood/Earth */
    --color-bg: #F8F9FA;
    /* Off-white */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Layout */
    --container-width: 1300px;
    /* Increased slightly to give more room */
    --header-height: 80px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 100px;
    /* Account for fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-primary-dark);
}

/* Anchor Sections */
/* Block Sections */
.content-block {
    padding: var(--spacing-xl) 0;
    scroll-margin-top: 100px;
    /* Header offset */
}

.bg-white {
    background-color: var(--color-white);
}

/* Strip inline background colors from pasted content (Word, etc.) */
.content-block * {
    background-color: transparent !important;
    background: transparent !important;
}

.bg-light {
    background-color: #f0f4f0;
    /* Very light green/grey */
}

.bg-dark {
    background-color: var(--color-primary-dark);
    color: white;
}

.bg-dark h2 {
    color: white;
}

.anchor-section {
    /* Legacy override or remove if unused */
    scroll-margin-top: 150px;
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100px;
    /* Compact header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
    /* Ensure efficient use of space */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    /* Larger visual size */
    width: auto;
    object-fit: contain;
    margin-left: -10px;
    margin-top: -25px;
    /* Crop top */
    margin-bottom: -25px;
    /* Crop bottom */
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* Dropdown Menu */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    /* Ensure dropdown is above hero content */
}

/* Language Switcher Specifics */
.lang-switcher ul {
    min-width: 60px !important;
    left: 50%;
    transform: translateX(-50%);
}

.lang-switcher a i {
    margin-right: 4px;
}

nav a {
    color: var(--color-text);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    /* Ensure it stays below fixed header (2000) */
}

/* Background Image Layer */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center 40%;
    background-color: var(--color-primary-dark);
    /* Fallback while image loads */
    z-index: 0;
    transition: filter 0.3s ease;
}

/* Overlay Layer */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly lighter overlay */
    z-index: 1;
}

/* Content Layer */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Desktop Blur Effect */
@media (min-width: 1024px) {
    .hero::before {
        filter: blur(2px);
        /* Reduced blur */
        transform: scale(1.05);
        /* Scale up to hide blurred edges */
    }
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero .btn {
    margin-top: 2rem;
    display: inline-block;
}

/* Main Content */
main {
    padding: var(--spacing-xl) 0;
}

.content-section {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 2rem 0 0 0;
    margin-top: auto;
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

footer h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p,
footer li {
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

footer ul {
    list-style: none;
}

footer a {
    color: var(--color-white);
    opacity: 0.8;
}

footer a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-disclaimer {
    background-color: var(--color-primary-dark);
    padding: 1rem 0;
    font-size: 0.75rem;
    /* Smaller text */
    color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background-color: var(--color-primary-dark);
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links-right {
    display: flex;
    gap: 1.5rem;
}

.footer-links-right a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-right a:hover {
    color: var(--color-accent);
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        position: relative;
        /* Ensure positioning context */
    }

    .logo {
        z-index: 101;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
        /* Push to right */
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-primary-dark);
        z-index: 101;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        /* Fixed to cover screen */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: var(--color-white);
        padding: 120px var(--spacing-md) var(--spacing-md);
        /* Top padding for header */
        z-index: 100;
        /* Below logo/toggle */
        overflow-y: auto;
    }

    nav#main-nav.open ul {
        display: flex;
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Main Menu Items */
    nav>ul>li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    nav>ul>li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--color-primary-dark);
    }

    /* Sub-menus (Hidden by default on mobile) */
    nav#main-nav>ul>li>ul {
        display: none !important;
        flex-direction: column;
        padding-left: 0;
        background: var(--color-bg);
        box-shadow: none;
        border: none;
        margin: 0;
        width: 100%;
        position: static;
        /* Stack naturally */
    }

    /* Show sub-menus when parent is active */
    nav#main-nav>ul>li.active>ul {
        display: flex !important;
    }

    /* Rotate chevron when sub-menu is open */
    nav ul li.has-children.active>a .fa-chevron-down {
        transform: rotate(180deg);
    }

    nav ul li.has-children>a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    nav ul li ul li {
        width: 100%;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav ul li ul a {
        font-size: 1rem;
        padding: 12px 20px;
        /* Indent */
        font-weight: 400;
        color: var(--color-text);
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    nav ul {
        display: flex !important;
    }

    /* Dropdown Styles Desktop */
    nav li {
        position: relative;
    }

    nav li ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        flex-direction: column;
        padding: 0;
        border-radius: 4px;
        z-index: 2001;
        /* Higher than header z-index 2000 */
    }

    nav li:hover>ul {
        display: flex !important;
    }

    nav li ul li {
        width: 100%;
    }

    nav li ul a {
        display: block;
        padding: 10px 15px;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    nav li ul a:hover {
        background: #f8f9fa;
        color: var(--color-primary);
    }
}

/* Documents List Styles */
.documents-section {
    margin-top: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .documents-section {
        grid-template-columns: 1fr;
    }
}

.doc-group h3 {
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.doc-list {
    list-style: none;
}

.doc-list li {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-link {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.doc-link i {
    margin-left: 8px;
    font-size: 0.9em;
}

.doc-list .date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 4px;
}

.doc-list .summary {
    font-size: 0.95rem;
    color: var(--color-text);
}