/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* ===== HERO ===== */
/* Hero styles have been migrated to shared/style.css for global consistency */

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}






.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #21446E;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-features {
  margin-bottom: 20px;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-mid);
  padding: 4px 0;
  font-weight: 500;
}

.mt-40 {
  margin-top: 40px;
}

.mt-24 {
  margin-top: 24px;
}

/* ===== WHY CHOOSE US ===== */
.why-section {
  background: var(--off-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.why-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(21, 101, 192, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.why-feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #21446E;
}

.why-feature p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.stat-blue {
  background: var(--gradient-primary);
  color: white;
}

.stat-orange {
  background: var(--gradient-primary);
  color: white;
}

.stat-green {
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: white;
}

.stat-purple {
  background: linear-gradient(135deg, #4A148C, #7B1FA2);
  color: white;
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: white;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== PROCESS SECTION ===== */
.process-section {
  background: var(--white);
  padding-bottom: 80px;
}

/* Premium Timeline UI */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
}

/* Vertical line for mobile */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.2;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.timeline-node {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-step:hover .timeline-node {
  transform: scale(1.05);
  background: var(--primary);
}

.timeline-node .step-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.timeline-node .step-icon i {
  font-size: 1.4rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.timeline-step:hover .timeline-node .step-number,
.timeline-step:hover .timeline-node .step-icon i {
  color: var(--white);
}

.timeline-content {
  background: var(--white);
  padding: 24px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  flex: 1;
  position: relative;
  transition: all 0.3s ease;
}

/* Little triangle pointing to node */
.timeline-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-left: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.timeline-step:hover .timeline-content::before {
  border-color: var(--primary);
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #21446E;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Desktop horizontal timeline */
@media (min-width: 769px) {
  .process-timeline {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1100px;
    gap: 24px;
  }

  /* Horizontal connecting line */
  .process-timeline::before {
    left: 100px;
    right: 100px;
    top: 35px;
    height: 2px;
    width: auto;
    bottom: auto;
  }

  .timeline-step {
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
  }

  .timeline-content {
    margin-top: 16px;
  }

  .timeline-content::before {
    left: 50%;
    top: -9px;
    margin-left: -8px;
    border-left: none;
    border-bottom: none;
    border-top: 1px solid var(--light-gray);
    border-left: 1px solid var(--light-gray);
  }
}


/* ===== CTA ICON ===== */
.cta-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 120px 24px 60px;
  }

  .hero-sub {
    margin: 0 0 24px;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-trust {
    justify-content: space-between;
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-stats {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  /* Mobile Stats Design (Matching Image) */
  .why-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    margin-top: 20px;
  }

  .stat-card {
    background: transparent !important;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .stat-card::before {
    display: none;
  }

  .stat-num {
    width: 15vw;
    height: 15vw;
    max-width: 60px;
    max-height: 60px;
    border: 2px solid #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a !important;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    font-weight: 700;
    margin: 0;
    background: #f4f6fa;
  }

  .stat-label {
    color: #0f172a !important;
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    width: 100%;
    word-break: break-word;
    hyphens: auto;
  }
}



/* Desktop Banner Image */
.desktop-banner-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  margin-top: 20px;
}



/* Visibility Control */
.show-on-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .why-stats.show-on-mobile {
    display: grid !important;
  }

  .process-grid.show-on-mobile {
    display: flex !important;
  }
}