/* about.css - Styles for the About Us page of Jubert Farms */

/* Header Section */
.about-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/background.jpg") no-repeat center center;
  background-size: cover;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
}

.about-title {
  font-size: var(--h1-size);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Our Story Section */
.story-section {
  padding: 80px 0;
  background-color: var(--white);
}

.story-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.story-content {
  flex: 1;
}

.story-content h2 {
  color: var(--dark-green);
  font-size: var(--h2-size);
  margin-bottom: 25px;
  position: relative;
}

.story-content h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
}

.story-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-color);
}

.story-image {
  flex: 1;
  max-width: 500px;
}

.story-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Vision & Mission Section */
.vision-mission-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.vision-mission-container {
  display: flex;
  gap: 30px;
}

.vision-box,
.mission-box {
  flex: 1;
  background-color: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.vision-box:hover,
.mission-box:hover {
  transform: translateY(-10px);
}

.box-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.box-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-green);
}

.box-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.box-text ul {
  margin-left: 20px;
}

.box-text li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Our Values Section */
.values-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-size: var(--h2-size);
  color: var(--dark-green);
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.value-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-green);
}

.value-description {
  color: var(--text-color);
  line-height: 1.7;
}

/* Our Journey Timeline Section */
.timeline-section {
  padding: 80px 0;
  background-color: var(--dark-green);
  color: var(--white);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--white);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background-color: var(--white);
  border: 4px solid var(--gold);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 6px;
}

.timeline-year {
  position: absolute;
  top: -30px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.timeline-description {
  line-height: 1.6;
}

/* Our Team Section */
.team-section {
  padding: 80px 0;
  background-color: var(--white);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid var(--light-gray);
  transition: all 0.3s ease;
}

.team-member:hover .team-photo {
  border-color: var(--primary-green);
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--primary-green);
}

.team-position {
  color: var(--primary-green);
  font-size: 1rem;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Testimonials section styling */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--cream, #f5f5dc);
}

.testimonials-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
}

.testimonial-content {
  flex: 2;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-right: 30px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black);
  font-style: italic;
}

.testimonial-author {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-green);
  margin-bottom: 15px;
}

.author-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.author-title {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.testimonial-dot-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-green);
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--primary-green);
}

/* CTA Section */
.about-cta-section {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../assets/images/about/cta-bg.jpg") no-repeat center center;
  background-size: cover;
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Enhanced Mobile Menu Styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-btn:focus {
  outline: none;
}

.mobile-menu-btn i {
  font-size: 1.5rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

/* Mobile-First Media Queries */
@media (max-width: 992px) {
  .story-container {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .story-image {
    max-width: 100%;
  }

  .story-content h2 {
    text-align: center;
  }

  .story-content h2:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .vision-mission-container {
    flex-direction: column;
    gap: 30px;
  }

  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 18px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(even)::after {
    left: 18px;
  }

  .timeline-content {
    max-width: 100%;
  }

  .team-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Menu Styling - Crucial for hamburger functionality */
  .mobile-menu-btn {
    display: block !important;
    position: relative;
    z-index: 1001;
    margin-right: 15px;
  }

  .navbar-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: white;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }

  .navbar-links.active {
    height: auto;
    max-height: 500px;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
  }

  .navbar-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .navbar-links a {
    display: block;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-links a:hover {
    background-color: var(--light-green);
    color: white;
  }

  /* Other mobile styles */
  .about-title {
    font-size: 2.5rem !important;
    margin-bottom: 15px;
  }

  .about-subtitle {
    font-size: 1rem;
    padding: 0 var(--spacing-sm);
  }

  .about-header {
    padding: 100px 0 80px;
  }

  .testimonial-slide {
    flex-direction: column;
  }

  .testimonial-content {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .testimonial-author {
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
  }

  .author-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
  }

  .testimonial-nav-buttons {
    display: none !important;
  }

  .cta-title {
    font-size: 2rem;
  }

  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

  .values-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-item {
    max-width: 450px;
    margin: 0 auto;
  }

  .testimonials-section {
    padding: 60px 0;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .about-cta-section {
    padding: 60px 0;
    background-attachment: scroll;
  }

  .cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 var(--spacing-sm);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
  }

  .team-info-popup {
    bottom: -60px;
  }
}

@media (max-width: 576px) {
  .about-header {
    padding: 80px 0 60px;
  }

  .about-title {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .value-item {
    padding: 25px;
  }

  .value-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .value-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .value-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .story-section {
    padding: 60px 0;
  }

  .story-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .story-content p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .vision-mission-section {
    padding: 60px 0;
  }

  .vision-box,
  .mission-box {
    padding: 30px;
  }

  .box-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .box-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .box-text p,
  .box-text li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .timeline-section {
    padding: 60px 0;
  }

  .timeline-item {
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-item::after {
    width: 20px;
    height: 20px;
    left: 21px;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-year {
    font-size: 1rem;
    top: -25px;
  }

  .timeline-title {
    font-size: 1.3rem;
  }

  .timeline-description {
    font-size: 0.95rem;
  }

  .team-section {
    padding: 60px 0;
  }

  .team-container {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .team-photo {
    width: 160px;
    height: 160px;
  }

  .team-name {
    font-size: 1.3rem;
  }

  .team-position {
    font-size: 0.9rem;
  }

  .testimonial-content {
    padding: 20px;
  }

  .testimonial-content p {
    font-size: 0.95rem;
  }

  .author-photo {
    width: 80px;
    height: 80px;
  }

  .author-name {
    font-size: 1.1rem;
  }

  .author-title {
    font-size: 0.85rem;
  }

  .about-cta-section {
    padding: 50px 0;
  }

  .cta-title {
    font-size: 1.7rem;
  }

  .cta-description {
    font-size: 0.95rem;
  }
}

/* Add slide-in animation for mobile menu */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .navbar-links.active {
    animation: slideIn 0.3s forwards;
  }
}
