/* ================================================================
   JANMAY AGRO — MODERN ENHANCEMENT LAYER
   Loaded after style.css — overrides & elevates the design
   ================================================================ */

:root {
  --g-dark:   #1e5c00;
  --g-mid:    #2e7b03;
  --g-light:  #5cb02d;
  --g-lime:   #b0cc49;
  --yellow:   #fdc82c;
  --txt-dark: #111827;
  --txt-mid:  #4b5563;
  --txt-light:#9ca3af;
  --white:    #ffffff;
  --shadow-s: 0 2px 12px rgba(0,0,0,.07);
  --shadow-m: 0 8px 32px rgba(0,0,0,.11);
  --shadow-l: 0 20px 60px rgba(0,0,0,.15);
  --ease:     cubic-bezier(.4,0,.2,1);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
}

html { scroll-behavior: smooth; }
html { overflow-x: hidden; } /* propagates to viewport — no horizontal scroll, does not affect position:fixed */

/* ── TOP STRIP — hide separator when only one contact item ─────── */
main header .top-strip .top-contact ul li:only-child {
  padding-left: 0;
}
main header .top-strip .top-contact ul li:only-child::before {
  display: none;
}

/* ── NAVBAR TOGGLER — remove Bootstrap focus ring ──────────────── */
main header .menu-wrapper .navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* ── STICKY HEADER ─────────────────────────────────────────────── */
main header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

main header .top-strip {
  background: linear-gradient(90deg, #132e00, var(--g-mid), #3a9604);
}

main header .menu-wrapper {
  background: #fff;
  transition: padding .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), backdrop-filter .3s var(--ease);
}

main header.scrolled .menu-wrapper {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  padding: 6px 0;
}

/* Farmer Registration CTA button in nav */
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-cta-btn {
  background: linear-gradient(135deg, var(--g-mid), var(--g-light));
  color: #fff !important;
  border-radius: 50px;
  padding: 7px 18px !important;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .3px;
  margin-left: 6px;
  box-shadow: 0 3px 12px rgba(46,123,3,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease) !important;
}
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(46,123,3,.45);
  background: linear-gradient(135deg, var(--g-dark), var(--g-mid)) !important;
}
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-cta-btn::after {
  display: none !important;
}

/* Nav hover underline */
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-link {
  position: relative;
}
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--g-mid), var(--g-lime));
  border-radius: 2px;
  transition: width .3s var(--ease);
}
main header .menu-wrapper .navbar .navbar-wrapper ul li:hover > .nav-link::after,
main header .menu-wrapper .navbar .navbar-wrapper ul li > .nav-link.active::after {
  width: 75%;
}

/* ── SECTION HEADINGS ──────────────────────────────────────────── */
main .section-head {
  font-size: 32px;
  font-weight: 800;
  color: var(--txt-dark);
  letter-spacing: -.3px;
}
main .bor-bott { padding-bottom: 18px; }
main .bor-bott::before {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--g-mid), var(--g-lime));
  border-radius: 3px;
}

/* ── GLOBAL BUTTON ─────────────────────────────────────────────── */
main .global-button {
  background: linear-gradient(135deg, var(--g-mid), var(--g-light));
  border-radius: 50px;
  padding: 13px 30px;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 4px 18px rgba(46,123,3,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
main .global-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(46,123,3,.45);
  background: linear-gradient(135deg, var(--g-dark), var(--g-mid));
}

/* ── HERO BANNER ───────────────────────────────────────────────── */
main .banner .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,rgba(0,0,0,.52) 0%,rgba(0,0,0,.15) 55%,transparent 100%);
}
main .banner .carousel-item .container { z-index: 2; }

