/*
===============================================
BroadComms Service Components CSS
===============================================

Specialized styling for service page components that extends the brand
variables and provides component-specific styling for optimal presentation.

DEPENDENCIES: brand-variables.css (must be loaded first)
VERSION: 1.0 (Phase 1 Implementation)
COMPLIANCE: Master Brand Guidelines
*/

/* Import brand variables (fallback if not loaded) */
@import url('brand-variables.css');

/* =============================================
   SERVICE PAGE COMPONENT LIBRARY
   ============================================= */

/* Service Hero Section */
.service-hero {
  background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-blue) 100%);
  color: white;
  padding: 6rem 0 4rem;
}

.service-hero .ibm-partnership-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Service Cards Grid Base */
.service-cards-grid {
  background: var(--bc-light-gray);
  position: relative;
}

/* Service Cards Grid Enhancements */
.service-cards-grid .bc-content-card {
  position: relative;
  overflow: hidden;
}

.service-cards-grid .bc-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--bc-primary-alpha), transparent);
  border-bottom-left-radius: 100%;
  opacity: 0;
  transition: var(--bc-transition);
}

.service-cards-grid .bc-content-card:hover::before {
  opacity: 1;
}

/* Process Steps Enhancements */
.process-steps-section {
  position: relative;
}

.process-steps-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, var(--bc-primary-alpha) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, var(--bc-ibm-blue-alpha) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.process-step {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: 30px;
  position: relative;
  transition: var(--bc-transition);
  border: 1px solid var(--bc-border);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--bc-primary);
}

.process-step .process-number {
  background: var(--bc-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.process-step .process-icon {
  font-size: 1.5rem;
}

/* IBM Partnership Component Enhancements */
.ibm-partnership-component {
  position: relative;
}

.ibm-tech-card {
  position: relative;
  overflow: hidden;
}

.ibm-tech-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--bc-ibm-blue-alpha), transparent);
  transform: rotate(45deg);
  opacity: 0;
  transition: var(--bc-transition-slow);
}

.ibm-tech-card:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

/* Value Proposition Grid Enhancements */
.value-proposition-section {
  position: relative;
  background: linear-gradient(180deg, var(--bc-white) 0%, var(--bc-background-neutral) 100%);
}

.value-prop-card {
  position: relative;
  background: var(--bc-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-prop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bc-primary-alpha) 0%, transparent 100%);
  opacity: 0;
  transition: var(--bc-transition);
  border-radius: inherit;
}

.value-prop-card:hover::before {
  opacity: 1;
}

.value-prop-card > * {
  position: relative;
  z-index: 1;
}

/* Strategic CTA Component Enhancements */
.strategic-cta-component {
  position: relative;
}

.strategic-cta-section {
  position: relative;
  /*background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-primary) 70%, var(--bc-ibm-blue) 100%);*/
  border-radius: var(--bc-radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
  overflow: hidden;
  color: white !important;
}

.strategic-cta-section h1,
.strategic-cta-section h2,
.strategic-cta-section h3,
.strategic-cta-section h4,
.strategic-cta-section h5,
.strategic-cta-section h6,
.strategic-cta-section p,
.strategic-cta-section .lead {
  color: white !important;
}

.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.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(15, 98, 254, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.strategic-cta-section::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--bc-primary), var(--bc-ibm-blue), var(--bc-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--bc-transition);
}

.strategic-cta-section:hover::after {
  opacity: 1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Service Hero Component Enhancements */
.bc-page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-light) 40%, var(--bc-ibm-blue) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bc-page-hero .hero-stat {
  position: relative;
  transition: var(--bc-transition);
}

.bc-page-hero .hero-stat:hover {
  transform: scale(1.05);
}

.bc-page-hero .hero-stat::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--bc-transition-slow);
}

.bc-page-hero .hero-stat:hover::before {
  width: 120px;
  height: 120px;
}

/* =============================================
   COMPONENT INTERACTION ENHANCEMENTS
   ============================================= */

/* Smooth scroll behavior for internal links */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.bc-content-card:focus-within,
.value-prop-card:focus-within,
.process-step:focus-within {
  outline: 3px solid var(--bc-primary);
  outline-offset: 2px;
}

/* Loading states for components */
.component-loading {
  position: relative;
  pointer-events: none;
}

