/* 
   BioNest Africa - Enhanced Website
   Main Stylesheet
*/

/* ===== GLOBAL STYLES ===== */
:root {
  /* Color Palette */
  --primary-color: #5a3d1c;       /* Brown */
  --secondary-color: #76a84d;     /* Green */
  --accent-color: #e4a62b;        /* Gold/Yellow */
  --light-bg: #f5f8f2;            /* Light green-tinted background */
  --dark-bg: #2a2a2a;             /* Dark background */
  --text-dark: #333333;           /* Dark text */
  --text-light: #ffffff;          /* Light text */
  --text-muted: #6c757d;          /* Muted text */
  --border-color: #e0e0e0;        /* Border color */
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;
  --small-spacing: 1rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80%;
  max-width: 800px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
  margin: 1rem auto 0;
}

.section-title h2 {
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #d19525;
  color: var(--text-dark);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

/* ===== HEADER STYLES ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-top {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: 1.5rem;
}

.header-contact a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-contact a:hover {
  color: var(--accent-color);
}

.header-social {
  display: flex;
  gap: 1rem;
}

.header-social a {
  color: var(--text-light);
  font-size: 1rem;
}

.header-social a:hover {
  color: var(--accent-color);
}

.header-main {
  background-color: rgba(0, 12, 0, 0.905);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 120px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  color: var(--secondary-color);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.get-quote-btn {
  margin-left: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: #000;
  overflow: hidden;
  margin-top: 100px; /* Adjust based on header height */
}

.hero-slider {
  height: 100%;
}

.hero-slide {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  z-index: 3;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background-color: var(--accent-color);
}

/* ===== PRODUCTS SECTION ===== */
.products {
  background-color: var(--light-bg);
}

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

.product-card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-content {
  padding: 2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-style: italic;
}

.product-description {
  margin-bottom: 1.5rem;
}

/* ===== STATS SECTION ===== */
.stats {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

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

.stat-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h3 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose {
  background-color: var(--light-bg);
}

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

.feature-item {
  background-color: var(--text-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== TEAM SECTION ===== */
.team {
  background-color: var(--text-light);
}

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

.team-member {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-image {
  height: 300px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.team-social a:hover {
  color: var(--accent-color);
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--text-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-question span {
  transition: all 0.3s ease;
}

.faq-question.active span {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--text-light);
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  padding: 2rem;
  text-align: center;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-content {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-content::before {
  top: -20px;
  left: -20px;
}

.testimonial-content::after {
  bottom: -40px;
  right: -20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary-color);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.testimonial-position {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* ===== EVENTS SECTION ===== */
.events {
  background-color: var(--light-bg);
}

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

.event-card {
  background-color: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-meta-item i {
  color: var(--secondary-color);
}

.event-description {
  margin-bottom: 1.5rem;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--text-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.contact-text h4 {
  margin-bottom: 0.3rem;
}

.contact-form-container h3 {
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
}

.form-control {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(118, 168, 77, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 5rem 0 0;
}

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

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header-top .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .main-nav.active {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .get-quote-btn {
    margin: 1rem 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-arrows {
    display: none;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}