/* ===================================================================
   AFM (Agronix Farm Menu) — namespaced styles, safe to drop into any page
   =================================================================== */

body {
  margin: 0;
  padding: 0;
}

.afm-scope {
  /* Semantic Variables from Logo */
  --afm-primary: #5A8C27; /* Medium Bright Green */
  --afm-primary-dark: #46701f;
  --afm-secondary: #2B4E32; /* Dark Forest Green */
  --afm-secondary-deep: #1d3622;
  --afm-teal: #0A2B58; /* Teal / Dark Blue */

  /* Legacy aliases to keep existing components working seamlessly */
  --afm-forest: var(--afm-secondary);
  --afm-forest-deep: var(--afm-secondary-deep);
  --afm-moss: #3d6b4f;
  --afm-leaf: var(--afm-primary);
  --afm-leaf-dark: var(--afm-primary-dark);
  
  --afm-cream: #ffffff;
  --afm-ink: #1a2b22;
  --afm-ink-soft: #56685e;
  --afm-line: #e4e2d8;
  --afm-shadow: 0 18px 40px -14px rgba(11, 36, 29, 0.28);

  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--afm-ink);
  background: var(--afm-cream);
}

.afm-scope * { box-sizing: border-box; }

.afm-scope a { text-decoration: none; color: inherit; }
.afm-scope ul { list-style: none; margin: 0; padding: 0; }
.afm-scope button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

/* ---------- Top announcement bar ---------- */
.afm-topbar {
  background: var(--afm-forest-deep);
  color: #e4e9e6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  font-size: 15px;
  text-align: center;
}

.afm-topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--afm-leaf);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.afm-topbar__cta:hover { background: var(--afm-leaf-dark); }

/* ---------- Main nav bar ---------- */
.afm-navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--afm-line);
}

.afm-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 14px 0; }

.afm-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.afm-brand__name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
  color: #1a4030;
  letter-spacing: -0.02em;
}

/* ---------- Primary menu (desktop) ---------- */
.afm-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.afm-menu__item { position: relative; }

.afm-menu__link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  padding: 24px 10px;
  white-space: nowrap;
  transition: color 0.15s ease;
  border-bottom: 3px solid transparent;
}

.afm-menu__link:hover,
.afm-menu__item.is-open > .afm-menu__link,
.afm-menu__link.active {
  color: var(--afm-forest);
}

.afm-menu__link.active {
  border-bottom: 3px solid var(--afm-leaf);
}

.afm-menu__caret {
  width: 10px; height: 10px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.afm-menu__item.is-open .afm-menu__caret { transform: rotate(180deg); }

.afm-navbar__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: 10px; }

.afm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--afm-leaf);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.afm-btn-primary:hover { background: var(--afm-leaf-dark); transform: translateY(-1px); }

/* ---------- Simple dropdown (single column) ---------- */
.afm-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--afm-line);
  border-top: 3px solid var(--afm-leaf);
  box-shadow: var(--afm-shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 40;
}

.afm-menu__item.is-open > .afm-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.afm-dropdown__link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--afm-ink);
  padding: 9px 12px;
  border-radius: 4px;
  transition: background 0.14s ease, color 0.14s ease, padding-left 0.14s ease;
}
.afm-dropdown__link:hover { background: #f9f9f9; color: var(--afm-forest); padding-left: 16px; }

/* ---------- Mega dropdown (multi column) ---------- */
.afm-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(880px, 86vw);
  background: #ffffff;
  border: 1px solid var(--afm-line);
  border-top: 3px solid var(--afm-leaf);
  box-shadow: var(--afm-shadow);
  padding: 26px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}

.afm-menu__item.is-open > .afm-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.afm-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.afm-mega__col-title {
  font-family: 'Fraunces', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--afm-forest);
  margin: 0 0 12px 0;
  padding-bottom: 9px;
  border-bottom: 2px solid #eef2eb;
}

.afm-mega__link {
  display: block;
  font-size: 13px;
  color: var(--afm-ink-soft);
  padding: 7px 0;
  border-radius: 6px;
  transition: color 0.14s ease, padding-left 0.14s ease;
  line-height: 1.35;
}
.afm-mega__link:hover { color: var(--afm-forest); padding-left: 4px; font-weight: 600; }

.afm-mega__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--afm-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.afm-mega__footer-text { font-size: 13px; color: var(--afm-ink-soft); }
.afm-mega__footer-text strong { color: var(--afm-forest); }

