/* ==============================================
   ELMAN PEACE - GLOBAL DESIGN TOKENS
   Implementation for Bricks Builder WordPress Theme
   ============================================== */

/* CSS Custom Properties for Bricks Builder */
:root {
  /* ==========================================
     CORE COLOR PALETTE (From Comprehensive Design System)
     ========================================== */
  /* Primary Brand Colors */
  --ep-deep-teal: #1A3331;
  --ep-rich-teal: #2D4A4A;
  --ep-sage-green: #3A5F5A;
  --ep-forest-green: #2C4A42;
  --ep-warm-beige: #D4B896;
  --ep-gold-accent: #C5935B;
  --ep-soft-cream: #F8F5F0;
  --ep-warm-white: #FEFCF8;
  --ep-charcoal: #2B2B2B;
  --ep-dark-navy: #1A1A33;
  
  /* Sophisticated Neutrals */
  --ep-warm-gray: #8B8680;
  --ep-light-gray: #E5E1DC;
  --ep-off-white: #FAF8F5;
  --ep-pure-white: #FFFFFF;
  --ep-pure-black: #000000;
  
  /* Text Color System */
  --ep-text-primary: #FEFCF8;
  --ep-text-secondary: #E8E3DD;
  --ep-text-muted: #B8B3AD;
  --ep-text-dark: #2B2B2B;
  --ep-text-charcoal: #444444;
  
  /* Extended Accent Colors */
  --ep-amber-gold: #C5935B;
  --ep-warm-orange: #D17B47;
  --ep-coral: #E67E50;
  --ep-soft-blue: #7BA7BC;
  --ep-emerald: #4A8B75;
  --ep-terracotta: #C67855;
  --ep-rose-gold: #E8B4A0;
  --ep-sage: #9CAF88;
  
  /* ==========================================
     TYPOGRAPHY SYSTEM
     ========================================== */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hero: 'Poppins', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */
  --font-size-7xl: 4.5rem;    /* 72px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.05;
  --line-height-snug: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* ==========================================
     SPACING SYSTEM
     ========================================== */
  --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 */
  
  /* ==========================================
     COMPONENT TOKENS
     ========================================== */
  /* Buttons */
  --btn-primary-bg: linear-gradient(135deg, var(--ep-amber-gold) 0%, var(--ep-warm-orange) 100%);
  --btn-primary-color: var(--ep-pure-white);
  --btn-primary-hover: linear-gradient(135deg, var(--ep-warm-orange) 0%, var(--ep-coral) 100%);
  --btn-secondary-bg: transparent;
  --btn-secondary-color: var(--ep-deep-teal);
  --btn-secondary-border: 2px solid var(--ep-deep-teal);
  --btn-border-radius: 0.5rem;
  --btn-padding: var(--space-4) var(--space-8);
  
  /* Cards */
  --card-bg: var(--ep-warm-white);
  --card-border-radius: 0.75rem;
  --card-padding: var(--space-8);
  --card-shadow: 0 4px 6px -1px rgba(26, 51, 49, 0.1), 0 2px 4px -1px rgba(26, 51, 49, 0.06);
  --card-hover-shadow: 0 10px 15px -3px rgba(26, 51, 49, 0.1), 0 4px 6px -2px rgba(26, 51, 49, 0.05);
  
  /* Sections */
  --section-padding: var(--space-20);
  --section-padding-mobile: var(--space-16);
  --content-max-width: 1200px;
  
  /* Navigation */
  --nav-bg: var(--ep-warm-white);
  --nav-text: var(--ep-text-dark);
  --nav-hover: var(--ep-amber-gold);
  --nav-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  
  /* Overlays */
  --overlay-dark: rgba(26, 51, 49, 0.7);
  --overlay-light: rgba(248, 245, 240, 0.9);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-default: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Breakpoints (for use in media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ==============================================
   BRICKS BUILDER SPECIFIC OVERRIDES
   ============================================== */

/* Body and base styles */
body {
  font-family: var(--font-body);
  color: var(--ep-text-dark);
  line-height: var(--line-height-relaxed);
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--ep-text-dark);
}

/* Bricks specific utility classes */
.ep-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border: none;
  border-radius: var(--btn-border-radius);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-default);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.ep-btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.ep-btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: var(--btn-secondary-border);
  border-radius: var(--btn-border-radius);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-default);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.ep-btn-secondary:hover {
  background: var(--ep-deep-teal);
  color: var(--ep-pure-white);
  transform: translateY(-2px);
}

/* Section utility classes */
.ep-section-dark {
  background-color: var(--ep-deep-teal);
  color: var(--ep-text-primary);
}

.ep-section-light {
  background-color: var(--ep-soft-cream);
  color: var(--ep-text-dark);
}

.ep-section-hero {
  background: linear-gradient(135deg, var(--ep-deep-teal) 0%, var(--ep-rich-teal) 100%);
  color: var(--ep-text-primary);
  position: relative;
}

/* Hero text styling */
.ep-hero-text {
  font-family: var(--font-hero);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--ep-text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card components */
.ep-card {
  background: var(--card-bg);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-default);
}

.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

/* Navigation overrides */
.brx-nav-menu a {
  color: var(--nav-text);
  transition: color var(--transition-default);
}

.brx-nav-menu a:hover {
  color: var(--nav-hover);
}

/* Responsive typography */
@media (max-width: 768px) {
  .ep-hero-text {
    font-size: var(--font-size-3xl);
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
}

/* ==============================================
   BRICKS BUILDER ELEMENT OVERRIDES
   ============================================== */

/* Override Bricks default colors with our design tokens */
.brx-section {
  --color-primary: var(--ep-deep-teal);
  --color-secondary: var(--ep-amber-gold);
  --color-text: var(--ep-text-dark);
  --color-background: var(--ep-warm-white);
}

/* Text elements */
.brx-text {
  font-family: var(--font-body);
  color: var(--ep-text-dark);
}

.brx-heading {
  font-family: var(--font-display);
  color: var(--ep-text-dark);
}

/* Button elements */
.brx-button {
  border-radius: var(--btn-border-radius);
  transition: all var(--transition-default);
}

/* Container elements */
.brx-container {
  max-width: var(--content-max-width);
}