/* Local font definitions - Montserrat */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-regular.woff2') format('woff2'),
       url('../fonts/montserrat-regular.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-medium.woff2') format('woff2'),
       url('../fonts/montserrat-medium.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-semibold.woff2') format('woff2'),
       url('../fonts/montserrat-semibold.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-bold.woff2') format('woff2'),
       url('../fonts/montserrat-bold.woff') format('woff');
}

/* 
 * Flask App Variables CSS
 * Design tokens for consistent styling across the Flask frontend
 * Maintains existing color scheme while adding modern design system
 */

:root {
  /* Colors - Preserving existing Flask app scheme */
  --primary-color: #333333;
  --primary-dark: #222222;         /* Darker version for hover states */
  --accent-color: #e5d6c9;         /* Existing accent */
  --secondary-accent: #c6e0db;     /* Existing secondary */
  --warning-color: #FF9500;        /* Orange */
  --success-color: #27ae60;        /* Green - matches existing */
  --danger-color: #e74c3c;         /* Red - matches existing */
  
  /* Text colors - preserving existing */
  --text-color: #333;              /* Existing text color */
  --text-primary: #222222;         /* Dark text - matches existing --dark-text */
  --text-secondary: #333333;       /* Regular text */
  --text-tertiary: #666;           /* For captions, metadata */
  --text-light: #888;              /* For light text */
  --dark-text: #222222;            /* Preserving existing variable */
  
  /* Background colors - preserving existing */
  --bg-light: #ffffff;             /* Main background */
  --bg-light-alt: #f5f5f5;         /* Secondary background - matches existing --light-bg */
  --bg-card: #ffffff;              /* Card background */
  --light-bg: #f5f5f5;             /* Preserving existing variable */
  --light-accent: #f8f1ed;         /* Preserving existing variable */
  --border-light: #eee;            /* Light borders - matches existing usage */
  
  /* Spacing - Standardized scale from Amplify */
  --spacing-xs: 4px;
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Typography - All fonts now use Montserrat */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-serif: 'Montserrat', 'Georgia', serif;     /* Montserrat first, Georgia fallback */
  --font-family-sans: 'Montserrat', 'Arial', sans-serif;   /* Montserrat first, Arial fallback */
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --font-size-xxxl: 48px;
  --font-size-jumbo: 64px;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  
  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Border Radius */
  --border-radius-sm: 4px;          /* Matches existing usage */
  --border-radius-md: 8px;          /* Matches existing usage */
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;
  
  /* Shadows - Subtle shadows matching existing style */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-indices */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* Global font application - Ensure Montserrat is used everywhere */
* {
  font-family: var(--font-family) !important;
}

/* Specific overrides for elements that might inherit different fonts */
body, 
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
.nav-links, .hero-title, .hero-text, .feature-title,
.section-title, .section-subtitle {
  font-family: var(--font-family) !important;
}