/* =====================================================
   GLOBAL
===================================================== */

.front-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
}

.front-page h1,
.front-page h2,
.front-page h3 {
  margin: 0 0 0.75rem;
}

.front-page p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.front-page a {
  color: #2f6f3e;
  text-decoration: none;
}

.front-page a:hover {
  text-decoration: underline;
}

section {
  padding: 4rem 1.5rem;
}

/* =====================================================
   HERO VIDEO
===================================================== */

.hero-video-section {
  position: relative;
  height: 50vh;
  overflow: hidden;
  padding: 0px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
}

.hero-overlay p {
  font-size: 1.45rem;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-overlay a {
  color: #fff;
}

.hero-button {
  background: rgba(0,0,0,0);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 26px;
  font-weight: 600;
  font-size: 1rem;
  border:solid 2px white;
}

/* =====================================================
   AVAILABLE PRODUCTS
===================================================== */

.available-products-section {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.available-products-home {
  margin-top: 2rem;
}

/* =====================================================
   JOIN / APP SECTION
===================================================== */

.join-section {
  background: #f6f7f5;
}

.join-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.join-left img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.app-download-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.app-download-icons img {
  height: 45px;
}

.join-right ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.join-right li {
  margin-bottom: 0.5rem;
}

.fine-print {
  font-size: 0.85rem;
  color: #555;
}

.cta-button {
  display: inline-block;
  background: #2f6f3e;
  color: #fff!important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
}

/* =====================================================
   STATE SEALS
===================================================== */

.state-seals-section {
  text-align: center;
}

.state-logo-wrap {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.state-logos {
  max-height: 70px;
  width: auto;
}

/* =====================================================
   CSA SECTION
===================================================== */

.csa-section {
  background: #f6f7f5;
  text-align: center;
}

.csa-images {
  margin-top: 3rem;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.csa-image-left {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.csa-image-right {
  width: 85%;
  margin-top: -120px;
  margin-left: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =====================================================
   FAQ SECTION
===================================================== */

.faq-section {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-columns {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.faq-column details {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.faq-column summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-column summary::-webkit-details-marker {
  display: none;
}

.faq-column details[open] {
  background: #eef3ef;
}

.faq-column ul {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.faq-column li {
  margin-bottom: 0.5rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 768px) {
  .join-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

@media (max-width: 600px) {
  .hero-overlay p {
    font-size: 1.1rem;
  }

  .app-download-icons img {
    height: 27.5px;
  }

  .hero-video-section {
    height: 80vh;
  }

  .csa-image-right {
    width: 100%;
    margin-top: 1.5rem;
  }
}

/* =====================================================
   Product Image Click - Single Product Home Page
===================================================== */
.home .farmtab-product-link {
  pointer-events: auto;
  cursor: pointer;
}

/* SUBSITE SHOP PAGE - links not clickable */
body.blog .farmtab-product-link,
body.archive .farmtab-product-link,
body.tax-product_cat .farmtab-product-link {
  pointer-events: none;
  cursor: default;
}

/* ===============================
   HOMEPAGE FARM FINDER SECTION
================================ */

.homepage-farm-finder {
  max-width: 1400px;
  text-align: center;
  margin: auto;
  padding-top: 0px;
}

.homepage-farm-finder h2 {
  margin-bottom: 0.75rem;
}

.homepage-farm-finder p {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

/* ===============================
   INPUT + BUTTON
================================ */

.homepage-farm-finder-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

#homepage-location-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  width: 260px;
}

#homepage-use-my-location {
  padding: 0.75rem 1.25rem;
  background: #2f6f3e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

#homepage-use-my-location:hover {
  background: #265a33;
}

/* ===============================
   HORIZONTAL SCROLL LIST
================================ */

.homepage-farm-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.homepage-farm-list::-webkit-scrollbar {
  height: 8px;
}

.homepage-farm-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.homepage-farm-list::-webkit-scrollbar-track {
  background: #f1f5f9;
}

/* ===============================
   FARM CARDS (HORIZONTAL)
================================ */

.homepage-farm-card {
  flex: 0 0 260px; /* card width */
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.homepage-farm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.homepage-farm-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.homepage-farm-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.homepage-farm-card-body {
  padding: 1rem;
  text-align: left;
}

.homepage-farm-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.homepage-farm-card-body p {
  margin: 0.25rem 0;
  color: #374151;
}

.homepage-farm-distance {
  font-weight: 600;
  color: #2f6f3e;
}

/* ===============================
   MOBILE TWEAKS
================================ */

@media (max-width: 480px) {
  .homepage-farm-card {
    flex: 0 0 200px;
  }

  .homepage-farm-card-image img {
    height: 140px;
  }
  .homepage-farm-card-body h3 {
    font-size: .85rem;
    margin-bottom: 0.25rem;
  }

  .homepage-farm-card-body p {
    font-size:.8rem;
  }


}

