/* ===== KIMIA ESTETIK - DESIGN TOKENS ===== */
/* Refined design token system for the UI/UX redesign */

:root {
    /* ─── Brand Colors ���── */
    --gold-50: #FBF6E8;
    --gold-100: #F4E4BC;
    --gold-200: #EDCF8B;
    --gold-300: #E4B85A;
    --gold-400: #D4AF37;    /* Primary – Champagne Gold */
    --gold-500: #B8941F;
    --gold-600: #9A7B18;
    --gold-700: #7A5F12;
    --gold-800: #5C460D;
    --gold-900: #3D2E08;

    /* Semantic aliases */
    --color-primary: var(--gold-400);
    --color-primary-hover: var(--gold-500);
    --color-primary-light: var(--gold-100);
    --color-primary-dark: var(--gold-700);

    /* ─── Neutral Colors ─── */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* ─── Surface Colors (Warm Luxury Feel) ─── */
    --surface-white: #FFFFFF;
    --surface-cream: #FDFBF7;
    --surface-pearl: #F8F6F3;
    --surface-warm: #F3EFE8;
    --surface-dark: #1a1a1a;

    /* ─── Border Colors ─── */
    --border-light: #E8E4DE;
    --border-default: #D6D0C6;
    --border-dark: #B8B0A3;
    --border-gold: var(--gold-400);

    /* ─── Semantic Colors ─── */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-error: #DC2626;
    --color-error-light: #FEE2E2;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;

    /* ─── Typography ─── */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-persian-serif: 'Markazi Text', 'Playfair Display', serif;
    --font-persian-sans: 'Vazirmatn', 'Inter', sans-serif;

    /* Type Scale (Major Third – 1.25 ratio) */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.5rem;     /* 40px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */

    /* Responsive heading sizes */
    --heading-1: clamp(2.5rem, 5vw, 3.75rem);
    --heading-2: clamp(2rem, 4vw, 3rem);
    --heading-3: clamp(1.5rem, 3vw, 2rem);
    --heading-4: clamp(1.25rem, 2.5vw, 1.5rem);

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Letter Spacing */
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ─── Spacing ─── */
    --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 */

    /* Section Spacing */
    --section-sm: 4rem;
    --section-md: 6rem;
    --section-lg: 8rem;

    /* ─── Layout ─── */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    --content-width: 65ch;   /* Optimal reading width */

    /* ─── Border Radius ─── */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;  /* Pill shape */

    /* ─── Shadows ─── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.1), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 8px 24px -4px rgba(212, 175, 55, 0.25);
    --shadow-gold-lg: 0 12px 36px -6px rgba(212, 175, 55, 0.35);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* ─── Transitions ──��� */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-in-out);

    /* ─── Z-Index Scale ─── */
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-header: 20;
    --z-overlay: 30;
    --z-modal: 40;
    --z-floating: 50;
    --z-toast: 60;

    /* ─── Focus Ring ─── */
    --focus-ring: 0 0 0 2px var(--surface-white), 0 0 0 4px var(--color-primary);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
}
