/* Services Page Styles */
@import url("colors.css");
@import url("components.css");

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

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--services-text-secondary);
  background-color: var(--services-bg-secondary);
}

html {
  scroll-behavior: smooth;
}

/* Layout */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url("../images/Service_hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--services-text-white);
  padding: 5rem 1rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 0 auto;
  max-width: 64rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--services-text-white);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: hsla(0, 0%, 100%, 0.9);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--services-text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(217, 14%, 51%);
  max-width: 48rem;
  margin: 0 auto;
}

/* Divider */
.divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--services-primary);
  margin: 1rem auto 3rem auto;
}

/* Pain/Solution Section */
.pain-solution-section {
  background-color: hsl(0, 0%, 100%);
  padding: 4rem 1rem;
}

.pain-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.challenge-card {
  background-color: hsl(0, 0%, 95%);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1);
}

.solution-card {
  background-color: hsl(210, 100%, 97%);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1);
}

.card-title {
  color: hsl(217, 33%, 17%);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-header i {
  margin-right: 0.75rem;
}

.card-text {
  color: hsl(217, 16%, 32%);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-top: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: hsl(217, 16%, 32%);
}

.feature-item i {
  flex-shrink: 0;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* What We Do Section */
.what-we-do-section {
  background-color: hsl(210, 13%, 98%);
  padding: 4rem 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--services-bg-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px var(--services-shadow);
  transition: all var(--transition-speed);
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px var(--services-shadow-lg);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--services-primary);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--services-text-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: hsl(217, 14%, 51%);
  line-height: 1.6;
}

/* Product Categories Section */
.products-section {
  background-color: hsl(0, 0%, 100%);
  padding: 4rem 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px var(--services-shadow);
  height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.product-card.food {
  background-color: var(--services-food-bg);
}

.product-card.wellness {
  background-color: var(--services-wellness-bg);
}

.product-card.beauty {
  background-color: var(--services-beauty-bg);
}

.product-card.agriculture {
  background-color: var(--services-agriculture-bg);
}

.product-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  transition: all var(--transition-speed);
}

.product-card.food .product-icon {
  color: var(--services-food-icon);
}

.product-card.wellness .product-icon {
  color: var(--services-wellness-icon);
}

.product-card.beauty .product-icon {
  color: var(--services-beauty-icon);
}

.product-card.agriculture .product-icon {
  color: var(--services-agriculture-icon);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
}

.product-overlay h3 {
  color: var(--services-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.product-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 1.5rem;
  transform: translateY(-100%);
  transition:
    transform var(--transition-speed),
    opacity var(--transition-speed);
  z-index: 3;
}

.product-hover-overlay.food {
  background-color: var(--services-food-bg);
  color: var(--services-food-icon);
}

.product-hover-overlay.wellness {
  background-color: var(--services-wellness-bg);
  color: var(--services-wellness-icon);
}

.product-hover-overlay.beauty {
  background-color: var(--services-beauty-bg);
  color: var(--services-beauty-icon);
}

.product-hover-overlay.agriculture {
  background-color: var(--services-agriculture-bg);
  color: var(--services-agriculture-icon);
}

.product-card:hover .product-hover-overlay {
  opacity: 0.95;
  transform: translateY(0);
}

.product-hover-overlay p {
  text-align: center;
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.product-note {
  margin-top: 3rem;
  background-color: hsl(210, 100%, 97%);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
}

.product-note p {
  color: hsl(217, 16%, 32%);
  margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works-section {
  background-color: hsl(210, 13%, 98%);
  padding: 4rem 1rem;
}

.steps-container {
  position: relative;
  margin-top: 3rem;
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 3rem;
}

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

.step-content {
  flex: 1;
  transition: all var(--transition-speed);
}

.step-content:hover {
  box-shadow: 0 10px 15px -3px var(--services-shadow-lg);
  transform: translateY(-2px);
}

.step-card {
  background-color: var(--services-bg-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px var(--services-shadow);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-number {
  background-color: var(--services-primary);
  color: var(--services-text-white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--services-text-primary);
}

.step-card p {
  color: hsl(217, 16%, 32%);
  line-height: 1.6;
}

.step-image {
  flex: 1;
}

.step-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px var(--services-shadow);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--services-primary) 0%,
    var(--services-secondary) 100%
  );
  color: var(--services-text-white);
  padding: 5rem 1rem;
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: var(--services-text-white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .pain-solution-grid,
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .step-item,
  .step-item:nth-child(even) {
    flex-direction: column !important;
  }

  .cta-content h2 {
    font-size: 1.875rem;
  }

  section {
    padding: 3rem 1rem;
  }
}