.afm-mega__footer-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--afm-leaf-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Mobile toggle ---------- */
.afm-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--afm-line);
  border-radius: 4px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.afm-burger__bars, .afm-burger__bars::before, .afm-burger__bars::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--afm-forest);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.afm-burger__bars::before { position: absolute; top: -6px; }
.afm-burger__bars::after { position: absolute; top: 6px; }
.afm-scope.is-menu-open .afm-burger__bars { background: transparent; }
.afm-scope.is-menu-open .afm-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.afm-scope.is-menu-open .afm-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================== RESPONSIVE =========================== */

/* Handling 10 items overflow gracefully before full mobile breakpoint */
@media (max-width: 1200px) {
  .afm-menu__link { padding: 24px 6px; font-size: 12.5px; }
  .afm-brand__name { font-size: 22px; }
  .afm-navbar { padding: 0 16px; gap: 8px; }
}

@media (max-width: 1080px) {
  .afm-mega { width: min(680px, 90vw); }
  .afm-mega__grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}

@media (max-width: 1280px) {
  .afm-menu { display: none; }
  .afm-burger { display: inline-flex; }
  .afm-navbar__actions .afm-btn-primary span { display: none; }
  .afm-navbar__actions .afm-btn-primary { padding: 11px; }

  .afm-scope.is-menu-open .afm-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    height: 100vh;
    background: #fff;
    padding: 84px 18px 24px;
    overflow-y: auto;
    box-shadow: -20px 0 40px -16px rgba(11,36,29,0.3);
    z-index: 60;
    gap: 2px;
  }

  .afm-menu__item { width: 100%; }
  .afm-menu__link { width: 100%; justify-content: space-between; padding: 13px 10px; border-bottom: none; }
  .afm-menu__link.active { border-bottom: none; border-left: 3px solid var(--afm-leaf); }

  .afm-dropdown, .afm-mega {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--afm-leaf);
    border-radius: 0;
    margin: 2px 0 6px 10px;
    padding: 6px 0 6px 14px;
    max-height: 0;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }
  .afm-menu__item.is-open > .afm-dropdown,
  .afm-menu__item.is-open > .afm-mega { max-height: 1400px; }

  .afm-mega__grid { grid-template-columns: 1fr; gap: 18px; }
  .afm-mega__footer { flex-direction: column; align-items: flex-start; }

  .afm-scrim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11,36,29,0.45);
    z-index: 55;
  }
  .afm-scope.is-menu-open .afm-scrim { display: block; }
}

@media (max-width: 480px) {
  .afm-topbar { font-size: 12px; padding: 8px 14px; }
  .afm-topbar__cta { display: none; }
}

/* ---------- Footer ---------- */
.afm-ft {
  background: var(--afm-forest-deep);
  color: #c4d3cb;
  font-family: 'Manrope', sans-serif;
}

.afm-ft__social-bar {
  background: var(--afm-leaf);
  padding: 16px 20px;
}

.afm-ft__social-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  font-weight: 500;
  font-size: 19px;
}

.afm-ft__social-links {
  display: flex;
  gap: 10px;
}

.afm-ft__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  color: var(--afm-leaf);
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.afm-ft__social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.afm-ft__main {
  padding: 80px 20px 60px;
}

.afm-ft__container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.afm-ft__brand {
  padding: 0;
  margin-bottom: 24px;
}

.afm-ft__brand .afm-brand__name {
  color: #fff;
}

.afm-ft__desc {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #b0c2ba;
  max-width: 320px;
}

.afm-ft__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.afm-ft__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  border: none;
  background: #fff;
  font-size: 14px;
  color: var(--afm-ink);
  font-family: inherit;
}

.afm-ft__input:focus {
  outline: 2px solid var(--afm-leaf);
}

.afm-ft__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 4px;
  background: #a4c74a; 
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.afm-ft__submit:hover {
  background: var(--afm-primary);
}

.afm-ft__heading {
  color: #e0f252;
  font-size: 16.5px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 24px;
  font-family: inherit;
}

.afm-ft__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.afm-ft__list a {
  color: #b0c2ba;
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.afm-ft__list a:hover {
  color: #fff;
}

.afm-ft__bottom {
  padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.afm-ft__bottom-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #92a39b;
}

.afm-ft__legal {
  display: flex;
  gap: 20px;
}

.afm-ft__legal a {
  transition: color 0.2s ease;
}

.afm-ft__legal a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .afm-ft__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .afm-ft__container {
    grid-template-columns: 1fr;
  }
  .afm-ft__bottom-container {
    flex-direction: column;
    text-align: center;
  }
  .afm-ft__legal {
    justify-content: center;
  }
}

