/*
===============================================
BroadComms Brand Variables - Component Library
===============================================

This file contains all brand-compliant CSS variables and component styles
for the BroadComms service page component library. Ensures 100% brand
consistency across all service pages and components.

VERSION: 1.0 (Phase 1 Implementation)
COMPLIANCE: Master Brand Guidelines
LAST UPDATED: January 2025
*/

/* =============================================
   BRAND VARIABLES (CSS Custom Properties)
   ============================================= */

:root {
  /* Brand Colors - Approved Palette */
  --bc-primary: #19700a;
  --bc-primary-dark: #0f4f07;
  --bc-primary-light: #2d8a1f;
  --bc-primary-alpha: rgba(25, 112, 10, 0.1);
  
  /* IBM Partnership Colors */
  --bc-ibm-blue: #0f62fe;
  --bc-ibm-blue-dark: #0043ce;
  --bc-ibm-blue-light: #4589ff;
  --bc-ibm-blue-alpha: rgba(15, 98, 254, 0.1);
  
  /* Neutral Colors */
  --bc-white: #ffffff;
  --bc-black: #000000;
  --bc-background-neutral: #f8f9fa;
  --bc-background-dark: #212529;
  --bc-border: #e9ecef;
  --bc-border-dark: #dee2e6;
  
  /* Text Colors */
  --bc-text-primary: #2c3e50;
  --bc-text-secondary: #6c757d;
  --bc-text-muted: #8b949e;
  --bc-text-light: #adb5bd;
  
  /* Typography - IBM Plex Sans Hierarchy */
  --bc-font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bc-font-secondary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bc-font-display: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bc-font-mono: 'IBM Plex Mono', 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
  
  /* Font Weights */
  --bc-font-weight-light: 300;
  --bc-font-weight-normal: 400;
  --bc-font-weight-medium: 500;
  --bc-font-weight-semibold: 600;
  --bc-font-weight-bold: 700;
  --bc-font-weight-black: 900;
  
  /* Spacing Scale */
  --bc-spacing-xs: 0.25rem;   /* 4px */
  --bc-spacing-sm: 0.5rem;    /* 8px */
  --bc-spacing-md: 1rem;      /* 16px */
  --bc-spacing-lg: 1.5rem;    /* 24px */
  --bc-spacing-xl: 2rem;      /* 32px */
  --bc-spacing-2xl: 3rem;     /* 48px */
  --bc-spacing-3xl: 4rem;     /* 64px */
  --bc-spacing-4xl: 6rem;     /* 96px */
  
  /* Shadows and Effects */
  --bc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --bc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --bc-shadow-focus: 0 0 0 3px rgba(25, 112, 10, 0.15);
  --bc-shadow-primary: 0 8px 25px rgba(25, 112, 10, 0.25);
  --bc-shadow-ibm: 0 8px 25px rgba(15, 98, 254, 0.25);
  
  /* Transitions */
  --bc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bc-transition-fast: all 0.15s ease-out;
  --bc-transition-slow: all 0.5s ease-in-out;
  
  /* Border Radius */
  --bc-radius-sm: 8px;
  --bc-radius-md: 12px;
  --bc-radius-lg: 20px;
  --bc-radius-xl: 25px;
  --bc-radius-full: 50px;
  
  /* Z-Index Scale */
  --bc-z-dropdown: 1000;
  --bc-z-sticky: 1020;
  --bc-z-fixed: 1030;
  --bc-z-modal-backdrop: 1040;
  --bc-z-modal: 1050;
  --bc-z-popover: 1060;
  --bc-z-tooltip: 1070;
}

/* =============================================
   BRAND-COMPLIANT COMPONENT STYLES
   ============================================= */

/* Page Hero Styles */
.bc-page-hero {
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-light) 50%, var(--bc-ibm-blue) 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  font-family: var(--bc-font-primary);
}

.bc-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 98, 254, 0.15) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* IBM Partnership Badge */
.ibm-partnership-badge {
  background: linear-gradient(135deg, var(--bc-ibm-blue) 0%, var(--bc-ibm-blue-light) 100%);
  color: white;
  border-radius: var(--bc-radius-full);
  padding: 8px 20px;
  font-family: var(--bc-font-primary);
  font-weight: var(--bc-font-weight-semibold);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: var(--bc-shadow-ibm);
  display: inline-block;
  transition: var(--bc-transition);
}

