/* ============================================================
   FarmTab Redesign: shared design system for the 4 marketing
   templates (front-page, page-faq, page-farmer-registration,
   page-features).

   Everything is scoped under .ftm-page so it can't leak into
   the rest of the theme while we review.
   ============================================================ */

/* ============================================================
   FarmTab Marketing Templates: shared design system
   Used by: front-page.php, page-faq.php,
            page-farmer-registration.php, page-features.php

   - Every class is prefixed .ftm- and every variable --ftm-, so it
     cannot collide with farmtab-info-styles.css (.ft-*) or with the
     global tokens in farmtab-global-typography.css (:root --ft-*).
   - Variables live on .ftm-page, never on :root.
   - The only non-prefixed class names are the JS hooks the existing
     scripts render/query: .homepage-farm-card*, .homepage-farm-distance,
     .homepage-farm-dd-logo, .produce-carousel-track(-wrap), .produce-carousel-item
   ============================================================ */

/* Bebas Neue @font-face now lives in farmtab-global-typography.css (loaded sitewide). */

.ftm-page {
  --ftm-font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --ftm-font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ftm-green:        #2f6f3e;
  --ftm-green-dark:   #245a31;
  --ftm-ink:          #111111;
  --ftm-text:         #1f2a21;
  --ftm-rule:         #dcdedb;
  --ftm-border:       #e2e5e0;
  --ftm-placeholder:  #8a948c;   /* ZIP placeholder text AND its map-pin icon */

  /* Page gutter used by the hero and every full-width section */
  --ftm-pad:          clamp(1.25rem, 4vw, 3.75rem);

  /* ONE size for every Bebas Neue h2 on all four templates */
  --ftm-h2-size:      clamp(2rem, 3.4vw, 2.75rem);

  /* The one image that fills every hero headline */
  --ftm-fruit-bg:     url('https://farmtab.com/wp-content/uploads/2026/09/farmtab-fruits-bg.png');

  font-family: var(--ftm-font-body);
  color: var(--ftm-text);
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.ftm-page) { scroll-behavior: smooth; }
}

:where(.ftm-page) img { max-width: 100%; height: auto; }   /* :where() = zero specificity, so sized images below win */

.ftm-page :focus-visible {
  outline: 3px solid #7fb98d;
  outline-offset: 3px;
  border-radius: 6px;
}

:where(.ftm-page section:not(.ftm-reg)) :is(p, li, summary) {
  font-family: var(--ftm-font-body);
  color: var(--ftm-text);
}

/* Anchor targets clear the sticky 72px header (+ search bar) */
.ftm-page [id] { scroll-margin-top: 96px; }

.ftm-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--ftm-pad);
  padding-right: var(--ftm-pad);
}

/* ============================================================
   TYPE: Bebas Neue section titles
   ============================================================ */
.ftm-h2 {
  font-family: var(--ftm-font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 1;
  color: var(--ftm-ink);
  margin: 0 0 0.9rem;
  font-size: var(--ftm-h2-size);     /* the one h2 size, shared by every section */
}
.ftm-h2--center { text-align: center; }

.ftm-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ftm-text);
  margin: 0 0 1.25rem;
}
.ftm-text--center { text-align: center; }

/* ============================================================
   CTA LINK: green underlined text + circled icon
   ============================================================ */
