/**
 * YDT Design Tokens
 * ==================
 * Single source of truth for all design variables.
 * Edit values here to change the entire site's appearance.
 *
 * Usage: @import 'tokens.css'; at the top of your stylesheets
 */

:root {
  /* ============================================
   * BRAND COLORS
   * Edit these to change the site's color scheme
   * ============================================ */

  --brand-navy: #0B1D39;
  --brand-gold: #C9A43E;
  --brand-cream: #D4C4A8;
  --brand-white: #FFFFFF;

  /* Navy variations */
  --brand-navy-light: #152850;
  --brand-navy-dark: #070f1f;

  /* Gold variations */
  --brand-gold-light: #d4b35a;
  --brand-gold-dark: #9a7b2f;


  /* ============================================
   * SEMANTIC COLORS
   * These reference brand colors for specific uses
   * ============================================ */

  /* Primary actions, headers, key UI */
  --color-primary: var(--brand-navy);
  --color-primary-hover: var(--brand-navy-dark);

  /* Accent for CTAs, highlights, links */
  --color-accent: var(--brand-gold);
  --color-accent-hover: var(--brand-gold-dark);

  /* Backgrounds */
  --color-bg-dark: var(--brand-navy);
  --color-bg-light: var(--brand-cream);
  --color-bg-surface: var(--brand-white);

  /* Text colors */
  --color-text-primary: var(--brand-navy);
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-text-inverse: var(--brand-white);
  --color-text-accent: var(--brand-gold);

  /* Borders */
  --color-border-light: rgba(11, 29, 57, 0.1);
  --color-border-medium: rgba(11, 29, 57, 0.2);
  --color-border-inverse: rgba(255, 255, 255, 0.15);

  /* Status colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;


  /* ============================================
   * TYPOGRAPHY
   * Edit font families and sizes here
   * ============================================ */

  /* Font families */
  --font-heading: 'Georgia', 'Times New Roman', Times, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Font sizes - using clamp for responsive scaling */
  --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: 4rem;        /* 64px */

  /* Responsive heading sizes */
  --text-hero: clamp(3rem, 6vw, 5rem);
  --text-page-title: clamp(2.5rem, 5vw, 4rem);
  --text-section-title: clamp(2rem, 4vw, 2.5rem);
  --text-card-title: clamp(1.25rem, 2vw, 1.5rem);

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

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;


  /* ============================================
   * SPACING
   * Consistent spacing scale
   * ============================================ */

  --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 padding */
  --section-padding-y: var(--space-24);
  --section-padding-x: var(--space-20);

  /* Container max widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;


  /* ============================================
   * EFFECTS
   * Shadows, transitions, borders
   * ============================================ */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 29, 57, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 29, 57, 0.12);
  --shadow-lg: 0 10px 40px rgba(11, 29, 57, 0.15);
  --shadow-xl: 0 20px 60px rgba(11, 29, 57, 0.2);

  /* Border radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;


  /* ============================================
   * COMPONENT TOKENS
   * Specific component styling
   * ============================================ */

  /* Navigation */
  --nav-height: 70px;
  --nav-bg: var(--color-primary);
  --nav-overlay-width: 450px;

  /* Buttons */
  --btn-padding-x: var(--space-8);
  --btn-padding-y: var(--space-4);
  --btn-font-size: var(--text-sm);
  --btn-font-weight: var(--font-semibold);
  --btn-letter-spacing: var(--tracking-wide);
  --btn-border-width: 2px;

  /* Cards */
  --card-padding: var(--space-10);
  --card-border: 1px solid var(--color-border-light);
  --card-shadow-hover: var(--shadow-lg);

  /* Forms */
  --input-padding: var(--space-4);
  --input-border: 1px solid var(--color-border-medium);
  --input-focus-ring: 0 0 0 3px rgba(201, 164, 62, 0.15);

  /* Hero */
  --hero-min-height: 100vh;
  --hero-gradient: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);


  /* ============================================
   * BACKWARD COMPATIBILITY ALIASES
   * These map old variable names to new tokens
   * ============================================ */

  --color-navy: var(--brand-navy);
  --color-gold: var(--brand-gold);
  --color-cream: var(--brand-cream);
  --color-white: var(--brand-white);
  --text-secondary: var(--color-text-secondary);
}


/* ============================================
 * DARK MODE OVERRIDES (optional)
 * Uncomment to enable automatic dark mode
 * ============================================ */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-surface: var(--brand-navy);
    --color-bg-light: var(--brand-navy-dark);
    --color-text-primary: var(--brand-white);
    --color-text-secondary: #a0aec0;
    --color-border-light: rgba(255, 255, 255, 0.1);
  }
}
*/
