/* ==========================================================================
   DAVS FARM EQUIPMENT — HOME PAGE STYLES (HOME.CSS)
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 580px;
  background-color: var(--steel-950);
  background-image: 
    linear-gradient(to right, rgba(8, 26, 16, 0.95) 0%, rgba(15, 23, 42, 0.9) 65%, rgba(15, 23, 42, 0.75) 100%),
    url('https://images.unsplash.com/photo-1592982537447-7440770cbfc9?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 35%;
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--forest-700);
}

.hero-content {
  max-width: 780px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(217, 119, 6, 0.25);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  color: #fbbf24;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 680px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Category Quick Strip: Short & Straight to the Point */
.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.hero-category-chip:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Stats / Ticker Bar (High Contrast) */
.stats-banner {
  background-color: var(--steel-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 1rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Featured Inventory Section */
.featured-section {
  padding: 5rem 0;
  background-color: var(--parchment-base);
}

.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Equipment Grid & Cards (Properly Arranged, Fixed Aspect Ratio, Equal Heights) */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #94a3b8;
}

.equipment-image-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background-color: var(--steel-900);
  overflow: hidden;
  flex-shrink: 0;
}

.equipment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.equipment-card:hover .equipment-image {
  transform: scale(1.05);
}

.card-badge-strip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.card-category-tag {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.equipment-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.equipment-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--forest-900);
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.equipment-card-title a {
  color: var(--forest-900);
  transition: color 0.15s ease;
}

.equipment-card-title a:hover {
  color: var(--amber-600);
}

.equipment-card-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--forest-700);
  margin-bottom: 0.85rem;
}

.equipment-card-excerpt {
  font-size: 0.925rem;
  color: var(--steel-700);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.equipment-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Value Pillars Section */
.pillars-section {
  padding: 5rem 0;
  background-color: var(--parchment-dark);
  border-top: 1px solid var(--parchment-border);
  border-bottom: 1px solid var(--parchment-border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pillar-card {
  background-color: #ffffff;
  border: 1.5px solid var(--steel-200);
  border-top: 4px solid var(--forest-800);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--amber-500);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background-color: var(--forest-50);
  color: var(--forest-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--forest-100);
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--forest-900);
}

.pillar-desc {
  font-size: 0.925rem;
  color: var(--steel-700);
  line-height: 1.6;
}

/* Testimonial Highlights */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--parchment-base);
}

.testimonial-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: #ffffff;
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.star-rating {
  color: #f59e0b;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--steel-800);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1.5px solid #f1f5f9;
  padding-top: 1rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--forest-700);
}

.author-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--forest-900);
}

.author-farm {
  font-size: 0.825rem;
  color: var(--steel-600);
}

/* Yard Support Banner */
.yard-support-banner {
  background-color: var(--forest-900);
  color: #ffffff;
  padding: 3.5rem 0;
  border-top: 4px solid var(--amber-500);
}

.yard-support-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-preview-grid {
    grid-template-columns: 1fr;
  }
  .yard-support-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .yard-support-inner div:last-child {
    width: 100%;
    flex-direction: column;
  }
  .yard-support-inner div:last-child .btn {
    width: 100%;
  }
}
