/* =====================================================
   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;
}

/* =====================================================
   UTILITY WRAPPERS
===================================================== */

.bg-color-wrap {
  background: #f5f7f2;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-color-wrap-100 {
  background: #f5f7f2;
  margin: 0 auto;
  width: 100%;
}

/* =====================================================
   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.25);
  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;
}

/* =====================================================
   FARM SEARCH HERO SECTION
===================================================== */

.farm-search-hero-section {
  background-image: url('https://farmtab.com/wp-content/uploads/2026/03/farmtab-background-frontpage-vegetables-scaled.png');
  background-size: cover;
  background-position: center;
  padding: 0;
  position: relative;
}

.wrap-overlay {
  background: rgba(0, 0, 0, 0.25);
  width: 100%;
}

.farm-search-hero-overlay {
  padding: 5rem 1.5rem 4rem;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.farm-search-hero-overlay h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
}

.farm-search-hero-overlay > p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
  text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
}

/* Override shared controls styles for hero context */
.farm-search-hero-section .homepage-farm-finder-controls {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.farm-search-hero-section #homepage-location-input {
  width: 300px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
}

.farm-search-hero-section #homepage-use-my-location {
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #2f6f3e;
  border: 2px solid rgba(255,255,255,0.3);
}

.farm-search-hero-section #homepage-use-my-location:hover {
  background: #133d1e;
}

/* Trust badges row */
.farm-search-trust-badges {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}

.farm-search-trust-badges span {
  color: #fff;
  text-shadow: 0px 0px 5px rgba(0,0,0,0.3);
}

/* =====================================================
   FARM RESULTS SECTION
===================================================== */

.farm-results-section {
  padding: 2.5rem 1.5rem;
  background: #f5f7f2;
}

.featured-farms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.featured-farms-header h2,
.featured-farms-header p {
  margin: 0;
}

.featured-farms-header h3 {
  margin-bottom: 0px;
}

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

.available-products-section {
  padding: 2.5rem 1.5rem;
  background: #f5f7f2;
  max-width: none;
  width: 100%;
  text-align: center;
}

.available-products-section h3 {
  text-align: left;
}

.available-products-home {
  margin-top: 0px;
}

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

.state-seals-section {
  text-align: center;
  background: #f5f7f2;
  padding: 3rem 1.5rem;
}

.guaranteed-locally-sourced {
  margin-top: 0 !important;
  margin-bottom: 1.5rem;
}

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

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

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

.join-section {
  background: #f5f7f2;
  border-top: solid 1px #e5e5e5;
  border-bottom: solid 1px #e5e5e5;
}

.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;
  justify-content: center;
}

.join-left p {
  text-align: center;
}

.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;
}

/* =====================================================
   HOW IT WORKS SECTION
===================================================== */

.how-it-works-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #f5f7f2;
}

.how-it-works-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.how-it-works-card {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #1f2933;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  background: #fff;
  gap: 0;
}

.how-it-works-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 0 1.5rem;
}

.how-it-works-step img:first-child {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.how-it-works-step-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-align: left;
}

.how-it-works-step-text p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  text-align: left;
}

.how-it-works-dd-logo {
  height: 20px;
  width: auto;
  margin-top: 0.4rem;
  display: block;
}

.how-it-works-divider {
  width: 1px;
  height: 80px;
  background: #d1d5db;
  flex-shrink: 0;
}

/* =====================================================
   FARMER CTA SECTION
===================================================== */

