/**
 * Executive Business Value Section Styles
 * Professional, sophisticated design for executive audiences
 * 
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* Executive Business Value Section - Light Theme */
.executive-business-value-section {
  background: var(--bg-primary);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle section dividers for light theme */
.executive-business-value-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-subtle), 
    transparent
  );
  animation: quantumScanTop 8s ease-in-out infinite;
}

.executive-business-value-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--border-light), 
    transparent
  );
  animation: quantumScanBottom 6s ease-in-out infinite reverse;
}

@keyframes quantumScanTop {
  0%, 100% { opacity: 0.2; transform: scaleX(0.5); }
  50% { opacity: 0.4; transform: scaleX(1); }
}

@keyframes quantumScanBottom {
  0%, 100% { opacity: 0.1; transform: scaleX(0.3); }
  50% { opacity: 0.3; transform: scaleX(0.8); }
}

/* Section Header */
.executive-section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.executive-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.executive-opening-statement {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--primary);
  max-width: 75ch;
  margin: 0 auto;
}

/* Executive Value Grid */
.executive-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Executive Value Cards - Enhanced Apple-Inspired Light Theme */
.executive-value-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  overflow: hidden;
  box-shadow: 
    0 2px 20px rgba(0, 0, 0, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.executive-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.executive-value-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 122, 204, 0.06),
    0 0 0 1px var(--primary-subtle),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

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

/* Card Icons - Teenage Engineering Precision with enhanced animation */
.value-card-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary-light-bg), var(--primary-subtle));
  border: 2px solid var(--primary-subtle);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--primary);
  transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 
    0 4px 12px rgba(0, 122, 204, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  animation: iconPulse 6s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.8s);
  animation-fill-mode: both;
  transform-origin: center center;
  transform: scale(1) translate(0, 0);
}

.executive-value-card:hover .value-card-icon {
  background: linear-gradient(135deg, var(--primary-medium-bg), var(--primary-light-bg));
  border-color: var(--primary);
  color: var(--primary-dark);
  /* transform: scale(1.05) translate(0, 0); */
  box-shadow: 
    0 8px 20px rgba(0, 122, 204, 0.15),
    0 0 0 4px var(--primary-subtle),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  animation-play-state: paused;
}

/* Card Titles */
.value-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

/* Card Descriptions */
.value-card-description {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  flex-grow: 1;
}

/* Executive CTA Buttons - Teenage Engineering Precision */
.executive-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid var(--primary);
  color: var(--text-inverse);
  padding: 1rem 2.5rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  min-width: 200px;
  outline: none;
  box-shadow: 
    0 4px 12px rgba(0, 122, 204, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  margin-top: auto;
  align-self: center;
}

.executive-cta-button:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  border-color: var(--primary-hover);
  color: var(--text-inverse);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(0, 122, 204, 0.3),
    0 4px 12px rgba(0, 122, 204, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  text-decoration: none;
}

.executive-cta-button:focus {
  box-shadow: 0 0 0 3px var(--border-focus);
}

.executive-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 122, 204, 0.2);
}

/* Subtle ripple effect for light theme */
.executive-cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, 
    var(--primary-light) 0%, 
    transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.executive-cta-button:active::after {
  opacity: 0.2;
  transform: scale(1);
}

/* Executive Closing Statement */
.executive-closing-statement {
  text-align: center;
  margin-top: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.executive-closing-statement p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.9;
}

/* Enhanced data flow animation with breathing effect */
.executive-value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary) 0%,
    var(--primary-light) 50%,
    var(--primary) 100%,
    transparent);
  animation: dataFlowScan 6s infinite;
  animation-delay: calc(var(--card-index, 0) * 0.4s);
  opacity: 0.8;
  border-radius: 1px;
}

/* Enhanced breathing animation for cards - more visible */
.executive-value-card {
  animation: cardBreathe 4s ease-in-out infinite;
  animation-delay: calc(var(--card-index, 0) * 0.2s);
}

@keyframes cardBreathe {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 2px 20px rgba(0, 0, 0, 0.02),
      0 1px 0 rgba(255, 255, 255, 0.05) inset,
      0 1px 3px rgba(0, 0, 0, 0.06);
  }
  50% { 
    transform: scale(1.015);
    box-shadow: 
      0 6px 30px rgba(0, 0, 0, 0.04),
      0 2px 8px rgba(0, 122, 204, 0.04),
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 3px 10px rgba(0, 0, 0, 0.1);
  }
}

@keyframes dataFlowScan {
  0%, 70% { 
    left: -100%; 
    opacity: 0; 
    transform: scaleX(0.3);
  }
  10%, 60% { 
    left: 100%; 
    opacity: 0.8; 
    transform: scaleX(1);
  }
  100% { 
    left: 100%; 
    opacity: 0; 
    transform: scaleX(0.3);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    box-shadow: 
      0 4px 12px rgba(0, 122, 204, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.2) inset;
  }
  50% {
    transform: scale(1.03) translate(0, 0);
    box-shadow: 
      0 5px 14px rgba(0, 122, 204, 0.1),
      0 0 0 1px rgba(0, 122, 204, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.25) inset;
  }
}

/* Card index variables for staggered animations */
.executive-value-card[data-service="ai-implementation"] {
  --card-index: 0;
}

.executive-value-card[data-service="ai-tools"] {
  --card-index: 1;
}

.executive-value-card[data-service="acquisitions"] {
  --card-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .executive-business-value-section {
    padding: 3rem 0;
  }
  
  .executive-section-header {
    margin-bottom: 3rem;
  }
  
  .executive-headline {
    font-size: 2rem;
  }
  
  .executive-opening-statement {
    font-size: 1.1rem;
  }
  
  .executive-value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
  }
  
  .executive-value-card {
    padding: 2rem;
  }
  
  .executive-value-card:hover {
    transform: none;
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    box-shadow: 0 4px 12px var(--glass-shadow-light);
  }
  
  .value-card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .executive-closing-statement {
    margin-top: 3rem;
  }
}

/* Tablet Layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .executive-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .executive-value-card[data-service="acquisitions"] {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .executive-business-value-section::before,
  .executive-business-value-section::after,
  .executive-value-card::before,
  .executive-value-card::after,
  .executive-value-card {
    animation: none;
  }
  
  .value-card-icon {
    animation: none;
  }
  
  .executive-value-card {
    transition: none;
  }
  
  .executive-cta-button {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .executive-cta-button::after {
    display: none;
  }
}

@media (prefers-contrast: high) {
  .executive-value-card {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 1px var(--primary);
  }
  
  .executive-cta-button {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--text-inverse);
  }
  
  .executive-cta-button:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
  }
}

/* Focus Management */
.executive-cta-button:focus-visible {
  outline: 3px solid var(--color-quantum-primary);
  outline-offset: 2px;
}

.executive-value-card:focus-within {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}