/*==================================================
  Services Overview Page Styles
  Minimal overrides to globals.css
==================================================*/

/* Journey Section - Clean white section */
#journey .journey-content {
  max-width: 800px;
  margin: 0 auto;
}

#journey .journey-step {
  margin-bottom: var(--font-size-2xl);
}

#journey .journey-step:last-child {
  margin-bottom: var(--font-size-xl);
}

#journey .journey-step h3 {
  margin-bottom: var(--font-size-sm);
}

#journey .journey-conclusion {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}

/* Timeline Hover Effects for Journey Section */
@media (hover: hover) and (pointer: fine) {
  #journey .timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    background: var(--brand-blackboard);
    color: var(--brand-white);
  }
  
  #journey .timeline-item:hover p {
    color: var(--brand-white);
  }
  
  /* Brand Color Cycling for Timeline Items */
  #journey .timeline-item:nth-child(1):hover {
    border-color: var(--brand-green);
  }
  
  #journey .timeline-item:nth-child(1):hover h3 {
    color: var(--brand-green);
  }
  
  #journey .timeline-item:nth-child(2):hover {
    border-color: var(--brand-blue);
  }
  
  #journey .timeline-item:nth-child(2):hover h3 {
    color: var(--brand-blue);
  }
  
  #journey .timeline-item:nth-child(3):hover {
    border-color: var(--brand-yellow);
  }
  
  #journey .timeline-item:nth-child(3):hover h3 {
    color: var(--brand-yellow);
  }
  
  #journey .timeline-item:nth-child(4):hover {
    border-color: var(--brand-green);
  }
  
  #journey .timeline-item:nth-child(4):hover h3 {
    color: var(--brand-green);
  }
}

/* Services Section - Uses existing alternating content from globals */
#services .alternating-content-item .content-wrapper a.btn {
  margin-top: var(--font-size-md);
}

/* =============================================================================
    HERO SECTION
    ============================================================================= */

#hero {
  background: var(--gradient-green-blue-h);
}

@media (max-width: 1023px) {
  #hero {
    background: var(--brand-blue);
  }
}

@media (max-width: 767px) {
  #journey .section-description {
    text-align: left;
  }
  
  #journey .journey-conclusion {
    text-align: left;
  }
}

@media (max-width: 479px) {
  #journey .section-description {
    text-align: left;
  }
}

/* =============================================================================
   SERVICES SECTION
   ============================================================================= */

   #services .alternating-content-item {
    cursor: pointer;
  }
  
  #services .alternating-content-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--brand-blackboard);
    background: transparent;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Staggered animation delays - ONLY during scroll animation */
  #services .alternating-content-item:nth-child(1):not(.animation-complete) { 
    transition-delay: 0.1s; 
  }
  
  #services .alternating-content-item:nth-child(2):not(.animation-complete) { 
    transition-delay: 0.2s; 
  }
  
  #services .alternating-content-item:nth-child(3):not(.animation-complete) { 
    transition-delay: 0.3s; 
  }
  
  /* Services hover effects */
  @media (hover: hover) and (pointer: fine) {
    #services .alternating-content-item:hover {
      transform: translateY(-8px);
      border: 2px solid var(--brand-blackboard);
      box-shadow: 0 8px 25px var(--shadow-medium);
    }
  
    #services .alternating-content-item:hover::before {
      opacity: 1;
    }
  
    /* Brand Color Cycling for Services */
    #services .alternating-content-item:hover {
      border-color: var(--brand-blackboard);
    }
  
    #services .alternating-content-item:hover::before {
      border-color: var(--brand-blackboard);
    }
  }
  
  /* Mobile overrides - disable services hover effects */
  @media (max-width: 767px) {
    #services .alternating-content-item {
      cursor: default;
    }
  
    #services .alternating-content-item:hover {
      transform: none !important;
      border: 2px solid transparent !important;
      box-shadow: none !important;
      transition: none !important;
    }
  
    #services .alternating-content-item:hover::before {
      opacity: 0 !important;
      transition: none !important;
    }
  }
  