/* Center navbar content for homepage */
.center-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.navbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
@media (min-width: 901px) {
  .navbar-center {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }
  .logo {
    margin: 0;
    text-align: center;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-height: 72px; /* approximate nav height used for homepage hero calculation */
  /* Green brand variables */
  --brand: #117a37; /* primary green */
  --brand-rgb: 17, 122, 55;
  --brand-dark: #0f5e34;
  --brand-accent: #a7e9bf;
  --brand-contrast: #ffffff;
  /* Accent yellow for hero emphasis */
  --accent-yellow: #ffd54a;
  --accent-yellow-rgb: 255, 213, 74;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f9f9f9
}

/* Make the page a column so we can push the footer to the bottom without
   changing the navbar markup or its styles. This is minimal and won't alter
   the navbar rules themselves. */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand);
  color: white;
  padding: 1rem 2rem;
}
/* end navbar */


.logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-accent);
}

.hero {
  background: url('../assets/grain.png') center/cover no-repeat;
  color: #fff;
  min-height: 60vh;
  position: relative; /* for overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 4rem) 1rem;
}

.hero::before {
  /* overlay to make hero text pop against background */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(var(--brand-rgb), 0.18));
  z-index: 0;
}

.hero-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--brand-contrast);
  padding: clamp(1rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--brand-rgb), 0.08);
  box-shadow: 0 8px 36px rgba(8, 30, 15, 0.10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition: transform .26s cubic-bezier(.2,.9,.2,1), box-shadow .26s ease;
  position: relative;
}
/* hero-content hover is defined above */

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 6px 24px rgba(0,0,0,0.22);
  margin-bottom: .85rem;
}
.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.hero-tag { font-size: .95rem; letter-spacing: .8px; opacity: 0.92; }

/* CTA focus state for accessibility */
.hero .btn:focus {
  outline: 3px solid rgba(var(--brand-rgb),0.14);
  outline-offset: 2px;
  box-shadow: 0 6px 24px rgba(var(--brand-rgb),0.15);
}

/* Responsive text sizing */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
  .hero-sub { font-size: clamp(0.95rem, 1.9vw, 1rem); }
  .hero-tag { font-size: 0.9rem; }
  .hero-content { padding: clamp(0.75rem, 3vw, 1.2rem); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.05rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-tag { font-size: 0.85rem; }
  .hero-content { padding: 0.8rem; margin: 0 0.5rem; }
  .hero-content::before { width: 60px; top: -9px; }
  .hero .btn { padding: 0.7rem 1.25rem; }
}
.hero-accent { color: var(--accent-yellow); font-weight: 800; background: rgba(var(--accent-yellow-rgb), 0.12); padding: 0 0.18rem; border-radius: 0.25rem; text-shadow: 0 1px 0 rgba(0,0,0,0.18); }

.hero-content::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -12px;
  height: 6px;
  width: 90px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb),0.9), rgba(var(--brand-rgb),0.6));
  box-shadow: 0 6px 20px rgba(var(--brand-rgb),0.12);
  z-index: 1;
}
.hero-content > * { position: relative; z-index: 2; }

.btn {
  background: linear-gradient(90deg, var(--brand) 40%, var(--brand-dark) 100%);
  color: var(--brand-contrast);
  padding: 0.7rem 1.2rem;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}
.btn:hover {
  background: linear-gradient(90deg, var(--brand-dark) 40%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--brand-rgb),0.16);
}

/* Hero specific button (glass feel) */
.hero .btn {
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.12), rgba(var(--brand-rgb), 0.06));
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  color: var(--brand-contrast);
  padding: 0.8rem 1.8rem;
  backdrop-filter: blur(6px);
}
.hero .btn:hover {
  background: linear-gradient(90deg, var(--brand) 30%, var(--brand-dark));
  color: #fff;
}

footer {
  text-align: center;
  background: var(--brand);
  color: rgb(248, 247, 247);
  padding: 1rem 0;
}

/* Image section inserted between About and Mission */
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  width: 100%;
}

.about-image img {
  max-width: 560px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .about-image img { max-width: 90%; }
}

/* Make all images responsive */
img { max-width: 100%; height: auto; display: block; }

/* Keep footer at the bottom when page content is short */
footer {
  margin-top: auto;
}

/* Center only the About and Mission sections; do NOT change navbar styling */
.about-section,
.mission {
  display: flex;
  flex-direction: column;
  align-items: center;    /* horizontal centering */
  justify-content: center; /* vertical centering inside the section */
  text-align: center;
  padding: 3rem 1rem;
  width: 100%;
}

/* About page background: grain image with subtle dark overlay for contrast */
.about-section {
  background: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.12)), url('../assets/FullLogo.jpg') center/cover no-repeat;
}

/* Homepage background: place the hero image on the full document background to avoid white gaps */
body.home {
  background: url('../assets/grain.png') center/cover no-repeat;
  background-size: cover;
  background-attachment: scroll; /* default: scroll for better mobile behavior */
  min-height: 100vh;
}