/* ---------- Hero Section ---------- */
.afm-hero {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

.afm-hero__slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.afm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18, 51, 42, 0.95) 0%, rgba(18, 51, 42, 0.6) 40%, rgba(18, 51, 42, 0.1) 100%);
}

.afm-hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 80px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.afm-hero__left {
  max-width: 600px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.afm-hero__title {
  font-family: 'Fraunces', serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.afm-hero__desc {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 36px;
  color: #e4e9e6;
  max-width: 480px;
}

.afm-hero__btn {
  margin-bottom: auto; /* Push stats down */
  padding: 16px 32px;
  font-size: 16px;
  align-self: flex-start;
}

.afm-hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
}

.afm-hero__stat h4 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #fff;
}

.afm-hero__stat p {
  font-size: 13.5px;
  color: #b0c2ba;
  margin: 0;
  line-height: 1.4;
}

.afm-hero__right {
  display: flex;
  align-items: center;
  height: 100%;
  padding-bottom: 40px;
}

.afm-weather-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  margin-top: 100px;
}

.afm-weather-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.afm-weather-card__info {
  display: flex;
  flex-direction: column;
}

.afm-weather-card__temp {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.afm-weather-card__cond {
  font-size: 14px;
  font-weight: 500;
  color: #e4e9e6;
}

.afm-weather-card__loc {
  font-size: 12px;
  color: #b0c2ba;
  margin-top: 6px;
}

.afm-hero-pagination {
  position: absolute;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.afm-hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0 !important;
  opacity: 1;
}

.afm-hero-pagination .swiper-pagination-bullet-active {
  background: transparent;
  border-color: #fff;
}

@media (max-width: 1024px) {
  .afm-hero__title { font-size: 46px; }
  .afm-hero__stats { gap: 24px; flex-wrap: wrap; margin-top: 40px; }
  .afm-hero__content { flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; }
  .afm-hero__right { height: auto; padding-bottom: 0; align-self: flex-start; margin-top: 0; }
  .afm-weather-card { margin-top: 0; }
  .afm-hero__overlay { background: linear-gradient(to right, rgba(18, 51, 42, 0.95) 0%, rgba(18, 51, 42, 0.7) 100%); }
}

@media (max-width: 640px) {
  .afm-hero { height: auto; min-height: 700px; }
  .afm-hero__title { font-size: 38px; }
  .afm-hero__right { align-self: stretch; }
  .afm-weather-card { width: 100%; justify-content: center; }
}

/* ---------- Journey Section ---------- */
.afm-journey {
  padding: 100px 20px;
  background: #ffffff;
  /* dotted pattern background */
  background-image: radial-gradient(#e4e9e6 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  font-family: 'Manrope', sans-serif;
}

.afm-journey__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.afm-journey__left {
  flex: 1;
}

.afm-journey__subtitle {
  color: var(--afm-primary); 
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
}

.afm-journey__title {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  color: var(--afm-ink); 
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.afm-journey__divider {
  border: none;
  border-top: 2px dotted #c4ceca;
  margin: 30px 0;
  width: 100%;
}

.afm-journey__desc {
  font-size: 18px;
  color: var(--afm-ink-soft);
  line-height: 1.7;
  margin-bottom: 40px;
  padding-right: 20px;
}

.afm-journey__btn {
  display: inline-flex;
  border-radius: 999px;
  background: var(--afm-primary);
  color: #fff;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.afm-journey__btn:hover {
  background: var(--afm-primary-dark);
  transform: translateY(-2px);
}

/* Animations for Journey Text */
@keyframes afmFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.afm-journey__left > * {
  animation: afmFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.afm-journey__left .afm-journey__subtitle { animation-delay: 0.1s; }
.afm-journey__left .afm-journey__title { animation-delay: 0.2s; }
.afm-journey__left .afm-journey__divider { animation-delay: 0.3s; }
.afm-journey__left .afm-journey__desc { animation-delay: 0.4s; }
.afm-journey__left .afm-journey__btn { animation-delay: 0.5s; }

.afm-journey__right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.afm-journey__image-tall {
  border-radius: 24px;
  overflow: hidden;
  height: 520px;
}

.afm-journey__image-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afm-journey__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.afm-journey__card {
  background: #fdf552;
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.afm-journey__card-icon {
  background: #12332a;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.afm-journey__card-title {
  font-size: 19px;
  color: #12332a;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.afm-journey__card-desc {
  font-size: 14.5px;
  color: var(--afm-ink-soft);
  line-height: 1.5;
  margin: 0;
}

.afm-journey__image-wide {
  border-radius: 24px;
  overflow: hidden;
  flex: 0.8;
  min-height: 180px;
}

.afm-journey__image-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .afm-journey__container {
    flex-direction: column;
    gap: 50px;
  }
  .afm-journey__desc {
    padding-right: 0;
  }
  .afm-journey__image-tall {
    height: 440px;
  }
  .afm-journey__right {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .afm-journey__right {
    grid-template-columns: 1fr;
  }
  .afm-journey__title {
    font-size: 34px;
  }
  .afm-journey__image-tall {
    height: 300px;
  }
}

/* ---------- Services Slider ---------- */
.afm-services {
  padding: 80px 20px;
  background: #ffffff;
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
}

.afm-services__container {
  max-width: 1200px;
  margin: 0 auto;
}

.afm-services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.afm-services__title-area {
  flex: 1;
}

.afm-services__tag {
  color: var(--afm-leaf);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.afm-services__title {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  color: var(--afm-forest);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afm-services__nav {
  display: flex;
  gap: 12px;
}

.afm-services__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--afm-leaf);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  border: none;
}

.afm-services__nav-btn:hover {
  background: var(--afm-leaf-dark);
  transform: translateY(-2px);
}

.afm-services__nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.afm-services__slider-wrapper {
  margin: 0 -20px;
  padding: 0 20px 20px;
}

.afm-services__slider {
  padding-bottom: 20px; /* shadow room */
  overflow: visible; /* so shadow is not cut off, Swiper handles overflow normally, but we can set it to visible or keep default */
}

/* Override Swiper overflow to show shadow */
.swiper.afm-services__slider {
  overflow: visible;
  clip-path: inset(-100vw -100vw -50px -100vw);
}

.afm-services__slider::-webkit-scrollbar {
  display: none;
}

.afm-services__card {
  width: 300px; /* Swiper uses width for slidesPerView: auto */
  position: relative;
  padding-top: 10px; /* space for the dot */
}

.afm-services__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--afm-leaf);
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.afm-services__card.active .afm-services__dot {
  opacity: 1;
}

.afm-services__card-inner {
  border: 1px solid var(--afm-forest);
  border-radius: 12px;
  padding: 30px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.afm-services__card.active .afm-services__card-inner {
  border-color: var(--afm-leaf);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.afm-services__card:hover .afm-services__card-inner {
  border-color: var(--afm-leaf);
}

.afm-services__card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--afm-forest);
  margin: 0 0 12px 0;
}

.afm-services__card-desc {
  font-size: 14.5px;
  color: var(--afm-ink-soft);
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1;
}

.afm-services__card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--afm-forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.afm-services__card-link:hover {
  color: var(--afm-leaf);
}

.afm-services__card-img {
  width: 100%;
  height: 120px;
  border-radius: 60px; /* creates a horizontal pill shape */
  overflow: hidden;
  margin-top: auto;
}

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

.afm-services__card:hover .afm-services__card-img img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .afm-services__title {
    font-size: 34px;
  }
  .afm-services__card {
    flex: 0 0 280px;
  }
}

/* ---------- Agri Services (3 column) ---------- */
.afm-agri-services {
  padding: 100px 20px;
  background: #ffffff;
  font-family: 'Manrope', sans-serif;
}

.afm-agri-services__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.afm-agri-services__tag {
  color: var(--afm-primary);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.afm-agri-services__title {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  color: var(--afm-ink);
  line-height: 1.15;
  margin: 0 0 24px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afm-agri-services__desc {
  font-size: 15px;
  color: var(--afm-ink-soft);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.afm-agri-services__btn {
  display: inline-flex;
  background: var(--afm-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.afm-agri-services__btn:hover {
  background: var(--afm-primary-dark);
  transform: translateY(-2px);
}

.afm-agri-services__middle {
  position: relative;
  padding: 20px 20px 0 0;
}

.afm-agri-services__img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  height: 480px;
}

.afm-agri-services__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afm-agri-services__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fdf552;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.afm-agri-services__badge-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--afm-ink);
  line-height: 1;
  margin-bottom: 8px;
}

.afm-agri-services__badge-text {
  font-size: 13px;
  color: var(--afm-ink-soft);
  font-weight: 500;
  line-height: 1.3;
}

.afm-agri-services__right-desc {
  font-size: 14.5px;
  color: var(--afm-ink-soft);
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.afm-agri-services__list {
  display: flex;
  flex-direction: column;
}

.afm-agri-services__list li {
  padding: 16px 0;
  border-bottom: 1px solid #e4e2d8;
  font-size: 15px;
  color: var(--afm-ink-soft);
  font-weight: 500;
}

.afm-agri-services__list li:first-child {
  border-top: 1px solid #e4e2d8;
}

@media (max-width: 1024px) {
  .afm-agri-services__container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .afm-agri-services__middle {
    max-width: 500px;
    margin: 0 auto;
    padding-right: 20px;
  }
}
@media (max-width: 640px) {
  .afm-agri-services__title {
    font-size: 32px;
  }
}

/* ---------- FAQ Section ---------- */
.afm-faq {
  padding: 100px 20px;
  background: #fcfdfa;
  font-family: 'Manrope', sans-serif;
}

.afm-faq__container {
  max-width: 800px;
  margin: 0 auto;
}

.afm-faq__header {
  text-align: center;
  margin-bottom: 50px;
}

.afm-faq__tag {
  color: var(--afm-leaf);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.afm-faq__title {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  color: var(--afm-forest);
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afm-faq__desc {
  font-size: 16px;
  color: var(--afm-ink-soft);
  line-height: 1.6;
  margin: 0;
}

.afm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afm-faq__item {
  border: 1px solid var(--afm-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.afm-faq__item:hover {
  border-color: var(--afm-leaf);
}

.afm-faq__item.is-active {
  border-color: var(--afm-leaf);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.afm-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  font-size: 17px;
  font-weight: 600;
  color: var(--afm-forest);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.afm-faq__question:hover {
  color: var(--afm-leaf);
}

.afm-faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 20px;
}

.afm-faq__icon::before,
.afm-faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.afm-faq__icon::before {
  width: 14px; height: 2px;
}
.afm-faq__icon::after {
  width: 2px; height: 14px;
}

.afm-faq__item.is-active .afm-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.afm-faq__item.is-active .afm-faq__icon::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.afm-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.afm-faq__answer-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--afm-ink-soft);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .afm-faq__title { font-size: 32px; }
  .afm-faq__question { padding: 20px; font-size: 16px; }
  .afm-faq__answer-inner { padding: 0 20px 20px; }
}

/* ---------- Contact CTA Section ---------- */
.afm-contact-cta {
  position: relative;
  background: linear-gradient(to right, #eff4f1 50%, #204c39 50%);
  padding: 100px 20px;
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
}

.afm-contact-cta__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.afm-contact-cta__left {
  flex: 1;
  position: relative;
}

/* Illustration placeholder style */
.afm-contact-cta__illustration {
  position: absolute;
  bottom: 0;
  left: -80px;
  width: 160px;
  height: 380px;
  object-fit: cover;
  border-radius: 80px;
  z-index: 3;
}

.afm-contact-cta__card {
  background: #ffffff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.afm-contact-cta__tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--afm-primary);
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.afm-contact-cta__title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  color: var(--afm-ink);
  margin: 0 0 30px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afm-contact-cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afm-contact-cta__row {
  display: flex;
  gap: 16px;
}

.afm-contact-cta__input {
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: #f7f7f7;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}

.afm-contact-cta__input:focus {
  outline: 2px solid var(--afm-primary);
  background: #fff;
}

.afm-contact-cta__textarea {
  min-height: 120px;
  resize: vertical;
}

.afm-contact-cta__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--afm-teal);
  color: var(--afm-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.afm-contact-cta__submit:hover {
  background: #061a38;
  transform: translateY(-2px);
}

.afm-contact-cta__right {
  flex: 1;
  color: #ffffff;
  padding-left: 40px;
}

.afm-contact-cta__info-title {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 20px 0;
  position: relative;
  display: inline-block;
}


.afm-contact-cta__info-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #d1ded8;
  margin: 0 0 40px 0;
  max-width: 480px;
}

.afm-contact-cta__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.afm-contact-cta__detail h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #fff;
}

.afm-contact-cta__detail p {
  font-size: 14.5px;
  color: #d1ded8;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .afm-contact-cta {
    background: linear-gradient(to bottom, #eff4f1 50%, #204c39 50%);
  }
  .afm-contact-cta__container {
    flex-direction: column;
    gap: 60px;
  }
  .afm-contact-cta__left, .afm-contact-cta__right {
    width: 100%;
    padding: 0;
  }
  .afm-contact-cta__card {
    margin: 0;
  }
  .afm-contact-cta__illustration {
    display: none;
  }
}

@media (max-width: 640px) {
  .afm-contact-cta__row {
    flex-direction: column;
  }
  .afm-contact-cta__card {
    padding: 30px 20px;
  }
  .afm-contact-cta__info-title {
    font-size: 32px;
  }
}

/* ---------- Video Banner Section ---------- */
.afm-video-banner {
  position: relative;
  padding: 140px 20px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.afm-video-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.afm-video-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afm-video-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 51, 42, 0.4);
}

.afm-video-banner__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.afm-video-banner__play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.afm-video-banner__play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}
.afm-video-banner__play:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.afm-video-banner__title {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 40px 0;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.afm-video-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afm-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  padding: 16px 36px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(133, 173, 53, 0.3);
  text-decoration: none;
}

.afm-video-banner__btn:hover {
  background: #759a2f;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .afm-video-banner { padding: 100px 20px; }
  .afm-video-banner__title { font-size: 36px; }
  .afm-video-banner__play { width: 64px; height: 64px; }
  .afm-video-banner__play svg { width: 24px; height: 24px; }
}

/* ---------- Farming Models Section ---------- */
.afm-farming-models {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #eff4f1 0%, #ffffff 100%);
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
}

.afm-farming-models__container {
  max-width: 1200px;
  margin: 0 auto;
}

.afm-farming-models__top {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
}

.afm-farming-models__content {
  flex: 1;
  max-width: 500px;
  z-index: 2;
}

.afm-farming-models__tag-text {
  color: var(--afm-primary); 
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
}

.afm-farming-models__title {
  font-family: 'Fraunces', serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--afm-ink);
  line-height: 1.1;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

.afm-farming-models__highlight {
  color: var(--afm-teal);
}

.afm-farming-models__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--afm-ink-soft);
  margin-bottom: 40px;
}

.afm-farming-models__actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.afm-farming-models__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afm-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.afm-farming-models__btn:hover {
  background: var(--afm-secondary-deep);
  transform: translateY(-2px);
}

.afm-farming-models__signature {
  font-family: 'Caveat', 'Dancing Script', 'Brush Script MT', cursive;
  font-size: 32px;
  color: var(--afm-secondary);
  line-height: 1.1;
  transform: rotate(-8deg);
}

.afm-farming-models__visual {
  flex: 1.5;
  position: relative;
}

.afm-farming-models__visual-text-top {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--afm-ink-soft);
  text-align: right;
  line-height: 1.5;
  z-index: 2;
}

.afm-farming-models__image-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 400px 0 0 400px;
  overflow: hidden;
  margin-left: 20px;
}

.afm-farming-models__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afm-farming-models__leaf-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--afm-secondary);
  color: #fff;
  padding: 50px 30px 40px;
  border-radius: 200px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 200px;
  height: 200px;
}
.afm-farming-models__leaf-badge svg {
  color: var(--afm-primary);
}
.afm-farming-models__leaf-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

/* 5 Cards Grid */
.afm-farming-models__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.afm-farming-card {
  background: #fcfdfa;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #f0f4f2;
}
.afm-farming-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.afm-farming-card__img {
  width: 100%;
  height: 140px;
  position: relative;
}
.afm-farming-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.afm-farming-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(252,253,250,1), rgba(252,253,250,0));
}

.afm-farming-card__icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4e9e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afm-secondary);
  position: relative;
  margin-top: -32px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.afm-farming-card__content {
  padding: 20px 16px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.afm-farming-card__content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--afm-ink);
  margin: 0 0 12px 0;
}

.afm-farming-card__content p {
  font-size: 13.5px;
  color: var(--afm-ink-soft);
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex: 1;
}

.afm-farming-card__content a {
  font-size: 14px;
  font-weight: 700;
  color: var(--afm-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.afm-farming-card__content a:hover {
  color: var(--afm-primary);
}

@media (max-width: 1024px) {
  .afm-farming-models__top { flex-direction: column; }
  .afm-farming-models__image-wrapper { border-radius: 40px; margin: 0; height: 340px; }
  .afm-farming-models__visual-text-top { display: none; }
  .afm-farming-models__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 640px) {
  .afm-farming-models__grid {
    grid-template-columns: 1fr;
  }
  .afm-farming-models__title { font-size: 40px; }
  .afm-farming-models__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
}