/**
 * Farm Share Page — /farm-share/
 * Tree-Ripe Fruit Co.
 *
 * Assigned via: Template Name: Farm Share (template-farm-share.php)
 * Enqueued conditionally in functions.php
 */

/* ============================================================
   VARIABLES
   ============================================================ */
.tr-farm-share {
  --forest: #0F5E41;
  --medium: #408469;
  --black: #333333;
  --gray: #666666;
  --border: #E6E0D6;
  --white: #FFFFFF;
  --fd: Georgia, 'Times New Roman', serif;
  --fu: 'Avenir Next', 'Avenir', system-ui, sans-serif;
  --fb: 'Avenir', 'Avenir Next', system-ui, sans-serif;
}

/* Reset within our wrapper */
.tr-farm-share *,
.tr-farm-share *::before,
.tr-farm-share *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tr-farm-share {
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

.tr-farm-share img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ============================================================
   SHARED
   ============================================================ */
.tr-farm-share .eyebrow {
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
}

.tr-farm-share .btn-pill {
  display: inline-block;
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  border: 2px solid transparent;
}

.tr-farm-share .btn-pill:hover {
  transform: translateY(-2px);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes trFsHeroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes trFsFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes trFsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tr-farm-share .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-farm-share .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tr-farm-share .reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.tr-farm-share .reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.tr-farm-share .reveal-group .reveal:nth-child(3) { transition-delay: 0.2s; }
.tr-farm-share .reveal-group .reveal:nth-child(4) { transition-delay: 0.25s; }


/* ============================================================
   1. HERO
   ============================================================ */
.tr-fs-hero {
  position: relative;
  min-height: clamp(520px, 75vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.tr-fs-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: trFsHeroZoom 8s ease-out both;
}

.tr-fs-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 94, 65, 0.58);
}

.tr-fs-hero-content {
  position: relative;
  z-index: 2;
  width: min(90%, 760px);
  padding: clamp(40px, 8vw, 80px) clamp(24px, 5vw, 48px);
  color: var(--white);
}

.tr-fs-hero .eyebrow {
  color: #c8ddd3;
  margin-bottom: clamp(20px, 3vw, 28px);
  animation: trFsFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.tr-fs-hero h1 {
  font-family: var(--fd);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: clamp(20px, 3vw, 28px);
  letter-spacing: -0.015em;
  animation: trFsFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.tr-fs-hero-body {
  font-family: var(--fb);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7;
  color: #e2ede7;
  width: min(100%, 640px);
  margin: 0 auto clamp(32px, 5vw, 48px);
  animation: trFsFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.tr-fs-hero .btn-pill {
  animation: trFsFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

.tr-fs-btn-hero {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}

.tr-fs-btn-hero:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}


/* ============================================================
   2. PITCH + HIGHLIGHTS
   ============================================================ */
.tr-fs-pitch {
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 48px);
}

.tr-fs-pitch-inner {
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.tr-fs-pitch .eyebrow {
  color: var(--medium);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.tr-fs-pitch h2 {
  font-family: var(--fd);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.tr-fs-pitch h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--medium);
  margin: 20px auto 0;
  border-radius: 2px;
}

.tr-fs-pitch-body {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--black);
  width: min(100%, 780px);
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.tr-fs-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
}

.tr-fs-highlight {
  padding: clamp(24px, 3vw, 36px) 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.tr-fs-highlight:last-child {
  border-right: none;
}

.tr-fs-highlight-number {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 8px;
}

.tr-fs-highlight-label {
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.4;
}


/* ============================================================
   3. FOUR SEASONS
   ============================================================ */
.tr-fs-seasons {
  background: var(--forest);
  color: var(--white);
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 48px);
}

.tr-fs-seasons-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.tr-fs-seasons-header {
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 64px);
}

.tr-fs-seasons-header h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.tr-fs-seasons-header p {
  font-size: clamp(16px, 1.7vw, 18px);
  color: #c8ddd3;
  width: min(100%, 600px);
  margin: 0 auto;
  line-height: 1.65;
}

.tr-fs-seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.tr-fs-card {
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 220px) 1fr;
  background: #174f3b;
  border: 1px solid #1d6a4f;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-fs-card:hover {
  border-color: #408469;
  transform: translateY(-4px);
}

.tr-fs-card .tr-fs-card-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-fs-card:hover .tr-fs-card-img {
  transform: scale(1.06);
}

.tr-fs-card-body {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tr-fs-card-month {
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8ab5a0;
  margin-bottom: 6px;
}

.tr-fs-card-name {
  font-family: var(--fd);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}

.tr-fs-card-fruits {
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
  color: #d4e8dd;
  margin-bottom: 12px;
}

.tr-fs-card-fruits li {
  padding-left: 16px;
  position: relative;
}

.tr-fs-card-fruits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: #408469;
  border-radius: 50%;
}

.tr-fs-card-bonus {
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 600;
  color: #6b9e88;
  font-style: italic;
}


/* ============================================================
   4. IMAGE + TEXT SPLIT
   ============================================================ */
.tr-fs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.tr-fs-split-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 400px;
}

.tr-fs-split-text {
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px);
}

.tr-fs-split-text-inner {
  width: 100%;
}

