@import url('../base/globals.css');

/* =============================================================================
   GLOBAL CONSOLIDATIONS
   ============================================================================= */

/* All section containers */
#outcome,
#offerings,
#philosophy,
#focus-areas,
#audience,
#testimonial,
#why-it-works {
  display: flex;
  height: auto;
  position: relative;
}

/* Standard container pattern */
#outcome .container,
#offerings .container,
#philosophy .container,
#focus-areas .container,
#testimonial .container,
#why-it-works .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--font-size-md);
  margin-bottom: var(--font-size-3xl);
  padding-top: var(--font-size-md);
}

/* Standard section descriptions */
.outcome-description,
#offerings .section-description,
#focus-areas .section-description,
#audience .section-description {
  margin: 0 auto var(--font-size-4xl) auto;
  text-align: center;
  max-width: 800px;
}

/* Standard card wrappers */
.focus-areas-wrapper,
.audience-wrapper,
.benefits-wrapper,
.offerings-wrapper {
  display: grid;
  gap: var(--font-size-4xl);
  margin: var(--font-size-2xl) var(--font-size-3xl) var(--font-size-4xl) var(--font-size-3xl);
  max-width: 1200px;
}

/* Glass card styling */
.focus-area,
.audience-item,
.offering-item {
  padding: var(--font-size-3xl);
  text-align: center;
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-dark);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(16px);
}

/* White card styling */
.benefit-item,
.outcome-list li {
  background: var(--brand-white);
  border: 2px solid var(--brand-blackboard);
  box-shadow: 0 2px 12px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

/* Scroll animation initial states */
.timeline-item,
.glass-card,
.step-item,
.white-card,
.testimonial-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

/* Reset transitions after animation completes */
.timeline-item.animate-in,
.glass-card.animate-in,
.step-item.animate-in,
.white-card.animate-in,
.testimonial-content.animate-in {
  transition: all 0.3s ease;
  will-change: auto;
}

/* Visible state when in view */
.timeline-item.animate-in,
.glass-card.animate-in,
.step-item.animate-in,
.white-card.animate-in,
.testimonial-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays - ONLY during scroll animation */
.timeline-item:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
.timeline-item:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
.timeline-item:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }

#offerings .glass-card:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
#offerings .glass-card:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
#offerings .glass-card:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }

.step-item:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
.step-item:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
.step-item:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }

#focus-areas .glass-card:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
#focus-areas .glass-card:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
#focus-areas .glass-card:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }
#focus-areas .glass-card:nth-child(4):not(.animation-complete) { transition-delay: 0.4s; }

#audience .glass-card:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
#audience .glass-card:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
#audience .glass-card:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }

#why-it-works .white-card:nth-child(1):not(.animation-complete) { transition-delay: 0.1s; }
#why-it-works .white-card:nth-child(2):not(.animation-complete) { transition-delay: 0.2s; }
#why-it-works .white-card:nth-child(3):not(.animation-complete) { transition-delay: 0.3s; }

/* Clear delays after animation for instant hover */
.timeline-item.animation-complete,
.glass-card.animation-complete,
.step-item.animation-complete,
.white-card.animation-complete,
.testimonial-content.animation-complete {
  transition-delay: 0s !important;
}

/* Standard section dividers */
#focus-areas .section-divider,
#offerings .section-divider {
  background-color: var(--brand-white);
}

#audience .section-divider,
#testimonial .section-divider,
#why-it-works .section-divider {
  background-color: var(--brand-blackboard);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .glass-card,
  .step-item,
  .white-card,
  .testimonial-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Gradient hover effects */
/* Set outcome cards to white gradient for smooth transitions */
.timeline-item:nth-child(1),
.timeline-item:nth-child(2),
.timeline-item:nth-child(3) {
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-white) 100%);
}

