/* Services Page Styles - Matching Homepage UI/UX */

:root {
  --primary-color: #215f44;
  --primary-light: #2e7d5a;
  --secondary-color: #fff6ea;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(33, 95, 68, 0.1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Services Hero Section */
.services-hero {
  background: linear-gradient(
    to bottom,
    rgba(33, 95, 68, 0.1) 0%,
    rgba(33, 95, 68, 0.08) 20%,
    rgba(33, 95, 68, 0.05) 40%,
    rgba(33, 95, 68, 0.02) 70%,
    rgba(255, 255, 255, 1) 100%
  );
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Remove the ::before pseudo-element that was creating gradient boxes */
/* .services-hero::before - REMOVED FOR SMOOTH BACKGROUND */

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, -10px) rotate(0.5deg);
  }
  50% {
    transform: translate(10px, -20px) rotate(-0.5deg);
  }
  75% {
    transform: translate(-5px, 10px) rotate(0.25deg);
  }
}

.services-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(33, 95, 68, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 2rem;
  border: 1px solid rgba(33, 95, 68, 0.2);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.title-main {
  display: block;
  color: var(--text-dark);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Hero Metrics */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* Process Overview Section */
.process-overview {
  padding: 6rem 0;
  background: var(--white);
}

.overview-header {
  text-align: center;
  margin-bottom: 4rem;
}

.overview-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overview-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.collection-sources h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Responsive behavior for sources grid */
@media (max-width: 1024px) {
  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.source-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.source-card:hover::before {
  transform: scaleX(1);
}

.source-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 95, 68, 0.2);
}

.source-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(33, 95, 68, 0.1) 0%, rgba(46, 125, 90, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

/* Removed hover color change effects for source icons */
.source-card:hover .source-icon {
  transform: scale(1.05);
}

.source-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.source-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* Process Steps Section */
.process-steps {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(33, 95, 68, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(33, 95, 68, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.steps-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.steps-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps-header p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.steps-timeline {
  position: relative;
  z-index: 2;
}

/* Timeline Steps - Matching Partnerships Page Style */
.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--gray-200);
  z-index: 0;
}

.step-indicator {
  min-width: 60px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.step-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(33, 95, 68, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(33, 95, 68, 0.2);
}

/* Legacy step-item styles - keeping for potential backwards compatibility but can be removed */

/* Facility Information Section */
.facility-info {
  padding: 6rem 0;
  background: var(--white);
}

.facility-content {
  max-width: 1000px;
  margin: 0 auto;
}

.facility-content h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.facility-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.facility-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.highlight-item {
  display: flex;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.highlight-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.highlight-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.highlight-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Facility CTA */
.facility-cta {
  text-align: center;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(33, 95, 68, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 95, 68, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .step-item {
    grid-template-columns: 60px 1fr;
    gap: 2rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .step-content {
    padding: 2rem;
  }
  
  .step-content::before {
    left: -10px;
    top: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .services-hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  .process-overview,
  .process-steps,
  .facility-info {
    padding: 4rem 0;
  }
  
  .sources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .source-card,
  .highlight-item {
    padding: 2rem 1.5rem;
  }
  
  .timeline-step {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .timeline-step:not(:last-child)::after {
    display: none;
  }
  
  .step-indicator {
    margin: 0 auto;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin: 0 auto;
  }
  
  .step-content {
    padding: 1.5rem;
  }
  
  .facility-highlights {
    gap: 1.5rem;
  }
  
  .facility-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    min-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .source-card,
  .step-content,
  .highlight-item {
    padding: 1.5rem;
  }
  
  .highlight-item {
    flex-direction: column;
    text-align: center;
  }
  
  .highlight-icon {
    align-self: center;
  }
  
  .step-features {
    justify-content: center;
  }
}

/* Facility Specifications Styles */
.facility-overview {
  margin: 2rem 0;
}

.facility-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Responsive behavior for facility specs */
@media (max-width: 1024px) {
  .facility-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.spec-item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.spec-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(33, 95, 68, 0.1);
}

.spec-icon {
  font-size: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  border-radius: 50%;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.spec-content {
  flex: 1;
  text-align: center;
}

.spec-content h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.spec-content p {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive design for facility specs */
@media (max-width: 768px) {
  .facility-specs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .spec-item {
    padding: 1.75rem 1.25rem;
  }
  
  .spec-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .spec-item {
    padding: 1.5rem 1rem;
  }
  
  .spec-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .spec-content h4 {
    font-size: 1rem;
  }
  
  .spec-content p {
    font-size: 0.85rem;
  }
}