.tr-fs-split-text .eyebrow {
  color: var(--medium);
  margin-bottom: clamp(12px, 2vw, 20px);
}

.tr-fs-split-text h2 {
  font-family: var(--fd);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.12;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.tr-fs-split-text p {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.tr-fs-split-text p:last-of-type {
  margin-bottom: 0;
}


/* ============================================================
   5. WHY
   ============================================================ */
.tr-fs-why {
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 48px);
}

.tr-fs-why-inner {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.tr-fs-why-header {
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 64px);
}

.tr-fs-why-header .eyebrow {
  color: var(--medium);
  margin-bottom: clamp(12px, 2vw, 20px);
}

.tr-fs-why-header h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
}

.tr-fs-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.tr-fs-why-block {
  text-align: center;
  padding: 0 clamp(8px, 1vw, 16px);
}

.tr-fs-why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto clamp(16px, 2.5vw, 24px);
  background: var(--forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s;
}

.tr-fs-why-block:hover .tr-fs-why-icon {
  transform: scale(1.1) rotate(-4deg);
  background: #0a4a33;
}

.tr-fs-why-icon i {
  font-size: 28px;
  color: var(--white);
}

.tr-fs-why-block h3 {
  font-family: var(--fd);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.tr-fs-why-block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
}


/* ============================================================
   6. A CLOSER LOOK
   ============================================================ */
.tr-fs-story {
  background: var(--forest);
  color: var(--white);
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 48px);
}

.tr-fs-story-inner {
  width: min(100%, 960px);
  margin: 0 auto;
  text-align: center;
}

.tr-fs-story .eyebrow {
  color: #8ab5a0;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.tr-fs-story h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tr-fs-story p {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.9;
  color: #d4e8dd;
  text-align: left;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.tr-fs-story p:last-of-type {
  margin-bottom: 0;
}


/* ============================================================
   7. FAQ
   ============================================================ */
.tr-fs-faq {
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 48px);
}

.tr-fs-faq-inner {
  width: min(100%, 740px);
  margin: 0 auto;
}

.tr-fs-faq-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 48px);
}

.tr-fs-faq-header .eyebrow {
  color: var(--medium);
  margin-bottom: 16px;
}

.tr-fs-faq-header h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
}

.tr-fs-faq-item {
  border-bottom: 1px solid var(--border);
}

.tr-fs-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.tr-fs-faq-q {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 22px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  cursor: pointer !important;
  font: inherit !important;
  text-align: left !important;
  user-select: none;
  gap: 20px !important;
  transition: padding-left 0.3s;
  box-shadow: none !important;
}

.tr-fs-faq-q:hover {
  padding-left: 8px !important;
  background: transparent !important;
}

.tr-fs-faq-q:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}

.tr-fs-faq-title {
  font-family: var(--fd) !important;
  font-size: clamp(16px, 1.8vw, 18px) !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  line-height: 1.35 !important;
  transition: color 0.3s;
}

.tr-fs-faq-q:hover .tr-fs-faq-title {
  color: var(--forest) !important;
}

.tr-fs-faq-chev {
  font-size: 18px !important;
  flex-shrink: 0;
  color: var(--medium) !important;
  transition: transform 0.3s;
}

.tr-fs-faq-item.open .tr-fs-faq-chev {
  transform: rotate(180deg);
}

.tr-fs-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.tr-fs-faq-a-inner {
  padding: 0 0 22px !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--gray) !important;
}


/* ============================================================
   8. FINAL CTA
   ============================================================ */
.tr-fs-cta {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 48px);
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.tr-fs-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 94, 65, 0.62);
}

.tr-fs-cta-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  margin: 0 auto;
}

.tr-fs-cta .eyebrow {
  color: #c8ddd3;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.tr-fs-cta h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.tr-fs-cta p {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.7;
  color: #e2ede7;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.tr-fs-btn-forest {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
  font-size: 16px;
  padding: 16px 44px;
}

.tr-fs-btn-forest:hover {
  background: transparent;
  color: var(--white);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .tr-fs-card { grid-template-columns: 180px 1fr; }
}

@media (max-width: 900px) {
  .tr-fs-seasons-grid { grid-template-columns: 1fr; width: min(100%, 560px); margin: 0 auto; }
  .tr-fs-card { grid-template-columns: 180px 1fr; }
  .tr-fs-why-grid { grid-template-columns: 1fr; gap: 36px; }
  .tr-fs-split { grid-template-columns: 1fr; }
  .tr-fs-split-img { min-height: 300px; background-attachment: scroll; }
  .tr-fs-highlights { grid-template-columns: repeat(2, 1fr); }
  .tr-fs-highlight:nth-child(2) { border-right: none; }
  .tr-fs-highlight:nth-child(1),
  .tr-fs-highlight:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 550px) {
  .tr-fs-seasons-grid { width: 100%; }
  .tr-fs-card { grid-template-columns: 1fr; }
  .tr-fs-card-img { min-height: 180px; max-height: 220px; }
  .tr-fs-highlights { grid-template-columns: 1fr; }
  .tr-fs-highlight { border-right: none; border-bottom: 1px solid var(--border); }
  .tr-fs-highlight:last-child { border-bottom: none; }
}
