:root {
  --primary-green: #203d2a;
  --footer-bg: #183222;
  --primary-green-hover: #182f20;
  --accent-gold: #c9a24b;
  --accent-gold-dark: #a67c2e;
  --accent-gold-btn: #c8942c;
  --accent-gold-btn-hover: #b38222;
  --active-pill-bg: rgba(154, 130, 74, 0.35);
  --cream-bg: #f4f1ea;
  --cream-soft: #faf8f5;
  --text-dark: #151b17;
  --text-gold-dark: #a67c2e;
  --text-muted-dark: #525954;
  --text-light: #ffffff;
  --text-muted-light: #e2e8e4;
  --text-footer-muted: #c8d5cd;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Global Font Family & Body Setup */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-light);
  background-color: #16241b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure headings explicitly use Lora where intended, while paragraphs and general text inherit Plus Jakarta Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
}

/* ================= NAVBAR (FIXED STICKY ON SCROLL) ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}

.navbar-custom {
  background-color: var(--primary-green);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  padding: 0.65rem 0;
  background-color: rgba(32, 61, 42, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.brand-logo-img-wrap {
  width: 48px;
  height: 48px;
  background-color: #f4f1ea;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.brand-logo:hover .brand-logo-img-wrap {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.navbar-custom.scrolled .brand-logo-img-wrap {
  width: 42px;
  height: 42px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: 'Lora', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #c5d4c9;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-nav {
  gap: 0.65rem;
}

.nav-link-custom {
  color: #f0f4f1 !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1.05rem !important;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-link-custom:hover {
  color: var(--accent-gold) !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
  background-color: var(--active-pill-bg);
  color: var(--accent-gold) !important;
  font-weight: 600;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem;
  background-image: url('../media/images/website_header_banner.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(34, 42, 40, 0.86) 0%,
    rgba(32, 41, 38, 0.78) 50%,
    rgba(22, 34, 25, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.hero-eyebrow {
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero-description {
  max-width: 730px;
  margin: 0 auto 2.35rem auto;
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  line-height: 1.72;
  color: var(--text-muted-light);
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.btn-mission {
  background-color: var(--primary-green);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2.1rem;
  border-radius: 6px;
  border: 1px solid var(--primary-green);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.btn-mission:hover {
  background-color: #2a4f37;
  border-color: #2a4f37;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-network {
  background-color: rgba(20, 32, 24, 0.35);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2.1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-network:hover {
  background-color: #ffffff;
  color: var(--primary-green);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ================= SECTION 1: OUR APPROACH ================= */
.approach-section {
  background-color: var(--cream-bg);
  color: var(--text-dark);
  padding: 5.5rem 0;
  scroll-margin-top: 72px;
}

