/* ============================================================
   CS GROWTH LAB — HOMEPAGE SECTIONS PREMIUM CSS v2.0
   Services, Why Choose Us, Industries, Process, Testimonials,
   FAQ, Trusted By, Final CTA
   ============================================================ */

/* ========== SECTION HEADER SHARED ========== */
.csgl-section-header {
  margin-bottom: 60px;
  text-align: center;
}
.csgl-section-header .csgl-label {
  margin-bottom: 16px;
}
.csgl-section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
}
.csgl-section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255,255,255,0.50) !important;
  font-size: 1rem;
  line-height: 1.7;
}

/* ========== TRUSTED BY / LOGO STRIP ========== */
.csgl-trust-section {
  padding: 40px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  background: rgba(255,255,255,0.01) !important;
}

.csgl-trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 28px;
  display: block;
}

.csgl-marquee-wrapper {
  position: relative;
  overflow: hidden;
}
.csgl-marquee-wrapper::before,
.csgl-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.csgl-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--csgl-black, #080808), transparent);
}
.csgl-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--csgl-black, #080808), transparent);
}

.csgl-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: csgl-marquee 30s linear infinite;
}
.csgl-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes csgl-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.csgl-trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.20);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
  cursor: default;
}
.csgl-trust-logo:hover {
  color: rgba(255,255,255,0.55);
}
.csgl-trust-logo img {
  max-height: 28px;
  width: auto;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s ease;
  opacity: 0.6;
}
.csgl-trust-logo:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ========== SERVICES GRID ========== */
.csgl-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.csgl-service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--csgl-black, #080808);
  transition: background 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid transparent;
}
.csgl-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--csgl-blue-glow, rgba(59,130,246,0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.csgl-service-card:hover {
  background: rgba(59,130,246,0.04);
}
.csgl-service-card:hover::before {
  opacity: 1;
}

.csgl-service-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(59,130,246,0.60);
  font-family: 'Inter', sans-serif;
}

.csgl-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.csgl-service-card:hover .csgl-service-icon {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.30);
  transform: scale(1.05);
}
.csgl-service-icon svg {
  width: 20px;
  height: 20px;
  color: var(--csgl-blue-light, #60a5fa);
}

.csgl-service-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.csgl-service-desc {
  font-size: 14px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.csgl-service-arrow {
  margin-top: auto;
  font-size: 18px;
  color: rgba(59,130,246,0.40);
  transition: color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
  padding-top: 12px;
}
.csgl-service-card:hover .csgl-service-arrow {
  color: var(--csgl-blue-light, #60a5fa);
  transform: translateX(4px);
}

/* ========== WHY CHOOSE US CARDS ========== */
.csgl-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .csgl-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .csgl-why-grid { grid-template-columns: 1fr; }
}

.csgl-why-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.csgl-why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--csgl-gradient-glow, rgba(59,130,246,0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.csgl-why-card:hover {
  border-color: rgba(96,165,250,0.20);
  background: rgba(255,255,255,0.035);
  transform: translateY(-4px);
}
.csgl-why-card:hover::after {
  opacity: 1;
}

.csgl-why-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.csgl-why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.08));
  border: 1px solid rgba(59,130,246,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.csgl-why-card:hover .csgl-why-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(59,130,246,0.20);
}
.csgl-why-icon svg {
  width: 22px;
  height: 22px;
  color: var(--csgl-blue-light, #60a5fa);
}

.csgl-why-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.01em !important;
}
.csgl-why-desc {
  font-size: 14px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ========== INDUSTRIES ACCORDION ========== */
.csgl-industries-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}

.csgl-industry-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: background 0.3s ease;
}
.csgl-industry-item:last-child {
  border-bottom: none;
}
.csgl-industry-item.csgl-open {
  background: rgba(59,130,246,0.04);
}

.csgl-industry-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
  transition: padding 0.3s ease;
}

.csgl-industry-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(59,130,246,0.50);
  font-family: 'Inter', sans-serif;
  min-width: 28px;
}

.csgl-industry-title {
  flex: 1;
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: -0.01em !important;
  transition: color 0.3s ease !important;
  margin: 0 !important;
}
.csgl-industry-item.csgl-open .csgl-industry-title {
  color: #fff !important;
}

.csgl-industry-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), background 0.3s ease, border-color 0.3s ease;
}
.csgl-industry-item.csgl-open .csgl-industry-chevron {
  transform: rotate(180deg);
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.25);
}
.csgl-industry-chevron svg {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.50);
  transition: color 0.3s ease;
}
.csgl-industry-item.csgl-open .csgl-industry-chevron svg {
  color: var(--csgl-blue-light, #60a5fa);
}

.csgl-industry-content {
  overflow: hidden;
  height: 0;
  transition: height 0.5s cubic-bezier(0.16,1,0.3,1);
}
.csgl-industry-content-inner {
  padding: 0 28px 28px 72px;
}
.csgl-industry-content p {
  font-size: 15px !important;
  color: rgba(255,255,255,0.50) !important;
  line-height: 1.70 !important;
  margin: 0 !important;
}

/* ========== PROCESS TIMELINE ========== */
.csgl-process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.csgl-process-line {
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255,255,255,0.06);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s var(--csgl-ease, cubic-bezier(0.16,1,0.3,1));
}
.csgl-process-line.csgl-drawn {
  transform: scaleY(1);
}
.csgl-process-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--csgl-blue, #3b82f6), rgba(59,130,246,0.20));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s var(--csgl-ease, cubic-bezier(0.16,1,0.3,1)) 0.2s;
}
.csgl-process-line.csgl-drawn .csgl-process-line-fill {
  transform: scaleY(1);
}

