:root {
  --bg: #f5efe3;
  --bg-soft: #ede1cb;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf0;
  --text: #2d2417;
  --muted: #62533f;
  --line: rgba(94, 74, 39, 0.15);
  --primary: #2f6b3e;
  --primary-dark: #214e2d;
  --accent: #9b6a2d;
  --accent-soft: #cfb082;
  --shadow: 0 22px 55px rgba(58, 42, 18, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 130, 72, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(155, 106, 45, 0.14), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #f4ecd9 100%);
  font-family: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Kannada", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.is-ready {
  opacity: 1;
  transform: translateY(0);
}

body.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

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

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

button,
select,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer,
.hero-content,
.stats-strip,
.section,
.page-hero,
.crop-hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 0.4rem;
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 249, 239, 0.78);
  border: 1px solid rgba(97, 77, 47, 0.09);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(74, 57, 30, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(47, 107, 62, 0.14), rgba(155, 106, 45, 0.16));
  font-size: 1.4rem;
}

.brand strong,
.hero h1,
.section-heading h2,
.page-hero h1,
.crop-copy h1 {
  font-family: "Fraunces", "Noto Sans Devanagari", "Noto Sans Kannada", serif;
  letter-spacing: -0.02em;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(47, 107, 62, 0.12);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-icon {
  color: var(--accent);
  font-size: 0.95rem;
}

.language-picker,
.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.84);
  border: 1px solid var(--line);
  color: var(--muted);
}

.language-picker select {
  border: none;
  background: transparent;
  color: var(--text);
  min-width: 7rem;
  outline: none;
}

.voice-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  background: var(--primary);
  border: 4px solid var(--surface);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.voice-button:hover {
  transform: scale(1.05) translateY(-4px);
  background: var(--primary-dark);
}

.voice-button.is-speaking {
  background: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(47, 107, 62, 0.4);
}

.voice-button.is-listening {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
  animation: pulse-ring 1.2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(155, 106, 45, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(155, 106, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 106, 45, 0); }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.85);
  border-radius: 1rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero-slider,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 36, 20, 0.76), rgba(25, 36, 20, 0.22)),
    linear-gradient(180deg, rgba(15, 24, 12, 0.08), rgba(15, 24, 12, 0.48));
}

.hero-content {
  color: #fff8ef;
  padding: 5rem 0 4rem;
}

.hero-content h1 {
  max-width: 10ch;
  margin: 0.8rem 0;
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  line-height: 0.95;
}

.hero-content p {
  max-width: 40rem;
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  color: rgba(255, 248, 239, 0.9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 235, 215, 0.16);
  border: 1px solid rgba(245, 235, 215, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.section .eyebrow,
.page-hero .eyebrow {
  background: rgba(47, 107, 62, 0.09);
  border-color: rgba(47, 107, 62, 0.08);
  color: var(--primary-dark);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24, 20, 12, 0.16);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.button-secondary {
  background: rgba(255, 248, 239, 0.14);
  border-color: rgba(255, 248, 239, 0.24);
  color: #fff8ef;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.hero-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 248, 239, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  background: #fff8ef;
  transform: scale(1.15);
}

.stats-strip {
  display: grid;
  gap: 1rem;
  margin-top: -3.4rem;
  padding-bottom: 1rem;
}

.stat-card,
.crop-card,
.tip-card,
.feature-card,
.fact-card,
.tab-panel,
.contact-sidecard,
.accordion-item,
.page-hero,
.crop-hero,
.image-panel,
.section-alt,
.help-form {
  background: var(--surface);
  border: 1px solid rgba(94, 74, 39, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stat-card strong {
  font-size: 1.9rem;
  color: var(--primary-dark);
}

.stat-card span {
  color: var(--muted);
  max-width: 14rem;
}

.section,
.page-hero {
  margin-top: 3rem;
  padding: 2rem;
}

.section-alt {
  padding: 2rem;
}

.section-heading {
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-heading-left {
  text-align: left;
}

.section-heading h2,
.page-hero h1 {
  margin: 0.8rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-heading p,
.page-hero p {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--muted);
}

.section-heading-left p {
  margin-inline: 0;
}

.crop-grid,
.feature-grid,
.tips-grid,
.schemes-grid,
.facts-grid {
  display: grid;
  gap: 1.2rem;
}

.crop-grid,
.feature-grid,
.tips-grid,
.schemes-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.crop-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.crop-card:hover,
.tip-card:hover,
.feature-card:hover,
.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(58, 42, 18, 0.18);
}

.crop-card img,
.variety-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.crop-card-body,
.tip-card,
.feature-card,
.fact-card,
.variety-card-body {
  padding: 1.2rem;
}

.crop-card-body h3,
.variety-card-body h3,
.contact-sidecard h3 {
  margin: 0;
  font-size: 1.25rem;
}

.crop-card-body p,
.variety-card-body p,
.tip-card p,
.feature-card p,
.fact-card p,
.accordion-body p,
.contact-sidecard p,
.detail-item span {
  color: var(--muted);
}

.know-more-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  background: rgba(47, 107, 62, 0.04);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.know-more-toggle:hover {
  background: rgba(47, 107, 62, 0.08);
}

.variety-details {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.variety-details.is-active {
  max-height: 300px;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.voice-highlight {
  animation: highlight-variety 3s ease;
}

@keyframes highlight-variety {
  0% { border-color: var(--accent); transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 106, 45, 0); }
  20% { border-color: var(--accent); transform: scale(1.02); box-shadow: 0 0 30px rgba(155, 106, 45, 0.4); }
  80% { border-color: var(--accent); transform: scale(1.02); box-shadow: 0 0 30px rgba(155, 106, 45, 0.4); }
  100% { border-color: var(--line); transform: scale(1); box-shadow: 0 0 0 0 rgba(155, 106, 45, 0); }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 107, 62, 0.08);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.tip-card,
.feature-card,
.fact-card {
  position: relative;
  overflow: hidden;
}

.tip-card::before,
.feature-card::before,
.fact-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 176, 130, 0.28), transparent 66%);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(47, 107, 62, 0.12), rgba(155, 106, 45, 0.16));
  font-size: 1.35rem;
}

.about-preview {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.image-panel {
  overflow: hidden;
}

.image-panel img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(47, 107, 62, 0.12), rgba(155, 106, 45, 0.12)),
    rgba(255, 252, 246, 0.72);
}

