/* ===== ErgoFoundry Homepage-Specific Styles ===== */
/* Loads after style.css — extends the v2 design system */

/* --- Hero Visual Enhancement --- */
.hero-visual {
  position: relative;
}

.hero-visual .hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 768px) {
  .hero-visual .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* --- Why Ergonomics Matters Grid --- */
.ergo-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ergo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  background: var(--color-navy-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  align-items: center;
}

.ergo-card:hover {
  border-color: rgba(20, 184, 166, 0.12);
  box-shadow: var(--shadow-md);
}

.ergo-card:nth-child(even) {
  direction: rtl;
}

.ergo-card:nth-child(even) .ergo-card-body {
  direction: ltr;
}

.ergo-card-visual {
  background: linear-gradient(135deg, #1a2332, #0f1729);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.ergo-card-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.ergo-card-stat {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-1);
}

.ergo-card-stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate-light);
  margin-bottom: var(--space-4);
}

.ergo-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.ergo-card-body p {
  color: var(--color-slate-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .ergo-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .ergo-card:nth-child(even) {
    direction: ltr;
  }

  .ergo-card-visual {
    min-height: 160px;
  }

  .ergo-card-stat {
    font-size: 2rem;
  }
}

/* --- Enhanced Article Cards with Images --- */
.card-visual {
  overflow: hidden;
}

.card-image {
  margin: calc(-1 * var(--space-6));
  margin-bottom: var(--space-5);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 180px;
}

.card-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-image-research {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.card-image-buyers {
  background: linear-gradient(135deg, #134e4a, #115e59);
}

.card-image-setup {
  background: linear-gradient(135deg, #451a03, #78350f);
}

.card-image-review {
  background: linear-gradient(135deg, #4a1942, #831843);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content p {
  flex: 1;
}

/* --- Trust / Social Proof Bar --- */
.trust-bar-section {
  background: var(--color-navy-light);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-bar {
  text-align: center;
  padding: var(--space-8) 0;
}

.trust-bar-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate-light);
  margin-bottom: var(--space-5);
}

.trust-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.trust-logo {
  font-family: 'Inter', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-slate);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.trust-logo-divider {
  width: 4px;
  height: 4px;
  background: var(--color-slate);
  border-radius: 50%;
}

.trust-bar-sub {
  font-size: var(--text-sm);
  color: var(--color-slate-light);
  margin: 0;
}

@media (max-width: 480px) {
  .trust-bar-logos {
    gap: var(--space-3);
  }
  .trust-logo {
    font-size: var(--text-base);
  }
}

/* --- Rhythm CTA (Sit-Stand Cycle) --- */
.rhythm-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  background: linear-gradient(160deg, var(--color-navy-light) 0%, #1a2d47 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  align-items: center;
}

.rhythm-cta-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.rhythm-cta-text p {
  color: var(--color-slate-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.rhythm-cta-text .btn {
  margin-top: var(--space-6);
}

.rhythm-cta-visual {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rhythm-cta-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.rhythm-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rhythm-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-gray-300);
  font-size: var(--text-sm);
}

.rhythm-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-2xl);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.rhythm-bullet.sit {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal-light);
}

.rhythm-bullet.stand {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.rhythm-bullet.walk {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

@media (max-width: 768px) {
  .rhythm-cta {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .rhythm-cta-text h2 {
    font-size: var(--text-xl);
  }
}

/* --- CTA Section Icon --- */
.cta-section-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}