main .banner .carousel-item .banner-content-wrapper h2 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
main .banner .carousel-item .banner-content-wrapper p {
  font-size: 20px;
  opacity: .92;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* Pill indicators */
main .banner .carousel-indicators {
  gap: 6px;
  margin-bottom: 20px;
}
main .banner .carousel-indicators button {
  width: 28px; height: 4px;
  border-radius: 4px;
  opacity: 1;
  transition: width .4s var(--ease), background .4s var(--ease);
}
main .banner .carousel-indicators .active {
  width: 52px;
  background: var(--g-lime);
  border-color: var(--g-lime);
}

@media (max-width: 767px) {
  main .banner .carousel-item .banner-content-wrapper h2 { font-size: 22px; }
  main .banner .carousel-item .banner-content-wrapper p  { font-size: 13px; }
}

/* ── HOME ABOUT ────────────────────────────────────────────────── */
main .home-about { padding: 80px 0; }
main .home-about .content-box p {
  color: var(--txt-mid);
  line-height: 1.85;
  font-size: 15.5px;
}
main .about-img-home img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
main .about-img-home img:hover {
  transform: scale(1.025) rotate(.4deg);
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

/* ── INNER BANNER ──────────────────────────────────────────────── */
main .inner-banner {
  position: relative;
  overflow: hidden;
}
main .inner-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(30,92,0,.6) 0%,rgba(0,0,0,.2) 100%);
}
main .inner-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 7s var(--ease);
}
main .inner-banner:hover img { transform: scale(1.06); }
@media (max-width: 767px) { main .inner-banner img { height: 160px; } }

/* ── BREADCRUMB ────────────────────────────────────────────────── */
main .breadcrumb-wrapper {
  background: linear-gradient(135deg,#f0f7e8,#e5f2d5);
  border-bottom: 2px solid rgba(176,204,73,.3);
}
main .breadcrumb-wrapper ul li a { color: var(--g-mid); font-weight: 600; }
main .breadcrumb-wrapper ul li a:hover { color: var(--g-dark); }

/* ── WHY US ────────────────────────────────────────────────────── */
main .why-us { padding: 80px 0; }
main .why-us .section-head,
main .why-us .disc-content p { color: #fff; }
main .why-us .list-content ul li {
  border-radius: 16px;
  box-shadow: var(--shadow-m);
  margin-bottom: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
main .why-us .list-content ul li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-l);
}
main .why-us .list-content ul li .icon-box {
  border-radius: 16px 0 16px 0;
  min-height: 110px;
  padding: 20px;
}
main .why-us .list-content ul li .icon-box img {
  width: 52px;
  filter: brightness(0) invert(1);
}
main .why-us .list-content ul li .list-disc h3 {
  font-size: 18px;
  font-weight: 700;
}

/* ── GRAY BG ────────────────────────────────────────────────────── */
main .gray-bg { background: linear-gradient(135deg,#f2f7ec,#eaf3df); }

/* ── INNER CONTENT SECTIONS ────────────────────────────────────── */
main .inner-content-wrapper { padding: 70px 0; }
main .inner-content-wrapper .content-box p {
  line-height: 1.85;
  color: var(--txt-mid);
  font-size: 15px;
}

/* ── OUR PRODUCT RANGE (homepage carousel) ─────────────────────── */
main .our-product-range {
  padding: 80px 0;
  background: linear-gradient(135deg,#f5f9f0,#edf5e0);
}
main .our-product-range .section-head { font-size: 34px; }

/* ── PRODUCT CARDS (products.html grid) ─────────────────────────── */
main .our-product-range .product-box {
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-s);
  background: var(--white);
  overflow: hidden;
  position: relative;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
main .our-product-range .product-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--g-mid), var(--g-lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
  z-index: 1;
}
main .our-product-range .product-box:hover { transform: translateY(-9px); box-shadow: var(--shadow-l); }
main .our-product-range .product-box:hover::before { transform: scaleX(1); }

main .our-product-range .product-box img {
  height: 195px;
  object-fit: cover;
  width: 100%;
  transition: transform .5s var(--ease);
  filter: none !important;  /* override hue-rotate */
}
main .our-product-range .product-box:hover img {
  transform: scale(1.09);
  filter: none !important;
}

main .our-product-range .product-box .product-name {
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 14px 4px;
  color: var(--txt-dark);
}
main .our-product-range .product-box .product-desc {
  font-size: 12px;
  padding: 0 14px 14px;
  color: var(--txt-light);
  line-height: 1.55;
}

/* ── TESTIMONIALS ──────────────────────────────────────────────── */
main .testimonials-wrapper {
  padding: 100px 0;
}
main .testimonials-wrapper .testimonials-content-wrapper {
  border-left: 4px solid var(--g-lime);
  padding-left: 40px;
}
main .testimonials-wrapper .testimonials-content .tagline {
  font-size: 19px;
  font-weight: 700;
}
main .testimonials-wrapper .testimonials-content .author {
  font-size: 19px;
  font-weight: 700;
}

/* ── CLIENTS ────────────────────────────────────────────────────── */
main .clients { padding: 60px 0; }
main .clients img {
  filter: grayscale(100%);
  opacity: .5;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
main .clients img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
main footer {
  background: linear-gradient(145deg,#0f2800 0%,#1e5c00 40%,#2e7b03 100%);
  padding: 70px 0 50px;
  position: relative;
}
main footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--g-lime), var(--yellow), var(--g-lime));
}
main footer .footer-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--g-lime);
  letter-spacing: .3px;
}
main footer ul li { padding-bottom: 8px; }
main footer a {
  opacity: .88;
  transition: opacity .3s var(--ease), padding-left .3s var(--ease), color .3s var(--ease) !important;
}
main footer a:hover {
  opacity: 1;
  color: var(--yellow) !important;
  padding-left: 6px;
}
main footer .address { opacity: .85; line-height: 1.9; }

