/* Cases Hero Section */
.cases-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.8)),
              url('/images/couple-comfortable.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.cases-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.cases-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}

.cases-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cases-hero p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.95;
}

/* Cases Section */
.cases-section {
  padding: 100px 0;
  background: #f8f6f4;
}

.cases-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.cases-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.case-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #2c1810;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(44, 24, 16, 0.15);
}

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

.case-number {
  display: inline-block;
  background: #f0ebe6;
  color: #2c1810;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.case-category {
  display: inline-block;
  background: #2c1810;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  margin-left: 8px;
}

.case-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.case-summary {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  background: #f0ebe6;
  color: #666;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 16px;
  letter-spacing: -0.3px;
}

.btn-read-more-link {
  display: inline-block;
  color: #2c1810;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin-top: 8px;
  transition: all 0.3s;
}

.case-card:hover .btn-read-more-link {
  transform: translateX(4px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  padding: 50px;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  color: #999;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: #2c1810;
}

.modal-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-case-number {
  background: #f0ebe6;
  color: #2c1810;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: -0.3px;
}

.modal-case-category {
  background: #2c1810;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
}

.modal-case-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: -1px;
}

.modal-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-case-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c1810;
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.modal-case-body h3:first-child {
  margin-top: 0;
}

.modal-case-body p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
  white-space: pre-line;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2c1810 0%, #4a2818 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: white;
  color: #2c1810;
  display: inline-block;
}

.cta-section .btn-primary:hover {
  background: #f8f6f4;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-card {
    padding: 24px;
  }

  .modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .modal-case-title {
    font-size: 24px;
  }

  .close-modal {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }

  .cases-hero {
    height: 50vh;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .case-card {
    padding: 20px;
  }

  .case-title {
    font-size: 19px;
  }

  .modal-content {
    padding: 24px 16px;
  }
}
