:root {
    --color-primary: #047857; /* Emerald 700 */
    --color-primary-dark: #064e3b; /* Emerald 900 */
    --color-primary-light: #10b981; /* Emerald 500 */
    --color-secondary: #0ea5e9; /* Sky 500 */
    --color-accent: #f59e0b; /* Amber 500 */
    --color-bg: #f0f4f8; /* Softer bluish gray for more depth */
    --color-surface: #ffffff;
    --color-surface-alt: #e2e8f0; /* Slate 200 */
    --color-text: #334155; /* Slate 700 */
    --color-text-light: #64748b; /* Slate 500 */
    --color-text-inverse: #ffffff;
    --color-border: #cbd5e1; /* Slate 300 */
    --color-success: #10b981;
    --color-error: #ef4444;

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

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.grid { display: grid; gap: var(--space-lg); }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
    color: var(--color-text-inverse);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}
.btn-secondary:hover {
    color: var(--color-text-inverse);
}

/* Main Layout */
#main-content, .site-footer, .back-to-top {
    transition: margin-left var(--transition-normal);
}

@media (min-width: 1025px) {
    #main-content, .site-footer {
        margin-left: 280px;
    }
}

/* Sidebar Nav */
.sidebar-nav {
    position: fixed;
    top: 0; left: 0;
    width: 280px; height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2xl);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.logo svg {
    filter: drop-shadow(0 4px 6px rgba(4,120,87,0.3));
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    flex: 1;
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: var(--space-md);
}

.nav-links a {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--color-primary-light);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.lang-selector {
    position: relative;
    cursor: pointer;
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    color: var(--color-text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.lang-selector-btn:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.lang-dropdown {
    position: absolute;
    bottom: 100%; left: 0; width: 100%;
    margin-bottom: var(--space-sm);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.lang-dropdown a:hover {
    background: var(--color-surface-alt);
}

.hamburger {
    display: none;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 12px;
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background-color: var(--color-primary-dark);
    margin: 4px 0;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }
    .sidebar-nav.active {
        transform: translateX(0);
    }
    .hamburger { display: block; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: var(--space-3xl) 0 var(--space-md) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

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

.footer-col h3 {
    color: var(--color-surface);
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    margin-left: var(--space-md);
}

/* Forms */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-sm);
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-label {
    position: absolute;
    top: var(--space-md);
    left: var(--space-sm);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    font-size: var(--text-xs);
    color: var(--color-primary);
}

/* Accordeon FAQ */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-sm);
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    transition: transform var(--transition-normal);
}

.faq-btn.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-content p {
    padding-bottom: var(--space-md);
    color: var(--color-text-light);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Pre-reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