/* newsletter input */
main footer form .input-wrapper input {
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.35);
}
main footer form .input-wrapper button {
  border-radius: 6px;
  background: var(--g-lime);
  font-weight: 800;
  transition: background .3s var(--ease);
}
main footer form .input-wrapper button:hover { background: var(--yellow); }

/* ── COPYRIGHT ──────────────────────────────────────────────────── */
main .copyright { background: #091800; padding: 18px 0; }

/* ── FARMER REGISTRATION FLOATING TAB ──────────────────────────── */
#farmerRegTab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(180deg, var(--g-mid), var(--g-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 22px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 18px rgba(46,123,3,.40);
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  white-space: nowrap;
}
#farmerRegTab:hover {
  background: linear-gradient(180deg, var(--g-dark), #0f2800);
  box-shadow: -6px 0 24px rgba(46,123,3,.55);
  padding: 22px 14px;
  color: #fff;
  text-decoration: none;
}
#farmerRegTab::before {
  content: '🌾';
  display: block;
  writing-mode: horizontal-tb;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}

/* ── SCROLL-TO-TOP ──────────────────────────────────────────────── */
#scrollTopBtn {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--g-mid), var(--g-lime));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(46,123,3,.45);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scrollTopBtn.show { opacity: 1; transform: translateY(0) scale(1); }
#scrollTopBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(46,123,3,.55);
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────────── */
.anim-up,
.anim-left,
.anim-right,
.anim-fade {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.anim-up    { opacity: 0; transform: translateY(45px); }
.anim-left  { opacity: 0; transform: translateX(-45px); }
.anim-right { opacity: 0; transform: translateX(45px); }
.anim-fade  { opacity: 0; }
.anim-up.in, .anim-left.in, .anim-right.in, .anim-fade.in {
  opacity: 1; transform: translate(0);
}

/* Cards staggered reveal */
.anim-card {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.anim-card.in { opacity: 1; transform: translateY(0); }

/* ── MAPS / CONTACT ─────────────────────────────────────────────── */
main .maps-wrapper form input,
main .maps-wrapper form textarea {
  border-radius: var(--r-sm);
  border: 1.5px solid #e5e7eb;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
main .maps-wrapper form input:focus,
main .maps-wrapper form textarea:focus {
  border-color: var(--g-mid);
  box-shadow: 0 0 0 3px rgba(46,123,3,.12);
  outline: none;
}
main .maps-wrapper form button {
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--g-mid), var(--g-light));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
main .maps-wrapper form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46,123,3,.4);
}
main .maps-wrapper .address .address-box {
  border-radius: var(--r-md);
  border: none;
  box-shadow: var(--shadow-m);
}