/* Keep header readable but transparent on the homepage so the background shows through */
body.home .navbar {
  background: rgba(var(--brand-rgb), 0.40); /* translucent to show the background image */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 20;
}

/* Ensure the hero box is transparent on the homepage (we use the body background) and will fill the viewport */
body.home .hero {
  background: transparent;
  min-height: calc(100vh - var(--nav-height)); /* keeps the hero visible without whitespace */
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

/* Mobile-specific overrides for homepage background */
@media (max-width: 900px) {
  body.home { background-attachment: scroll; }
  :root { --nav-height: 56px; }
  body.home .hero { min-height: calc(100vh - var(--nav-height)); padding-top: var(--nav-height); }
  body.home .navbar { background: rgba(var(--brand-rgb),0.65); position: relative; }
}

/* Keep the text readable by giving the about text a soft card background */
.about-text {
  background: rgba(255,255,255,0.98);
  padding: 2rem 2.25rem;
  border-radius: 14px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(15,23,42,0.06);
  line-height: 1.75;
  color: #1f2933;
}

.about-text p {
  margin-bottom: 1rem;
}

/* New/updated About styles to improve typography and visual hierarchy */
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.about-text .lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2b3a42;
  margin-bottom: 1rem;
}

/* closing paragraph slightly emphasized */
.about-text .closing {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brand);
}

/* highlight box with short bullets */
.about-highlights {
  margin: 1.25rem 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(250,250,255,0.9), rgba(245,248,250,0.95));
  border: 1px solid rgba(var(--brand-rgb),0.04);
}

.about-highlights ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  color: #153248;
}

.about-highlights li {
  margin-bottom: 0.5rem;
}

/* CTA button adjustments to match About card */
.about-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--brand-rgb),0.12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.about-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(var(--brand-rgb),0.16);
  opacity: 0.98;
}

/* Ensure .about-image and mission spacing looks balanced with new card size */
.about-image {
  padding: 2rem 1rem;
}

.mission {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Card style for About and Mission sections */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(10, 61, 98, 0.06);
}
.about-section .card {
  max-width: 1000px;
  margin: 0 auto;
}

/* Contact form / Reach Us improvements */
.contact-card { max-width: 1100px; margin: 0 auto; }
.contact-columns { display: flex; gap: 1.5rem; align-items: stretch; }
.contact-form { flex: 1 1 60%; display: flex; flex-direction: column; gap: 0.8rem; }
.contact-info { flex: 0 0 360px; background: linear-gradient(180deg,#fff,#fbfdff); padding: 1rem 1.2rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); display: flex; flex-direction: column; justify-content: center; }
.contact-info h4 { margin-top: 0; color: var(--brand); }
.contact-info p { margin: .55rem 0; color: #334155; }
.contact-form label { font-weight: 600; color: #153248; }
.contact-form input,
.contact-form textarea { padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid #d1dce1; font-size: 1rem; color: #0b1320; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.06); border-color: rgba(var(--brand-rgb),0.18); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.06); border-color: rgba(var(--brand-rgb),0.18); }
.contact-form .form-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.contact-form .form-row .btn { margin-left: auto; }
.contact-form .checkbox-label input { margin-right: 0.5rem; }

/* Small screen adjustments */
@media (max-width: 900px) {
  .contact-columns { flex-direction: column; }
  .contact-info { flex: none; width: 100%; justify-content: flex-start; }
  /* Reduce padding on the contact card so content fits more easily on small screens */
  .contact-card { padding: 1rem; }
  .contact-card .card { padding: 1rem; }
  /* Slightly smaller top padding so the form is visible below the navbar */
  .contact-main { padding-top: calc(var(--nav-height) + 0.5rem); padding-bottom: 2rem; }
}

/* Center headings and make the contact card sit in the middle */
.contact-main { min-height: auto; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; padding-top: calc(var(--nav-height) + 1rem); padding-bottom: 3rem; }
.contact-card h3 { text-align:center; font-size:1.6rem; margin-bottom:1rem; color: var(--brand); }
.contact-columns { justify-content:center; }
.contact-form { max-width: 560px; margin: 0 auto; }
.contact-info { text-align:center; }

@media (max-width: 900px) {
  .contact-form { max-width: 100%; }
}

/* Utility: hide for visual but keep accessible for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mission-card {
  max-width: 900px;
  margin: 0 auto;
}

/* Mission list styling */
.mission-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255,237,179,0.18), rgba(255,250,240,0.02));
  padding: 0.9rem 1rem;
  border-radius: 8px;
}

.mission-list li strong {
  min-width: 160px;
  display: inline-block;
  color: var(--brand);
}

.mission-list li p {
  margin: 0;
  color: #333;
}

/* Products layout: left column (Seeds) fills left half, right column shares the other half equally */
.products {
  padding: 2rem 1rem 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.products-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 60vh; /* ensure there's enough vertical space to distribute */
}

.products-layout > .seed-column,
.products-layout > .others-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Make the single seed card fill the full column height */
.seed-column .product-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.seed-column .product-card ul {
  overflow: auto;
}

/* Make the right column cards share the column height equally */
.others-column .product-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.others-column .product-card ul {
  margin-top: auto; /* keep lists starting after the title */
  overflow: auto;
}

/* Product card base visual (kept minimal to avoid clashing with .card) */
.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  border: 1px solid rgba(var(--brand-rgb),0.06);
}

/* Grid for products: left big seed box, right stacked boxes; no blank space */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid .seed-card {
  grid-row: 1 / span 4; /* span all rows on the right so it fills left column */
  height: 100%;
}

.products-grid .right-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.products-grid .right-stack .product-card {
  flex: 1 1 0; /* share available height equally */
}

/* Large bold category headers */
.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Hover color changes removed: keep only the lift + shadow effect on hover
  so product cards no longer change their background or text color. */
.product-card.hover-1:hover { background: #fff; color: inherit; }
.product-card.hover-2:hover { background: #fff; color: inherit; }
.product-card.hover-3:hover { background: #fff; color: inherit; }
.product-card.hover-4:hover { background: #fff; color: inherit; }
.product-card.hover-5:hover { background: #fff; color: inherit; }

.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(var(--brand-rgb),0.12); }

/* Ensure inner text becomes readable on hover */
.product-card:hover h3,
.product-card:hover li { color: inherit; }

/* Seeds card: use an image (images/seeds.jpg) as the background with a subtle overlay.
   The CSS file is in `css/` so the image path is `../images/seeds.jpg`. */
.seed-card {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.24)), url('../assets/seeds.png') center/cover no-repeat;
  color: #fff; /* default text color on the image */
}

/* On hover, blend a stronger gradient over the same image to keep the image visible
   while showing the category color. This overrides the generic hover gradient for hover-1. */
.seed-card.hover-1:hover {
  /* keep the same visual as the default seed-card so the image remains visible
     and colors do not change on hover */
  background: linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.24)), url('../assets/seeds.png') center/cover no-repeat;
  color: #fff;
}

/* Ensure headings and list items sit above the background */
.seed-card h3,
.seed-card li {
  position: relative;
  z-index: 1;
}

/* Rice card: image background similar to seeds (assets/rice2.png) */
.rice-card {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), url('../assets/rice.png') center/cover no-repeat;
  color: #fff;
}