.farmer-cta-section {
  background: #f5f7f2;
  padding: 4rem 1.5rem 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.farmer-cta-image-wrap {
  flex: 0 0 420px;
  position: relative;
  z-index: 1;
}

.farmer-cta-image-wrap img {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: solid 2px black;
}

.farmer-cta-card {
  background: #fff;
  border: 2px solid #1f2933;
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 480px;
  margin-left: -3rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.farmer-cta-dd-badge {
  background: #ff3008;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  margin-top: -3.5rem;
}

.farmer-cta-dd-badge img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

.farmer-cta-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.farmer-cta-divider {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 1rem 0 1.25rem;
}

.farmer-cta-card p {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.farmer-cta-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.farmer-cta-btn {
  background: #1f2933;
  color: #fff !important;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s ease;
}

.farmer-cta-btn:hover {
  background: #374151;
  text-decoration: none;
}

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

.csa-section {
  background: #f5f7f2;
  text-align: center;
  border-top: solid 1px #e5e5e5;
  border-bottom: solid 1px #e5e5e5;
}

.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 0px 10px rgba(0,0,0,0.15);
}

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

/* =====================================================
   PRODUCE CAROUSEL SECTION
===================================================== */

.produce-carousel-section {
  padding: 1rem 0;
  background: #f5f7f2;
  overflow: hidden;
}

.produce-carousel-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.produce-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: produce-scroll 28s linear infinite;
}

.produce-carousel-track:hover {
  animation-play-state: paused;
}

.produce-carousel-item {
  flex: 0 0 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produce-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes produce-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-10 * (180px + 1.5rem))); }
}

.produce-carousel-item.is-center {
  transform: scale(1.25);
  z-index: 2;
}

/* =====================================================
   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;
  border: 1px solid #cbd5f5;
}

.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;
}

/* =====================================================
   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;
  padding-top: .5rem;
  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: white;
}

.avialable-products-home::-webkit-scrollbar {
  height: 8px;
}

.available-products-home::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.available-products-home::-webkit-scrollbar-track {
  background: white;
}

/* =====================================================
   FARM CARDS
===================================================== */

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

.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;
}

.homepage-farm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
}

.homepage-farm-dd-logo {
  height: 13px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.homepage-farm-list-loading {
  text-align: center;
  color: #555;
  padding: 2rem;
  max-width: 200px;
  display: block;
  margin: auto;
}

/* =====================================================
   Product Image Click
===================================================== */

.home .farmtab-product-link {
  pointer-events: auto;
  cursor: pointer;
}

#globl_products .farmtab-product {
    border: 1px solid #e5e7eb !important;
}

#globl_products .acf-location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.blog .farmtab-product-link,
body.tax-product_cat .farmtab-product-link {
  pointer-events: none;
  cursor: default;
}

/* =====================================================
   RESPONSIVE — min-width
===================================================== */

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

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

/* =====================================================
   RESPONSIVE — max-width 768px
===================================================== */

@media (max-width: 768px) {
  .farmer-cta-section {
    flex-direction: column;
    gap: 0;
  }

  .farmer-cta-image-wrap {
    flex: none;
    width: 100%;
    max-width: 420px;
  }

  .farmer-cta-card {
    margin-left: 0;
    margin-top: -2rem;
    width: 100%;
  }

  .farmer-cta-dd-badge {
    margin-top: -1.5rem;
  }

  .available-products-section h3 {
    font-size: 14px;
  }

  .farm-results-section h3 {
    font-size: 14px;
  }
}

/* =====================================================
   RESPONSIVE — max-width 700px
===================================================== */

@media (max-width: 700px) {
  .how-it-works-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .how-it-works-divider {
    width: 80%;
    height: 1px;
  }

  .how-it-works-step {
    padding: 0;
  }
}

/* =====================================================
   RESPONSIVE — max-width 600px
===================================================== */

@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;
  }

  .farm-search-hero-overlay {
    padding: 3.5rem 1.25rem 3rem;
  }

  .farm-search-hero-section #homepage-location-input {
    width: 100%;
  }

  .farm-search-trust-badges {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .produce-carousel-item {
    flex: 0 0 130px;
    height: 130px;
  }

  @keyframes produce-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-10 * (130px + 1.5rem))); }
  }
}

/* =====================================================
   RESPONSIVE — max-width 480px
===================================================== */

@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;
  }
}