/* === Core Variables === */
:root {
    --primary-green: #2d7d32;
    --secondary-green: #4caf50;
    --dark-gray: #263238;
    --medium-gray: #546e7a;
    --light-gray: #f4f6f7;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --gradient-hero: linear-gradient(135deg, rgba(45,125,50,0.95) 0%, rgba(76,175,80,0.9) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* === Global Reset & Base Styles === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header & Navigation === */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    margin: 0;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}
nav a:hover {
    color: var(--primary-green);
}
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.25rem;
}
.language-switcher a {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
.language-switcher a.active {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

/* === Hero Section === */
.hero {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.8);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* === Content Sections & Cards === */
main { padding: 4rem 0; }
section { padding: 4rem 0; }
section:first-child { padding-top: 0; }
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    font-weight: 800;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}
.card p { color: var(--medium-gray); }

/* === Call to Action Section === */
.cta {
    background: var(--dark-gray);
    color: var(--white);
    padding: 5rem 1.5rem;
    margin: 4rem 0;
    border-radius: var(--border-radius);
    text-align: center;
}
.cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta p { max-width: 600px; margin: 0 auto 2rem; }
.cta .btn-primary { transform: scale(1.05); }

/* === Legal & Form Styling === */
.legal { max-width: 800px; margin: 0 auto; }
.legal p { margin-bottom: 1.5rem; }
.legal strong { color: var(--dark-gray); }
form input, form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45,125,50,0.1);
}

/* === Footer === */
footer {
    background: var(--dark-gray);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}
footer nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}
footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}
footer a:hover { color: var(--white); }

/* === Mobile Navigation === */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.mobile-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-gray);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}
@media (max-width: 768px) {
    .mobile-menu { display: block; }
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    nav ul.active { display: flex; }
    nav ul li { width: 100%; text-align: center; }
    nav ul a { display: block; padding: 1rem 0; width: 100%; }
    .language-switcher { justify-content: center; margin: 1rem auto 0; }
    .grid { grid-template-columns: 1fr; }
}

/* === Animations === */
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s, border-color 0.3s;
}
.card.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.card:hover {
    transform: translateY(-8px) !important;
}
