:root {
  --leaf-dark: #123b16;
  --leaf: #255f1e;
  --leaf-mid: #4f8f22;
  --leaf-light: #91bd2f;
  --gold: #d9b940;
  --earth: #7b5b32;
  --cream: #fbf8ec;
  --cream-2: #f3efd9;
  --ink: #1d2b1d;
  --muted: #62705f;
  --line: rgba(37, 95, 30, 0.18);
  --shadow: 0 24px 70px rgba(18, 59, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow-x: clip;
}

.site-bg {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(217, 185, 64, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 18%, rgba(145, 189, 47, 0.2), transparent 22rem),
    url("../images/leaf-texture.png"),
    var(--cream);
  background-size: auto, auto, 520px 520px, auto;
}

.leaf-navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 18px 20px;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 253, 242, 0.98), rgba(244, 239, 211, 0.9)),
    radial-gradient(circle at 12% 25%, rgba(145, 189, 47, 0.18), transparent 18rem);
  box-shadow: 0 18px 50px rgba(18, 59, 22, 0.08);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.leaf-navbar-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background:
    radial-gradient(80px 28px at 10% 100%, rgba(145, 189, 47, 0.26), transparent 70%),
    radial-gradient(120px 32px at 38% 100%, rgba(37, 95, 30, 0.18), transparent 70%),
    radial-gradient(90px 28px at 72% 100%, rgba(145, 189, 47, 0.24), transparent 70%),
    linear-gradient(180deg, transparent, rgba(145, 189, 47, 0.16));
  z-index: -2;
}

.leaf-navbar-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(37, 95, 30, 0.62), rgba(217, 185, 64, 0.6), rgba(37, 95, 30, 0.62), transparent);
  z-index: -1;
}

.leaf-navbar-wrap.scrolled {
  padding-top: 10px;
  padding-bottom: 14px;
  background: rgba(251, 248, 236, 0.92);
  backdrop-filter: blur(12px);
}

.nav-vine {
  position: absolute;
  left: 7vw;
  right: 7vw;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(217, 185, 64, 0.42), rgba(255, 255, 255, 0.75), rgba(217, 185, 64, 0.42), transparent);
  z-index: -1;
}