@media (hover: hover) and (pointer: fine) {
#why-it-works .white-card:nth-child(1):hover,
.timeline-item:nth-child(1):hover {
  transform: translateY(-2px);
  background: var(--gradient-green-blue);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

#why-it-works .white-card:nth-child(2):hover,
.timeline-item:nth-child(2):hover {
  transform: translateY(-2px);
  background: var(--gradient-blue-yellow);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

#why-it-works .white-card:nth-child(3):hover,
.timeline-item:nth-child(3):hover {
  transform: translateY(-2px);
  background: var(--gradient-yellow-green);
  box-shadow: 0 4px 20px var(--shadow-medium);
  }
}

/* =============================================================================
   COACHING PAGE STYLES
   ============================================================================= */

/* =============================================================================
   SECTION FORMATTING
   ============================================================================= */

/* All coaching sections use standard section pattern */
#outcome,
#offerings,
#philosophy,
#focus-areas,
#audience,
#testimonial,
#why-it-works {
  display: flex;
  height: auto;
  position: relative;
}

/* All coaching section containers */
#outcome .container,
#offerings .container,
#philosophy .container,
#focus-areas .container,
#audience .container,
#testimonial .container,
#why-it-works .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--font-size-md);
  margin-bottom: var(--font-size-3xl);
  padding-top: var(--font-size-md);
}

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

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

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

/* =============================================================================
   OUTCOME SECTION
   ============================================================================= */

#outcome {
  background: var(--brand-white);
  padding: var(--font-size-3xl) 0;
}

/* Set outcome timeline items to white gradient for smooth transitions */
#outcome .timeline-item {
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-white) 100%);
}

/* Custom gradient hover effects for timeline items */
@media (hover: hover) and (pointer: fine) {
  #outcome .timeline-item:nth-child(1):hover {
    transform: translateY(-2px);
    background: var(--gradient-green-yellow);
    box-shadow: 0 4px 20px var(--shadow-medium);
  }
  
  #outcome .timeline-item:nth-child(2):hover {
    transform: translateY(-2px);
    background: var(--gradient-yellow-blue);
    box-shadow: 0 4px 20px var(--shadow-medium);
  }
  
  #outcome .timeline-item:nth-child(3):hover {
    transform: translateY(-2px);
      background: var(--gradient-blue-green);
    box-shadow: 0 4px 20px var(--shadow-medium);
    }
  }

/* =============================================================================
   OFFERINGS SECTION
   ============================================================================= */

#offerings {
  background: var(--brand-blackboard);
  color: var(--brand-white);
  padding: var(--font-size-3xl) 0;
}

#offerings .section-description {
  color: var(--brand-white);
  padding: 0;
}

/* Custom brand-colored hover effects for glass cards */
@media (hover: hover) and (pointer: fine) {
  #offerings .glass-card:nth-child(1):hover {
    border-color: var(--brand-green);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-green);
  }

  #offerings .glass-card:nth-child(1):hover h3 {
    color: var(--brand-green);
  }

  #offerings .glass-card:nth-child(2):hover {
    border-color: var(--brand-blue);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-blue);
  }

  #offerings .glass-card:nth-child(2):hover h3 {
    color: var(--brand-blue);
  }

  #offerings .glass-card:nth-child(3):hover {
    border-color: var(--brand-yellow);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-yellow);
  }

  #offerings .glass-card:nth-child(3):hover h3 {
    color: var(--brand-yellow);
  }
}

#offerings .glass-card h3 {
  color: var(--brand-green);
  transition: all 0.3s ease;
}

/* =============================================================================
   PHILOSOPHY SECTION
   ============================================================================= */

#philosophy {
  background: var(--brand-white);
  padding: var(--font-size-3xl) 0;
}

/* Custom gradient backgrounds and directional hover effects for steps */
#philosophy .step-item:nth-child(1) {
  background: var(--gradient-green-yellow);
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  flex-direction: row;
}

#philosophy .step-item:nth-child(2) {
  background: var(--gradient-yellow-blue);
  align-self: flex-end;
  margin-right: 0;
  margin-left: auto;
  flex-direction: row-reverse;
}

#philosophy .step-item:nth-child(3) {
  background: var(--gradient-blue-green);
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  flex-direction: row;
}

#philosophy .step-item:nth-child(2) .step-content {
  text-align: right;
}

