/* ===============================
   GLOBAL RESET & TOKENS
================================ */

:root {
  --green-main: #1f7a4a;        /* Growth green */
  --green-dark: #145c37;
  --green-soft: #e9f5ef;

  --text-main: #1c1c1c;
  --text-muted: #5f6f68;

  --white: #ffffff;
  --border: #e4ebe7;

  --max-width: 1200px;
  --transition: all 0.3s ease;
  --font: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- FIX: Added 'html' and 'max-width' to stop scrolling --- */
html, body {
  padding-top: 35px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* This kills the horizontal scroll */
  font-family: var(--font);
  color: var(--text-main);
  line-height: 1.65;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   HEADER / NAVIGATION
================================ */


header {
  position: fixed; /* Changed from sticky to fixed */
  top: 0;
  left: 0;
  width: 100%; /* Ensures it stretches across the full screen */
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Adds a nice shadow */
}

nav {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===============================
   LOGO
================================ */
nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

nav .logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav .logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-main);
  white-space: nowrap; 
}

/* ===============================
   HAMBURGER MENU (MOBILE ONLY)
================================ */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-main);
}

/* ===============================
   NAV LINKS (DESKTOP)
================================ */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-menu li a:hover {
  color: var(--green-main);
}

/* ===============================
   DROPDOWN MENU (DESKTOP)
================================ */

.nav-menu li ul {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px; 
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-menu li:hover > ul {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-menu li ul li {
  margin-bottom: 0.6rem;
}

.nav-menu li ul li:last-child {
  margin-bottom: 0;
}

.nav-menu li ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-menu li ul a:hover {
  color: var(--green-main);
}

/* =========================================
   HERO SECTION
========================================= */

#hero {
  position: relative;
  /* Forces the section to be exactly the height of the screen */
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

/* --- SLIDER BACKGROUND --- */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Base layer */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* CRITICAL: Stretches image to cover the screen with no gaps */
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; /* Hidden by default */
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1; /* Visible */
  transform: scale(1.05); /* Slight slow zoom effect */
  transition: opacity 1.5s ease-in-out, transform 6s ease;
}

/* --- GREEN OVERLAY --- */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 0.6 Opacity ensures the background image is visible */
  background: linear-gradient(rgba(31, 122, 74, 0.6), rgba(20, 92, 55, 0.7));
  z-index: 1; /* Sits on top of images */
}

/* --- TEXT CONTENT --- */
.hero-content {
  position: relative;
  z-index: 2; /* Sits on top of everything */
  padding: 0 1.5rem;
  max-width: 900px;
  width: 100%;
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
}

#hero p {
  font-size: 1.1rem;
  color: #e5f3ec;
  margin: 0 auto 2.5rem;
  max-width: 650px;
  animation: fadeUp 1s ease forwards;
}

/* --- BUTTONS --- */
.hero-buttons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s ease;
  text-decoration: none;
}

/* Primary Button (White) */
.hero-buttons a:first-of-type {
  background: var(--white);
  color: var(--green-main);
}
.hero-buttons a:first-of-type:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

/* Secondary Button (Outline) */
.hero-buttons a:last-of-type {
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
}
.hero-buttons a:last-of-type:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===============================
   SECTIONS (GLOBAL)
================================ */

section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--green-dark);
}

section > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

/* ===============================
   MINI ABOUT SECTION
================================ */

#about-preview {
  background: var(--white);
  padding: 6rem 1.5rem;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text { flex: 1; }

#about-preview h2 {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  text-align: left;
}

.about-text .subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-main);
  margin-bottom: 1.5rem;
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: left;
  max-width: 100%;
}

.btn-primary {
  display: inline-block;
  background: var(--green-main);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--green-main);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(31, 122, 74, 0.15);
}

.about-image {
  flex: 1;
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
}
.about-image:hover img { transform: scale(1.02); }

/* ===============================
   PRODUCTS
================================ */

#products {
  background: var(--white);
  padding-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(31, 122, 74, 0.15);
  border-color: var(--green-main);
}

.card-image {
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image img { transform: scale(1.08); }

.card-info { padding: 1.5rem; text-align: center; }
.card-info h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.3rem; }
.card-info span { font-size: 0.9rem; color: var(--green-main); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===============================
   SCROLL REVEAL ANIMATION
================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   VALUE CHAIN (PROCESS FLOW)
================================ */

#value-chain {
  background: #fdfdfd;
  padding-bottom: 5rem;
}

.chain-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  padding: 0 1rem;
}

.chain-step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 150px;
}

.step-icon {
  width: 80px; height: 80px;
  background: var(--green-soft);
  color: var(--green-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
  z-index: 2;
  position: relative;
  background-clip: padding-box;
}

.chain-step:hover .step-icon {
  background: var(--green-main);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(31, 122, 74, 0.2);
}

.chain-step h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 0.5rem; font-weight: 700; }
.step-desc { font-size: 0.9rem; color: var(--text-muted); display: block; line-height: 1.4; }

/* Connecting Lines */
.chain-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px; left: 50%;
  width: 100%; height: 2px;
  background: #dbece4;
  z-index: 1;
}

/* ===============================
   WHY UNIGOLD
================================ */

#why-unigold {
  background: var(--green-soft);
  padding: 5rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 122, 74, 0.1);
  border-color: var(--green-main);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  background: #f4fcf8;
  width: 70px; height: 70px; line-height: 70px;
  border-radius: 50%;
  color: var(--green-main);
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--green-dark); }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ===============================
   PARTNERS (INFINITE SLIDER)
================================ */

#partners {
  background: var(--white);
  padding: 5rem 0;
  overflow: hidden;
  text-align: center;
}