.nav-tree {
  position: absolute;
  bottom: 8px;
  width: 84px;
  height: 112px;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.nav-tree::before {
  content: "";
  position: absolute;
  left: 38px;
  bottom: 0;
  width: 9px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(#7b5b32, #3d2b18);
}

.nav-tree::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 78px;
  height: 78px;
  border-radius: 50% 50% 46% 50%;
  background:
    radial-gradient(circle at 30% 38%, #7faf31 0 18px, transparent 19px),
    radial-gradient(circle at 62% 28%, #4f8f22 0 23px, transparent 24px),
    radial-gradient(circle at 55% 62%, #255f1e 0 29px, transparent 30px),
    radial-gradient(circle at 28% 66%, #6e9e18 0 24px, transparent 25px);
  animation: treeSway 4.2s ease-in-out infinite alternate;
}

.nav-tree-left {
  left: 18px;
}

.nav-tree-right {
  right: 18px;
  transform: scaleX(-1);
}

.leaf-navbar {
  position: relative;
  max-width: 1500px;
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.nav-leaf-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.leaf-link,
.leaf-cta {
  position: relative;
  min-width: clamp(92px, 7.2vw, 126px);
  height: 62px;
  margin: 0 -9px;
  padding: 10px 18px 11px;
  color: #f7f9ed;
  border: 1px solid rgba(217, 185, 64, 0.28);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(145deg, #2d7024, #103914 72%);
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.16), 0 12px 28px rgba(18, 59, 22, 0.2);
  clip-path: ellipse(64% 48% at 50% 50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.leaf-link::before,
.leaf-cta::before {
  content: "";
  position: absolute;
  inset: 8px 18px auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.fallback-icon {
  font-weight: 950;
}

.leaf-link:hover,
.leaf-link.active,
.leaf-cta:hover {
  transform: translateY(-5px) scale(1.03);
  filter: saturate(1.2);
  color: #fff;
  background: linear-gradient(145deg, #6e9e18, #174315 72%);
}

.leaf-link.active {
  color: #fff6b9;
}

.brand-badge {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(#fffef6, #eef5d8);
  border: 4px solid rgba(145, 189, 47, 0.75);
  box-shadow: 0 18px 40px rgba(18, 59, 22, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--leaf);
  z-index: 3;
}

.brand-leaf {
  display: block;
  width: 54px;
  height: 34px;
  margin: 0 auto 3px;
  position: relative;
}

.brand-leaf::before,
.brand-leaf::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 35px;
  height: 24px;
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf));
  border-radius: 100% 0 100% 0;
  transform: rotate(-24deg);
}

.brand-leaf::after {
  left: auto;
  right: 0;
  transform: rotate(24deg) scaleX(-1);
}

.brand-title {
  display: block;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 0.9;
}

.brand-subtitle {
  display: block;
  font-weight: 800;
  color: var(--leaf-mid);
  font-size: 0.9rem;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--leaf);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.dropdown-leaf {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.dropdown-leaf::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 100%;
  height: 24px;
  z-index: 5;
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(8px);
  width: 245px;
  padding: 14px;
  border-radius: 10px 26px 10px 26px;
  background:
    linear-gradient(135deg, rgba(255, 253, 242, 0.98), rgba(240, 247, 221, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 20;
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 253, 242, 0.98);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

@media (min-width: 992px) {
  .dropdown-leaf:hover .dropdown-panel,
  .dropdown-leaf:focus-within .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-panel a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--leaf-dark);
  font-weight: 700;
  z-index: 1;
}

.dropdown-panel a:hover {
  background: rgba(145, 189, 47, 0.16);
}

.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

@keyframes treeSway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(3deg); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 236, 0.95) 0%, rgba(251, 248, 236, 0.7) 35%, rgba(18, 59, 22, 0.1) 100%);
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.eyebrow {
  color: var(--leaf);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.display-title {
  font-weight: 950;
  line-height: 0.96;
  color: var(--leaf-dark);
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

.section-title {
  font-weight: 950;
  color: var(--leaf-dark);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.lead-copy {
  color: #354033;
  font-size: 1.08rem;
  line-height: 1.75;
}

.btn-leaf,
.btn-outline-leaf {
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 850;
  border: 1px solid var(--leaf);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-leaf {
  background: linear-gradient(135deg, var(--leaf-mid), var(--leaf-dark));
  color: #fff;
  box-shadow: 0 14px 26px rgba(37, 95, 30, 0.22);
}

.btn-outline-leaf {
  color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.45);
}

.btn-leaf:hover,
.btn-outline-leaf:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(37, 95, 30, 0.22);
}

.section-pad {
  padding: 92px 0;
}

.soft-band {
  background: rgba(255, 253, 242, 0.8);
  border-top: 1px solid rgba(37, 95, 30, 0.08);
  border-bottom: 1px solid rgba(37, 95, 30, 0.08);
}

.leaf-card {
  height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 242, 0.9);
  border-radius: 8px 32px 8px 32px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(18, 59, 22, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.leaf-card:hover {
  transform: translateY(-8px);
  border-color: rgba(145, 189, 47, 0.55);
  box-shadow: var(--shadow);
}

.icon-seed {
  width: 50px;
  height: 50px;
  border-radius: 100% 0 100% 0;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  margin-bottom: 16px;
}

.organic-frame {
  border-radius: 10% 38% 12% 32%;
  overflow: hidden;
  border: 6px solid rgba(217, 185, 64, 0.55);
  box-shadow: var(--shadow);
}

.stats-strip {
  margin-top: -72px;
  position: relative;
  z-index: 2;
}

.stat-box {
  background: linear-gradient(135deg, rgba(37, 95, 30, 0.96), rgba(18, 59, 22, 0.96));
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px;
  min-height: 126px;
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff6b9;
}

.process-step {
  position: relative;
  padding-left: 78px;
  margin-bottom: 30px;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  box-shadow: 0 0 0 8px rgba(145, 189, 47, 0.15);
}

.process-step::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 62px;
  bottom: -28px;
  width: 2px;
  background: rgba(37, 95, 30, 0.18);
}

.process-step:last-child::after {
  display: none;
}

.page-banner {
  padding: 120px 0 80px;
  background:
    linear-gradient(90deg, rgba(251, 248, 236, 0.97), rgba(251, 248, 236, 0.72)),
    url("../images/hero-farm.png") center/cover;
  border-bottom: 1px solid var(--line);
}

.form-control,
.form-select {
  border-radius: 16px;
  border: 1px solid rgba(37, 95, 30, 0.22);
  padding: 13px 15px;
  background-color: rgba(255, 253, 242, 0.95);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--leaf-mid);
  box-shadow: 0 0 0 0.2rem rgba(79, 143, 34, 0.16);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px 28px;
  cursor: pointer;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  background: rgba(18, 59, 22, 0.78);
}

.floating-actions {
  position: fixed;
  right: 10px;
  top: 45%;
  z-index: 999;
  display: grid;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--leaf-mid), var(--leaf-dark));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(18, 59, 22, 0.25);
  position: relative;
}

/* Real, brand-accurate icon colours for each quick-action button so the
   floating stack reads as recognisable icons rather than plain blobs. */
.float-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: #fff;
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #34d05c, #1ea952);
}

.float-btn.call {
  background: linear-gradient(135deg, #2f8fe0, #1c63a8);
}

.float-btn.mail {
  background: linear-gradient(135deg, var(--gold), #b8891f);
}

.float-btn.top {
  background: linear-gradient(135deg, var(--leaf-mid), var(--leaf-dark));
}

.float-btn span {
  position: absolute;
  right: 54px;
  white-space: nowrap;
  background: var(--leaf-dark);
  color: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-btn:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* Article quick-read modal — content zooms in from a smaller size and
   settles into place, matching the site's "arrive from outside" feel. */
#articleModal .modal-dialog {
  transform: scale(0.82) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

#articleModal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#articleModal .modal-content {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#articleModal .article-modal-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

#articleModal .modal-header {
  border-bottom: 1px solid var(--line);
}

#articleModal .modal-body p {
  color: var(--muted);
}

.js-related-article.active-article .leaf-card {
  border-color: var(--leaf-mid);
  box-shadow: 0 14px 30px rgba(79, 143, 34, 0.28);
}

.js-related-article.active-article .btn-outline-leaf {
  background: var(--leaf-mid);
  color: #fff;
  border-color: var(--leaf-mid);
}

.site-footer {
  background: linear-gradient(145deg, #143d16, #071e0b);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 24px;
}

.site-footer h5 {
  color: #fff6b9;
  font-weight: 900;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin: 9px 0;
}

.footer-brand {
  color: #fff;
  font-weight: 950;
  font-size: 2rem;
}

.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(64px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.reveal.from-left {
  transform: translateX(-110px) scale(0.96);
}

.reveal.from-right {
  transform: translateX(110px) scale(0.96);
}

.reveal.zoom-in {
  transform: scale(0.82);
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Cards inside a grid cascade in one after another instead of
   popping together — pure CSS, keyed off column position. */
.row.g-4 > *:nth-child(1).reveal,
.row.g-5 > *:nth-child(1).reveal { transition-delay: 0s; }
.row.g-4 > *:nth-child(2).reveal,
.row.g-5 > *:nth-child(2).reveal { transition-delay: 0.1s; }
.row.g-4 > *:nth-child(3).reveal,
.row.g-5 > *:nth-child(3).reveal { transition-delay: 0.2s; }
.row.g-4 > *:nth-child(4).reveal,
.row.g-5 > *:nth-child(4).reveal { transition-delay: 0.3s; }
.row.g-4 > *:nth-child(5).reveal,
.row.g-5 > *:nth-child(5).reveal { transition-delay: 0.4s; }
.row.g-4 > *:nth-child(6).reveal,
.row.g-5 > *:nth-child(6).reveal { transition-delay: 0.5s; }

.accordion.reveal .accordion-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion.reveal.visible .accordion-item {
  opacity: 1;
  transform: none;
}

.accordion.reveal.visible .accordion-item:nth-child(1) { transition-delay: 0.05s; }
.accordion.reveal.visible .accordion-item:nth-child(2) { transition-delay: 0.15s; }
.accordion.reveal.visible .accordion-item:nth-child(3) { transition-delay: 0.25s; }
.accordion.reveal.visible .accordion-item:nth-child(4) { transition-delay: 0.35s; }
.accordion.reveal.visible .accordion-item:nth-child(5) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.zoom-in,
  .accordion.reveal .accordion-item {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.drift {
  animation: drift 5.5s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-8px) rotate(-2deg); }
  to { transform: translateY(10px) rotate(2deg); }
}

.leaf-particle {
  position: absolute;
  width: 26px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: rgba(79, 143, 34, 0.7);
  animation: leafFly 9s linear infinite;
  z-index: 1;
}

@keyframes leafFly {
  0% { transform: translate(-10vw, 20vh) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(110vw, -20vh) rotate(320deg); opacity: 0; }
}

.accordion-button {
  font-weight: 850;
  color: var(--leaf-dark);
  background: rgba(255, 253, 242, 0.88);
}

.accordion-button:not(.collapsed) {
  background: rgba(145, 189, 47, 0.18);
  color: var(--leaf-dark);
}

.table {
  --bs-table-bg: rgba(255, 253, 242, 0.8);
}

@media (max-width: 1199px) {
  .leaf-link,
  .leaf-cta {
    min-width: 100px;
    font-size: 0.72rem;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-badge {
    width: 114px;
    height: 114px;
  }
}

@media (max-width: 991px) {
  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(34px);
  }

  .leaf-navbar {
    display: flex;
    justify-content: space-between;
    min-height: 82px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .brand-badge {
    width: 92px;
    height: 92px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .nav-leaf-row {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 112px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255, 253, 242, 0.98);
    border: 1px solid var(--line);
  }

  .nav-leaf-row.open {
    display: flex;
  }

  .nav-left {
    top: 112px;
    border-radius: 28px 28px 0 0;
    border-bottom: none;
    box-shadow: var(--shadow);
    padding-bottom: 10px;
  }

  .nav-right {
    /* top is set dynamically by JS to sit flush under nav-left,
       so the two rows always read as one continuous card with
       no gap between them, no matter how tall nav-left grows. */
    top: 112px;
    border-radius: 0 0 28px 28px;
    border-top: 1px dashed var(--line);
    box-shadow: var(--shadow);
    padding-top: 10px;
  }

  .leaf-link,
  .leaf-cta {
    clip-path: none;
    width: 100%;
    margin: 4px 0;
    border-radius: 18px;
    min-width: 0;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .hero {
    min-height: 700px;
    padding-top: 40px;
  }

  .stats-strip {
    margin-top: 0;
  }

  .floating-actions {
    top: auto;
    bottom: 18px;
    right: 12px;
  }
}

@media (max-width: 575px) {
  .section-pad {
    padding: 64px 0;
  }

  .hero {
    min-height: 650px;
  }

  .display-title {
    font-size: 2.55rem;
  }

  .leaf-card {
    padding: 22px;
  }
}

/* ===========================================================
   NAV DROPDOWN — DESKTOP HOVER + MOBILE ACCORDION
   (Fixes: hover gap closing early, no flicker on mouse travel,
   mobile now opens on tap instead of always-expanded)
=========================================================== */

/* Chevron shown only on dropdown-enabled items */
.dropdown-caret {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dropdown-caret svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

/* Widen the invisible hover bridge so the panel never closes
   while the pointer travels down into it */
.dropdown-leaf {
  padding-bottom: 26px;
  margin-bottom: -26px;
}

.dropdown-leaf::after {
  height: 34px;
}

.dropdown-panel {
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

@media (min-width: 992px) {
  .dropdown-leaf:hover .dropdown-panel,
  .dropdown-leaf:focus-within .dropdown-panel,
  .dropdown-leaf.hover-open .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===========================================================
   RESPONSIVE REFINEMENTS
   Base rules above already cover <=1199 / <=991 / <=575.
   These add extra polish at the smallest phones and the
   mobile accordion-style dropdown behaviour.
=========================================================== */

@media (max-width: 991px) {
  .nav-leaf-row {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }

  .dropdown-caret {
    display: inline-flex;
  }

  .leaf-link {
    justify-content: flex-start;
  }

  .leaf-link .nav-icon {
    margin-bottom: 0;
  }

  .leaf-link span:not(.nav-icon):not(.dropdown-caret) {
    flex: 1 1 auto;
    text-align: left;
  }

  /* Mobile dropdown = closed accordion by default */
  .dropdown-panel {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    width: 100%;
    margin-top: 0;
    padding: 0;
    background: rgba(145, 189, 47, 0.14);
    border-left: 3px solid var(--leaf-light);
    border-radius: 0 14px 14px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
  }

  .dropdown-panel::before {
    display: none;
  }

  .dropdown-panel.open {
    max-height: 400px;
    padding: 8px;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .dropdown-leaf.open .dropdown-caret svg {
    transform: rotate(180deg);
  }

  .dropdown-panel a {
    color: var(--leaf-dark);
    font-weight: 700;
  }

  .dropdown-panel a:active {
    background: rgba(37, 95, 30, 0.12);
  }
}

@media (max-width: 767px) {
  .brand-badge {
    width: 82px;
    height: 82px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .nav-tree {
    display: none;
  }
}

@media (max-width: 420px) {
  .leaf-navbar-wrap {
    padding: 12px 12px 16px;
  }

  .display-title {
    font-size: 2.15rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .stat-box {
    padding: 16px 10px;
    min-height: 100px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }

  .floating-actions {
    right: 8px;
  }
}

/* Prevent any accidental horizontal overflow from wide
   decorative elements at any breakpoint */
.container,
.container-fluid {
  max-width: 100%;
}

@media (min-width: 1600px) {
  .leaf-navbar {
    max-width: 1600px;
  }
}

/* ===========================================================
   GALLERY LIGHTBOX MODAL
   Replaces the old "open image in a new tab" behaviour with an
   in-page popup, styled to match the organic/leaf theme.
=========================================================== */
.lightbox-content {
  background: rgba(18, 32, 15, 0.97);
  border: none;
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
}

.lightbox-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-caption {
  color: #fff6b9;
  font-weight: 800;
  text-align: center;
  margin: 14px 0 0;
}

/* Carousel controls + indicators inside the lightbox, tinted gold
   to match the site accent instead of Bootstrap's plain white */
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(217, 185, 64, 0.85);
  border-radius: 50%;
  opacity: 0.9;
}

#galleryCarousel .carousel-control-prev { left: 10px; }
#galleryCarousel .carousel-control-next { right: 10px; }

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--gold);
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

#galleryCarousel .carousel-indicators {
  position: relative;
  margin: 14px 0 0;
}

#galleryCarousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  opacity: 1;
}

#galleryCarousel .carousel-indicators .active {
  background-color: var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  opacity: 0.9;
}

@media (max-width: 575px) {
  .lightbox-content {
    padding: 12px;
  }
}

/* ===========================================================
   ENTRANCE ANIMATIONS — everything flies in on load
   Pure CSS (animation + fill-mode both), so JS stays untouched.
   Also replays nicely each time the mobile menu opens, since
   display:none -> flex naturally restarts a CSS animation.
=========================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Navbar drops in from above */
  .leaf-navbar-wrap {
    animation: navDropIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes navDropIn {
    from { transform: translateY(-46px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* Logo badge pops in with a little bounce, just after the bar lands */
  .brand-badge {
    animation: badgePop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s both;
  }

  @keyframes badgePop {
    0%   { transform: scale(0.35) rotate(-16deg); opacity: 0; }
    65%  { transform: scale(1.1) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }

  /* Nav links cascade in one after another, left side then right */
  .nav-leaf-row > div {
    animation: navItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .nav-left > div:nth-child(1) { animation-delay: 0.06s; }
  .nav-left > div:nth-child(2) { animation-delay: 0.13s; }
  .nav-left > div:nth-child(3) { animation-delay: 0.2s; }
  .nav-left > div:nth-child(4) { animation-delay: 0.27s; }
  .nav-right > div:nth-child(1) { animation-delay: 0.34s; }
  .nav-right > div:nth-child(2) { animation-delay: 0.41s; }
  .nav-right > div:nth-child(3) { animation-delay: 0.48s; }
  .nav-right > div:nth-child(4) { animation-delay: 0.55s; }
  .nav-right > .leaf-cta { animation: navItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }

  @keyframes navItemIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* Floating quick-contact buttons slide in from the right, staggered */
  .floating-actions .float-btn {
    animation: floatInRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .floating-actions .float-btn:nth-child(1) { animation-delay: 0.7s; }
  .floating-actions .float-btn:nth-child(2) { animation-delay: 0.8s; }
  .floating-actions .float-btn:nth-child(3) { animation-delay: 0.9s; }
  .floating-actions .float-btn:nth-child(4) { animation-delay: 1s; }

  @keyframes floatInRight {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }

  /* Hero — every piece flies in on its own, staggered */
  .hero .col-lg-6.from-left > .eyebrow {
    animation: heroUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
  .hero .col-lg-6.from-left > .display-title {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
  }
  .hero .col-lg-6.from-left > .lead-copy {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
  }
  .hero .col-lg-6.from-left > .d-flex {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both;
  }
  .hero .col-lg-5.from-right {
    animation: heroRightIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .hero .leaf-particle {
    animation: leafFly 9s linear infinite, particleFadeIn 1.2s ease 1s both;
  }

  @keyframes heroUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  @keyframes heroRightIn {
    from { transform: translateX(80px) scale(0.92); opacity: 0; }
    to   { transform: translateX(0) scale(1); opacity: 1; }
  }

  @keyframes particleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Stats strip counters rise in with a stagger */
  .stats-strip .stat-box {
    animation: statUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .stats-strip .col-6:nth-child(1) .stat-box,
  .stats-strip .col-lg-3:nth-child(1) .stat-box { animation-delay: 0.5s; }
  .stats-strip .col-6:nth-child(2) .stat-box,
  .stats-strip .col-lg-3:nth-child(2) .stat-box { animation-delay: 0.6s; }
  .stats-strip .col-6:nth-child(3) .stat-box,
  .stats-strip .col-lg-3:nth-child(3) .stat-box { animation-delay: 0.7s; }
  .stats-strip .col-6:nth-child(4) .stat-box,
  .stats-strip .col-lg-3:nth-child(4) .stat-box { animation-delay: 0.8s; }

  @keyframes statUp {
    from { transform: translateY(34px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* Page banner (inner pages) fades up on load */
  .page-banner .container {
    animation: heroUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
}

/* ===========================================================
   ICON FLAIR — small lively touches on nav, cards & buttons
=========================================================== */

/* Nav icons pop and tilt on hover, independent of the link's
   own lift-up so it feels layered rather than flat */
.leaf-link .nav-icon svg,
.leaf-cta .nav-icon svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leaf-link:hover .nav-icon svg,
.leaf-cta:hover .nav-icon svg {
  transform: scale(1.18) rotate(-8deg);
}

.leaf-link.active .nav-icon svg {
  animation: iconSettle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconSettle {
  0%   { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Brand leaf gently sways, like the corner trees */
.brand-leaf {
  animation: leafSway 4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes leafSway {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

/* Card seed icons: idle micro-wiggle + a livelier pop on hover */
.icon-seed {
  animation: seedIdle 5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leaf-card:hover .icon-seed {
  transform: rotate(6deg) scale(1.12) translateY(-2px);
  animation-play-state: paused;
}

@keyframes seedIdle {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(-6deg); }
}

/* Dropdown caret rotates smoothly (desktop hover + mobile tap) */
.dropdown-leaf.hover-open .dropdown-caret svg {
  transform: rotate(180deg);
}

/* Floating action icons give a friendly nudge on hover */
.float-btn svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-btn:hover svg {
  transform: scale(1.15) rotate(-6deg);
}

/* Gallery caption slides up a touch further on hover, icon-like polish */
.gallery-card span {
  transition: transform 0.35s ease, background 0.35s ease;
}

.gallery-card:hover span {
  transform: translateY(-3px);
  background: rgba(18, 59, 22, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .leaf-navbar-wrap,
  .brand-badge,
  .nav-leaf-row > div,
  .nav-right > .leaf-cta,
  .floating-actions .float-btn,
  .hero .col-lg-6.from-left > *,
  .hero .col-lg-5.from-right,
  .hero .leaf-particle,
  .stats-strip .stat-box,
  .page-banner .container,
  .brand-leaf,
  .icon-seed {
    animation: none !important;
  }
}

/* ===========================================================
   LANGUAGE TOGGLE (EN / हिं) — sticky pill on the left edge
=========================================================== */
.lang-toggle {
  position: fixed;
  top: 128px;
  right: 18px;
  z-index: 1050;
  display: flex;
  flex-direction: row;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--leaf-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle .lang-btn + .lang-btn {
  border-left: 1px solid var(--line);
}

.lang-btn:hover {
  background: rgba(145, 189, 47, 0.16);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf));
  color: #fff;
}

@media (max-width: 991px) {
  .lang-toggle {
    top: 94px;
    right: 12px;
  }
}

@media (max-width: 575px) {
  .lang-btn {
    padding: 8px 12px;
    font-size: 0.74rem;
  }
}
