/* ==========================================================================
   SHYNE LIVESTOCK FARMS VENTURE - Process Page Specific Styles
   ========================================================================== */

/* ==========================================================================
   1. Breadcrumb Section
   ========================================================================== */
.breadcrumb-section {
  background-color: var(--color-gray-50);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--color-secondary);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--color-gray-900);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: var(--spacing-xs);
  color: var(--color-gray-400);
}

/* ==========================================================================
   2. Process Hero Section
   ========================================================================== */
.process-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

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

.process-hero-section .hero-background picture,
.process-hero-section .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(15, 61, 34, 0.95) 0%, 
    rgba(15, 61, 34, 0.85) 40%, 
    rgba(15, 61, 34, 0.5) 100%
  );
  z-index: 1;
}

.process-hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: var(--spacing-4xl) 0;
}

.process-hero-section .hero-headline {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.process-hero-section .hero-text-block p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.process-hero-section .hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  max-width: 400px;
}

/* ==========================================================================
   3. Process Introduction Section
   ========================================================================== */
.process-intro-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
  text-align: center;
}

.process-intro-section .section-header {
  max-width: 850px;
  margin: 0 auto;
}

.process-intro-section .section-intro p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   4. Supply Process Timeline Section
   ========================================================================== */
.process-steps-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-50);
}

.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

/* Desktop Central Line */
@media (min-width: 1024px) {
  .process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-gray-300);
    transform: translateX(-50%);
    z-index: 0;
  }
}

.process-step {
  position: relative;
  margin-bottom: var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Desktop Alternating Layout */
@media (min-width: 1024px) {
  .process-step {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4xl);
    min-height: 220px;
  }

  .process-step:nth-child(odd) {
    flex-direction: row;
  }

  .process-step:nth-child(even) {
    flex-direction: row-reverse;
  }

  .step-content {
    width: 42%;
  }

  .process-step:nth-child(odd) .step-content {
    margin-right: auto;
    text-align: right;
  }

  .process-step:nth-child(even) .step-content {
    margin-left: auto;
    text-align: left;
  }

  .step-number,
  .step-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .step-number {
    top: 20px;
  }

  .step-icon {
    top: 90px;
  }
}

/* Mobile/Tablet Vertical Layout */
@media (max-width: 1023px) {
  .process-step {
    padding-left: var(--spacing-3xl);
    border-left: 2px solid var(--color-gray-300);
  }

  .step-number,
  .step-icon {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    z-index: 2;
    background-color: var(--color-gray-50);
  }

  .step-number {
    top: 0;
  }

  .step-icon {
    top: 70px;
  }
}

/* Timeline Elements - Refined Hierarchy */
.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-gray-200);
  opacity: 0.9;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-content {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: var(--transition-base);
  width: 100%;
}

.step-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary-light);
}

.step-title {
  font-size: var(--font-size-xl);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.3;
}

.step-content p {
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   5. Trust Section - Enhanced Premium Styling
   ========================================================================== */
.process-trust-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .trust-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  opacity: 0.8;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary-light);
}

.trust-card-icon {
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-sm);
  width: 64px;
  height: 64px;
  background-color: var(--color-gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-card-icon svg {
  width: 32px;
  height: 32px;
}

.trust-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  line-height: 1.3;
}

.trust-card-description {
  color: var(--color-gray-600);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   6. Product Exploration Section - Enhanced Transition
   ========================================================================== */
.product-exploration-section {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  text-align: center;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  position: relative;
}

.product-exploration-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(26, 77, 46, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.exploration-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.exploration-text {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

/* ==========================================================================
   7. Final CTA Section - Background Image Support
   ========================================================================== */
.final-cta-section {
  position: relative;
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-primary-dark);
  background-image: url('/assets/images/process/process-cta-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-align: center;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 61, 34, 0.95) 0%, rgba(15, 61, 34, 0.9) 100%);
  z-index: 1;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.final-cta-title {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  line-height: 1.2;
}

.final-cta-message {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   8. Responsive Breakpoints & Refinements
   ========================================================================== */

@media (min-width: 768px) {
  .process-hero-section .hero-cta-group {
    flex-direction: row;
    max-width: none;
  }

  .final-cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .process-hero-section {
    min-height: 70vh;
  }

  .process-hero-section .hero-headline {
    font-size: var(--font-size-5xl);
  }

  .process-hero-section .hero-content {
    padding: var(--spacing-5xl) 0;
  }

  .final-cta-title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1440px) {
  .process-hero-section .hero-headline {
    font-size: var(--font-size-6xl);
  }
  
  .process-intro-section .section-header {
    max-width: 950px;
  }
}

@media (max-width: 767px) {
  .process-hero-section .hero-content {
    padding: var(--spacing-4xl) 0;
  }
  
  .final-cta-section {
    padding: var(--spacing-4xl) 0;
    background-position: center 20%;
  }
}

/* ==========================================================================
   9. Accessibility & Animations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .step-content,
  .trust-card,
  .breadcrumb-item a,
  .final-cta-buttons .btn {
    transition: none !important;
    transform: none !important;
  }
}

.breadcrumb-item a:focus-visible,
.step-content:focus-visible,
.trust-card:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}



/* Desktop Alternating Layout */
@media (min-width: 1024px) {
  .process-step {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4xl);
    min-height: 320px; /* Increased height for better vertical spacing */
  }

  .process-step:nth-child(odd) {
    flex-direction: row;
  }

  .process-step:nth-child(even) {
    flex-direction: row-reverse;
  }

  .step-content {
    width: 38%; /* Reduced from 42% to ensure strict separation from the 50% center line */
    min-height: 200px; /* Increased card length/height as requested */
  }

  .process-step:nth-child(odd) .step-content {
    margin-right: auto;
    text-align: right;
  }

  .process-step:nth-child(even) .step-content {
    margin-left: auto;
    text-align: left;
  }

  .step-number,
  .step-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .step-number {
    top: 40px; /* Repositioned to align better with the top of the content flow */
  }

  .step-icon {
    top: 110px; /* Repositioned to be more distant from the main text block */
  }
}