.ftm-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 700;
  /* scales smoothly with the screen width (about 11.5px phone to 18px wide desktop) */
  font-size: clamp(0.72rem, 0.4rem + 0.75vw, 1.15rem);
  line-height: 1.3;
  color: var(--ftm-green);
  text-decoration: none;
}
.ftm-cta span {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.ftm-cta svg {
  width: 1.9em;
  height: 1.9em;
  padding: 0.42em;                 /* Lucide glyph sits inside a CSS circle */
  border: 2px solid currentColor;
  border-radius: 50%;
  stroke-width: 2.25;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.ftm-cta:hover { color: var(--ftm-green-dark); }
.ftm-cta:hover svg { transform: translateX(3px); }
.ftm-cta--center { justify-content: center; }

/* ============================================================
   HERO (shared by all four templates)
   ============================================================ */
.ftm-hero {
  /* Hero produce image box. Tweak these three to resize / reposition it on every template. */
  --ftm-art-w:     clamp(320px, 47%, 740px);   /* was clamp(260px, 38%, 560px) */
  --ftm-art-h:     100%;                        /* was 80% */
  --ftm-art-right: clamp(0.5rem, 2vw, 2rem);    /* was clamp(1rem, 5vw, 5rem) */

  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #f0f2ed 0%, #ffffff 62%);
}

.ftm-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--ftm-pad);
  min-height: clamp(480px, 44vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ftm-hero__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

/* Clipping-mask headline: the photo fills ALL the words as one
   piece (not per letter). background-clip:text does the masking. */
.ftm-hero__title {
  margin: 0 0 1.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.04em 0.02em;
  font-family: var(--ftm-font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.012em;

  /* underlay colour shows only if the photo has transparent areas */
  background-color: #1f3d27;
  background-image: var(--ftm-fruit-bg);
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .ftm-hero__title { color: #1f3d27; background: none; -webkit-text-fill-color: currentColor; }
}

.ftm-hero__subtitle {
  margin: 0 0 2.25rem;
  font-family: var(--ftm-font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1.25;
  color: var(--ftm-ink);
}

.ftm-hero__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;               /* drops to a second row only if a phone is too narrow */
  align-items: center;
  gap: 1.25rem 2.5rem;
}

/* Hero produce image.
   One fixed box, vertically centred on the right, identical on all four
   templates. object-fit:contain keeps each photo uncropped inside the box,
   so different photo shapes still float in the same spot. */
.ftm-hero__art {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: var(--ftm-art-right);
  transform: translateY(-50%);
  width: var(--ftm-art-w);
  height: var(--ftm-art-h);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* ── Hero search (front page) ── */
.ftm-search {
  display: flex;
  width: min(100%, 600px);
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(20, 40, 25, 0.13);
}
.ftm-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.ftm-search__icon {                 /* map-pin, same grey as the placeholder text */
  position: absolute;
  left: 1.35rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ftm-placeholder);
  pointer-events: none;
}
.ftm-search input {
  display: block;
  width: 100%;
  height: 68px;
  padding: 0 1.5rem 0 3.5rem;      /* room for the icon */
  font-size: 1rem;
  font-family: var(--ftm-font-body);
  color: var(--ftm-ink);
  background: #fff;
  border: 1px solid #dfe3dc;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  margin: 0;
}
.ftm-search input::placeholder { color: var(--ftm-placeholder); opacity: 1; }
.ftm-search button {
  flex: 0 0 auto;
  height: 68px;
  padding: 0 2.25rem;
  font-family: var(--ftm-font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--ftm-green);
  border: 0;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ftm-search button:hover { background: var(--ftm-green-dark); }

/* ============================================================
   FRONT PAGE: FARM RESULTS SECTION
   ============================================================ */
.ftm-farms {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.ftm-farms .ftm-farms__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--ftm-pad);
  padding-right: 0;           /* list bleeds off the right edge */
}
.ftm-farms__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-right: var(--ftm-pad);
  margin-bottom: 1.5rem;
}
.ftm-farms__header .ftm-h2 { margin: 0; }
.ftm-farms__header p { margin: 0; }
.ftm-farms__header a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ftm-green);
}
.ftm-farms__header a:hover { text-decoration: underline; }

.homepage-farm-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.75rem var(--ftm-pad) 1.25rem 0.25rem;
  margin-left: -0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.homepage-farm-list::-webkit-scrollbar { height: 8px; }
.homepage-farm-list::-webkit-scrollbar-thumb { background: #cfd6cf; border-radius: 4px; }
.homepage-farm-list::-webkit-scrollbar-track { background: transparent; }
.homepage-farm-list-loading { padding: 2rem; color: #555; }

.homepage-farm-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.homepage-farm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.homepage-farm-card a { display: block; color: inherit; text-decoration: none; }
.homepage-farm-card-image img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.homepage-farm-card-body { padding: 0.9rem 1rem 1rem; text-align: left; }
.homepage-farm-card-body h3 {
  margin: 0 0 0.2rem;
  font-family: var(--ftm-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ftm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.homepage-farm-card-body p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.homepage-farm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
}
.homepage-farm-card-meta .homepage-farm-distance {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ftm-ink);
}
.homepage-farm-dd-logo { height: 11px; width: auto; }

/* ============================================================
   FRONT PAGE: DOORDASH BAND (image overlaps the band edges)
   ============================================================ */
.ftm-dd-band {
  background: var(--ftm-sage);
  margin-block: clamp(1.5rem, 3vw, 3rem);   /* extra room above and below the whole band */
}
.ftm-dd-band__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--ftm-pad);
  display: grid;
  grid-template-columns: minmax(0, 466px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.ftm-dd-band__media { margin-block: -2.5rem; position: relative; z-index: 1; }
.ftm-dd-band__media img {
  display: block;
  width: 100%;
  aspect-ratio: 466 / 560;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 40, 25, 0.18);
}
.ftm-dd-band__body { padding-block: clamp(4.5rem, 7.5vw, 6.5rem); }
/* DoorDash logo: small */
.ftm-dd-logo { display: block; height: 20px; width: auto; margin-bottom: 1.5rem; }

/* ============================================================
   STORE MANAGER APP IMAGE + LIGHT-GREY LINE
   (image + line added with CSS, as requested)
   ============================================================ */
.ftm-app-shot {
  width: min(100%, 760px);
  margin: 0 auto 3rem;
  text-align: center;
  border-bottom: 1px solid #d9d9d9;
}
.ftm-app-shot img {
  display: block;            /* no baseline gap, so the line hugs the image */
  width: min(100%, 480px);
  height: auto;
  margin: 0 auto;
}

.ftm-tap {
  padding: clamp(4rem, 7vw, 6rem) var(--ftm-pad);
  text-align: center;
}
.ftm-tap__lead { max-width: 640px; margin: 0 auto 1.75rem; }
.ftm-tap__get {
  margin: 2rem 0 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ftm-ink);
}
.ftm-store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.ftm-store-badges img { display: block; height: 58px; width: auto; }

/* ============================================================
   CHECKLISTS
   ============================================================ */
.ftm-checklist {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.ftm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}
.ftm-checklist svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--ftm-green);
}
.ftm-checklist--center { width: fit-content; margin-inline: auto; }

