/* styles.css for Maraikkaadu Organics using logo green background */

:root {
  --logo-green: #0b5c3a; /* approximate from your logo background */
  --white: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e2e8f0;
  --green-soft: #bbf7d0;
  --brown: #9c4221;
  --brown-soft: #f6e0c8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Generic section style */

.section {
  padding: 3.2rem 0;
}

/* Alternating sections */

.section-white {
  background: var(--white);
  color: var(--text);
}

.section-green {
  background: var(--logo-green) !important;
  color: #ecfdf5 !important;
}

/* reduce bottom gap only for Vision section */
.vision-tight {
  padding-bottom: 2rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.section-white h2 {
  color: var(--logo-green);
}

.section-green h2 {
  color: #ecfdf5;
}

.section-lead {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.section-green .section-lead,
.section-lead-dark {
  color: #dcfce7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e5edff;
  font-size: 0.78rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.pill-dark {
  background: rgba(12, 148, 136, 0.25);
  color: #bbf7d0;
}

/* NAVBAR */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--logo-green);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #fefcbf, #22c55e);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: #4b5563;
}

.nav-links a:hover {
  background: #ecfdf5;
  color: var(--logo-green);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.7rem;
}

.nav-mobile a {
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  color: #4b5563;
}

.nav-mobile a:hover {
  background: #ecfdf5;
  color: var(--logo-green);
}

.nav-mobile.show {
  display: flex;
}

/* HERO */

.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #f7fafc;
}

.hero {
  position: relative;
  width: 100%;
  padding: 5.2rem 0 3.5rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url("hero-banner.jpg");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(4, 47, 32, 0.88) 0%,
    rgba(11, 92, 58, 0.78) 40%,
    rgba(11, 92, 58, 0.45) 70%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.22);
  font-size: 0.8rem;
  backdrop-filter: blur(2px);
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.18;
  max-width: 620px;
}

.hero p {
  font-size: 0.98rem;
  max-width: 520px;
  color: #e2e8f0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
  gap: 0.35rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary {
  background: #f0fff4;
  color: var(--logo-green);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(31, 41, 55, 0.9);
  color: #f9fafb;
  border: 1px solid rgba(229, 231, 235, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.hero-note {
  font-size: 0.8rem;
  color: #e2e8f0;
}

.hero-note strong {
  color: #fefcbf;
}

/* Vision & Mission */

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.vm-card {
  background: #fafaf9;
  border-radius: 1.2rem;
  padding: 1.3rem 1.2rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  font-size: 0.94rem;
}

.vm-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--logo-green);
}

.vm-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
}

/* How it works */

.section-green .steps-grid {
  margin-top: 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--card);
  border-radius: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--logo-green);
  margin-bottom: 0.35rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* Who can join */

.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
}

.join-card {
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1.2rem 1.1rem 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
}

.join-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.join-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown-soft);
  font-size: 1.1rem;
}

.join-title {
  font-weight: 600;
  color: var(--text);
}

.btn-small {
  margin-top: 0.7rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.store-cta {
  text-align: center;
}

.btn-store {
  background: var(--brown);
  color: #fffaf0;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  font-size: 0.94rem;
  box-shadow: 0 12px 28px rgba(88, 28, 10, 0.4);
}

.btn-store:hover {
  background: #7b341e;
  transform: translateY(-1px);
}

/* Why choose us */

.why-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.why-item {
  flex: 1 1 0;
  min-width: 180px;
  background: var(--card);
  border-radius: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text);
}

.why-icon {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  font-size: 1.2rem;
}

.why-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Impact */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.impact-card {
  background: var(--card);
  border-radius: 1.1rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  font-size: 0.86rem;
}

.impact-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--logo-green);
  margin-bottom: 0.15rem;
}

.impact-label {
  color: var(--muted);
}

/* Farmers slider */

.farmers-track-wrapper {
  overflow: hidden;
  margin-top: 1.4rem;
}

.farmers-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}

.farmer-card {
  min-width: 240px;
  max-width: 260px;
  flex: 0 0 auto;
  background: var(--card);
  border-radius: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  color: var(--text);
}

.farmer-photo {
  width: 100%;
  height: 150px;
  border-radius: 0.9rem;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.farmer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.farmer-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.farmer-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.farmer-acres {
  font-size: 0.8rem;
}

.farmers-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.farmers-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Location & contact */

.loc-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.map-box {
  background: var(--card);
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 280px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-card {
  background: var(--card);
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  padding: 1.1rem;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.contact-item {
  margin-bottom: 0.5rem;
}

.contact-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.contact-value {
  font-weight: 500;
  color: var(--logo-green);
}

.field {
  margin-top: 0.5rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e0;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
  background: #f7fafc;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--logo-green);
  background: #ffffff;
}

.text-small {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.sub-heading {
  font-size: 1rem;
  color: var(--logo-green);
  margin-bottom: 0.5rem;
}

.contact-status {
  font-size: 0.78rem;
  margin-top: 0.4rem;
  color: var(--muted);
}

/* Testimonials */

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.test-card {
  background: var(--card);
  border-radius: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.test-type {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.test-name {
  font-weight: 600;
  margin-top: 0.4rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* Footer */

footer {
  background: #020617;
  color: #e2e8f0;
  padding: 1.8rem 0 2.2rem;
  font-size: 0.84rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand {
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.25);
  font-size: 0.8rem;
}

.social-link span {
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  color: #9ca3af;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loc-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.7rem 0;
  }

  .hero-inner {
    gap: 1.3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .btn {
    width: 100%;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .why-icons {
    flex-direction: column;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }
}
