/* ============================================
   Solutions Page Specific Styles
   Updated for Insight-Driven Modernization
   ============================================ */

/* ============================================
   SOLUTIONS HERO - Image Background Style
   Based on Insights/About hero pattern
   ============================================ */

.solutions-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.solutions-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.solutions-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.solutions-hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Fallback gradient */
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2744 100%);
  z-index: -1;
}

.solutions-hero-overlay {
  position: absolute;
  inset: 0;
  /* Left-to-right gradient: solid on left for text, fading to reveal image on right */
  background: linear-gradient(
    90deg,
    rgba(26, 54, 93, 0.92) 0%,
    rgba(26, 54, 93, 0.85) 25%,
    rgba(26, 54, 93, 0.65) 50%,
    rgba(26, 54, 93, 0.4) 75%,
    rgba(26, 54, 93, 0.2) 100%
  );
  z-index: 1;
}

.solutions-hero .container {
  position: relative;
  z-index: 2;
}

.solutions-hero-content {
  max-width: 750px;
}

.solutions-hero-content .badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.solutions-hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.solutions-hero-content .lead {
  color: var(--color-gray-300);
  font-size: var(--text-xl);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .solutions-hero {
    min-height: 420px;
    padding-top: calc(72px + var(--space-12));
  }
  
  .solutions-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(26, 54, 93, 0.75) 0%,
      rgba(26, 54, 93, 0.85) 50%,
      rgba(26, 54, 93, 0.9) 100%
    );
  }
  
  .solutions-hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .solutions-hero-content h1 {
    font-size: var(--text-3xl);
  }
  
  .solutions-hero-content .lead {
    font-size: var(--text-lg);
  }
}

/* ============================================
   INSIGHT INTRO SECTION - Journey Flow
   ============================================ */

.insight-intro-section {
  background: var(--color-white);
  padding: var(--space-16) 0;
}

.insight-intro {
  max-width: 1100px;
  margin: 0 auto;
}

.insight-intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.insight-intro-content h2 {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.insight-intro-content .lead {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Journey Flow - Horizontal on desktop, vertical on mobile */
.insight-journey {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.journey-step {
  flex: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
}

.journey-step:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.journey-icon {
  width: 72px;
  height: 72px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.journey-step:hover .journey-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.journey-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.journey-content h4 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.journey-content p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Journey Connector Arrows */
.journey-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.journey-connector svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* Journey Responsive */
@media (max-width: 1024px) {
  .insight-journey {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .journey-connector {
    width: 100%;
    height: 40px;
    transform: rotate(90deg);
  }
  
  .journey-step {
    padding: var(--space-6);
  }
}

@media (max-width: 640px) {
  .insight-intro-content h2 {
    font-size: var(--text-2xl);
  }
  
  .journey-icon {
    width: 60px;
    height: 60px;
  }
  
  .journey-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   LEGACY PAGE HERO (kept for reference)
   ============================================ */

.page-hero {
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero .lead {
  max-width: 700px;
  margin: 0 auto;
}

/* Platform Overview */
.platform-overview {
  max-width: 700px;
  margin: 0 auto;
}

.platform-diagram {
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
}

.platform-diagram svg {
  width: 100%;
  height: auto;
}

/* Product Section */
.product-section {
  max-width: 900px;
  margin: 0 auto;
}

.product-header {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  margin-bottom: var(--space-8);
}

.product-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.section-gray .product-icon {
  background: var(--color-gray-100);
}

.product-header h2 {
  margin-bottom: var(--space-2);
}

.product-header .lead {
  margin-bottom: 0;
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .product-features {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.section-gray .feature-item {
  background: var(--color-white);
}

.feature-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h5 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* Product Quote */
.product-quote {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.product-quote blockquote {
  font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.product-quote cite {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  font-style: normal;
}

/* Product Stats */
.product-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .product-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-stat {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-gray-100);
  border-radius: var(--border-radius);
}

.product-stat .stat-num {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.product-stat .stat-text {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-stat.highlight {
  background: var(--color-primary);
}

.product-stat.highlight .stat-num {
  color: var(--color-accent-light);
}

.product-stat.highlight .stat-text {
  color: var(--color-gray-400);
}

/* Agents Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

.agent-card {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}

.agent-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.agent-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* Use Cases */
.use-cases {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.use-cases h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.use-case {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.use-case-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}

.use-case h5 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.use-case p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* ============================================
   Industries Section - Consistent margins
   ============================================ */

/* Apply max-width to section header and grid in industries section */
.section > .container > .section-header {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section > .container > .grid.grid-4 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Industry Cards */
.industry-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-gray-100);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.industry-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.industry-card svg {
  margin: 0 auto var(--space-4);
}

.industry-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.industry-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .product-header {
    flex-direction: column;
    text-align: center;
  }
  
  .product-icon {
    margin: 0 auto;
  }
}
