/* ==========================================================================
   AgriPlani – Home page modern layer
   Enhances the existing ID-based landing layout without changing its DOM.
   Keeps the brand palette: green #8aba42, teal #19748c, navy #003254.
   ========================================================================== */

:root {
  --brand-green: #8aba42;
  --brand-teal: #19748c;
  --brand-navy: #003254;
  --brand-gradient: linear-gradient(135deg, #8aba42 0%, #19748c 100%);
  --ease-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.light {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Typography – modern, readable pairing (Poppins headings + Inter body).
   This file is loaded only on the home page, so the override stays scoped.
   The base rule beats the per-element font-family baked into landingPage.css,
   then the heading IDs win back the display face via higher specificity.
   -------------------------------------------------------------------------- */
[id^="de_"] {
  font-family: var(--font-sans) !important;
}

#de_0caf1037-0415-37f8-7c32-ae02095a16dc,
#de_df0e64fa-bfc7-0651-3f6f-65decae95417,
#de_ee38d858-d3c3-5a46-bef2-e44f67932dc4,
#de_57894b32-0269-8c44-2f1a-98841b2c1298 {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.4px;
}

::selection {
  background: rgba(138, 186, 66, 0.25);
  color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   Header – floating glass navigation bar (home only)
   -------------------------------------------------------------------------- */
#de_4a4b811f-7964-4f9d-b0f6-b4c4fa9dc5d5 {
  background: rgba(0, 50, 84, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px 22px;
  box-sizing: border-box;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.headerItem {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.headerItem::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--brand-green);
  transition: width 0.28s var(--ease-soft);
}

.headerItem:hover::after {
  width: 100%;
}

.menuBtn {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menuBtn:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */
.mySwiper1 .swiper-slide {
  position: relative;
  overflow: hidden;
}

.mySwiper1 .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 130% at 12% 18%, rgba(0, 50, 84, 0.28), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 50, 84, 0.22) 100%);
}

#de_26a060da-a8a7-3ecb-9265-adbd2dc17f6f {
  position: relative;
  z-index: 2;
}

#de_0caf1037-0415-37f8-7c32-ae02095a16dc {
  letter-spacing: -1px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.18);
  line-height: 1.08;
}

#de_7de4da57-3416-53d2-28c5-37060ae37781 {
  max-width: 540px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
}

/* Staggered entrance for the active slide */
.mySwiper1 .swiper-slide-active #de_0caf1037-0415-37f8-7c32-ae02095a16dc,
.mySwiper1 .swiper-slide-active #de_7de4da57-3416-53d2-28c5-37060ae37781 {
  animation: homeHeroIn 0.75s var(--ease-soft) both;
}

.mySwiper1 .swiper-slide-active #de_7de4da57-3416-53d2-28c5-37060ae37781 {
  animation-delay: 0.12s;
}

/* Button fades in only (no transform) so the hover lift stays intact */
.mySwiper1 .swiper-slide-active #de_872f4116-8d1f-0f05-6e03-e66681739a2c {
  animation: homeFadeIn 0.75s var(--ease-soft) 0.24s both;
}

@keyframes homeHeroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* Hero product image – soft depth + gentle float */
#de_5ebd09b5-cb6b-de5d-0f93-bd82d3c07b1a {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.28));
  animation: homeFloat 6s ease-in-out infinite;
}

@keyframes homeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* CTA buttons (hero + sidebar login) */
#de_872f4116-8d1f-0f05-6e03-e66681739a2c,
#de_eb42946d-654f-cf6d-8f62-08bab75ef37a {
  background: var(--brand-gradient);
  box-shadow: 0 14px 30px rgba(25, 116, 140, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  column-gap: 14px;
}

#de_872f4116-8d1f-0f05-6e03-e66681739a2c:hover,
#de_eb42946d-654f-cf6d-8f62-08bab75ef37a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(25, 116, 140, 0.45);
  filter: brightness(1.03);
}

#de_872f4116-8d1f-0f05-6e03-e66681739a2c:active {
  transform: translateY(-1px);
}

#de_cfcf09b5-8116-8921-000e-58cc5d743205 {
  transition: transform 0.25s ease;
}

#de_872f4116-8d1f-0f05-6e03-e66681739a2c:hover #de_cfcf09b5-8116-8921-000e-58cc5d743205 {
  transform: translateX(4px);
}

/* Pagination bullets */
.mySwiper1 .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition: width 0.3s var(--ease-soft), background 0.3s ease;
}

.mySwiper1 .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 6px;
  background: var(--brand-green);
}