/* ── CERTIFICATES ───────────────────────────────────────────────── */
main .certificates-inner-wrap img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-m);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
main .certificates-inner-wrap img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-l);
}

/* ── MISSION / VISION ───────────────────────────────────────────── */
main .mission-vision {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f9f0, #edf5e0);
}

/* Remove the old split pseudo-element backgrounds */
main .mission-vision::before,
main .mission-vision::after { display: none; }

/* Card wrapper for each column */
main .mission-vision .container .mission-wrap,
main .mission-vision .container .vision-wrap {
  background: #fff;
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
main .mission-vision .container .mission-wrap:hover,
main .mission-vision .container .vision-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,.13);
}

/* Heading inside card */
main .mission-vision .container h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 20px;
  padding-bottom: 16px;
  position: relative;
}
main .mission-vision .container h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--g-mid), var(--g-lime));
  border-radius: 3px;
}

/* Icon + text row */
main .mission-vision .container .mission-vision-content {
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}
main .mission-vision .img-box {
  flex-shrink: 0;
}
main .mission-vision .img-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f0f7e8;
  border-radius: 14px;
  padding: 10px;
}

/* Paragraph */
main .mission-vision .content-box { flex: 1; }
main .mission-vision .content-box p {
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
  margin: 0;
}

@media (max-width: 767px) {
  main .mission-vision { padding: 40px 0; }
  main .mission-vision .col-lg-6 { margin-bottom: 20px; }
  main .mission-vision .mission-wrap,
  main .mission-vision .vision-wrap { padding: 28px 22px; }
  main .mission-vision .container h2 { font-size: 22px; }
}

/* ── ABOUT US — STATS ROW ───────────────────────────────────────── */
.about-stats-row {
  display: flex;
  gap: 28px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--g-mid);
  line-height: 1;
}
.about-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-mid);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 4px;
}

/* ── ABOUT US — IMAGE STACK ─────────────────────────────────────── */
.about-img-stack {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-main-img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  width: 100%;
  object-fit: cover;
  max-height: 440px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.about-img-stack:hover .about-main-img {
  transform: scale(1.025) rotate(.3deg);
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -16px;
  background: linear-gradient(135deg, var(--g-mid), var(--g-light));
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 8px 28px rgba(46,123,3,.45);
  text-align: center;
  min-width: 100px;
  line-height: 1;
}
.badge-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.badge-txt {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: .9;
  margin-top: 4px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 767px) {
  .about-img-badge { right: 8px; bottom: -14px; padding: 12px 14px; min-width: 80px; }
  .badge-num { font-size: 22px; }
  .about-stats-row { gap: 18px; }
  .about-stat-num { font-size: 24px; }
  main .home-about .about-img-home { margin-bottom: 32px; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  main .our-product-range { padding: 40px 0; }
  main .home-about { padding: 40px 0; }
  main .why-us { padding: 40px 0; }
  main .inner-content-wrapper { padding: 40px 0; }
  #scrollTopBtn { width: 42px; height: 42px; font-size: 18px; bottom: 20px; right: 20px; }

  /* Testimonials dots — centre on mobile instead of left:150px */
  main .testimonials-wrapper .testimonials-content-wrapper .testimonials-carousel .owl-dots {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
    text-align: center;
  }

  /* Farmer tab — icon only on mobile, no text overflow */
  #farmerRegTab {
    writing-mode: horizontal-tb;
    padding: 10px 8px;
    border-radius: 8px 0 0 8px;
    font-size: 0;          /* hide text */
    line-height: 1;
    width: 36px;
    text-align: center;
  }
  #farmerRegTab::before {
    font-size: 20px;
    margin-bottom: 0;
  }
}

/* Nav dropdown — scrollable when menu exceeds viewport height */
@media (max-width: 992px) {
  main header .menu-wrapper .navbar .navbar-wrapper ul {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  /* Why-us — reset negative left margins on tablet (they're only reset at 767px in style.css) */
  main .why-us .list-content ul li:nth-child(2),
  main .why-us .list-content ul li:nth-child(3),
  main .why-us .list-content ul li:nth-child(4) {
    margin-left: 0;
  }
}
