/* Modern Services Page - Service-specific styles */
/* Hero styles are in pages-common.css */

/* ========================================
   HERO + OVERVIEW MERGED SECTION
======================================== */
.services-hero-overview {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.services-hero-overview::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.services-hero-overview::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.services-hero-content {
  position: relative;
  z-index: 1;
}

.services-hero-content .modern-page-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93c5fd;
}

.services-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 16px 0 14px;
  line-height: 1.2;
}

.services-hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.6;
}

.services-hero-overview .services-overview-cta {
  background: #ffffff;
  color: #1e40af;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.services-hero-overview .services-overview-cta:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.services-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Value Props Grid - Diferenciadores */
.services-hero-overview .services-value-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  position: relative;
  z-index: 1;
}

.services-hero-overview .services-value-card {
  display: flex !important;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.services-hero-overview .services-value-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.services-hero-overview .services-value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.services-hero-overview .services-value-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.services-hero-overview .services-value-number {
  min-width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  flex-direction: row;
  gap: 2px;
  padding: 0 12px;
}

.services-hero-overview .services-value-number span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.services-hero-overview .services-value-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #93c5fd;
}

@media (max-width: 991px) {
  .services-hero-overview .services-value-grid {
    grid-template-columns: 1fr !important;
    margin-top: 32px;
  }
}

@media (max-width: 576px) {
  .services-hero-overview .services-value-card {
    padding: 16px 18px;
  }
}

.services-feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.services-feature-card:nth-child(2n) {
  transform: translateY(12px);
}

.services-feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.services-feature-card:nth-child(2n):hover {
  transform: translateY(8px);
}

.services-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.services-feature-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.services-feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #93c5fd;
}

@media (max-width: 991px) {
  .services-hero-overview {
    padding: 80px 0 60px;
  }
  .services-hero-title {
    font-size: 2.2rem;
  }
  .services-features-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .services-feature-card:nth-child(2n) {
    transform: none;
  }
  .services-feature-card:nth-child(2n):hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 576px) {
  .services-hero-title {
    font-size: 1.8rem;
  }
  .services-feature-card {
    padding: 16px 18px;
  }
}

/* ========================================
   ASYMMETRIC OVERVIEW SECTION (Legacy)
======================================== */
.services-overview-section {
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  position: relative;
  overflow: hidden;
}

.services-overview-section::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0) 70%);
  border-radius: 50%;
}

.services-overview-copy {
  position: relative;
  z-index: 1;
}

.services-overview-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 14px 0 12px;
}

.services-overview-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 24px;
}

.services-overview-cta {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.services-overview-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-overview-card:nth-child(2n) {
  transform: translateY(12px);
}

.services-overview-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.18);
}

.services-overview-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.services-overview-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.service-nav-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========================================
   SERVICES CATALOG (PRODUCT STYLE)
======================================== */
.services-catalog-section {
  padding: 80px 0 110px;
  background: #ffffff;
}

.service-card-compact {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.service-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card-compact:hover::before,
.service-card-compact:focus-visible::before {
  transform: scaleX(1);
}

.service-card-compact:hover,
.service-card-compact:focus-visible {
  border-color: #c7d2fe;
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.15);
}

.service-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card-compact h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.service-card-compact p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991px) {
  .services-overview-section {
    padding: 70px 0 60px;
  }
  .services-overview-grid {
    grid-template-columns: 1fr;
  }
  .services-overview-card:nth-child(2n) {
    transform: none;
  }
}

@media (max-width: 576px) {
  .services-overview-title {
    font-size: 1.8rem;
  }
  .service-card-compact {
    padding: 22px;
  }
}

/* Carousel Wrapper */
.services-carousel-wrapper,
.training-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Carousel Container */
.services-carousel,
.training-carousel {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

/* Carousel Track */
.services-track,
.training-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 20px;
  padding: 10px 5px;
}

/* Slides */
.service-slide {
  flex: 0 0 calc(25% - 15px);
  min-width: 280px;
}

.training-slide {
  flex: 0 0 calc(20% - 16px);
  min-width: 220px;
}

/* Service Card Carousel */
.service-card-carousel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-card-carousel:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #0d6efd;
}

.service-icon-carousel {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.3s ease;
}

.service-card-carousel:hover .service-icon-carousel {
  transform: scale(1.1);
}

.service-icon-carousel i {
  font-size: 1.8rem;
}

.service-card-carousel h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #212529;
  line-height: 1.3;
}

.service-card-carousel p {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Training Card Carousel */
.training-card-carousel {
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.training-card-carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: #0d6efd;
}

.training-icon-carousel {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.training-icon-carousel i {
  font-size: 1.5rem;
  color: #fff;
}

.training-icon-carousel.bg-green { background: linear-gradient(135deg, #198754 0%, #146c43 100%); }
.training-icon-carousel.bg-azure { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.training-icon-carousel.bg-red { background: linear-gradient(135deg, #da291c 0%, #b02418 100%); }
.training-icon-carousel.bg-yellow { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.training-icon-carousel.bg-purple { background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%); }

.training-card-carousel h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #212529;
  line-height: 1.3;
}

.training-card-carousel p {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Icon Background Colors */
.bg-primary-soft { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.bg-success-soft { background: rgba(25, 135, 84, 0.12); color: #198754; }
.bg-danger-soft { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.bg-warning-soft { background: rgba(255, 193, 7, 0.15); color: #cc9a06; }
.bg-info-soft { background: rgba(13, 202, 240, 0.12); color: #0dcaf0; }
.bg-purple-soft { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }
.bg-cyan-soft { background: rgba(13, 202, 240, 0.12); color: #0891b2; }

/* Navigation Buttons */
.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-nav-btn:hover {
  background: #0d6efd;
  color: #fff;
  transform: scale(1.1);
}

.carousel-nav-btn i {
  font-size: 1.2rem;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: #0d6efd;
  width: 28px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
  .service-slide {
    flex: 0 0 calc(33.333% - 14px);
  }
  .training-slide {
    flex: 0 0 calc(25% - 15px);
  }
}

@media (max-width: 992px) {
  .service-slide {
    flex: 0 0 calc(50% - 10px);
    min-width: 260px;
  }
  .training-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .service-slide {
    flex: 0 0 calc(100% - 10px);
    min-width: 280px;
  }
  .training-slide {
    flex: 0 0 calc(50% - 10px);
    min-width: 180px;
  }
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .training-slide {
    flex: 0 0 calc(100% - 10px);
    min-width: 250px;
  }
  .services-carousel-wrapper,
  .training-carousel-wrapper {
    gap: 5px;
  }
}
