/**
 * PalmSeth SARL - Agriculture & Élevage Page Styles
 * Custom styles for the Agriculture & Élevage page
 */

/* Agriculture Hero */
.agri-hero .hero-background {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  position: relative;
  overflow: hidden;
}

.agri-hero .hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/soil-texture.png');
  background-size: 200px;
  opacity: 0.05;
  z-index: 1;
}

/* Agriculture Overlay with Leaves */
.agri-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.leaf {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  filter: brightness(200%);
  animation: leaf-float 15s ease-in-out infinite;
}

.leaf-1 {
  background-image: url('../images/leaf-1.png');
  width: 60px;
  height: 60px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.leaf-2 {
  background-image: url('../images/leaf-2.png');
  width: 40px;
  height: 40px;
  top: 60%;
  left: 15%;
  animation-delay: 2s;
}

.leaf-3 {
  background-image: url('../images/leaf-1.png');
  width: 50px;
  height: 50px;
  top: 30%;
  left: 75%;
  transform: rotate(180deg);
  animation-delay: 4s;
}

.leaf-4 {
  background-image: url('../images/leaf-2.png');
  width: 45px;
  height: 45px;
  top: 70%;
  left: 80%;
  transform: rotate(45deg);
  animation-delay: 1s;
}

.leaf-5 {
  background-image: url('../images/leaf-1.png');
  width: 55px;
  height: 55px;
  top: 20%;
  left: 40%;
  transform: rotate(90deg);
  animation-delay: 3s;
}

.leaf-6 {
  background-image: url('../images/leaf-2.png');
  width: 35px;
  height: 35px;
  top: 80%;
  left: 50%;
  transform: rotate(-45deg);
  animation-delay: 5s;
}

@keyframes leaf-float {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0) rotate(0);
    opacity: 0.2;
  }
}

/* Approach Section */
.approach-section {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.approach-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 3rem;
}

.approach-text {
  max-width: 900px;
  margin: 0 auto;
}

.lead-text {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 0;
}

.approach-highlights {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

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

.highlight-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background-color: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  flex-shrink: 0;
}

.highlight-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.highlight-info p {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Solutions Section */
.solutions-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-background-light);
}

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

.solution-card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.solution-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #2e7d32, #4caf50);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: -1;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.solution-icon {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 3rem;
  background-color: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  transition: all var(--transition-normal);
}

.solution-card:hover .solution-icon {
  transform: scale(1.1);
  background-color: #2e7d32;
  color: var(--color-text-white);
}

.solution-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.solution-card p {
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  text-align: center;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-features li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.solution-features li:last-child {
  margin-bottom: 0;
}

.solution-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: #2e7d32;
}

/* Products Section */
.products-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-tab {
  background: none;
  border: 2px solid #2e7d32;
  color: #2e7d32;
  border-radius: var(--radius-full);
  padding: 1.2rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.category-tab:hover {
  background-color: rgba(46, 125, 50, 0.1);
}

.category-tab.active {
  background-color: #2e7d32;
  color: var(--color-text-white);
}

.category-content {
  display: none;
}

.category-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
}

.product-card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 2rem;
  margin: 2rem 2rem 1rem;
}

.product-card p {
  margin: 0 2rem 2rem;
  color: var(--color-text-light);
}

/* Sustainability Section */
.sustainability-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-background-light);
}

.sustainability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
}

.sustainability-image {
  position: relative;
}

.sustainability-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.sustainability-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sustainability-item {
  display: flex;
  gap: 2rem;
}

.icon-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #2e7d32;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.item-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.item-content p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
  padding-top: 8rem;
  padding-bottom: 10rem;
}

.testimonials-slider {
  position: relative;
  margin-top: 4rem;
}

.testimonials-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 3rem;
  padding: 2rem 1rem;
  margin: -2rem -1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-width: 350px;
  flex: 1 0 350px;
  max-width: 400px;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  position: relative;
  margin-bottom: 3rem;
  color: var(--color-text-light);
}

.testimonial-quote .fa-quote-left {
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 2.5rem;
  color: rgba(46, 125, 50, 0.2);
}

.testimonial-quote .fa-quote-right {
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 2.5rem;
  color: rgba(46, 125, 50, 0.2);
}

.testimonial-quote p {
  font-style: italic;
  margin: 0;
  padding: 0 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2e7d32;
}

.author-info h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
}

.slider-arrow {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
  background-color: #2e7d32;
  color: var(--color-text-white);
}

.slider-dots {
  display: flex;
  gap: 1rem;
  margin: 0 2rem;
}

.slider-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--color-gray-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  background-color: #2e7d32;
  transform: scale(1.2);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .approach-highlights {
    flex-direction: row;
    gap: 2rem;
  }
  
  .highlight-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
  
  .highlight-icon {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 991px) {
  .solution-card {
    padding: 3rem 2rem;
  }
  
  .solution-icon {
    width: 8rem;
    height: 8rem;
    font-size: 3rem;
  }
  
  .solution-card h3 {
    font-size: 2.2rem;
  }
  
  .sustainability-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    min-width: 300px;
  }
}

@media (max-width: 767px) {
  .lead-text {
    font-size: 1.8rem;
  }
  
  .highlight-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
  }
  
  .highlight-icon {
    margin-bottom: 1.5rem;
  }
  
  .category-tab {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
  }
  
  .sustainability-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .icon-circle {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    min-width: 100%;
  }
}