.csgl-process-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 0 0 48px 0;
  position: relative;
}
.csgl-process-step:last-child {
  padding-bottom: 0;
}

.csgl-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8,8,8,1);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.40);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}
.csgl-process-step.csgl-active .csgl-step-circle,
.csgl-process-step.in-view .csgl-step-circle {
  border-color: var(--csgl-blue, #3b82f6);
  background: rgba(59,130,246,0.12);
  color: var(--csgl-blue-light, #60a5fa);
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}

.csgl-step-content {
  padding-top: 10px;
  flex: 1;
}
.csgl-step-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em !important;
}
.csgl-step-desc {
  font-size: 14px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .csgl-process-timeline { padding-left: 16px; }
  .csgl-process-line { left: 16px; }
  .csgl-step-circle { width: 40px; height: 40px; font-size: 12px; }
}

/* ========== TESTIMONIALS ========== */
.csgl-testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.csgl-testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.csgl-testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.csgl-testimonial-card:hover {
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  .csgl-testimonial-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .csgl-testimonial-card { flex: 0 0 calc(100% - 4px); }
}

.csgl-testimonial-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  font-size: 14px;
}

.csgl-testimonial-quote {
  font-size: 15px !important;
  line-height: 1.70 !important;
  color: rgba(255,255,255,0.70) !important;
  font-style: italic !important;
  flex: 1 !important;
  margin: 0 !important;
}

.csgl-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.csgl-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.30), rgba(99,102,241,0.20));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.csgl-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.csgl-author-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.csgl-author-role {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  line-height: 1.3;
}

/* Testimonial nav dots */
.csgl-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.csgl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.csgl-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--csgl-blue, #3b82f6);
}

/* ========== FAQ ACCORDION ========== */
.csgl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}

.csgl-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  transition: background 0.3s ease;
}
.csgl-faq-item:last-child { border-bottom: none; }
.csgl-faq-item.csgl-open {
  background: rgba(59,130,246,0.03);
}

.csgl-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
}

.csgl-faq-question {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: -0.01em !important;
  transition: color 0.3s ease !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
.csgl-faq-item.csgl-open .csgl-faq-question {
  color: #fff !important;
}

.csgl-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.csgl-faq-item.csgl-open .csgl-faq-icon {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
}
.csgl-faq-icon::before,
.csgl-faq-icon::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.50);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.csgl-faq-icon::before {
  width: 12px; height: 1.5px;
}
.csgl-faq-icon::after {
  width: 1.5px; height: 12px;
  transform: rotate(0deg);
}
.csgl-faq-item.csgl-open .csgl-faq-icon::before,
.csgl-faq-item.csgl-open .csgl-faq-icon::after {
  background: var(--csgl-blue-light, #60a5fa);
}
.csgl-faq-item.csgl-open .csgl-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.csgl-faq-content {
  overflow: hidden;
  height: 0;
  transition: height 0.45s cubic-bezier(0.16,1,0.3,1);
}
.csgl-faq-content-inner {
  padding: 0 28px 24px 28px;
}
.csgl-faq-content p {
  font-size: 14px !important;
  color: rgba(255,255,255,0.50) !important;
  line-height: 1.70 !important;
  margin: 0 !important;
}

/* ========== FINAL CTA SECTION ========== */
.csgl-cta-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 !important;
  background: var(--csgl-off-black, #0c0c0e) !important;
}
.csgl-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.csgl-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.csgl-cta-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -0.04em !important;
  line-height: 1.08 !important;
  margin-bottom: 20px !important;
}
.csgl-cta-inner p {
  font-size: 16px !important;
  color: rgba(255,255,255,0.50) !important;
  margin-bottom: 36px !important;
  line-height: 1.65 !important;
}
.csgl-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Case Studies Grid */
.csgl-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .csgl-case-grid { grid-template-columns: 1fr; }
}

.csgl-case-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.csgl-case-card:hover {
  border-color: rgba(96,165,250,0.18);
  transform: translateY(-4px);
}
.csgl-case-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(59,130,246,0.08);
}
.csgl-case-body {
  padding: 24px;
}
.csgl-case-metrics {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.csgl-case-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.csgl-case-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.csgl-case-metric-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.csgl-case-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
}
.csgl-case-industry {
  font-size: 12px;
  color: rgba(59,130,246,0.70);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
