/* ==========================
   GENERAL STYLING
========================== */
/* Reset margins, paddings, and box-sizing for all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Body styling: background image, fallback color, text color */
body {

  font-family: 'Times New Roman', Times, serif;
  background-image: url(herad_images/whatwedobackground.jpeg);
  background-size: cover;
  background-attachment: fixed; /* Fixed for parallax effect */
  background-position: center;
  line-height: 1.6;
  background-color: #f8f9fa;   /* fallback color */
  color: #333;
}

/* =================== NAVIGATION BAR =================== */
/* Navbar container */
nav {
  background-image: url("herad_images/Herad-vegetables.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  background-color: rgba(7,7,7,0.4); /* semi-transparent overlay */
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px black;
  color: white;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
}

/* Navbar logo */
.logo img {
  width: 220px;
  max-width: 100%; /* responsive scaling */
  object-fit: contain;
  display: block;
}

/* =================== NAV MENU =================== */
.menu_list ul {
  font-size: 15px;
  list-style: none;
  display: flex;
  gap: 0px;          /* Keep links tight */
  margin: 0;
  padding: 0;
}

/* Menu links */
.menu_list ul li a {
  color: white;
  background-color: #692727;          /* Soft pink background */
  border-right: 1px solid #0c0b0b;    /* Divider between links */
  text-decoration: none;
  font-weight: 900;
  padding: 15px 10px;
  display: block;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;                /* Prevents line breaks */
}

/* Hover effect for menu links */
.menu_list ul li a:hover {
  background-color: #f3e9e9;          /* Darker maroon */
  color: black;
  border-radius: 4px;
}

/* Dropdown container */
.menu_list ul li.dropdown {
  position: relative;
}

/* ================================
   DESKTOP DROPDOWN MENU STYLING
   ================================ */
   .dropdown-content {
    display: none;                   /* Hidden by default until hover */
    position: absolute;              /* Positions the dropdown under the parent */
    top: 100%;                       /* Start just below the menu link */
    left: 0;                         /* Align with the parent’s left edge */
    background-color: #660911;       /* Deep maroon background */
    min-width: 400px;                /* Minimum width for two-column layout */
    max-height: 80vh;                /* Prevent overflow on small screens */
    overflow-y: auto;                /* Enables scrolling if content is too tall */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    border-radius: 4px;              /* Smooth rounded corners */
    z-index: 1001;                   /* Keeps dropdown above other content */
    padding: 10px 15px;              /* Inner spacing for better readability */
    column-count: 2;                 /* Split links into two columns */
    column-gap: 20px;                /* Space between columns */
  }
  
  /* Display dropdown on hover (desktop only) */
  .menu_list ul li.dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* ================================
     DROPDOWN LINK STYLING
     ================================ */
  .dropdown-content a {
    display: block;                  /* Each link on its own line */
    padding: 5px 10px;               /* Compact spacing between links */
    line-height: 1.1;                /* Slightly tight line spacing */
    color: black;                    /* Default link color */
    text-decoration: none;           /* Remove underlines */
    font-weight: 600;                /* Bold for visibility */
    break-inside: avoid;             /* Prevents column break inside a link */
  }
  
  /* Hover state for dropdown links */
  .dropdown-content a:hover {
    background-color: #e09393;       /* Highlight color on hover */
    color: white;                    /* White text for contrast */
  }
  
  /* ================================
     TABLET RESPONSIVE ADJUSTMENTS
     ================================ */
  @media (max-width: 1024px) {
    .dropdown-content {
      position: relative;            /* Position naturally below parent */
      min-width: 100%;               /* Take full width of screen */
      column-count: 1;               /* Use single column layout */
      max-height: none;              /* Allow full dropdown height */
      overflow-y: visible;           /* No scroll needed for tablets */
    }
  }
  
  /* ================================
     MOBILE RESPONSIVE ADJUSTMENTS
     ================================ */
  @media (max-width: 768px) {
    .dropdown-content {
      position: static;              /* Flow naturally within mobile layout */
      display: none;                 /* Hidden until parent is clicked */
      background-color: #692727;     /* Darker background for contrast */
      margin: 5px 0;                 /* Small space above and below */
      border-radius: 4px;            /* Rounded corners for aesthetics */
      padding: 5px 0;                /* Minimal vertical padding */
      column-count: 1;               /* Single column only */
    }
  
    /* Show dropdown when the parent list item is active (clicked) */
    .menu_list ul li.active .dropdown-content { 
      display: block; 
    }
  
    /* Mobile dropdown link styling */
    .dropdown-content a {
      color: white;                  /* White text on dark background */
      padding: 10px 20px;            /* Comfortable tap area */
      display: block;
      line-height: 1.2;              /* Improve readability on small screens */
    }
  }
/* =================== MAIN CONTENT =================== */

/* =================== Intro Section =================== */
#intro {
  margin: 160px auto 50px auto; /* offset below fixed navbar */
  text-align: center;
  padding: 20px;
  max-width: 500px;
  background: linear-gradient(135deg, #692727, #f0c6c6, #692727);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);

  /* Animation */
  opacity: 0;
  transform: translateY(50px);
  animation: introFadeIn 1s ease-out forwards;
  animation-delay: 0.3s;

  /* Optional gradient animation */
  background-size: 300% 300%;
  animation: introFadeIn 1s ease-out forwards, gradientShift 8s ease infinite;
}

/* Fade-in & slide-up keyframes */
@keyframes introFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional gradient shift */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#intro h3 {
  font-size: 2.5rem;
  color: #f8f8f8;
  text-shadow: 2px 2px #330505;
  margin-bottom: 10px;
}