.component-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.component-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid var(--bc-border);
  border-top-color: var(--bc-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 11;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================
   RESPONSIVE COMPONENT ADJUSTMENTS
   ============================================= */

/* Mobile Optimizations */
@media (max-width: 768px) {
  .service-cards-grid .row {
    --bs-gutter-x: 1rem;
  }
  
  .process-step {
    padding: 30px 20px;
  }
  
  .value-prop-card {
    padding: 25px;
  }
  
  .strategic-cta-section {
    padding: 40px 20px;
    margin: 40px 0;
  }
  
  .bc-page-hero {
    padding: 80px 0 60px;
  }
  
  .hero-stat .stat-number {
    font-size: 2rem;
  }
}

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

/* Large Screen Enhancements */
@media (min-width: 1200px) {
  .service-cards-grid .bc-content-card {
    min-height: 380px;
  }
  

  
  .value-prop-card {
    min-height: 280px;
  }
  
  .strategic-cta-section {
    padding: 80px 60px;
  }
}

/* Ultra-wide Screen Optimizations */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .bc-page-hero {
    padding: 160px 0 140px;
  }
  
  .strategic-cta-section {
    padding: 100px 80px;
  }
}

/* =============================================
   DARK MODE SUPPORT (FUTURE-READY)
   ============================================= */

@media (prefers-color-scheme: dark) {
  :root {
    --bc-background-neutral: #1a1a1a;
    --bc-text-primary: #ffffff;
    --bc-text-secondary: #b3b3b3;
    --bc-text-muted: #666666;
    --bc-border: #333333;
    --bc-white: #1a1a1a;
  }
  
  .bc-content-card,
  .process-step,
  .value-prop-card,
  .ibm-tech-card {
    background: #2a2a2a;
    border-color: #404040;
  }
  
  .bc-content-card:hover,
  .value-prop-card:hover,
  .ibm-tech-card:hover {
    background: #333333;
  }
}

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* GPU Acceleration for Smooth Animations */
.bc-content-card,
.process-step,
.value-prop-card,
.ibm-tech-card,
.strategic-cta-section {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce paint on hover states */
.bc-content-card:hover,
.process-step:hover,
.value-prop-card:hover {
  will-change: transform, box-shadow;
}

/* Optimize background gradients */
.bc-page-hero,
.strategic-cta-section {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .bc-page-hero,
  .strategic-cta-section {
    background-attachment: scroll;
  }
}

/* =============================================
   COMPONENT STATE CLASSES
   ============================================= */

/* Loading State */
.component-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Error State */
.component-error {
  border: 2px solid #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* Success State */
.component-success {
  border: 2px solid var(--bc-primary);
  background: var(--bc-primary-alpha);
}

/* Disabled State */
.component-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(100%);
}

/* Additional Service Component Classes */
/* Value Icon Styling */
.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.value-icon-primary {
  background: var(--bc-primary-alpha);
  color: var(--bc-primary);
}

.value-icon-secondary {
  background: var(--bc-secondary-alpha);
  color: var(--bc-secondary);
}

.value-icon-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.value-icon-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Card Body Enhancements */
.card-body {
  position: relative;
  z-index: 2;
}

.card-icon {
  text-align: center;
}

.value-icon i {
  font-size: 2.5rem; 
}

.card-title {
  color: var(--bc-navy);
}

.card-text {
  color: var(--bc-gray);
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.benefits-list i {
  color: var(--bc-primary);
  margin-right: 0.5rem;
}


/* Related Services Section */
.related-services {
  background: var(--bc-light-gray);
}

.related-services .bc-content-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-services .bc-content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Related Services Cards */
.related-card {
  background: var(--bc-white);
  border-radius: var(--bc-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--bc-transition);
  border: 1px solid var(--bc-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--bc-primary);
}

.related-icon {
  width: 80px;
  height: 80px;
  background: var(--bc-primary-alpha);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--bc-transition);
}

.related-icon i {
  font-size: 2rem;
  color: var(--bc-primary);
  transition: var(--bc-transition);
}

.related-card:hover .related-icon {
  background: var(--bc-primary);
  transform: scale(1.1);
}

.related-card:hover .related-icon i {
  color: white;
}

/* FAQ Section */
.faq-section {
  background: var(--bc-white);
}

.faq-section .accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
}

.faq-section .accordion-item {
  background: var(--bc-white);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--bc-transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section .accordion-item:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-section .accordion-header {
  margin: 0;
}

.faq-section .accordion-button {
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: var(--bc-navy);
  font-size: 1.1rem;
  transition: var(--bc-transition);
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--bc-primary-alpha);
  color: var(--bc-primary);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 0.25rem var(--bc-primary-alpha);
}

.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f62fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: var(--bc-transition);
}

.faq-section .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.faq-section .accordion-body {
  padding: 0 2rem 2rem 2rem;
  color: var(--bc-gray);
  line-height: 1.6;
}