.approach-eyebrow {
  color: var(--accent-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.approach-heading {
  font-family: 'Lora', serif;
  font-size: clamp(2.05rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.approach-text {
  font-size: 1.02rem;
  line-height: 1.76;
  color: var(--text-muted-dark);
  margin-bottom: 1.35rem;
}

.approach-text:last-of-type {
  margin-bottom: 0;
}

.approach-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(21, 27, 23, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #e7e2d8;
}

.approach-image {
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.approach-image-wrapper:hover .approach-image {
  transform: scale(1.02);
}

/* ================= SECTION 2: OUR FOCUS AREAS ================= */
.focus-grid-section {
  background-color: #ebe6dc;
  color: var(--text-dark);
  padding: 5.5rem 0;
  scroll-margin-top: 72px;
}

.focus-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.focus-eyebrow {
  color: var(--accent-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.focus-heading {
  font-family: 'Lora', serif;
  font-size: clamp(2.05rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.focus-grid-wrapper {
  background-color: var(--cream-soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.focus-card-col {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .focus-card-col:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
  .focus-card-col:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .focus-card-col:last-child {
    border-bottom: none;
  }
}

.focus-card {
  position: relative;
  background-color: var(--cream-soft);
  padding: 2.35rem 2rem;
  height: 100%;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

/* Animated bottom line effect */
.focus-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-gold-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.focus-card:hover {
  background-color: #ffffff;
}

.focus-card:hover::after {
  transform: scaleX(1);
}

.focus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.focus-card-num {
  color: var(--accent-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.45rem;
}

.focus-card-title {
  font-family: 'Lora', serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.focus-card-big-num {
  font-family: 'Lora', serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  color: rgba(21, 27, 23, 0.12);
  line-height: 0.9;
  flex-shrink: 0;
  user-select: none;
}

.focus-card-text {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-muted-dark);
  margin: 0;
}

/* ================= SECTION 3: ECOSYSTEM FLOW ================= */
.ecosystem-section {
  position: relative;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  padding: 5.5rem 0;
  scroll-margin-top: 72px;
  background-image: linear-gradient(
      rgba(244, 241, 234, 0.93),
      rgba(244, 241, 234, 0.95)
    ),
    url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.ecosystem-eyebrow {
  color: var(--accent-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.ecosystem-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.05rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.35rem;
  max-width: 720px;
}

.ecosystem-desc {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-muted-dark);
  max-width: 800px;
  margin-bottom: 3.25rem;
}

/* Mobile & Base Container: Vertical Timeline Setup */
.ecosystem-steps-container {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 0.5rem;
}

/* Continuous Vertical Line for Mobile */
.ecosystem-steps-container::before {
  content: '';
  position: absolute;
  top: 21px;
  bottom: 21px;
  left: calc(0.5rem + 21px);
  width: 1.5px;
  background-color: rgba(32, 61, 42, 0.25);
  z-index: 1;
}

.ecosystem-step-row {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  border: none;
  position: relative;
}

.step-badge {
  width: 42px;
  height: 42px;
  background-color: var(--primary-green);
  color: #ffffff;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(32, 61, 42, 0.22);
  position: relative;
  z-index: 2;
}

.step-label {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* ================= DESKTOP VIEW (992px and up) ================= */
@media (min-width: 992px) {
  .ecosystem-steps-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 0.5rem;
    padding-left: 0;
  }

  .ecosystem-steps-container::before {
    display: none;
  }

  .ecosystem-step-row {
    flex-direction: column;
    text-align: center;
    flex: 1;
    padding: 0 0.5rem;
    border: none !important;
    position: relative;
  }

  .ecosystem-step-row:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 2px;
    right: -14px;
    color: var(--text-gold-dark);
    font-size: 2.0rem;
    font-weight: 900;
    z-index: 3;
    line-height: 1;
    opacity: 0.85;
  }

  .step-badge {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .step-label {
    font-size: 0.98rem;
    line-height: 1.35;
  }
}

/* ================= SECTION 4: WHY AGRI ALLIANCE ================= */
.commitment-section {
  background-color: var(--cream-bg);
  color: var(--text-dark);
  padding: 4.5rem 0 6rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 72px;
}

.commitment-eyebrow {
  color: var(--accent-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.commitment-heading {
  font-family: 'Lora', serif;
  font-size: clamp(2.05rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 3.25rem;
}

.commitment-item {
  border-left: 3.5px solid var(--accent-gold-btn);
  padding-left: 1.35rem;
}

.commitment-item-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.55rem;
}

.commitment-item-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted-dark);
  margin: 0;
  max-width: 490px;
}

/* ================= FOOTER & MOVEMENT CTA SECTION ================= */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-block {
  margin-bottom: 4.5rem;
  scroll-margin-top: 90px;
}

.footer-cta-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.footer-cta-text {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-footer-muted);
  margin-bottom: 0;
  max-width: 680px;
}

.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 992px) {
  .footer-cta-buttons {
    flex-direction: column;
    align-items: flex-end;
  }
  .footer-cta-buttons .btn-join-farmer,
  .footer-cta-buttons .btn-partner-us {
    min-width: 210px;
    text-align: center;
  }
}

.btn-join-farmer {
  background-color: var(--accent-gold-btn);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.85rem 1.85rem;
  border-radius: 6px;
  border: 1px solid var(--accent-gold-btn);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-join-farmer:hover {
  background-color: var(--accent-gold-btn-hover);
  border-color: var(--accent-gold-btn-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-partner-us {
  background-color: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.85rem 1.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-partner-us:hover {
  background-color: #ffffff;
  color: var(--footer-bg);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-footer-muted);
  margin-top: 1.15rem;
  max-width: 290px;
}

.footer-col-heading {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-list a {
  color: var(--text-footer-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-gold);
}

.footer-location-text {
  color: var(--text-footer-muted);
  font-size: 0.94rem;
  line-height: 1.85;
  margin: 0;
}

.footer-bottom-bar {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #9eb2a6;
}

/* ================= SCROLL TO TOP ("UP ARROW") BUTTON ================= */
.scroll-top-btn {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-gold-btn);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.25s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-green);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.scroll-top-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .navbar-nav {
    padding-top: 1rem;
    gap: 0.35rem;
  }
  .hero-section {
    min-height: calc(100vh - 68px);
    padding: 3.5rem 1rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  .btn-mission,
  .btn-network {
    width: 100%;
    max-width: 300px;
  }
  .approach-section,
  .focus-grid-section,
  .ecosystem-section,
  .commitment-section {
    padding: 3.75rem 0;
  }
  .focus-card {
    padding: 1.85rem 1.4rem;
  }
  .site-footer {
    padding-top: 3.25rem;
  }
  .footer-cta-block {
    margin-bottom: 3rem;
  }
  .footer-cta-buttons {
    flex-direction: column;
  }
  .footer-cta-buttons .btn-join-farmer,
  .footer-cta-buttons .btn-partner-us {
    width: 100%;
    text-align: center;
  }
  .scroll-top-btn {
    right: 1.15rem;
    bottom: 1.15rem;
    width: 44px;
    height: 44px;
  }
}