/* ==========================================================================
   EcomHolistic Case Studies Hub Stylesheet
   Hero, client logos, card grid, CTA, newsletter.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botanical Vine Dividers (same as guides page)
   -------------------------------------------------------------------------- */
.eh-cs-clients::before,
.eh-cs-grid-section::before,
.eh-cs-cta::before,
.eh-cs-newsletter::before {
  content: '';
  display: block;
  width: 100%;
  height: 32px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTIwMCAzMicgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMCAxNiBRNTAgMTQgMTAwIDE2IFExNTAgMTggMjAwIDE2IFEyNTAgMTMgMzAwIDE2IFEzNTAgMTkgNDAwIDE2IFE0NTAgMTMgNTAwIDE1IFE1NTAgMTcgNjAwIDE2IFE2NTAgMTUgNzAwIDE3IFE3NTAgMTkgODAwIDE2IFE4NTAgMTMgOTAwIDE2IFE5NTAgMTkgMTAwMCAxNiBRMTA1MCAxMyAxMTAwIDE2IFExMTUwIDE5IDEyMDAgMTYnIHN0cm9rZT0nIzBCODUzNycgc3Ryb2tlLXdpZHRoPScxLjUnIG9wYWNpdHk9JzAuMTInIGZpbGw9J25vbmUnLz48ZWxsaXBzZSBjeD0nMTgwJyBjeT0nMTInIHJ4PSc2JyByeT0nNCcgZmlsbD0nIzBCODUzNycgb3BhY2l0eT0nMC4wOCcgdHJhbnNmb3JtPSdyb3RhdGUoMjUgMTgwIDEyKScvPjxwYXRoIGQ9J00xNzUgMTYgUTE3MCA4IDE3NiA0JyBzdHJva2U9JyMwQjg1MzcnIHN0cm9rZS13aWR0aD0nMScgb3BhY2l0eT0nMC4xJyBmaWxsPSdub25lJyBzdHJva2UtbGluZWNhcD0ncm91bmQnLz48ZWxsaXBzZSBjeD0nMzQwJyBjeT0nMTMnIHJ4PSc1JyByeT0nMy41JyBmaWxsPScjMEI4NTM3JyBvcGFjaXR5PScw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c3Ryb2tlLXdpZHRoPScxJyBvcGFjaXR5PScwLjEnIGZpbGw9J25vbmUnIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcvPjxlbGxpcHNlIGN4PScxMDI0JyBjeT0nMycgcng9JzQnIHJ5PSczJyBmaWxsPScjMEI4NTM3JyBvcGFjaXR5PScwLjA2JyB0cmFuc2Zvcm09J3JvdGF0ZSgtMzAgMTAyNCAzKScvPjxjaXJjbGUgY3g9JzQ2MCcgY3k9JzE0JyByPScyJyBmaWxsPScjRjJBNjk1JyBvcGFjaXR5PScwLjEyJy8+PGNpcmNsZSBjeD0nNzQwJyBjeT0nMTQnIHI9JzEuOCcgZmlsbD0nI0YyQTY5NScgb3BhY2l0eT0nMC4xJy8+PC9zdmc+");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 32px;
  pointer-events: none;
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Hero Section — Two-column: text left, illustration right
   -------------------------------------------------------------------------- */
.eh-cs-hero {
  background-color: var(--eh-drip-cream);
  padding: 160px 40px 60px;
}

.eh-cs-hero-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eh-cs-hero-content h1 {
  font-family: var(--eh-font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--eh-folk-dark);
  margin-bottom: 24px;
}

.eh-cs-hero-content p {
  font-family: var(--eh-font-body);
  font-size: 17px;
  color: var(--eh-folk-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.eh-cs-hero-illustration svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  animation: eh-hue-cycle 20s linear infinite;
}

/* --------------------------------------------------------------------------
   Clients Logo Strip
   -------------------------------------------------------------------------- */
.eh-cs-clients {
  background-color: var(--eh-drip-cream);
  padding: 56px 40px;
}

.eh-cs-clients-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  text-align: center;
}

.eh-cs-clients-label {
  font-family: var(--eh-font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--eh-folk-mid);
  margin-bottom: 28px;
}

.eh-cs-clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 48px;
}

