/* CSS Variables for consistent theming */
:root {
  --primary-green: #2d5a27;
  --secondary-green: #4a7c59;
  --light-green: #a8c6a0;
  --dark-brown: #5d4037;
  --light-brown: #8d6e63;
  --cream: #f5f5f1;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-green);
  font-size: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Header & Navigation */
header {
  background-color: rgb(187, 186, 186);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: #fff;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-green);
  background: none;
  border: none;
  padding: 0;
}

.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;
}

.coming-soon {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--light-green);
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/photos/hero-farm.jpg") no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 150px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-btns .btn {
  background-color: var(--white);
  color: var(--primary-green);
}

.hero-btns .btn:hover {
  background-color: var(--light-green);
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  color: var(--primary-green);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Products Section */
.products {
  background-color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin-bottom: 10px;
  color: var(--primary-green);
}

.product-info p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.product-price {
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 15px;
}

/* CSA Section */
.csa {
  background-color: var(--primary-green);
  color: var(--white);
  text-align: center;
}

.csa h2 {
  color: var(--white);
}

.csa-content {
  max-width: 800px;
  margin: 0 auto;
}

.csa-content p {
  margin-bottom: 30px;
}

.csa-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.csa-feature {
  flex: 1;
  min-width: 200px;
  padding: 20px;
}

.csa-feature i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--light-green);
}

/* Testimonials */
.testimonials {
  background-color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--cream);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-green);
}

/* Contact Section */
.contact {
  background-color: var(--cream);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: var(--primary-green);
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-detail i {
  margin-right: 15px;
  color: var(--primary-green);
}

.map {
  height: 300px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

/* Footer */
footer {
  background-color: var(--dark-brown);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--light-green);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-green);
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-green);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 80%;
    height: calc(100vh - 80px);
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 40px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0;
    text-align: center;
    margin-bottom: 25px;
  }

  .hamburger {
    display: block;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 80%;
    max-width: 300px;
  }
}

/* ============================
   Smooth scroll + logo link
   ============================ */
html {
  scroll-behavior: smooth;
}

.logo {
  text-decoration: none;
}

/* ============================
   Hero slide-in-from-left animation
   ============================ */
.hero-anim {
  opacity: 0;
  transform: translateX(-60px);
  animation: heroSlideIn 0.7s ease forwards;
}

.hero-anim-1 {
  animation-delay: 0.1s;
}
.hero-anim-2 {
  animation-delay: 0.35s;
}
.hero-anim-3 {
  animation-delay: 0.6s;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================
   Scroll reveal for sections
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================
   Products dialog (View All Products)
   ============================ */
dialog#productsDialog {
  border: none;
  border-radius: 10px;
  padding: 0;
  width: min(900px, 92vw);
  max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

dialog#productsDialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.products-dialog-inner {
  padding: 30px;
  max-height: 85vh;
  overflow-y: auto;
}

.products-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.products-dialog-header h2 {
  color: var(--primary-green);
}

.dialog-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.products-dialog-note {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.catalog-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.catalog-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.catalog-item-info {
  padding: 14px;
}

.catalog-item-info h4 {
  color: var(--primary-green);
  margin-bottom: 6px;
}

.catalog-price {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
}

/* ============================
   CSA with image layout
   ============================ */
.csa-with-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.csa-text {
  flex: 2;
  min-width: 300px;
}

.csa-status {
  margin-bottom: 20px;
}

.status-badge {
  display: inline-block;
  background-color: var(--light-green);
  color: var(--primary-green);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
}

.roadmap {
  margin-top: 60px;
}

.roadmap-title {
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
  font-size: 1.6rem;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.roadmap-step {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  border-top: 4px solid rgba(255, 255, 255, 0.2);
}

.roadmap-step.is-active {
  background-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--light-green);
}

.roadmap-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-step h4 {
  color: var(--white);
  margin-bottom: 10px;
}

.roadmap-step p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.csa-image {
  flex: 1;
  min-width: 260px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.csa-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================
   Google reviews CTA
   ============================ */
.reviews {
  background-color: var(--white);
}

.reviews-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--cream);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
}

.reviews-card i {
  font-size: 2.5rem;
  color: #4285f4;
  margin-bottom: 15px;
}

.reviews-card p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* ============================
   Trusted Brands & Partners marquee
   ============================ */
.partners {
  background-color: var(--cream);
  padding-bottom: 40px;
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  margin: 0 15px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  z-index: 999;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: whatsappGlow 2s infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

@keyframes whatsappGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}
