/* Case Studies page specific styles */
/* Extracted from inline <style> block for maintainability */

/* Hero Section */
.case-studies-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  background: var(--color-bg);
}

/* Text Logo Styles */
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
}





/* Featured Case Study */
.featured-case-study {
  background: linear-gradient(135deg, #1a4a7a 0%, #0d3a5c 100%);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 4rem;
  box-shadow: 0 8px 32px rgba(15, 45, 82, 0.15);
}

.featured-content {
  padding: 3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.featured-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.featured-company {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.featured-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.featured-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
  .featured-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .proven-results-grid {
    grid-template-columns: 1fr;
  }
}

.featured-stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.featured-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

.featured-visual {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  padding: 2rem;
}

.featured-quote {
  max-width: 320px;
  text-align: center;
}

.featured-quote blockquote {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-quote cite {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

.featured-quote cite strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Case Study Cards */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.case-study-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: rgba(15, 45, 82, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.case-study-header {
  background: linear-gradient(135deg, rgba(15, 45, 82, 0.08) 0%, rgba(15, 45, 82, 0.03) 100%);
  padding: 2rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.case-study-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.case-study-industry {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-body {
  padding: 2rem;
}

.case-study-title {
  font-size: 1.375rem;
  color: #171717;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.case-study-excerpt {
  color: #4a4a4a;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.case-study-results {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.result-item {
  text-align: left;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a4a7a;
  line-height: 1;
}

.result-label {
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background: #f5f5f5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  border: 1px solid #e8e8e8;
}

.testimonial-quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(26, 74, 122, 0.1) 0%, rgba(26, 74, 122, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a4a7a;
}

.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #171717;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #3a6a9a 0%, #1a4a7a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  color: #171717;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: #6b6b6b;
}

/* Partner Badge */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(15, 45, 82, 0.1) 0%, rgba(15, 45, 82, 0.05) 100%);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--color-surface);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: var(--color-text-body);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-case-study {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 250px;
    order: -1;
  }

  .featured-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .featured-content {
    padding: 2rem;
  }

  .featured-content h2 {
    font-size: 1.75rem;
  }

  .featured-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-stat-value {
    font-size: 2rem;
  }

  .proven-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .case-study-results {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Footer hover */
.footer-links a:hover {
  color: #fff;
}

/* Animation fallbacks - ensure visibility before GSAP loads */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.stagger-children > * {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Google Review Stars */
.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 20px;
  height: 20px;
  fill: #FBBC04;
}

/* Reviews Carousel */
.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.reviews-carousel {
  display: flex;
  gap: 1.5rem;
  animation: scrollReviews 30s linear infinite;
  width: max-content;
}

.reviews-carousel:hover {
  animation-play-state: paused;
}

.review-card {
  flex: 0 0 360px;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.review-card .review-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #171717;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-card .review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card .review-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3a6a9a 0%, #1a4a7a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.review-card .review-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #171717;
}

@keyframes scrollReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Fade edges */
.reviews-carousel-wrapper::before,
.reviews-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.reviews-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f5f5f5, transparent);
}

.reviews-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f5f5f5, transparent);
}

/* Case Study Modal */
.case-study-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.case-study-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.case-study-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-study-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.case-study-modal-header {
  background: linear-gradient(135deg, #1a4a7a 0%, #0d3a5c 100%);
  padding: 2rem;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.case-study-modal-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.case-study-modal-header .modal-company {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

.case-study-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.case-study-modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.case-study-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.case-study-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.case-study-modal-section {
  margin-bottom: 2rem;
}

.case-study-modal-section:last-child {
  margin-bottom: 0;
}

.case-study-modal-section h3 {
  font-size: 1rem;
  color: #1a4a7a;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.case-study-modal-section p,
.case-study-modal-section ul {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4a4a4a;
}

.case-study-modal-section ul {
  padding-left: 1.25rem;
}

.case-study-modal-section li {
  margin-bottom: 0.5rem;
}

.case-study-modal-quote {
  background: linear-gradient(135deg, rgba(26, 74, 122, 0.08) 0%, rgba(26, 74, 122, 0.03) 100%);
  border-left: 4px solid #1a4a7a;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
}

.case-study-modal-quote blockquote {
  font-size: 1rem;
  font-style: italic;
  color: #171717;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.case-study-modal-quote cite {
  font-size: 0.875rem;
  color: #6b6b6b;
  font-style: normal;
}

.case-study-modal-quote cite strong {
  color: #171717;
  font-weight: 600;
}

.case-study-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.case-study-modal-stat {
  text-align: center;
}

.case-study-modal-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a4a7a;
  line-height: 1;
}

.case-study-modal-stat-label {
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Read More Button */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  color: #1a4a7a;
  border: 1px solid #1a4a7a;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.btn-read-more:hover {
  background: #1a4a7a;
  color: #fff;
}

.btn-read-more svg {
  width: 16px;
  height: 16px;
}

.featured-read-more {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  margin-top: 1.5rem;
}

.featured-read-more:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

@media (max-width: 640px) {
  .case-study-modal {
    width: 95%;
    max-height: 90vh;
  }

  .case-study-modal-header {
    padding: 1.5rem;
  }

  .case-study-modal-body {
    padding: 1.5rem;
  }

  .case-study-modal-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