.eh-cs-client-logo {
  height: 26px;
  width: auto;
  color: var(--eh-folk-dark);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.eh-cs-client-logo:hover {
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Case Study Card Grid
   -------------------------------------------------------------------------- */
.eh-cs-grid-section {
  background-color: var(--eh-drip-cream);
  padding: 60px 40px 80px;
}

.eh-cs-grid-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
}

.eh-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.eh-cs-card {
  background-color: var(--eh-white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.eh-cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

/* Metric highlight area */
.eh-cs-card-metric {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.eh-cs-card-metric-value {
  font-family: var(--eh-font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.eh-cs-card-metric-label {
  font-family: var(--eh-font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--eh-folk-mid);
}

/* Card content */
.eh-cs-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eh-cs-card-client {
  font-family: var(--eh-font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--eh-sage);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eh-cs-card-client-nda {
  color: var(--eh-folk-mid);
}

.eh-cs-card-nda-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--eh-folk-mid);
  background-color: rgba(92, 86, 80, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.eh-cs-card-title {
  font-family: var(--eh-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.eh-cs-card:hover .eh-cs-card-title {
  color: var(--eh-sage);
}

.eh-cs-card-excerpt {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eh-cs-card-link {
  font-family: var(--eh-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--eh-sage);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.eh-cs-card-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.eh-cs-card:hover .eh-cs-card-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.eh-cs-cta {
  background-color: var(--eh-drip-cream);
  padding: 60px 40px 80px;
}

.eh-cs-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.eh-cs-cta-inner h2 {
  font-family: var(--eh-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  margin-bottom: 16px;
}

.eh-cs-cta-inner p {
  font-family: var(--eh-font-body);
  font-size: 17px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  margin-bottom: 32px;
}

.eh-cs-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.eh-cs-newsletter {
  background-color: var(--eh-drip-cream);
  padding: 60px 40px 80px;
}

.eh-cs-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.eh-cs-newsletter-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.eh-cs-newsletter-icon svg {
  width: 100%;
  height: 100%;
  animation: eh-hue-cycle 20s linear infinite 5s;
}

.eh-cs-newsletter-inner h2 {
  font-family: var(--eh-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  margin-bottom: 12px;
}

.eh-cs-newsletter-inner > p {
  font-family: var(--eh-font-body);
  font-size: 16px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  margin-bottom: 28px;
}

.eh-cs-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.eh-cs-newsletter-input {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  color: var(--eh-folk-dark);
  background-color: var(--eh-white);
  border: 1px solid var(--eh-border-light);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}

.eh-cs-newsletter-input::placeholder {
  color: #A8A29E;
}

.eh-cs-newsletter-input:focus {
  border-color: var(--eh-sage);
}

.eh-cs-newsletter-btn {
  padding: 14px 28px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--eh-white);
  background-color: var(--eh-sage);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.eh-cs-newsletter-btn:hover {
  background-color: var(--eh-sage-hover);
  transform: translateY(-1px);
}

.eh-cs-newsletter-note {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  margin-top: 12px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Scroll Entrance Animation
   -------------------------------------------------------------------------- */
.eh-cs-animate {
  opacity: 1;
  transform: none;
}

html.eh-js:not(.eh-inapp) .eh-cs-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.eh-cs-animate.eh-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (< 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .eh-cs-hero { padding: 140px 24px 48px; }
  .eh-cs-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .eh-cs-hero-illustration { text-align: center; }
  .eh-cs-hero-illustration svg { max-width: 400px; }

  .eh-cs-grid { grid-template-columns: repeat(2, 1fr); }

  .eh-cs-clients { padding: 48px 24px; }
  .eh-cs-grid-section { padding: 48px 24px 64px; }
  .eh-cs-cta { padding: 48px 24px 64px; }
  .eh-cs-newsletter { padding: 48px 24px 64px; }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (< 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .eh-cs-hero { padding: 120px 24px 40px; }
  .eh-cs-hero-content h1 { font-size: 30px; }
  .eh-cs-hero-illustration svg { max-width: 320px; }

  .eh-cs-grid { grid-template-columns: 1fr; }

  .eh-cs-card-metric { min-height: 110px; padding: 24px 20px; }
  .eh-cs-card-metric-value { font-size: 36px; }
  .eh-cs-card-content { padding: 20px; }

  .eh-cs-clients-logos { gap: 24px 36px; }
  .eh-cs-client-logo { height: 22px; }

  .eh-cs-cta-inner h2 { font-size: 26px; }
  .eh-cs-newsletter-inner h2 { font-size: 24px; }

  .eh-cs-newsletter-form {
    flex-direction: column;
  }

  .eh-cs-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .eh-cs-cta-buttons .eh-btn { max-width: 320px; width: 100%; }
}

/* --------------------------------------------------------------------------
   Responsive: Small Mobile (< 479px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .eh-cs-hero { padding: 100px 20px 32px; }
  .eh-cs-hero-content h1 { font-size: 26px; }

  .eh-cs-grid-section { padding: 32px 20px 48px; }
  .eh-cs-card-metric-value { font-size: 32px; }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .eh-cs-animate { transition: none; opacity: 1; transform: none; }
  .eh-cs-hero-illustration svg,
  .eh-cs-newsletter-icon svg { animation: none; }
}
