/* ============================================
   KALKULATORNORGE.NO - DESIGN SYSTEM
   Version: 3.0 - COMPLETE FIX
   Primary: #C4533A (Rich Rust)
   Background: #FAF9F7 (Warm Cream)
   ============================================ */

:root {
    /* PRIMARY COLORS */
    --color-primary: #C4533A;
    --color-primary-hover: #A8452F;
    --color-primary-light: rgba(196, 83, 58, 0.10);
    --color-primary-lighter: rgba(196, 83, 58, 0.05);
    
    /* BACKGROUNDS */
    --color-background: #FAF9F7;
    --color-background-alt: #F5F3F0;
    --color-surface: #FFFFFF;
    
    /* TEXT */
    --color-text: #1A1A1A;
    --color-text-secondary: #6B6B6B;
    --color-text-muted: #9B9B9B;
    
    /* SEMANTIC */
    --color-success: #2D8A5F;
    --color-error: #DC3545;
    
    /* BORDERS */
    --color-border: #E8E5E1;
    --color-border-light: #F0EDE9;
    
    /* SHADOWS */
    --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.08);
    --shadow-card: 0 2px 8px rgba(26, 26, 26, 0.04), 0 0 1px rgba(26, 26, 26, 0.06);
    --shadow-input-focus: 0 0 0 3px var(--color-primary-light);
    
    /* TYPOGRAPHY */
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* SIZES */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.75rem;
    
    /* SPACING */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* TRANSITIONS */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    
    /* LAYOUT */
    --max-width-xl: 1200px;
    --container-padding: var(--space-6);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

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

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

/* UTILITIES */
.container {
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
    }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-xl); }
}