.ibm-partnership-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(15, 98, 254, 0.4);
}

/* Hero Statistics */
.hero-stat {
  padding: 15px;
}

.stat-number {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: var(--bc-font-primary);
  font-weight: var(--bc-font-weight-bold);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: var(--bc-font-weight-medium);
  font-family: var(--bc-font-secondary);
}

/* Content Cards */
.bc-content-card {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
  transition: var(--bc-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bc-border);
  height: 100%;
}

.bc-content-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bc-shadow-hover);
  border-color: var(--bc-primary);
}

.bc-content-card .card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bc-primary), var(--bc-primary-light));
  border-radius: var(--bc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2rem;
  color: white;
  box-shadow: var(--bc-shadow-primary);
  transition: var(--bc-transition);
}

.bc-content-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(25, 112, 10, 0.4);
}

/* Button Styles */
.btn-bc-primary {
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-light) 100%);
  border: none;
  color: white;
  font-family: var(--bc-font-primary);
  font-weight: var(--bc-font-weight-semibold);
  transition: var(--bc-transition);
  box-shadow: var(--bc-shadow-primary);
  border-radius: var(--bc-radius-sm);
  padding: 12px 24px;
}

.btn-bc-primary:hover {
  background: linear-gradient(135deg, var(--bc-primary-dark) 0%, var(--bc-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 112, 10, 0.4);
  color: white;
}

.btn-bc-primary:focus {
  box-shadow: var(--bc-shadow-focus);
}

.btn-bc-secondary {
  background: transparent;
  border: 2px solid var(--bc-primary);
  color: var(--bc-primary);
  font-family: var(--bc-font-primary);
  font-weight: var(--bc-font-weight-semibold);
  transition: var(--bc-transition);
  border-radius: var(--bc-radius-sm);
  padding: 10px 24px;
}

.btn-bc-secondary:hover {
  background: var(--bc-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-bc-secondary:focus {
  box-shadow: var(--bc-shadow-focus);
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 30px;
  font-family: var(--bc-font-secondary);
  color: var(--bc-text-secondary);
  font-size: 0.95rem;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bc-primary);
  font-weight: bold;
  font-size: 16px;
}

/* Strategic CTA Section */
.strategic-cta-section {
  background: linear-gradient(135deg, var(--bc-text-primary) 0%, var(--bc-primary) 100%);
  border-radius: var(--bc-radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.strategic-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Display Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-family: var(--bc-font-primary);
  font-weight: var(--bc-font-weight-bold);
  color: var(--bc-text-primary);
  line-height: 1.2;
}

.lead {
  font-family: var(--bc-font-secondary);
  font-weight: var(--bc-font-weight-normal);
  line-height: 1.6;
}

/* Card Styles */
.card {
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  box-shadow: var(--bc-shadow);
  transition: var(--bc-transition);
}

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

/* Badge Styles */
.badge.bg-success {
  background: var(--bc-primary-light) !important;
}

.badge.bg-info {
  background: var(--bc-ibm-blue) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, var(--bc-primary), var(--bc-primary-light)) !important;
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: var(--bc-shadow-focus);
  border-color: var(--bc-primary);
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  :root {
    --bc-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --bc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
    --bc-border: #000000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --bc-transition: none;
    --bc-transition-fast: none;
    --bc-transition-slow: none;
  }
  
  .bc-content-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* =============================================
   RESPONSIVE DESIGN UTILITIES
   ============================================= */

/* Mobile-first Spacing */
@media (max-width: 576px) {
  :root {
    --bc-spacing-xl: 1.5rem;
    --bc-spacing-2xl: 2rem;
    --bc-spacing-3xl: 2.5rem;
    --bc-spacing-4xl: 3rem;
  }
  
  .bc-page-hero {
    padding: 80px 0 60px;
  }
  
  .strategic-cta-section {
    padding: 40px 20px;
    margin: 40px 0;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .bc-page-hero {
    padding: 100px 0 80px;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .bc-page-hero {
    padding: 140px 0 120px;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  .bc-page-hero {
    background: var(--bc-white) !important;
    color: var(--bc-black) !important;
    padding: 20px 0 !important;
  }
  
  .btn,
  .strategic-cta-section {
    display: none !important;
  }
  
  .bc-content-card {
    border: 2px solid var(--bc-border) !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