.crop-hero {
  display: grid;
  gap: 1.4rem;
  padding: 1.2rem;
  margin-top: 3rem;
}

.crop-hero img {
  border-radius: calc(var(--radius-lg) - 6px);
  min-height: 300px;
  object-fit: cover;
}

.crop-copy {
  padding: 0.4rem;
}

.crop-copy h1 {
  margin: 0.8rem 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.crop-copy p {
  color: var(--muted);
}

.facts-grid .fact-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.15rem;
  color: var(--text);
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.tab-button {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.8);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.tab-button.is-active {
  background: var(--primary-dark);
  color: #fff;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
  padding: 1.4rem;
}

.tab-panel.is-active {
  display: block;
}

.panel-copy {
  max-width: 48rem;
}

.panel-copy h3 {
  margin-top: 0;
}

.varieties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.variety-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.accordion-list {
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}

.accordion-icon {
  color: var(--accent);
  font-weight: 700;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.accordion-item.is-open .accordion-body {
  max-height: 260px;
  padding-bottom: 1rem;
}

.simple-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1rem;
  color: var(--muted);
}

.simple-list li::marker {
  color: var(--primary);
}

.contact-layout {
  display: grid;
  gap: 1.2rem;
}

.help-form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.help-form label {
  display: grid;
  gap: 0.45rem;
}

.help-form input,
.help-form textarea {
  border-radius: 1rem;
  border: 1px solid rgba(94, 74, 39, 0.14);
  background: rgba(255, 252, 246, 0.86);
  padding: 0.9rem 1rem;
  color: var(--text);
  resize: vertical;
}

.help-form input:focus,
.help-form textarea:focus,
.language-picker select:focus {
  outline: 2px solid rgba(47, 107, 62, 0.25);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(45, 36, 23, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.success-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.is-active .success-modal {
  transform: translateY(0) scale(1);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(47, 107, 62, 0.2);
}

.success-modal p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-sidecard {
  padding: 1.4rem;
}

.site-footer {
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-preview,
  .contact-layout,
  .crop-hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (min-width: 1024px) {

  .section,
  .page-hero {
    padding: 2.6rem;
  }

  .crop-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 2rem;
    padding: 1rem;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {

  .site-header,
  .site-footer,
  .hero-content,
  .stats-strip,
  .section,
  .page-hero,
  .crop-hero {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    gap: 0.8rem;
  }

  .brand {
    padding: 0;
  }

  .hero-content {
    padding: 4.5rem 0 3rem;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .voice-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
  }

  .tab-button {
    width: 100%;
  }
}