/* Global reset and box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #083b2b;
  background-color: #f9fbf4;
}

/* Navigation styling */
nav {
  background: #024f5b;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Logo image sizing */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

/* Hero section styling */
.hero {
  /* Updated hero background to use our custom collage of avocados, mangoes and pineapples */
  background-image: url('assets/hero-collage.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  text-align: center;
}

/* Use a smaller hero background on small screens to reduce download size */
@media (max-width: 600px) {
  .hero {
    background-image: url('assets/hero-collage-small.jpg');
    background-size: cover;
    background-position: center;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darken the hero background slightly more so underlying text isn't visible */
  /* Dark overlay over hero background to enhance text readability */
  background: rgba(0, 64, 39, 0.85);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #c4df64;
  color: #024f5b;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #b4cf54;
}

/* Secondary button style for quotation */
.btn-secondary {
  background: transparent;
  border: 2px solid #c4df64;
  color: #c4df64;
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: #c4df64;
  color: #024f5b;
}

/* Container for hero buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Section general styling */
section {
  padding: 4rem 2rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #024f5b;
}

/* About section */
#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  color: #083b2b;
}

/* Products section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
}


/* Business card styling */
.business-card {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.business-card img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-card {
  background: #f5fce8;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Glow effect on product cards when hovered */
.product-card:hover {
  box-shadow: 0 0 12px 4px rgba(196, 223, 100, 0.5);
  transition: box-shadow 0.3s ease;
}

.product-card h3 {
  font-size: 1.3rem;
  margin: 0.75rem 0 0.25rem 0;
  color: #024f5b;
}

.product-card p {
  font-size: 0.95rem;
  padding: 0 1rem 1rem;
  color: #083b2b;
  flex-grow: 1;
}

/* Generic card grid used for services, why choose us, certifications and post harvest sections */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.card {
  background: #f5fce8;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Add a subtle glow effect on hover for cards to make them interactive */
.card:hover {
  box-shadow: 0 0 12px 4px rgba(196, 223, 100, 0.5);
  transition: box-shadow 0.3s ease;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #024f5b;
}

.card p {
  font-size: 1rem;
  color: #083b2b;
}

/* Distinct backgrounds for each card section */
/* Services cards */
#services .card {
  background: #f7fceb;
}

/* Why choose us cards */
#why-choose .card {
  background: #fff9df;
}

/* Certifications cards */
#certifications .card {
  background: #eaf4ff;
}

/* Post harvesting cards */
#post-harvest .card {
  background: #f4e9ff;
}


/* Recognition section */
#recognition p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
  color: #083b2b;
}

/* Contact section */
#contact .contact-details {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #083b2b;
  text-align: center;
  line-height: 1.6;
}

#contact .contact-details a {
  color: #024f5b;
  text-decoration: none;
}

#contact .contact-details a:hover {
  text-decoration: underline;
}

/* Footer styling */
footer {
  background: #024f5b;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Order form styling */
#order-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #f5fce8;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Gallery styling for product pages */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  /* Subtle pattern background using gradients */
  background-image:
    linear-gradient(45deg, rgba(196, 223, 100, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(196, 223, 100, 0.1) 25%, transparent 25%);
  background-size: 40px 40px;
  border-radius: 8px;
}

.gallery-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item p {
  padding: 0.5rem 1rem 1rem;
  font-weight: 500;
  color: #024f5b;
}

#order-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#order-form label {
  font-weight: 600;
  color: #024f5b;
}

#order-form input,
#order-form select,
#order-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #b4cf54;
  border-radius: 4px;
  font-size: 1rem;
}

#order-form textarea {
  resize: vertical;
}

#order-form button.btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    gap: 0.75rem;
  }
}

/* Mobile navigation: hamburger toggle and responsive menu */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  background: #ffffff;
  height: 3px;
  width: 24px;
  border-radius: 2px;
  position: absolute;
  left: 8px;
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { content: ''; top: -8px; }
.nav-toggle span::after { content: ''; top: 8px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav {
    padding: 0.75rem 1rem;
  }

  /* Hide desktop horizontal menu and use a collapsible vertical menu */
  nav ul {
    display: none;
    position: absolute;
    top: 64px;
    right: 1rem;
    background: #024f5b;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 8px;
    width: calc(100% - 2rem);
  }

  nav.open ul {
    display: flex;
  }

  nav ul li {
    margin: 0.25rem 0;
  }

  /* Make hero more flexible on small screens */
  .hero {
    min-height: 40vh;
    padding: 3rem 1rem;
  }

  /* Ensure product images resize nicely on mobile */
  .product-card img,
  .gallery-item img {
    height: auto;
  }

  /* Make hero buttons stack and expand on mobile for easier tapping */
  .hero-buttons .btn,
  .hero-buttons .btn-secondary {
    width: 100%;
    display: block;
  }

  /* Slightly larger tap targets */
  .btn, .nav a {
    padding: 0.85rem 1rem;
  }
}

/* Responsive typography using clamp for better scaling */
h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.25rem, 1.5vw + 1rem, 2rem); }
