/* ===== Base ===== */
:root{
  --nav-h: 80px;              /* navbar height */
  --fly-duration: 12s;        /* drone travel speed */
  --bob-duration: 2.6s;       /* gentle bob */
  --spray-speed: .65s;        /* droplet shimmer */
  --spray-width: 120px;       /* spray fan size */
  --spray-height: 100px;
  --brand-grad: linear-gradient(90deg, #215a07); /* your colors */
  /* default fly bounds (overridden by JS for pixel-perfect stops) */
  --fly-left: 16px;
  --fly-right: calc(100% - 140px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f7f3;
  color: #2d2b1f;
}

a { color: inherit; }

/* ===== Drone Navbar (replaces old header) ===== */
header.navbar{
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; overflow: hidden;
}

.brand{ display:flex; align-items:center; gap:.6rem; position:relative; z-index:2; color:#fff; }
.brand h1{ display:none; } /* legacy title hidden; we use .brand-title instead */
/* Hide logo circle/icon */
.brand > svg{ display:none; }
/* New brand stack with title + contact */
.brand-stack{ display:flex; flex-direction:column; line-height:1.1; }
.brand-title{ font-size: 1.05rem; font-weight: 800; letter-spacing:.14em; text-transform: uppercase; color:#fff; margin:0; }
.brand-contact{ display:none !important; }
.brand-contact a{ color:inherit; text-decoration:none; }
.brand-contact a:hover{ text-decoration:underline; }
.brand-contact .sep{ opacity:.6; }

nav.main-nav{ position:relative; z-index:2; display:flex; align-items:center; gap:20px; }
nav.main-nav a{ color:#fff; text-decoration:none; font-weight:700; }
nav.main-nav a:hover{ text-decoration:underline; }

/* Flying drone (background layer within navbar) */
.drone{
  --drone-w: 120px;  /* element width for perfect centering */
  --drone-h: 70px;
  position:absolute; top:6px;
  left: calc(50% - var(--drone-w) / 2); /* always centered */
  width: var(--drone-w); height: var(--drone-h);
  opacity:.95;
  animation: bob var(--bob-duration) ease-in-out infinite; /* hover only */
  z-index:1; pointer-events:none;
}

/* Parked state: hover in the exact middle of the navbar */
.drone.is-parked{ /* no-op; drone is always centered now */ }

/* The drone now animates strictly between the computed left/right bounds */
@keyframes fly{ from { left: var(--fly-left); } to { left: var(--fly-right); } }
@keyframes bob{ 0%{ transform: translateY(0) } 50%{ transform: translateY(-4px) } 100%{ transform: translateY(0) } }

svg{ display:block; width:100%; height:100%; }
.blade{ transform-box: fill-box; transform-origin: 50% 50%; animation: spin .45s linear infinite; }
.blade.slow{ animation-duration: .8s; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.spray{
  position:absolute; left:50%; top:48px; width:var(--spray-width); height:var(--spray-height);
  transform: translateX(-50%);
  clip-path: polygon(12% 0%, 88% 0%, 72% 100%, 28% 100%);
  --drop: radial-gradient(circle, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,0) 3px);
  background-image: var(--drop);
  background-size: 16px 16px;
  background-position: 0 0;
  opacity:.45;              /* softer for a nav bar */
  animation: drizzle var(--spray-speed) linear infinite;
  mix-blend-mode: screen;
}
@keyframes drizzle{ from{ background-position: 0 0; } to{ background-position: 0 16px; } }

/* ===== Sections from your page ===== */
.hero { position: relative; height: clamp(var(--hero-min, 560px), var(--hero-h, calc(100svh - var(--nav-h))), var(--hero-max, 1200px)); min-height: var(--hero-min, 560px); overflow: hidden; }
.hero::before { 
  content:""; position:absolute; inset:0;
  background: url('2.png') center/cover no-repeat;
  filter: saturate(1.06) contrast(1.05) brightness(1.03);
  transform: scale(1.02);
  animation: kenburns 24s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::after { content:""; position:absolute; inset:0; pointer-events:none; background:
  radial-gradient(ellipse at 50% 75%, rgba(0,0,0,0) 45%, rgba(0,0,0,.28) 100%),
  linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 40%);
  mix-blend-mode: multiply; opacity:.45; }
@keyframes kenburns{ from{ transform: scale(1.04) translateY(0); } to{ transform: scale(1.08) translateY(-1%); } }
.hero-content { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 2rem; color:#fff; text-align: center; gap: 1rem; }
.hero h2 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }
.hero button { padding: 12px 25px; background: #6b8e23; border: none; border-radius: 6px; color: white; font-size: 1rem; cursor: pointer; }
.hero button:hover { background: #556b2f; }

/* ===== About Section (How We Help Farmers) ===== */
.about { 
  padding: 4rem 2rem; 
  background: #f0ede7; 
  text-align: center; 
}
.about h3 { 
  font-size: 2rem; 
  margin-bottom: 1.5rem; 
  color: #4a3f2a; 
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 in a row on desktop */
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1669px;
  margin-left: auto;
  margin-right: auto;
}
.help-item {
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 112.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.help-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}
.help-item img { 
  width: 60px; 
  margin-bottom: 1rem; 
}
.help-item h4 {
  margin-bottom: 0.6rem;
  color: #6b8e23;
  font-size: 1.25rem;
}
/* Responsive: stack neatly */
@media (max-width: 900px) {
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* ===== Services ===== */
.services { padding: 4rem 2rem; text-align: center; }
.services h3 { font-size: 2rem; margin-bottom: 1rem; color: #4a3f2a; }
.service-boxes { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
/* 2 columns on tablets */
@media (min-width: 640px){ .service-boxes{ grid-template-columns: repeat(2, 1fr); } }
/* 3 columns on desktops (gives 3 + 3 for 6 cards) */
@media (min-width: 980px){ .service-boxes{ grid-template-columns: repeat(3, 1fr); } }
.service { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.service img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.service h4 { margin-bottom: 0.8rem; color: #6b8e23; }

/* ===== Gallery ===== */
.gallery { padding: 4rem 2rem; background: #f0ede7; text-align: center; }
.gallery h3 { font-size: 2rem; margin-bottom: 1rem; color: #4a3f2a; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }

/* ===== Footer ===== */
footer { background: #215a07; color: white; text-align: center; padding: 1.5rem; margin-top: 2rem; }

/* ===== Hero inline image (positionable) ===== */
.hero-img{
  position: absolute;
  /* defaults to dead-center; override with CSS variables below */
  top: var(--img-top, 50%);
  left: var(--img-left, 50%);
  transform: translate(-50%, -50%)
             translate(var(--img-nudge-x, 0), var(--img-nudge-y, 0));
  width: min(90vw, 800px);
  z-index: 1;               /* above background overlays */
  margin: 0;
}
.hero-img img{
  display:block; width:100%; height:auto;
  border-radius:12px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
/* On small screens, let the image flow so it never gets cut off */
@media (max-width: 560px){
  .hero-img{
    position: static;
    transform: none;
    width: 88vw;
    margin: 0 auto 1rem;
  }
}

/* ===== About Us (image + copy layout) ===== */
.about-us {padding: 4rem 2rem;background: #ffffff;/* text-align: center; */}
.about-us-grid {display: grid;grid-template-columns: 1.1fr 1fr;gap: 2rem;/* align-items: center; */max-width: 1100px;margin: 0 auto;}
.about-us img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.about-us h3 { font-size: 2rem; margin-bottom: 1rem; color: #4a3f2a; }
.about-us p {margin: 0.5rem 0 1rem;line-height: 1.6;/* text-align: center; */}

/* ===== Responsive tweaks ===== */
@media (max-width: 800px){
  :root{ --nav-h: 72px; }
  .drone{ --drone-w: 100px; --drone-h: 60px; }
  .spray{ opacity:.3; }
  nav.main-nav{ gap:14px; }
  .hero h2{ font-size: 2.2rem; }
}
@media (max-width: 560px){
  .brand h1{ font-size: 1.1rem; }
  nav.main-nav{ display:none; } /* simple, can replace with burger later */
  .spray{ display:none; }       /* keep nav clean on small screens */
  .brand-title { display: none; }
}
@media (max-width: 760px){
  .brand h1{ font-size: 1.1rem; }
  nav.main-nav{ display:none; } /* simple, can replace with burger later */
  .spray{ display:none; }       /* keep nav clean on small screens */
  .brand-title { display: none; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  .drone{ animation: none; left: 50%; transform: translateX(-50%); }
  .blade{ animation: none; }
  .spray{ animation: none; }
}

/* === Full-bleed hero: remove inner image card so background fills section === */

/* === Hero sizing controls ===
   Option A: set global defaults in :root, e.g. --hero-h: 80svh; --hero-min: 520px
   Option B: per-page/per-section overrides with a class or inline style
*/
.hero--short  { --hero-h: 60svh; --hero-min: 420px; }
.hero--medium { --hero-h: 80svh; --hero-min: 520px; }
.hero--tall   { --hero-h: 100svh; --hero-min: 560px; }

/* Optional: fade spray once parked */
.drone.is-parked .spray{ opacity: 0; transition: opacity .4s ease; }

/* Force-hide spray for cleanliness */
.drone .spray { display:none; }

@media (max-width: 700px){
  .brand-contact{ display:none; }
}.how-it-works {
  padding: 4rem 2rem;
  background: #ffffff;
}

.how-it-works-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* text left, video right */
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.how-it-works .text h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #4a3f2a;
}

.how-it-works .text p {
  line-height: 1.6;
  font-size: 1.1rem;
  color: #444;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Responsive stacking */
@media (max-width: 900px) {
  .how-it-works-content {
    grid-template-columns: 1fr;
  }
  .video-container {
    margin-top: 1.5rem;
  }
}
.why-choose-us {
  padding: 4rem 2rem;
  background: #f0ede7;
}

.why-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.why-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 450px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.why-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4a3f2a;
}

.why-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
  font-size: 1.1rem;
}

/* Responsive stacking */
@media (max-width: 900px) {
  .why-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .why-image img {
    max-height: 300px;
  }
}
.contact {
  padding: 4rem 2rem;
  background: #ffffff;
  text-align: center;
}

.contact h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #4a3f2a;
}

.contact-intro {
  margin-bottom: 2rem;
  color: #555;
  font-size: 1.1rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.contact-details {
  background: #f9f7f3;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.contact-details h4 {
  margin-bottom: 1rem;
  color: #6b8e23;
}

.contact-details p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.contact-form {
  background: #f9f7f3;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.contact-form h4 {
  margin-bottom: 1rem;
  color: #6b8e23;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px;
  background: #6b8e23;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #556b2f;
}

/* Responsive layout */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
.contact-logo {
  text-align: center;
  margin-top: 2rem;
}

.contact-logo img {
  max-width: 150px;
  height: auto;
  display: inline-block;
  opacity: 0.9;
}
.whatsapp-float{
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 2000;
}
.whatsapp-float:hover{ filter: brightness(.95); }
/* WhatsApp Floating Button (bouncy) */
.whatsapp-float{
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  z-index: 2000;

  /* NEW: bounce animation */
  animation: whatsapp-bounce 2.2s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.whatsapp-float:hover{
  filter: brightness(.95);
}

/* NEW: keyframes for bounce */
@keyframes whatsapp-bounce{
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }
  30% {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 28px rgba(0,0,0,.28);
  }
  50% {
    transform: translateY(0) scale(1);
  }
  70% {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ animation: none; }
}
