
/* Service Detail Page Styles */
.service-detail {
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Service Carousel */
.service-carousel-container {
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}

.service-carousel {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent) !important;
  width: 30px;
  border-radius: 10px;
}

.service-image {
  width: 100%;
  height: 500px;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-image img, .service-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.swiper-slide-active .service-placeholder-img {
  transform: scale(1.02);
}

.swiper-button-next, .swiper-button-prev {
  color: white !important;
  background-color: rgba(0, 200, 123, 0.8);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease !important;
}

.service-carousel-container:hover .swiper-button-next,
.service-carousel-container:hover .swiper-button-prev {
  opacity: 1;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 2rem 2rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
}

.swiper-slide-active .slide-caption {
  transform: translateY(0);
}

.slide-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.slide-caption p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100%;
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--accent);
  transition: width 0.1s linear;
}

.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 30px;
  z-index: 10;
}

@media (max-width: 768px) {
  .service-image {
    height: 350px;
  }
  
  .slide-caption {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .carousel-counter {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 576px) {
  .service-image {
    height: 280px;
  }
  
  .slide-caption {
    padding: 1rem 1rem 0.8rem;
  }
  
  .slide-caption h3 {
    font-size: 1rem;
  }
  
  .slide-caption p {
    font-size: 0.8rem;
  }
}

/* Service Info */
.service-info {
  margin-bottom: 2.5rem;
}

.service-info .service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-info .service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 1.5rem;
}

.payment-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
}

.payment-icon {
  filter: grayscale(0.2);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.payment-icon:hover {
  filter: grayscale(0);
  transform: translateY(-2px);
}

/* Service Actions */
.service-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
}

.whatsapp-button:hover {
  background-color: #20BD5C;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.quote-button {
  background-color: var(--accent);
  color: white;
}

.quote-button:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 200, 123, 0.3);
}

/* Service Meta */
.service-info ~ .service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: row;
}

.service-category, .service-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-tag {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-tag:hover {
  background-color: var(--accent);
  color: white;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Service Tabs */
.service-tabs {
  margin-bottom: 4rem;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.tab-button:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.tab-button.active {
  color: var(--accent);
}

.tab-button.active:after {
  width: 100%;
}

.tab-button:hover {
  color: var(--accent);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Feature List */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.benefit-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}

.benefit-icon {
  background-color: rgba(0, 200, 123, 0.1);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  margin-top: 2rem;
}

.process-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--border);
  z-index: 0;
}

.process-step {
  display: flex;
  gap: 2rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 1;
  flex-shrink: 0;
}

.step-content {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  flex-grow: 1;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.step-tools {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

/* Related Services */
.related-services {
  margin-top: 5rem;
  padding: 0 1rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0.5rem auto 0;
  font-weight: 400;
}

.related-services-slider {
  padding-bottom: 4rem;
  overflow: hidden;
  margin: 0 -0.5rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  border: 1px solid var(--border);
  margin: 0.5rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow);
}

.service-card-image {
  position: relative;
  background: linear-gradient(120deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.service-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  position: absolute;
  bottom: -25px;
  left: 20px;
  box-shadow: 0 5px 15px rgba(0, 200, 123, 0.3);
  z-index: 2;
  border: 3px solid var(--card-bg);
}

.service-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-card-badge.popular {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.service-card-badge.best-seller {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

.service-card-badge.premium {
  background: linear-gradient(135deg, #00C87B 0%, #009e5f 100%);
}

.service-card-content {
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--card-bg);
}

.service-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.service-card-meta {
  display: flex;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-card-price {
  font-weight: 700;
  color: var(--accent);
}

.service-card-rating,
.stars,
.half-star,
.half-star:before {
  display: none;
}

.service-card-button {
  display: flex;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: var(--accent);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.service-card-button svg {
  transition: transform 0.3s ease;
}

.service-card-button:hover {
  background-color: var(--accent-hover);
}

.service-card-button:hover svg {
  transform: translateX(3px);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent) !important;
  background-color: var(--card-bg);
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--accent);
  color: white !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination {
  bottom: 20px !important;
}

.related-services-slider .swiper-pagination {
  bottom: -35px !important;
  margin-top: 20px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--border);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent) !important;
  width: 30px;
  border-radius: 10px;
}

.view-all-services {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.view-all-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.view-all-button:hover {
  background-color: var(--accent);
  color: white;
}

.view-all-button:hover svg {
  transform: translateX(3px);
}

.view-all-button svg {
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .service-card-image {
    height: 140px;
  }
  
  .service-avatar {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: -22px;
  }
}

@media (max-width: 768px) {
  .related-services-slider {
    margin: 0;
  }
  
  .service-card {
    margin: 0;
  }
  
  .service-card-image {
    height: 120px;
  }
  
  .related-services h2 {
    margin-bottom: 0.5rem;
  }
  
  .swiper-button-next, 
  .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .service-card-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .service-card-rating {
    display: none;
  }
  
  .service-card-content {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .feature-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .service-image {
    height: 300px;
  }
  
  .service-info ~ .service-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .service-actions {
    flex-direction: column;
  }
  
  .action-button {
    width: 100%;
  }
  
  .tabs-header {
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .service-image {
    height: 250px;
  }
  
  .service-info .service-title {
    font-size: 1.75rem;
  }
  
  .step-content {
    padding: 1.25rem;
  }
  
  .process-step {
    gap: 1rem;
  }
}

/* Hide pagination bullets for carousels */
.service-carousel .swiper-pagination,
.related-services-slider .swiper-pagination {
  display: none !important;
}