/* =====================================================
   CARD COMPONENTS
   ===================================================== */

/* --- Pillar Card (homepage 3-up) --- */
.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Left accent bar that reveals on hover */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  bottom: 0;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0 0 2px 2px;
}

.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0 rgba(27,67,50,0);
  transition: box-shadow 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pillar-card:hover {
  box-shadow: 0 8px 40px rgba(27,67,50,0.14), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-6px);
}

.pillar-card:hover::before {
  transform: scaleY(1);
}

.pillar-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-shrink: 0;
  /* SVG icon target — set svg { width:28px; height:28px; stroke:white } */
}

.pillar-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.pillar-card p {
  color: var(--color-grey-700);
  font-size: var(--text-base);
  line-height: 1.7;
}

.pillar-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.pillar-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.pillar-card__link:hover {
  color: var(--color-accent);
}

.pillar-card__link:hover::after {
  transform: translateX(4px);
}

/* --- Value Card (about page) --- */
.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--color-accent);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.value-card:hover {
  box-shadow: 0 8px 32px rgba(27,67,50,0.12);
  transform: translateY(-4px);
  border-left-color: var(--color-primary);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(27,67,50,0.08) 0%, rgba(212,160,23,0.12) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.value-card p {
  color: var(--color-grey-700);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Farmer Testimonial Card — editorial pull-quote style --- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Gold corner accent */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, rgba(212,160,23,0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Large typographic quotemark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: 7rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.20;
  pointer-events: none;
  user-select: none;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(27,67,50,0.12);
  transform: translateY(-4px);
  border-color: rgba(212,160,23,0.20);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-grey-700);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  padding-top: var(--space-4);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-sm);
  margin-bottom: 0.15rem;
}

.testimonial-card__location {
  font-size: var(--text-xs);
  color: var(--color-grey-500);
}

/* --- Process Step Card --- */
.process-step {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
}

.process-step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
}

.process-step__content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.process-step__content p {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Product Card --- */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

/* Warm background gradient wash */
.product-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(249,246,239,0.60) 0%, transparent 100%);
  pointer-events: none;
}

.product-card:hover {
  box-shadow: 0 20px 60px rgba(27,67,50,0.16), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  border-color: rgba(212,160,23,0.25);
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.product-card__image-wrap {
  width: 120px;
  height: 160px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.product-card__size {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.product-card p {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Community Impact Area Card --- */
.impact-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.impact-card:hover {
  box-shadow: 0 16px 48px rgba(27,67,50,0.14), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-6px);
  border-color: rgba(212,160,23,0.15);
}

.impact-card__image {
  height: 220px;
  overflow: hidden;
}

.impact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.impact-card:hover .impact-card__image img {
  transform: scale(1.05);
}

.impact-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-card__image-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.75);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-card__body {
  padding: var(--space-6);
}

.impact-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.impact-card p {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Join Step Card --- */
.join-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.join-step__number {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.join-step h3 {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.join-step p {
  font-size: var(--text-sm);
  color: var(--color-grey-700);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Stat Card --- */
.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.80);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Stat card on cream bg */
.section--cream .stat-card__value { color: var(--color-primary); }
.section--cream .stat-card__label { color: var(--color-grey-700); }