/* --------------------------------------------------------------------------
   Feature cards (floating white panel)
   -------------------------------------------------------------------------- */
#de_ace59b5f-430d-5b3d-6ddd-6c57eafb903e {
  box-shadow:
    0 32px 64px -28px rgba(0, 50, 84, 0.38),
    0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 50, 84, 0.06);
}

#de_cb12c700-954c-9288-07de-6b0daf4f9ce1 {
  border-radius: 14px;
  transition: transform 0.3s var(--ease-soft);
}

#de_cb12c700-954c-9288-07de-6b0daf4f9ce1:hover {
  transform: translateY(-6px);
}

.iconBox {
  background: linear-gradient(135deg, rgba(138, 186, 66, 0.16), rgba(25, 116, 140, 0.16));
  border: 1px solid rgba(25, 116, 140, 0.12);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s ease;
}

#de_cb12c700-954c-9288-07de-6b0daf4f9ce1:hover .iconBox {
  transform: scale(1.05);
  box-shadow: 0 14px 26px rgba(25, 116, 140, 0.18);
}

/* Subtle separators between features on wide screens */
@media only screen and (min-width: 1201px) {
  #de_ace59b5f-430d-5b3d-6ddd-6c57eafb903e > div + div {
    border-left: 1px solid rgba(0, 50, 84, 0.09);
    padding-left: 15px;
  }
}

/* --------------------------------------------------------------------------
   "How to use" section (image + text)
   -------------------------------------------------------------------------- */
#de_ce325591-bba0-9929-e929-de3d2947132b {
  border-radius: 22px;
  box-shadow: 0 34px 64px -22px rgba(0, 50, 84, 0.4);
}

#de_ee38d858-d3c3-5a46-bef2-e44f67932dc4 {
  position: relative;
  padding-bottom: 20px;
}

#de_ee38d858-d3c3-5a46-bef2-e44f67932dc4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-gradient);
}

/* --------------------------------------------------------------------------
   Gradient CTA banner
   -------------------------------------------------------------------------- */
#de_2a1a9472-d97d-516e-50c7-88249395c5f5 {
  position: relative;
  overflow: hidden;
}

#de_2a1a9472-d97d-516e-50c7-88249395c5f5::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 50, 84, 0.38), transparent 62%);
}

#de_57894b32-0269-8c44-2f1a-98841b2c1298,
#de_49cdf310-d296-33c2-83d8-fb3fc21ce816 {
  position: relative;
  z-index: 2;
}

#de_57894b32-0269-8c44-2f1a-98841b2c1298 {
  position: relative;
  padding-bottom: 22px;
  line-height: 1.2;
}

#de_57894b32-0269-8c44-2f1a-98841b2c1298::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Weather iframe
   -------------------------------------------------------------------------- */
.home-weather-frame {
  border: 1px solid rgba(0, 50, 84, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 26px 56px -26px rgba(0, 50, 84, 0.4) !important;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Partner / brand logos
   -------------------------------------------------------------------------- */
.imgClass {
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.35s ease, transform 0.35s var(--ease-soft);
}

.imgClass:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-4px) scale(1.04);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#de_ef3050b1-eee3-54f8-7122-cca263d44471,
#de_4c0ab39b-8545-0fe6-50e1-de6165df9712,
#de_6e6433fc-7fc7-bffa-86c1-2568bb05ec0c {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#de_ef3050b1-eee3-54f8-7122-cca263d44471:hover,
#de_4c0ab39b-8545-0fe6-50e1-de6165df9712:hover,
#de_6e6433fc-7fc7-bffa-86c1-2568bb05ec0c:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 50, 84, 0.25);
  filter: brightness(1.05);
}

.footerItem {
  position: relative;
  transition: color 0.25s ease;
}

a.footerItem:hover {
  color: var(--brand-green);
}

/* --------------------------------------------------------------------------
   Scroll reveal (JS adds .home-reveal to below-the-fold sections)
   -------------------------------------------------------------------------- */
.home-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-soft);
  will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   Reduced motion – disable non-essential animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #de_5ebd09b5-cb6b-de5d-0f93-bd82d3c07b1a,
  .mySwiper1 .swiper-slide-active #de_0caf1037-0415-37f8-7c32-ae02095a16dc,
  .mySwiper1 .swiper-slide-active #de_7de4da57-3416-53d2-28c5-37060ae37781,
  .mySwiper1 .swiper-slide-active #de_872f4116-8d1f-0f05-6e03-e66681739a2c {
    animation: none !important;
  }

  .home-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
