/* Service Page - Dark Theme */
/* Inherits variables from home.css */

.service-hero {
  background-color: var(--primary-bg);
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.service-hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent-color);
}

.service-hero p {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-hero h1 {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
}

/* Service List */
.service-list-section {
  background-color: var(--primary-bg);
  padding: 2rem 2rem 6rem;
  min-height: 50vh;
}

.service-list-container {
  max-width: 1000px;
  /* Slightly narrower for list look */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 16px;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  /* In case we link it */
  cursor: default;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.service-arrow svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

/* Colors */
/* Air Conditioner - Orange */
.bar-ac {
  background: linear-gradient(135deg, #f39f22, #d98a1a);
}

/* CCTV - Orange */
.bar-cctv {
  background: linear-gradient(135deg, #f39f22, #d98a1a);
}

/* Water - Orange */
.bar-water {
  background: linear-gradient(135deg, #f39f22, #d98a1a);
}

/* Inverter - Orange */
.bar-power {
  background: linear-gradient(135deg, #f39f22, #d98a1a);
}

/* Cash - Orange */
.bar-cash {
  background: linear-gradient(135deg, #f39f22, #d98a1a);
}


/* Help CTA */
.help-cta {
  background: #242866;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.help-cta h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.help-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #1a202c;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s;
}

.contact-btn:hover {
  transform: scale(1.05);
  background: #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
  .service-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .service-icon-box {
    margin: 0 auto;
  }

  .service-arrow {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
  }

  .service-bar.active .service-arrow {
    transform: rotate(180deg);
  }
}

/* Service Details Accordion */
.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease, padding 0.3s ease;
  opacity: 0;
  background: rgba(30, 41, 59, 0.5);
  /* Semi-transparent background */
  border-radius: 0 0 16px 16px;
  margin-top: -16px;
  /* Overlap with bar radius */
  padding: 0 2rem;
  /* Hidden padding initially */
  margin-bottom: 1.5rem;
}

.service-details.active {
  max-height: 3000px;
  /* Arbitrary large enough value */
  opacity: 1;
  padding: 3rem 2rem 3rem;
  /* Add padding when open */
  margin-top: -10px;
  /* Slight overlap */
  border: 1px solid var(--border-color);
  border-top: none;
}

.sub-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sub-service-card {
  background: #242866;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.sub-service-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

.sub-service-info {
  padding: 1rem;
}

.sub-service-info h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sub-service-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.service-book-btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  text-align: center;
  background: var(--accent-color);
  /* Fallback */
  color: white;
  padding: 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.service-book-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Specific button colors match bars */
.btn-ac {
  background: #f39f22;
}

.btn-cctv {
  background: #f39f22;
}

.btn-water {
  background: #f39f22;
}

.btn-power {
  background: #f39f22;
}

.btn-cash {
  background: #f39f22;
}

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