/**
 * =====================================================
 * DESIGN SYSTEM TOKENS - Gli Amici di Colombo
 * =====================================================
 * 
 * A comprehensive design token system for consistent,
 * professional UI across the entire website.
 * 
 * Theme: Bright & Warm (Hope, Mental Health, Positivity)
 * Inspired by: Sanremo 2026 Campaign sophistication
 */

:root {
    /* ===================================================
       COLOR PALETTE
       =================================================== */
    
    /* Primary - Deep Navy (Trust, Professionalism, Stability) */
    --color-primary: #1e3a5f;
    --color-primary-dark: #0f2744;
    --color-primary-light: #2d4f7a;
    --color-primary-rgb: 30, 58, 95;
    
    /* Accent - Warm Gold (Hope, Positivity, Warmth) */
    --color-accent: #d4a853;
    --color-accent-gold: #e8c066;
    --color-accent-amber: #f59e0b;
    --color-accent-light: #fcd34d;
    --color-accent-rgb: 212, 168, 83;
    
    /* Success, Warning, Error */
    --color-success: #059669;
    --color-success-light: #10b981;
    --color-warning: #d97706;
    --color-warning-light: #f59e0b;
    --color-error: #dc2626;
    --color-error-light: #ef4444;
    
    /* Background Colors - Warm Whites */
    --bg-primary: #ffffff;
    --bg-secondary: #faf8f5;
    --bg-tertiary: #f5f3f0;
    --bg-cream: #fdfcfa;
    --bg-warm-gray: #f8f7f4;
    
    /* Surface Colors (Cards, Modals, etc.) */
    --surface-elevated: #ffffff;
    --surface-overlay: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-glass-border: rgba(30, 58, 95, 0.08);
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-default: #cbd5e1;
    --border-dark: #94a3b8;
    --border-accent: rgba(212, 168, 83, 0.3);
    
    /* ===================================================
       TYPOGRAPHY
       =================================================== */
    
    /* Font Families */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.775rem + 0.19vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.19vw, 1rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.31vw, 1.125rem);
    --text-xl: clamp(1.1875rem, 1.1rem + 0.44vw, 1.25rem);
    --text-2xl: clamp(1.375rem, 1.25rem + 0.63vw, 1.5rem);
    --text-3xl: clamp(1.6875rem, 1.5rem + 0.94vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.75rem + 1.25vw, 2.25rem);
    --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3rem);
    --text-6xl: clamp(3rem, 2.5rem + 2.5vw, 3.75rem);
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ===================================================
       SPACING (8px Base Grid)
       =================================================== */
    
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Section Spacing */
    --section-padding-y: clamp(3rem, 8vh, 6rem);
    --section-padding-x: clamp(1rem, 5vw, 2rem);
    
    /* Container */
    --container-max: 1280px;
    --container-lg: 1024px;
    --container-md: 768px;
    --container-sm: 640px;
    
    /* ===================================================
       BORDER RADIUS
       =================================================== */
    
    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-default: 0.5rem; /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-2xl: 2rem;      /* 32px */
    --radius-full: 9999px;
    
    /* ===================================================
       SHADOWS (Elevation System)
       =================================================== */
    
    /* Subtle shadows with warm tint */
    --shadow-xs: 0 1px 2px rgba(30, 58, 95, 0.04);
    --shadow-sm: 0 2px 4px rgba(30, 58, 95, 0.06);
    --shadow-default: 0 4px 8px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 6px 16px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 10px 24px rgba(30, 58, 95, 0.12);
    --shadow-xl: 0 16px 40px rgba(30, 58, 95, 0.14);
    --shadow-2xl: 0 24px 56px rgba(30, 58, 95, 0.18);
    
    /* Colored shadows for accent elements */
    --shadow-accent: 0 8px 24px rgba(212, 168, 83, 0.25);
    --shadow-accent-lg: 0 16px 40px rgba(212, 168, 83, 0.3);
    --shadow-primary: 0 8px 24px rgba(30, 58, 95, 0.2);
    
    /* Inner shadows */
    --shadow-inner: inset 0 2px 4px rgba(30, 58, 95, 0.06);
    --shadow-inner-lg: inset 0 4px 8px rgba(30, 58, 95, 0.1);
    
    /* ===================================================
       TRANSITIONS & ANIMATIONS
       =================================================== */
    
    /* Duration */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    --duration-slower: 500ms;
    
    /* Easing */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Common Transitions */
    --transition-fast: all 150ms var(--ease-out);
    --transition-normal: all 250ms var(--ease-out);
    --transition-slow: all 350ms var(--ease-smooth);
    --transition-transform: transform 250ms var(--ease-out);
    --transition-colors: color, background-color, border-color 200ms var(--ease-out);
    --transition-opacity: opacity 200ms var(--ease-out);
    --transition-shadow: box-shadow 250ms var(--ease-out);
    
    /* ===================================================
       Z-INDEX SCALE
       =================================================== */
    
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-navbar: 1000;
    
    /* ===================================================
       LAYOUT
       =================================================== */
    
    --navbar-height: 80px;
    --navbar-height-mobile: 64px;
    --footer-min-height: 400px;
    
    /* ===================================================
       GRADIENTS
       =================================================== */
    
    /* Primary gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-primary-vertical: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    
    /* Accent gradients */
    --gradient-accent: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent) 100%);
    --gradient-accent-warm: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    
    /* Background gradients */
    --gradient-warm-bg: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-section-alt: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    
    /* Glass effect gradient */
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    
    /* Decorative gradients */
    --gradient-divider: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    --gradient-divider-primary: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    
    /* Hero overlay gradient */
    --gradient-hero-overlay: linear-gradient(
        135deg,
        rgba(30, 58, 95, 0.7) 0%,
        rgba(15, 39, 68, 0.6) 50%,
        rgba(30, 58, 95, 0.75) 100%
    );
    
    /* ===================================================
       GLASSMORPHISM (Light Theme)
       =================================================== */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-strong: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(30, 58, 95, 0.08);
    --glass-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(30px);
    
    /* ===================================================
       COMPONENT-SPECIFIC TOKENS
       =================================================== */
    
    /* Buttons */
    --btn-padding-x: 1.5rem;
    --btn-padding-y: 0.75rem;
    --btn-padding-x-sm: 1rem;
    --btn-padding-y-sm: 0.5rem;
    --btn-padding-x-lg: 2rem;
    --btn-padding-y-lg: 1rem;
    --btn-radius: var(--radius-full);
    --btn-font-weight: var(--font-semibold);
    
    /* Cards */
    --card-padding: var(--space-6);
    --card-padding-lg: var(--space-8);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --card-shadow-hover: var(--shadow-xl);
    --card-border: 1px solid var(--border-light);
    
    /* Forms */
    --input-padding-x: 1rem;
    --input-padding-y: 0.75rem;
    --input-radius: var(--radius-default);
    --input-border: 1px solid var(--border-default);
    --input-border-focus: 1px solid var(--color-accent);
    --input-shadow-focus: 0 0 0 4px rgba(212, 168, 83, 0.15);
    
    /* Icons */
    --icon-size-sm: 1rem;
    --icon-size-default: 1.25rem;
    --icon-size-md: 1.5rem;
    --icon-size-lg: 2rem;
    --icon-size-xl: 3rem;
}

/* ===================================================
   DARK MODE SUPPORT (Future-proofing)
   =================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        /* Override for dark mode if needed in future */
        /* Currently keeping light theme as primary */
    }
}

/* ===================================================
   REDUCED MOTION PREFERENCES
   =================================================== */

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
        --transition-fast: none;
        --transition-normal: none;
        --transition-slow: none;
    }
}
