/**
 * Service Pages CSS - Design blocks for service-specific and emergency pages
 */

/* Hero Section for Service Pages */
.hero-service { 
  background: linear-gradient(135deg, #ff5722, #ff6b35); 
  color: white; 
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-service.emergency {
  background: linear-gradient(135deg, #d32f2f, #ff5722);
}

.hero-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/service-pattern.png') repeat-x bottom;
  opacity: 0.1;
  pointer-events: none;
}

.hero-service-content { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem; 
  align-items: center; 
  position: relative; 
  z-index: 1; 
}

.service-badge { 
  background: rgba(255,255,255,0.2); 
  padding: 0.5rem 1rem; 
  border-radius: 20px; 
  font-size: 0.875rem; 
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-badge {
  background: rgba(255,255,255,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.service-features { 
  display: flex; 
  gap: 1.5rem; 
  margin-top: 2rem; 
  flex-wrap: wrap; 
}

.service-features span { 
  background: rgba(255,255,255,0.15); 
  padding: 0.5rem 1rem; 
  border-radius: 15px; 
  font-size: 0.875rem;
}

/* Emergency Response Section */
.emergency-response {
  background: #fff3e0;
  padding: 3rem 0;
  border-left: 4px solid #ff5722;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.response-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.response-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.response-time {
  font-size: 2rem;
  font-weight: 700;
  color: #ff5722;
  display: block;
  margin-bottom: 0.5rem;
}

.response-label {
  color: #666;
  font-size: 0.9rem;
}

/* Service Steps Section */
.service-steps {
  padding: 4rem 0;
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  width: 2px;
  height: 2rem;
  background: #e0e0e0;
}

.step-number {
  background: #005eb8;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.step-content h3 {
  color: #005eb8;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #666;
  line-height: 1.5;
}

/* Service Types Grid */
.service-types {
  background: #f8f9fa;
  padding: 4rem 0;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.type-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.type-header {
  background: linear-gradient(135deg, #005eb8, #00a6fb);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.type-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.type-header h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.type-price {
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.9;
}

.type-content {
  padding: 1.5rem;
}

.type-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.type-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
}

.type-list li:last-child {
  border-bottom: none;
}

.type-list li:before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Pricing Section */
.service-pricing {
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: #ff5722;
  transform: scale(1.05);
}

.pricing-card:hover {
  border-color: #005eb8;
  box-shadow: 0 10px 30px rgba(0,94,184,0.15);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5722;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-title {
  color: #005eb8;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff5722;
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Warranty Section */
.service-warranty {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.warranty-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.warranty-item {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.warranty-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.warranty-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.warranty-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* FAQ Section for Services */
.service-faq {
  padding: 4rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: #f8f9fa;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #005eb8;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 1.5rem;
  color: #666;
  line-height: 1.5;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* Service CTA */
.service-cta {
  background: linear-gradient(135deg, #005eb8, #00a6fb);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.service-cta::before {
  content: '🔧';
  position: absolute;
  font-size: 8rem;
  opacity: 0.1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service-cta.emergency::before {
  content: '🚨';
}

.service-cta h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-cta p {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.btn-service {
  display: inline-block;
  background: white;
  color: #005eb8;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.btn-service.emergency {
  background: #ff5722;
  color: white;
}

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-service-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .service-features {
    justify-content: center;
  }
  
  .response-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .types-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .warranty-features {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-service {
    padding: 3rem 0;
  }
  
  .service-steps,
  .service-types,
  .service-pricing,
  .service-faq,
  .service-cta {
    padding: 3rem 0;
  }
  
  .type-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  .response-time {
    font-size: 1.5rem;
  }
  
  .pricing-amount {
    font-size: 2rem;
  }
}