/* CSS Variables */
:root {
    --primary-color: #004d2c;
    --primary-light: #006d3f;
    --primary-dark: #003d22;
    --accent-color: #e60012;
    --gold: #d4af37;
    --text-color: #333;
    --background-light: #f5f5f5;
    --background-dark: #222;
    --spacing: 2rem;
    --border-radius: 4px;
    --nav-height-mobile: 60px;
    --nav-height-desktop: 70px;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    padding-top: 60px !important;
    -webkit-overflow-scrolling: touch;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 101;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
nav {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary-color) 50%,
        var(--primary-light) 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    z-index: 1;
}

.brand img {
    height: 32px;
    width: 32px;
    margin-right: 0.5rem;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    z-index: 1002;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger {
    top: 21px;
    left: 10px;
}

.hamburger::before {
    top: -8px;
    left: 0;
}

.hamburger::after {
    top: 8px;
    left: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-color);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1000;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .nav-content {
        height: 60px;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        z-index: 999;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .lang-toggle {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: var(--primary-color);
        justify-content: center;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .nav-toggle[aria-expanded="true"] ~ .nav-links,
    .nav-toggle[aria-expanded="true"] ~ .lang-toggle {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] ~ .nav-links {
        height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    body {
        padding-top: var(--nav-height-desktop);
    }

    nav {
        height: var(--nav-height-desktop);
    }

    .nav-content {
        height: var(--nav-height-desktop);
        padding: 0 2rem;
    }

    .nav-links {
        flex-direction: row;
        margin-left: 2rem;
    }

    .lang-toggle {
        margin-left: auto;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary-color) 100%
    );
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

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

.hero p {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.content-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.content-item h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-item p {
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
}

.button:hover {
    background-color: #cc0010;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(230, 0, 18, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary-color) 100%
    );
    color: white;
    margin-top: 2rem;
    border-top: 2px solid var(--gold);
    position: relative;
}

/* Print Styles */
@media print {
    body {
        padding-top: 0;
    }

    nav {
        display: none;
    }

    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }

    .content-item {
        break-inside: avoid;
        box-shadow: none;
    }
}