/* ============================================================
   STATE SEALS SECTION
   ============================================================ */
.ftm-seals {
  background: linear-gradient(to bottom, #ffffff 0%, var(--ftm-sage) 100%);
  text-align: center;
  padding: clamp(4rem, 7vw, 5.5rem) var(--ftm-pad) 1.5rem;
}
.ftm-seals > p { margin: 0 auto 2.25rem; text-align: center; font-size: 0.98rem; }
.ftm-seals__logos {
  margin: 0 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  align-items: center;
}
.ftm-seals__logo { max-height: 72px; width: auto; display: block; }

/* ============================================================
   PRODUCE CAROUSEL SECTION (keeps the auto-scroll + centre pop)
   ============================================================ */
.ftm-carousel {
  --item: 220px;
  --gap: 1.5rem;
  background: var(--ftm-sage);
  padding: 1rem 0 clamp(4rem, 7vw, 5.5rem);
  overflow: hidden;
}
.produce-carousel-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.75rem 0;        /* room for the centre "pop" */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.produce-carousel-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: produce-scroll 40s linear infinite;
}
.produce-carousel-track:hover { animation-play-state: paused; }
.produce-carousel-item {
  flex: 0 0 var(--item);
  height: var(--item);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.produce-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* cut-out produce, not cropped circles */
  display: block;
}
.produce-carousel-item.is-center { transform: scale(1.18); z-index: 2; }

@keyframes produce-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-10 * (var(--item) + var(--gap)))); }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.ftm-faq { padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(3.5rem, 6vw, 5rem); }
.ftm-faq-group { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.ftm-faq-group__heading {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--ftm-rule);
  font-family: var(--ftm-font-display);
  font-weight: 400;
  font-size: var(--ftm-h2-size);
  letter-spacing: 0.012em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ftm-ink);
}
.ftm-faq-list { display: grid; gap: 0.65rem; }
.ftm-faq-item {
  background: #fff;
  border: 1px solid var(--ftm-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ftm-faq-item[open] {
  border-color: #b9d2bf;
  box-shadow: 0 4px 14px rgba(20, 40, 25, 0.08);
}
.ftm-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ftm-ink);
  cursor: pointer;
  list-style: none;
}
.ftm-faq-item summary::-webkit-details-marker { display: none; }
.ftm-faq-item summary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.ftm-faq-item[open] summary svg { transform: rotate(180deg); }
.ftm-faq-body { padding: 0 1.35rem 1.25rem; max-width: 80ch; }
.ftm-faq-body p, .ftm-faq-body li { font-size: 0.95rem; line-height: 1.65; color: var(--ftm-text); }
.ftm-faq-body p { margin: 0 0 0.75rem; }
.ftm-faq-body ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }

