/* ==========================================================================
   AlamoSites Design System - Variables
   ========================================================================== */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */
  
  /* Primary */
  --color-deep-slate: #1A3A4A;
  --color-river-teal: #2C5F7C;
  
  /* Accent */
  --color-terracotta: #B85C38;
  --color-terracotta-hover: #9A4D2F;
  --color-terracotta-light: rgba(184, 92, 56, 0.1);
  --color-sage: #87917D;
  --color-sage-light: rgba(135, 145, 125, 0.15);
  
  /* Neutrals */
  --color-limestone: #D4C5B9;
  --color-sandstone: #E8DFD0;
  --color-warm-white: #FAF9F6;
  --color-soft-gray: #6B7280;
  --color-charcoal: #2B2D2E;
  --color-white: #FFFFFF;
  
  /* Semantic */
  --color-success: #4A7C59;
  --color-error: #C54B4B;
  --color-warning: #D4A853;
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes - Fluid */
  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.5rem, 3vw, 2rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-h4: 1.125rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  
  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* ========================================
     SPACING
     ======================================== */
  
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */
  
  /* Section Spacing */
  --section-padding: var(--space-4xl);
  --section-padding-mobile: var(--space-2xl);
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: var(--space-lg);
  
  /* Grid */
  --grid-gap: var(--space-xl);
  --grid-gap-mobile: var(--space-lg);
  
  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-thick: 2px;
  
  /* ========================================
     SHADOWS
     ======================================== */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-slower: 0.5s ease;
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* Dark mode variables (for dark sections) */
.theme-dark {
  --color-text: var(--color-warm-white);
  --color-text-muted: rgba(250, 249, 246, 0.7);
  --color-bg: var(--color-deep-slate);
}
