/* ==========================================================================
   FIXILA - ACCORDION CARDS STYLESHEET
   Save as: /css/accordion.css
   Used on: All service pages with accordion cards
   ========================================================================== */

/* ==========================================================================
   ACCORDION SECTION
   ========================================================================== */
.accordion-section {
  padding: 6rem 2rem;
  background: #ffffff;
}

.accordion-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   ACCORDION ITEM
   ========================================================================== */
.accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
}

.accordion-item.active {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   ACCORDION HEADER (CLICKABLE)
   ========================================================================== */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  cursor: pointer;
  background: linear-gradient(to right, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background: linear-gradient(to right, #f8fafc 0%, #eff6ff 100%);
}

.accordion-item.active .accordion-header {
  background: linear-gradient(to right, #eff6ff 0%, #dbeafe 100%);
  border-bottom: 1px solid #e2e8f0;
}

.accordion-header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.accordion-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.accordion-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.accordion-item.active .accordion-icon {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: scale(1.05);
}

.accordion-title {
  flex: 1;
}

.accordion-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
  transition: color 0.3s ease;
}

.accordion-item.active .accordion-title h3 {
  color: #2563eb;
}

.accordion-title p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.accordion-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-toggle {
  background: #2563eb;
  transform: rotate(180deg);
}

.accordion-toggle svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: color 0.3s ease;
}

.accordion-item.active .accordion-toggle svg {
  color: #ffffff;
}

/* ==========================================================================
   ACCORDION CONTENT (EXPANDABLE)
   ========================================================================== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  transition: max-height 0.6s ease-in;
}

.accordion-body {
  padding: 2rem;
  background: #ffffff;
}

.accordion-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.accordion-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1.5rem;
}

.accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.accordion-body ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: #475569;
  line-height: 1.7;
  border-bottom: 1px solid #f1f5f9;
}

.accordion-body ul li:last-child {
  border-bottom: none;
}

.accordion-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Feature Grid (for displaying features in columns) */
.accordion-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #2563eb;
}

.feature-item h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* CTA Button in Accordion */
.accordion-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.accordion-cta:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .accordion-section {
    padding: 4rem 1.5rem;
  }

  .accordion-header {
    padding: 1.5rem 1.25rem;
  }

  .accordion-header-content {
    gap: 1rem;
  }

  .accordion-icon {
    width: 40px;
    height: 40px;
  }

  .accordion-icon svg {
    width: 20px;
    height: 20px;
  }

  .accordion-title h3 {
    font-size: 1.2rem;
  }

  .accordion-title p {
    font-size: 0.875rem;
  }

  .accordion-body {
    padding: 1.5rem;
  }

  .accordion-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .accordion-header {
    padding: 1.25rem 1rem;
  }

  .accordion-title h3 {
    font-size: 1.1rem;
  }

  .accordion-body {
    padding: 1.25rem;
  }

  .accordion-cta {
    width: 100%;
    justify-content: center;
  }
}