.slider-container {
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-container::before, .slider-container::after {
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 100px;
  z-index: 2;
  top: 0;
}
.slider-container::before { left: 0; }
.slider-container::after { right: 0; transform: rotate(180deg); }

.slide-track {
  display: flex;
  width: calc(250px * 12);
  animation: scroll 30s linear infinite;
}

.slide {
  height: 100px; width: 250px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem;
}

.slide img {
  max-width: 100%; max-height: 80px;
  filter: grayscale(100%); opacity: 0.6;
  transition: var(--transition);
}
.slide img:hover { filter: grayscale(0%); opacity: 1; cursor: pointer; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); }
}

.partner-cta { margin-top: 4rem; padding: 0 1.5rem; }
.partner-cta h3 { font-size: 1.5rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.partner-cta p { color: var(--text-muted); margin-bottom: 1.5rem; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--green-main); color: var(--white); }

/* ===============================
   LATEST NEWS (VIDEO GALLERY)
================================ */
/* =========================================
   VIDEO GALLERY STYLES (UPDATED)
========================================= */

#video-gallery {
  background: #f8fcf9;
  padding: 5rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 0 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* The Card Container */
.video-card-link {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Thumbnail Area - Now Enforces 16:9 Ratio */
.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9; /* CRITICAL: Makes it look like a YouTube video */
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures no black bars if thumb size varies slightly */
  opacity: 0.9;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Play Button */
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--green-main);
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
  padding-left: 4px;
}

/* Hover Effects */
.video-card-link:hover .video-thumbnail img { transform: scale(1.1); opacity: 0.7; }
.video-card-link:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--white); color: var(--green-dark); }

/* Text Area */
.video-caption {
  padding: 1.5rem;
  background: #fff;
  flex-grow: 1;
  border-top: 1px solid #f0f0f0;
}

.video-caption h4 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  font-weight: 600;
}

.video-caption p {
  font-size: 0.9rem;
  color: #666; /* Muted grey for description */
  margin: 0;
  line-height: 1.5;
}
/* ===============================
   FOOTER (RESPONSIVE)
================================ */

#footer {
  background-color: #0f2f1f;
  color: #cfdad4;
  padding-top: 4rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.2rem; font-weight: 700; }
.footer-col p { line-height: 1.6; color: #9fb5ab; margin-bottom: 1rem; }

.footer-logo { display: block; margin-bottom: 1.5rem; }
.footer-logo img { height: 45px; width: auto; filter: brightness(0) invert(1); }

.footer-links, .contact-list { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .contact-list a { color: #cfdad4; transition: var(--transition); display: inline-block; }
.footer-links a:hover, .contact-list a:hover { color: var(--white); transform: translateX(5px); }

.contact-list li { margin-bottom: 1rem; display: flex; flex-direction: column; }
.contact-list span { font-size: 0.8rem; color: var(--green-main); text-transform: uppercase; font-weight: 700; margin-bottom: 0.2rem; }

.social-links { display: flex; gap: 15px; margin-top: 1rem; }
.social-links img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 0.6; transition: var(--transition); }
.social-links a:hover img { opacity: 1; transform: translateY(-3px) scale(1.1); }

.footer-bottom {
  background: #0b2217;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p { font-size: 0.85rem; color: #8fa396; margin: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FORCE PARTNER LOGOS TO BE VISIBLE */
.slide-track .slide {
  opacity: 1 !important;
  position: relative !important;
  transform: none !important;
}

/* ============================================================
   RESPONSIVE OVERRIDES (MOBILE & TABLET)
============================================================ */

/* TABLET & SMALL LAPTOP (Max Width 900px) */
@media (max-width: 900px) {
  
  /* --- Nav --- */
  .hamburger { display: block; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-menu {
    position: fixed; left: -100%; top: 0;
    flex-direction: column; background-color: var(--white);
    width: 100%; height: 100vh; text-align: center;
    transition: 0.3s; padding-top: 5rem; gap: 0; overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-menu li a { display: block; padding: 1rem 0; font-size: 1.1rem; }

  /* Dropdown Reset for Mobile */
  .nav-menu li ul {
    position: relative; width: 100%; box-shadow: none;
    background: #f8f8f8; padding: 0; transform: none; display: none; text-align: center;
  }
  .nav-menu li ul.show { display: block !important; opacity: 1 !important; }

  /* --- Sections --- */
  #about-preview { padding: 4rem 1.5rem; }
  .about-container { flex-direction: column; text-align: center; gap: 2.5rem; }
  .about-image { order: -1; width: 100%; }
  #about-preview h2, .about-text p { text-align: center; }

  /* --- Value Chain --- */
  .chain-container { flex-direction: column; align-items: center; gap: 0; }
  .chain-step { width: 100%; margin-bottom: 3rem; }
  .chain-step:last-child { margin-bottom: 0; }
  
  .chain-step:not(:last-child)::after {
    top: 80px; left: 50%;
    width: 2px; height: 100%; /* Vertical line */
    transform: translateX(-50%);
  }
}

/* MOBILE PHONES (Max Width 500px) */
@media (max-width: 500px) {
  
  /* Reduce Global Padding to save space */
  section { padding: 3rem 1.5rem; }
  
  /* Hero Tweaks */
  #hero { min-height: 450px; height: auto; padding-top: 5rem; padding-bottom: 3rem; }
  #hero h1 { font-size: 2rem; }
  .hero-buttons a { display: block; width: 100%; margin: 0.5rem 0; } /* Stack buttons */

  /* Footer Tweaks */
  .footer-container { gap: 2.5rem; grid-template-columns: 1fr; } /* Force single column */
  .footer-col { text-align: left; }
  
  /* Partners Slide adjustments for small screens */
  .slide { padding: 0 1rem; }
}