.rice-card.hover-2:hover {
  /* keep the rice-card appearance on hover (no color change) */
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), url('../assets/rice.png') center/cover no-repeat;
  color: #fff;
}

/* Ensure rice headings and list items sit above the background */
.rice-card h3,
.rice-card li {
  position: relative;
  z-index: 1;
}

/* Millet card: image background similar to seeds/rice (assets/millet.png) */
.millet-card {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/millet.png') center/cover no-repeat;
  color: #fff;
}

.millet-card.hover-3:hover {
  /* keep the millet-card appearance on hover (no color change) */
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/millet.png') center/cover no-repeat;
  color: #fff;
}

/* Ensure millet headings and list items sit above the background */
.millet-card h3,
.millet-card li {
  position: relative;
  z-index: 1;
}

/* Corriander card: image background (assets/corriander.png) */
.corriander-card {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/corriander.png') center/cover no-repeat;
  color: #fff;
}

.corriander-card.hover-4:hover {
  /* keep the corriander-card appearance on hover (no color change) */
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/corriander.png') center/cover no-repeat;
  color: #fff;
}

/* Ensure corriander headings and list items sit above the background */
.corriander-card h3,
.corriander-card li {
  position: relative;
  z-index: 1;
}

/* Raisins card: image background (assets/raisin.png) */
.raisin-card {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/raisin.png') center/cover no-repeat;
  color: #fff;
}

.raisin-card.hover-5:hover {
  /* keep the raisin-card appearance on hover (no color change) */
  background: linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.16)), url('../assets/raisin.png') center/cover no-repeat;
  color: #fff;
}

/* Ensure raisin headings and list items sit above the background */
.raisin-card h3,
.raisin-card li {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .seed-card { grid-row: auto; }
  .products-grid .right-stack { order: 2; }
}

@media (max-width: 900px) {
  .products-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .seed-column .product-card,
  .others-column .product-card {
    flex: none;
  }
}

/* Navigation and global mobile improvements */
@media (max-width: 900px) {
  .navbar { flex-direction: column; gap: 0.5rem; align-items: center; padding: 0.75rem; }
  .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; width: 100%; margin-top: 0.35rem; }
  .nav-links a { padding: 0.6rem 0.8rem; display: inline-block; }
  .logo { font-size: 1.2rem; }
  .hero { min-height: 45vh; padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .navbar { padding: 0.5rem; }
  .logo { font-size: 1.05rem; }
  .nav-links { gap: 0.35rem; padding: 0.25rem 0; }
  .nav-links a { padding: 0.45rem 0.6rem; font-size: 0.95rem; }
  .hero { min-height: 42vh; padding: 1.25rem 0.75rem; }
  .hero-content { padding: 1rem; }
}