@media (hover: hover) and (pointer: fine) {
  #philosophy .step-item:nth-child(1):hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 0 8px 25px var(--brand-yellow);
  }

  #philosophy .step-item:nth-child(2):hover {
    transform: translateX(-15px) translateY(-5px);
    box-shadow: 0 8px 25px var(--brand-blue);
  }

  #philosophy .step-item:nth-child(3):hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 0 8px 25px var(--brand-green);
  }
}

/* Philosophy responsive */
@media (max-width: 1023px) {
  #philosophy .step-item {
    width: 100%;
    align-self: flex-start !important;
    flex-direction: column !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    gap: var(--font-size-lg);
  }
  
  #philosophy .step-item .step-content {
    text-align: center !important;
  }

  /* Mobile override to respect global left-alignment */
  @media (max-width: 767px) {
    #philosophy .step-item .step-content {
      text-align: left !important;
    }
  }
}

/* =============================================================================
   FOCUS AREAS SECTION
   ============================================================================= */

#focus-areas {
  background: var(--brand-blackboard);
  color: var(--brand-white);
  padding: var(--font-size-5xl) 0;
}

#focus-areas h4 {
  color: var(--brand-white);
}

#focus-areas .section-description {
  color: var(--brand-white);
}

/* Icon styling for focus area cards */
.focus-area-icon {
  margin-bottom: var(--font-size-lg);
}

.focus-area-icon img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* Custom brand-colored hover effects for focus area glass cards */
@media (hover: hover) and (pointer: fine) {
  #focus-areas .glass-card:nth-child(1):hover {
    border-color: var(--brand-blue);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-blue);
  }

  #focus-areas .glass-card:nth-child(1):hover h3 {
    color: var(--brand-blue);
  }

  #focus-areas .glass-card:nth-child(2):hover {
    border-color: var(--brand-red);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-red);
  }

  #focus-areas .glass-card:nth-child(2):hover h3 {
    color: var(--brand-red);
  }

  #focus-areas .glass-card:nth-child(3):hover {
    border-color: var(--brand-yellow);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-yellow);
  }

  #focus-areas .glass-card:nth-child(3):hover h3 {
    color: var(--brand-yellow);
  }

  #focus-areas .glass-card:nth-child(4):hover {
    border-color: var(--brand-blue);
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker), 0 0 20px var(--brand-blue);
  }

  #focus-areas .glass-card:nth-child(4):hover h3 {
    color: var(--brand-blue);
  }
}

/* Focus Areas responsive */
@media (max-width: 767px) {
  #focus-areas {
    padding: var(--font-size-3xl) 0;
  }
}

@media (max-width: 479px) {
  #focus-areas {
    padding: var(--font-size-2xl) 0;
  }
}

/* =============================================================================
   AUDIENCE SECTION
   ============================================================================= */

#audience {
  background: var(--gradient-green-yellow-v);
  padding: var(--font-size-5xl) 0;
  border-bottom: 1px solid var(--brand-blackboard);
}

/* Black text for audience glass cards */
#audience .glass-card {
  color: var(--brand-blackboard) !important;
}

#audience .glass-card h3 {
  color: var(--brand-blackboard) !important;
}

#audience .glass-card p {
  color: var(--brand-blackboard) !important;
}

/* Custom hover effects for audience glass cards - normal shadows */
@media (hover: hover) and (pointer: fine) {
  #audience .glass-card:nth-child(1):hover {
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker);
  }

  #audience .glass-card:nth-child(1):hover h3 {
    color: var(--brand-green);
  }

  #audience .glass-card:nth-child(2):hover {
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker);
  }

  #audience .glass-card:nth-child(2):hover h3 {
    color: var(--brand-blue);
  }

  #audience .glass-card:nth-child(3):hover {
    background: var(--glass-background-hover);
    box-shadow: 0 12px 40px var(--shadow-darker);
  }

  #audience .glass-card:nth-child(3):hover h3 {
    color: var(--brand-yellow);
  }
}

/* Audience responsive */
@media (max-width: 767px) {
  #audience {
    padding: var(--font-size-3xl) 0;
  }
}

