/* ===================================
   The Chaudhari Wada Design System
   CSS Custom Properties (Variables)
   Business Card Theme: Charcoal Black + Warm Gold
   =================================== */

:root {
  /* ===== Brand Color Palette (Business Card) ===== */

  /* Gold Accent — pulled directly from business card logo */
  --color-gold:           #C9A84C;   /* Warm gold — primary brand accent */
  --color-gold-light:     #E2C06E;   /* Lighter gold for hover/highlights */
  --color-gold-dark:      #A8862C;   /* Deeper gold for shadows/accents */
  --color-gold-muted:     rgba(201, 168, 76, 0.18); /* Translucent gold tint */

  /* Charcoal Black — business card background tone */
  --color-charcoal:       #1a1a1a;   /* Primary bg — true charcoal, not pure black */
  --color-charcoal-light: #242424;   /* Slightly lighter charcoal for cards */
  --color-charcoal-mid:   #2e2e2e;   /* Card surfaces, sections */
  --color-charcoal-dark:  #141414;   /* Deeper charcoal — footer, navbar */

  /* Legacy primary mapping → gold for dark theme */
  --color-primary:        #C9A84C;   /* Gold is the brand primary */
  --color-primary-dark:   #A8862C;   /* Darker gold */
  --color-primary-light:  #E2C06E;   /* Lighter gold */
  --color-accent:         #C9A84C;   /* Same gold accent */
  --color-accent-dark:    #A8862C;
  --color-accent-light:   #E2C06E;

  /* ===== Text Colors (on dark background) ===== */
  --color-text:           #F5F0E8;   /* Warm off-white — primary text */
  --color-text-light:     #BFB89A;   /* Muted warm-cream text */
  --color-text-muted:     #8A8470;   /* Very muted for placeholders */

  /* ===== Background Colors ===== */
  --color-bg:             #1a1a1a;   /* Main background */
  --color-bg-light:       #242424;   /* Slightly lighter for alternate sections */
  --color-bg-dark:        #141414;   /* Darkest — footer / overlays */

  /* ===== Gray Scale (dark-adjusted) ===== */
  --color-gray-50:  #2a2a2a;
  --color-gray-100: #2e2e2e;
  --color-gray-200: #3a3a3a;
  --color-gray-300: #4a4a4a;
  --color-gray-400: #6a6a6a;
  --color-gray-500: #8a8a8a;
  --color-gray-600: #aaaaaa;
  --color-gray-700: #c5c5c5;
  --color-gray-800: #e0e0e0;
  --color-gray-900: #f5f0e8;

  /* ===== Semantic Colors ===== */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error:   #ef4444;
  --color-info:    #3b82f6;

  /* ===== Typography ===== */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-family-heading: -apple-system, 'SF Pro Display', 'Segoe UI', Roboto, system-ui, sans-serif;

  /* Font Sizes */
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  /* Font Weights */
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* Line Heights */
  --line-height-tight:   1.25;
  --line-height-snug:    1.375;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose:   2;

  /* ===== Spacing Scale ===== */
  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  1.5rem;
  --spacing-lg:  2rem;
  --spacing-xl:  3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --spacing-4xl: 8rem;

  /* ===== Layout ===== */
  --container-xs:  640px;
  --container-sm:  768px;
  --container-md:  1024px;
  --container-lg:  1280px;
  --container-xl:  1536px;
  --container-max: 1200px;

  --breakpoint-sm:  640px;
  --breakpoint-md:  768px;
  --breakpoint-lg:  1024px;
  --breakpoint-xl:  1280px;
  --breakpoint-2xl: 1536px;

  /* ===== Effects & Transitions ===== */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows (gold-tinted for dark theme) */
  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.4);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.7);
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Z-Index Scale */
  --z-base:           1;
  --z-dropdown:    1000;
  --z-sticky:      1020;
  --z-fixed:       1030;
  --z-modal-backdrop: 1040;
  --z-modal:       1050;
  --z-popover:     1060;
  --z-tooltip:     1070;

  /* ===== Component-Specific ===== */
  --header-height:        80px;
  --header-height-mobile: 64px;

  --button-padding-y:     0.75rem;
  --button-padding-x:     1.5rem;
  --button-font-size:     var(--font-size-base);
  --button-border-radius: var(--radius-lg);

  --card-padding:      var(--spacing-lg);
  --card-border-radius: var(--radius-xl);
  --card-shadow:       var(--shadow-md);
  --card-shadow-hover: var(--shadow-xl);

  --input-padding-y:          0.75rem;
  --input-padding-x:          1rem;
  --input-border-radius:      var(--radius-md);
  --input-border-color:       var(--color-gray-300);
  --input-focus-border-color: var(--color-gold);

  /* ===== Gradients ===== */
  --gradient-gold:    linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  --gradient-dark:    linear-gradient(135deg, #242424 0%, #1a1a1a 100%);
  --gradient-primary: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  --gradient-accent:  linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

/* ===== Dark Mode Support (Optional) ===== */

@media (prefers-color-scheme: dark) {
  /* Dark mode variables — uncomment to activate:
  :root {
    --color-bg: #111827;
    --color-bg-light: #1f2937;
    --color-bg-dark: #374151;
    --color-text: #f9fafb;
    --color-text-light: #d1d5db;
    --color-text-muted: #9ca3af;
  }
  */
}

/* ===== Accessibility: Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
