/* ══════════════════════════════════════════════
   landing.css — Landing Page Styles
   AgriMandi.Farm | Public Home Page
   ══════════════════════════════════════════════ */
/* ── 1. Page Background ───────────────────────── */
body {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-md) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
/* ── 2. Floating Emoji Background Canvas ──────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-canvas span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0.08;
  }
  50% {
    opacity: 0.18;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0.06;
  }
}
/* ── 3. Main Container ────────────────────────── */
.landing-container {
  max-width: 680px;
  width: 100%;
  padding: 36px 16px 110px;
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  box-sizing: border-box;
}
/* ── 4. Logo & Brand Section ──────────────────── */
.logo-section {
  margin-bottom: 20px;
}

.logo-large {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin-bottom: 8px;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: var(--lemon);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.brand-name span {
  color: var(--white);
  font-weight: 700;
}

.tagline {
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  color: var(--lemon);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
  font-weight: 500;
}

.tagline-telugu {
  font-size: 1.1rem;
  color: var(--lemon);
  margin-top: 15px;
  font-weight: 600;
  display: none;
}
/* ── 5. About & Info Sections ─────────────────── */
.about-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 224, 58, 0.2);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 20px;
  line-height: 1.8;
  width: 100%;
  box-sizing: border-box;
}

.about-section h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-family: "Playfair Display", serif;
  color: var(--lemon);
  font-weight: 700;
  margin-bottom: 18px;
}

.about-section p {
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
/* ── 6. Action Buttons ─────────────────────────── */
.buttons-section {
  display: grid;
  gap: 8px;
  width: 100%;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "DM Sans", sans-serif;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lemon) 0%, var(--lemon-dk) 100%);
  color: var(--green);
  box-shadow: 0 8px 20px rgba(247, 224, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(247, 224, 58, 0.4);
}

.btn:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 2px;
}
/* ── 7a. Farmer Login CTA (Premium, Stand-Out) ── */
.btn-farmer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(247, 224, 58, 0.08);
  border: 2px solid var(--lemon);
  color: var(--lemon);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(247, 224, 58, 0.18),
    inset 0 0 0 1px rgba(247, 224, 58, 0.05);
  animation: farmerGlow 3.2s ease-in-out infinite;
}

.btn-farmer:hover {
  background: rgba(247, 224, 58, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(247, 224, 58, 0.3);
}

.btn-farmer:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 2px;
}

@keyframes farmerGlow {
  0%,
  100% {
    box-shadow:
      0 8px 24px rgba(247, 224, 58, 0.18),
      inset 0 0 0 1px rgba(247, 224, 58, 0.05);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(247, 224, 58, 0.35),
      inset 0 0 0 1px rgba(247, 224, 58, 0.12);
  }
}

.new-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--lemon);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}
/* ── 7b. Admin / Staff Login (Secondary, Muted) ── */
.btn-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.btn-admin:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  transform: none;
}

.btn-admin .admin-icon {
  font-size: 0.95rem;
}

.btn-admin:focus-visible {
  outline: 2px solid var(--lemon);
  outline-offset: 2px;
}
/* ── 8. Contact Section ────────────────────────── */
#contactSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#contactSection p {
  text-align: center;
}

#contactTitle {
  text-align: center;
  font-family: "Playfair Display", serif;
  color: var(--lemon);
  margin-bottom: 10px;
  padding-bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-icon {
  margin-right: 8px;
}

.contact-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  color: #f5d547;
}

.whatsapp-link {
  color: #25d366;
  font-weight: 600;
}
/* ── 9. Language Toggle (Buttons) ─────────────── */
.language-toggle {
  position: fixed;
  top: env(safe-area-inset-top, 15px);
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 9999;
}

.lang-btn {
  padding: 6px 12px;
  border: 1px solid var(--lemon);
  background: transparent;
  color: var(--lemon);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
  z-index: 10000;
}

.lang-btn.active {
  background: var(--lemon);
  color: var(--green);
}

.lang-btn:hover {
  background: rgba(247, 224, 58, 0.2);
}
/* ── 10. Beta Badge ─────────────────────────────── */
.beta-badge {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  right: 16px;
  background: rgba(247, 224, 58, 0.15);
  color: #f7e03a;
  border: 1px solid rgba(247, 224, 58, 0.4);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 999;
}

/* ── 11. Bottom Navigation (Landing Override) ──── */
.bottom-nav {
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(95%, 520px);
  max-width: 520px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.nav-icon {
  font-size: 1.2rem;
}
/* ── 12. Footer ─────────────────────────────────── */
.footer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 40px;
  letter-spacing: 1px;
}
/* ── 13. Global Resets ─────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}
/* ── 14. Responsive Fixes ──────────────────────── */
@media (max-width: 768px) {
  .landing-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: clamp(2rem, 9vw, 3.8rem);
  }

  .about-section {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .tagline,
  .tagline-telugu {
    font-size: 0.95rem;
  }

  .about-section h3 {
    font-size: 1.35rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }

  .bottom-nav {
    width: 96%;
  }

  .btn-farmer {
    font-size: 0.95rem;
    padding: 14px 38px 14px 18px;
    gap: 10px;
  }

  .new-badge {
    right: 10px;
    font-size: 0.58rem;
    padding: 2px 7px;
  }

  .btn-admin {
    font-size: 0.78rem;
    padding: 10px 18px;
  }
}

@media (min-width: 1024px) {
  .landing-container {
    max-width: 720px;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 1.9rem;
  }

  .tagline,
  .tagline-telugu {
    font-size: 0.85rem;
  }

  .about-section {
    padding: 18px 14px;
  }

  .about-section p {
    font-size: 0.9rem;
  }

  .btn-farmer {
    font-size: 0.85rem;
    padding: 13px 34px 13px 14px;
    letter-spacing: 0.5px;
  }

  .new-badge {
    right: 8px;
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .bottom-nav .nav-btn {
    font-size: 0.6rem;
    padding: 10px 0;
  }

  .nav-icon,
  .nav-icon-farmer {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
  }
}

.farmer-emoji {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