@media (max-width: 479px) {
  #audience {
    padding: var(--font-size-2xl) 0;
  }
}

/* =============================================================================
   TESTIMONIAL SECTION
   ============================================================================= */

#testimonial {
  background: var(--gradient-yellow-green-v);
  color: var(--brand-blackboard);
  padding: var(--font-size-5xl) 0;
  border-bottom: 1px solid var(--brand-blackboard);
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--font-size-4xl) var(--font-size-2xl);
  background: var(--brand-white);
  color: var(--brand-blackboard);
  border: 2px solid var(--brand-blackboard);
  box-shadow: 0 2px 8px var(--shadow-light);
  border-radius: 0;
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
.testimonial-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  }
}

.testimonial-intro {
  margin-bottom: var(--font-size-3xl);
  font-style: italic;
  color: var(--brand-blackboard);
}

blockquote {
  margin: var(--font-size-3xl) 0;
  position: relative;
  font-style: italic;
  color: var(--brand-blackboard);
}

blockquote::before {
  content: '"';
  position: absolute;
  left: -var(--font-size-lg);
  top: -var(--font-size-sm);
  color: var(--brand-blackboard);
  opacity: 0.5;
}

blockquote::after {
  content: '"';
  position: absolute;
  right: -var(--font-size-lg);
  bottom: -var(--font-size-lg);
  color: var(--brand-blackboard);
  opacity: 0.5;
}

cite {
  display: block;
  margin-top: var(--font-size-lg);
  color: var(--brand-blackboard);
  opacity: 0.8;
}

/* Testimonial responsive */
@media (max-width: 767px) {
  .testimonial-content {
    padding: var(--font-size-2xl) var(--font-size-lg);
  }
}

@media (max-width: 479px) {
  .testimonial-content {
    padding: var(--font-size-xl) var(--font-size-md);
  }
}

/* =============================================================================
   WHY IT WORKS SECTION
   ============================================================================= */

#why-it-works {
  background: var(--brand-white);
  padding: var(--font-size-md) 0;
}

/* Custom directional hover effects for white cards - same as partners Philosophy */
@media (hover: hover) and (pointer: fine) {
  #why-it-works .white-card:nth-child(1):hover {
    transform: translate(-8px, -12px);
    background: var(--gradient-green-yellow);
    color: var(--brand-blackboard);
    border-color: var(--brand-blackboard);
    box-shadow: 0 12px 32px var(--shadow-darker);
  }

  #why-it-works .white-card:nth-child(2):hover {
    transform: translateY(-16px);
    background: var(--gradient-yellow-blue);
    color: var(--brand-blackboard);
    border-color: var(--brand-blackboard);
    box-shadow: 0 12px 32px var(--shadow-darker);
  }

  #why-it-works .white-card:nth-child(3):hover {
    transform: translate(8px, -12px);
    background: var(--gradient-blue-green);
    color: var(--brand-blackboard);
    border-color: var(--brand-blackboard);
    box-shadow: 0 12px 32px var(--shadow-darker);
  }

  /* Ensure text stays black on gradient backgrounds */
  #why-it-works .white-card:hover * {
    color: var(--brand-blackboard) !important;
  }
}

/* =============================================================================
   GLOBAL MOBILE RESPONSIVE - ALL SECTIONS
   ============================================================================= */

@media (max-width: 767px) {

  /* All section descriptions - left aligned without padding */
  #outcome .section-description,
  #offerings .section-description,
  #philosophy .section-description,
  #focus-areas .section-description,
  #audience .section-description,
  #testimonial .section-description,
  #why-it-works .section-description {
    width: 100%;
    text-align: left;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Step numbers - centered with bottom spacing */
  .step-number {
    align-self: center;
    margin-bottom: var(--font-size-md);
    text-align: center;
  }

  /* Focus area icons - centered with bottom padding */
  .focus-area-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .focus-area-icon img {
    width: 50px;
    height: 50px;
    padding-bottom: var(--font-size-md);
  }
}

/* =============================================================================
   CONSULTING PAGE STYLES
   ============================================================================= */
