/* Home page specific styles */

/* About Section */
.about-section {
  background: var(--light-bg);
  position: relative;
}

[data-theme="dark"] .about-section {
  background: var(--dark-bg);
  p {
    color: var(--text-muted);
  }
  p.lead {
    color: var(--text-dark);
  }
}

/* Services FAQ Accordion Styles */
.services-faq {
  padding: 1rem;
}

.services-faq .accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
}

.services-faq .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.services-faq .accordion-item:last-child {
  border-bottom: none;
}

.services-faq .accordion-header {
  margin-bottom: 0;
}

.services-faq .accordion-button {
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.services-faq .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary-color);
  box-shadow: none;
}

.services-faq .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.services-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0080'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.services-faq .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.service-number {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary-color);
  min-width: 2.5rem;
  text-align: left;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.services-faq .accordion-body {
  padding: 0 0 1.5rem 3.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-faq .accordion-collapse {
  border: none;
}

/* Dark mode adjustments for accordion */
[data-theme="dark"] .services-faq .accordion-button {
  color: var(--text-light);
}

[data-theme="dark"] .services-faq .accordion-button:not(.collapsed) {
  color: var(--primary-color);
}

[data-theme="dark"] .services-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0080'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

[data-theme="dark"] .services-faq .accordion-body {
  color: var(--text-muted-dark);
}

/* Methodology Section */
.methodology-section {
  background: var(--bg-secondary);
  position: relative;
}

[data-theme="dark"] .methodology-section {
  background: var(--light-bg);
  p {
    color: var(--text-muted);
  }
  p.lead {
    color: var(--text-dark);
  }
  p.step-question {
    color: var(--text-light);
  }
  .step-description {
    p {
      color: var(--text-light);
    }
  }
}

.methodology-steps {
  position: relative;
  .row {
    display: flex;
    flex-wrap: wrap;
    .col {
      flex: 1 0 18%;
    }
  }
}

.methodology-step {
  background: white;
  border-radius: 20px;
  padding: 0;
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.methodology-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-header {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 50px;
  height: 50px;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.step-question {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0;
}

.step-description {
  padding: 1.5rem;
  background: white;
  color: var(--text-dark);
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
}

.step-description p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Step color variations */
.step-blue .step-header {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.step-pink .step-header {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.step-green .step-header {
  background: linear-gradient(135deg, #a8e6cf, #7fb069);
}

.step-purple .step-header {
  background: linear-gradient(135deg, #b06ab3, #4568dc);
}

.step-yellow .step-header {
  background: linear-gradient(135deg, #ffd93d, #ff8c42);
}

/* Dark mode adjustments for methodology */
[data-theme="dark"] .methodology-step {
  background: var(--dark-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .step-description {
  background: var(--dark-bg);
  color: var(--text-light);
}

/* Insights Section */
.insights-section {
  background: var(--light-bg);
}

[data-theme="dark"] .insights-section {
  background: var(--dark-bg);
  p {
    color: var(--text-muted);
  }
  p.lead {
    color: var(--text-dark);
  }
  h5 {
    color: var(--text-light);
  }
  ul {
    li {
      color: var(--text-muted);
    }
    li::before {
      background-color: var(--text-light);
    }
  }
}

.insight-card {
  background: var(--light-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.insight-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.insight-card:hover .insight-image img {
  transform: scale(1.1);
}

.insight-content {
  padding: 1.5rem;
  h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
  }
  p.section-subtitle {
    font-size: 0.675rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
  }
}

.insight-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.insight-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Budget Calculator */
.budget-calculator {
  background: var(--light-bg);
}

[data-theme="dark"] .budget-calculator {
  background: var(--dark-bg);
}

.calculator-container {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.budget-form .form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.budget-form .form-select,
.budget-form .form-control {
  border-radius: 12px;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  background: var(--light-bg);
  color: var(--text-dark);
  transition: var(--transition);
}

.budget-form .form-select:focus,
.budget-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 128, 0.25);
}

.btn-check:checked + .btn-outline-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.budget-result {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  color: white;
}

.budget-result h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.budget-range {
  margin-bottom: 1rem;
}

.budget-amount {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
}

.budget-note {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  position: relative;
  overflow: hidden;
  .section-banner {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    color: white;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-origin: padding-box;
    background-position: center;
    background-repeat: no-repeat;
    width: auto;
    min-height: 550px;
  }
}

.cta-section.section-banner {
  padding-top: 5px;
  padding-bottom: 5px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 550px;
  img {
    position: absolute;
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }
  .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(255, 0, 128, 0.3) 0%,
      rgba(0, 212, 255, 0.3) 100%
    );
    z-index: 1;
  }
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .methodology-steps {
    .row {
      display: flex;
      flex-wrap: wrap;
      .col {
        flex: 1 0 50%;
      }
    }
  }
}

@media (max-width: 767.98px) {
  .services-faq {
    padding: 0.5rem;
  }

  .services-faq .accordion-button {
    padding: 1rem 0;
  }

  .service-number {
    font-size: 1rem;
    min-width: 2rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .services-faq .accordion-body {
    padding: 0 0 1rem 2.5rem;
    font-size: 0.9rem;
  }

  .award-circle {
    width: 250px;
    height: 250px;
  }

  .award-content {
    padding: 1.5rem;
  }

  .calculator-container {
    padding: 2rem 1.5rem;
  }

  .budget-amount {
    font-size: 2rem;
  }

  .collaboration-option {
    padding: 1.5rem;
  }

  .methodology-steps .col-lg-2 {
    width: 100%;
  }

  .step-header {
    min-height: 240px;
    padding: 1.5rem 1rem 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .step-icon {
    font-size: 2.5rem;
  }

  .step-title {
    font-size: 1.25rem;
  }

  .step-description {
    min-height: 100px;
    padding: 1rem;
  }

  .step-description p {
    font-size: 0.9rem;
  }

  .methodology-steps {
    .row {
      display: flex;
      flex-wrap: wrap;
      .col {
        flex: 1 0 50%;
      }
    }
  }
}

@media (max-width: 575.98px) {
  .services-faq .accordion-body {
    padding: 0 0 1rem 0;
  }

  .award-circle {
    width: 200px;
    height: 200px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .step-header {
    min-height: 200px;
  }

  .step-icon {
    font-size: 2rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-question {
    font-size: 0.9rem;
  }

  .methodology-steps {
    .row {
      display: flex;
      flex-wrap: wrap;
      .col {
        flex: 1 0 100%;
      }
    }
  }
}
