/* Case Study Page Styles */

/* ============================================
   HERO SECTION
   ============================================ */

.case-study-hero {
  background: #FAFAF8;
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0;
}

.case-study-hero__content {
  max-width: 800px;
}

.case-study-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2F5A1E;
  background: rgba(47, 90, 30, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.case-study-hero__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.case-study-hero__subtitle {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: #6B6B6B;
  line-height: 1.5;
  max-width: 600px;
}

/* ============================================
   COMPANY PROFILE
   ============================================ */

.company-profile {
  background: #FFFFFF;
  padding: clamp(3rem, 2rem + 2vw, 4rem) 0;
  border-bottom: 1px solid #E8E8E6;
}

.company-profile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.company-profile__item {
  text-align: center;
}

.company-profile__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0.25rem;
}

.company-profile__label {
  font-size: 0.875rem;
  color: #6B6B6B;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.case-study-section {
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
}

.case-study-section--light {
  background: #FAFAF8;
}

.case-study-section--white {
  background: #FFFFFF;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2F5A1E;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6B6B6B;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CHALLENGES
   ============================================ */

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.challenge-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.challenge-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(47, 90, 30, 0.1);
  color: #2F5A1E;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.challenge-card__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.75rem;
}

.challenge-card__description {
  font-size: 0.9375rem;
  color: #6B6B6B;
  line-height: 1.6;
}

.challenge-card__list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.challenge-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #6B6B6B;
  margin-bottom: 0.5rem;
}

.challenge-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: #2F5A1E;
  border-radius: 50%;
}

/* ============================================
   SOLUTIONS
   ============================================ */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.solution-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
  border-top: 3px solid #2F5A1E;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.solution-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(47, 90, 30, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #2F5A1E;
}

.solution-card__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.75rem;
}

.solution-card__description {
  font-size: 0.9375rem;
  color: #6B6B6B;
  line-height: 1.6;
}

/* ============================================
   RESULTS
   ============================================ */

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.result-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.result-card--highlight {
  background: linear-gradient(135deg, #2F5A1E 0%, #3D7328 100%);
}

.result-card__before {
  font-size: 0.8125rem;
  color: #9CA3AF;
  margin-bottom: 0.25rem;
}

.result-card--highlight .result-card__before {
  color: rgba(255, 255, 255, 0.7);
}

.result-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2F5A1E;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.result-card--highlight .result-card__value {
  color: #FFFFFF;
}

.result-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.25rem;
}

.result-card--highlight .result-card__label {
  color: #FFFFFF;
}

.result-card__after {
  font-size: 0.8125rem;
  color: #6B6B6B;
}

.result-card--highlight .result-card__after {
  color: rgba(255, 255, 255, 0.8);
}

/* Business Outcomes */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.outcome-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(47, 90, 30, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2F5A1E;
}

.outcome-item__content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2A2A2A;
  margin-bottom: 0.25rem;
}

.outcome-item__content p {
  font-size: 0.875rem;
  color: #6B6B6B;
}

/* ============================================
   STATUS
   ============================================ */

.status-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(47, 90, 30, 0.1);
  color: #2F5A1E;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.status-badge__dot {
  width: 8px;
  height: 8px;
  background: #2F5A1E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 1.125rem;
  color: #6B6B6B;
  line-height: 1.6;
}

.status-text strong {
  color: #2A2A2A;
}

/* ============================================
   CTA
   ============================================ */

.case-study-cta {
  background: #FAFAF8;
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
  text-align: center;
}

.case-study-cta__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 1rem;
}

.case-study-cta__subtitle {
  font-size: 1.125rem;
  color: #6B6B6B;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.case-study-cross-link {
  margin-top: 1.5rem;
}

/* ============================================
   VISUAL BREAKS
   ============================================ */

.visual-break {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.visual-break__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-break--top .visual-break__image {
  object-position: center 30%;
}

@media (max-width: 768px) {
  .visual-break {
    height: 180px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .challenges-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

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

  .outcomes-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .company-profile__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .result-card__value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .company-profile__grid {
    grid-template-columns: 1fr;
  }
}