/* ============================================================
   REGISTRATION PAGE
   The form itself is rendered by [farmtab_seller_signup] (the
   farmtab-seller-onboarding plugin brings its own card styling),
   so nothing here styles the wizard.
   ============================================================ */
.ftm-reg { padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); }
.ftm-reg__form { margin-top: 2.25rem; }

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.ftm-found { padding: clamp(4rem, 7vw, 5.5rem) 0; }
.ftm-found__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 2.25rem 0 3rem;
}
.ftm-found__item h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-family: var(--ftm-font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ftm-ink);
}
.ftm-found__item p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.ftm-icon { width: 26px; height: 26px; flex: 0 0 auto; }

.ftm-dd {
  padding: clamp(4rem, 7vw, 5.5rem) 0;
  background: var(--ftm-sage);
}
.ftm-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ftm-frame {
  border: 1px solid var(--ftm-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(20, 40, 25, 0.14);
}
.ftm-frame img, .ftm-frame video { display: block; width: 100%; height: auto; }

.ftm-csa { padding: clamp(4rem, 7vw, 5.5rem) 0; }
/* video column capped so the demo doesn't feel oversized */
.ftm-split--csa { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; }
.ftm-csa__bold { font-weight: 700; margin: 1.75rem 0 0; }
.ftm-csa__trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: clamp(4rem, 7vw, 6rem) 0 3rem;
}

.ftm-price { padding: clamp(4rem, 7vw, 5.5rem) var(--ftm-pad); background: var(--ftm-sage); text-align: center; }
.ftm-price__free { margin: 0.75rem 0 0.35rem; font-weight: 700; font-size: 1.05rem; }
.ftm-price__sub  { margin: 0 0 0.85rem; font-size: 0.95rem; }
.ftm-price__faq  { font-size: 0.9rem; font-weight: 700; }
.ftm-price__cards {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 700px);
  margin: 2.25rem auto 3rem;
  text-align: left;
}
.ftm-price__card {
  padding: 1.4rem 1.6rem 1.5rem;
  background: #fff;
  border-left: 6px solid var(--ftm-green);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.ftm-price__card h3 { margin: 0 0 0.5rem; font-family: var(--ftm-font-body); font-size: 1.05rem; font-weight: 700; color: var(--ftm-ink); }
.ftm-price__card p  { margin: 0; font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ftm-hero__inner { min-height: clamp(380px, 100vw, 480px); padding-top: 3rem; padding-bottom: 3.5rem; }   /* room for a bigger image */

  /* Headline stays large: it is the page's statement piece */
  .ftm-hero__title { font-size: clamp(3rem, 11vw, 6rem); }

  /* Produce image slides BEHIND the text; a white wash keeps the text readable */
  .ftm-hero {
    --ftm-art-w:     min(94%, 640px);   /* was 74% */
    --ftm-art-h:     100%;              /* was 88% */
    --ftm-art-right: -8%;
  }
  .ftm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.93) 0%, rgba(255,255,255,0.78) 50%, rgba(255,255,255,0.3) 100%);
  }

  .ftm-dd-band__inner { grid-template-columns: 1fr; padding-block: 3.5rem; gap: 2.25rem; }
  .ftm-dd-band__media { margin-block: 0; max-width: 466px; }
  .ftm-dd-band__body  { padding-block: 0; }

  .ftm-split, .ftm-split--csa { grid-template-columns: 1fr; }
  .ftm-split--csa .ftm-frame { max-width: 420px; }
  .ftm-found__grid, .ftm-csa__trio { grid-template-columns: 1fr; gap: 2rem; }

  .ftm-carousel { --item: 150px; }
}

@media (max-width: 560px) {
  /* Phones: drop the forced line breaks so the words wrap into 3 to 4 big lines */
  .ftm-hero__title { font-size: clamp(3.25rem, 16.5vw, 4.75rem); line-height: 0.92; text-wrap: balance; }
  .ftm-hero__title br { display: none; }
  .ftm-search { flex-direction: column; box-shadow: none; gap: 0.6rem; }
  .ftm-search input  { border-right: 1px solid #dfe3dc; border-radius: 12px; height: 58px; }
  .ftm-search__icon  { left: 1.1rem; }
  .ftm-search button { border-radius: 12px; height: 58px; }
  .ftm-farms__header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .ftm-store-badges img { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .produce-carousel-track { animation: none; }
  .ftm-cta svg, .ftm-faq-item summary svg, .homepage-farm-card { transition: none; }
}
