/* 
   letzresilience.lu — Premium B2G Design System
   Based on SPEC.md v3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
    --iris-blue: #1B4F8A;
    --iris-blue-dark: #153F6B;
    --iris-blue-light: #EBF2FA;
    --crisis-red: #C8392B;
    --crisis-red-light: #FDF2F1;
    --safe-green: #2E7D32;
    --alert-amber: #D97706;
    --stone-grey: #4A5568;
    --deep-charcoal: #1A202C;
    --muted-grey: #718096;
    --light-mist: #F7FAFC;
    --border-grey: #E2E8F0;
    --surface: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-btn: 0 4px 14px rgba(27,79,138,0.30);
    
    /* Spacing */
    --container-max: 1200px;
    --radius-lg: 16px;
    --radius-md: 10px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-mist);
    color: var(--deep-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 { font-size: 64px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }
p { color: var(--stone-grey); }

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

@media (max-width: 768px) {
    section { padding: 48px 0; }
}

/* Navigation */
nav {
    height: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-grey);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border-grey);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--iris-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--stone-grey);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--iris-blue); }

.lang-selector {
    display: flex;
    gap: 8px;
    background: var(--iris-blue-light);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--iris-blue);
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--iris-blue);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--light-mist);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 64px;
    align-items: center;
}

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

.hero-text { max-width: 600px; }
.hero-title { margin-bottom: 24px; color: var(--deep-charcoal); }
.hero-subtitle { font-size: 20px; margin-bottom: 40px; color: var(--stone-grey); }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--iris-blue);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--iris-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27,79,138,0.40);
}

/* Calculator Widget */
.calc-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-grey);
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
select, input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

select:focus, input:focus { border-color: var(--iris-blue); }

/* Results Panel (Glassmorphism) */
.results-panel {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none; /* Hidden by default */
}

.results-panel.active { display: block; animation: slideDown 0.4s ease-out; }

.score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.module-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
}

.module-row:last-child { border-bottom: none; }

/* Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-grey);
    transition: all 0.3s;
}

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

.product-image {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img { max-width: 80%; max-height: 80%; object-fit: contain; }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-mandatory { background: var(--crisis-red-light); color: var(--crisis-red); }
.badge-recommended { background: var(--iris-blue-light); color: var(--iris-blue); }

.product-info { padding: 24px; }
.product-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--stone-grey); margin-bottom: 20px; }

/* Trust Bar */
.trust-bar {
    background: var(--surface);
    padding: 24px 0;
    border-bottom: 1px solid var(--border-grey);
}

.trust-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 768px) {
    .trust-content { flex-direction: column; align-items: center; text-align: center; }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--stone-grey);
}

.trust-item svg { color: var(--iris-blue); width: 20px; height: 20px; }

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    background: var(--deep-charcoal);
    color: #A0AEC0;
    padding: 64px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-logo { color: white; font-weight: 800; font-size: 24px; margin-bottom: 16px; }

/* Utility */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