#intro p {
  font-size: 1.1rem;
  color: #fffefe;
}

/* =================== Sections Container =================== */
.sections-container {
  display: flex;
  flex-wrap: wrap;                  /* Allow wrapping for responsiveness */
  gap: 20px;                        /* Space between sections */
  max-width: 1200px;
  margin: 30px auto;
  justify-content: center;          /* Center rows horizontally */
}

/* Individual sections */
.sections-container > section {
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  color: #eedede;
  transition: transform 0.3s ease; /* subtle hover effect for responsiveness */
}

/* Growers & Processors: two per row */
#growers,
#processors {
  flex: 1 1 45%; /* flexible width, responsive */
}

/* Exporters: centered full-width section */
#exporters {
  flex: 0 1 60%;
  margin: 0 auto; /* center horizontally */
}

/* Section colors */
#growers { background-color: rgb(83, 30, 30, 0.9);}
#processors { background-color: rgb(170, 116, 116, 0.9);}
#exporters { background-color: rgb(83, 30, 30, 0.9);
}

/* Headings and text inside sections */
.sections-container h4 {
  color: #f1e4e4;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.sections-container p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #eedede;
}

.sections-container p strong {
  color: #b22222; /* Emphasis color */
}

/* =================== FOOTER =================== */
.footer {
  background-color: #330505;
  color: #ffffff;
  padding: 20px;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Flex container for footer */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Logo in footer */
.footer-logo-container img {
  max-width: 120px;
  height: auto;
  margin: 0 auto 15px auto;
  display: block;
}

/* Footer section containers */
.footer-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Section titles */
.footer-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-section h4 {
  font-size: 13px;
  margin-bottom: 5px;
}
.footer-section p {
  font-size: 13px;
  margin: 3px 0;
  color: #cccccc;
}

/* Footer links */
.footer-section a {
  color: #0e5ab1;
  text-decoration: underline;
  font-weight: bold;
}
.footer-section a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Social & payment icons */
.social-icons, .payment-methods-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}
.social-icons img, .payment-methods-icons img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 5px;
  background-color: #5f1315;
  transition: transform 0.3s, background-color 0.3s;
}
.social-icons img:hover, .payment-methods-icons img:hover {
  transform: scale(1.1);
  background-color: #727070;
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: #cccccc;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #ffffff;
}

/* =================== HAMBURGER MENU =================== */
.hamburger {
  display: none;                /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 4px;
  background-color: #eee5e5;
  border-radius: 3px;
  transition: all 0.3s ease;
}
/* Transform hamburger → X on click */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =================== RESPONSIVE NAVIGATION =================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .menu_list ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px; /* offset below navbar */
    left: 0;
    width: 100vw;
    background-color: rgba(50, 0, 0, 0.95);
    padding: 10px 0;
    z-index: 1099;
  }
  .menu_list ul.active { display: flex; }

  .menu_list ul li a {
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    text-align: left;
    border-right: none;
  }

  /* Mobile dropdown adjustments */
  .dropdown-content {
    position: static; /* stack naturally in column */
    display: none;
    background-color: #692727;
    margin: 5px 0;
    border-radius: 4px;
    padding: 5px 0;
  }
  .menu_list ul li.active .dropdown-content { display: block; }
  .dropdown-content a {
    color: white;
    padding-left: 30px; /* indent nested links */
    display: block;
  }
}

/* =================== ADDITIONAL RESPONSIVE FIXES =================== */
/* Ensure hero section scales on smaller devices */
@media (max-width: 992px) {
  #intro { max-width: 90%; margin: 140px auto 30px auto; }
  .sections-container > section { flex: 1 1 90%; }
}

@media (max-width: 576px) {
  #intro { padding: 15px; font-size: 0.9rem; }
  .sections-container > section { padding: 15px 10px; }
}
