/* assets/css/pages/how-it-works.css */

/* === Page Header Dark - Match Services === */
.page-header--dark {
  background: linear-gradient(180deg, #0E2247 0%, #1A3A6B 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.page-header__bg > div:nth-child(1) {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,174,239,0.2) 0%, transparent 70%);
  border-radius: 8px;
}

.page-header__bg > div:nth-child(2) {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(26,58,107,0.6) 0%, transparent 70%);
  border-radius: 8px;
}

.page-header--dark .page-header__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.page-header__label .dot {
  color: var(--cyan);
  font-size: 8px;
}

.page-header--dark .page-header__title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-header--dark .page-header__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #C0C0C0;
  margin-bottom: 32px;
}

.page-header__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.page-header__buttons .btn--lg {
  padding: 14px 32px;
  font-size: 15px;
}

/* Light outline button for dark backgrounds */
.btn--outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .page-header--dark {
    padding: 60px 0 80px;
  }
  .page-header--dark .page-header__title {
    font-size: 36px;
  }
  .page-header--dark .page-header__subtitle {
    font-size: 16px;
  }
  .page-header__buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-header__buttons .btn--lg {
    width: 100%;
    max-width: 280px;
  }
}

/* === Phase Sections === */
.phase-section {
  padding: 80px 0;
  position: relative;
}

.phase-section.bg-light {
  background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(0, 174, 239, 0.2) 100%);
  border-radius: 2px;
}

.phase-section:last-child .timeline::before {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan) 70%, transparent 100%);
}

.phase-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.phase-number {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--white);
  line-height: 1;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan) 0%, #009dd6 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.3);
  position: relative;
  z-index: 2;
}

.phase-header h2 {
  margin-top: 8px;
}

.phase-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-left: 0;
}

.phase-detail-item {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.phase-detail-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.phase-detail-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.phase-detail-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === FAQ === */
.faq-section {
  padding: 80px 0;
}

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

.faq-item {
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-left: 3px solid var(--cyan);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  transition: all var(--transition-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--navy);
}

.faq-item[open] .faq-question {
  background: linear-gradient(180deg, rgba(0, 174, 239, 0.03) 0%, transparent 100%);
}

.faq-answer {
  padding: 0 24px 20px;
  animation: faqOpen 0.3s ease;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .phase-number {
    font-size: 24px;
    width: 56px;
    height: 56px;
  }

  .timeline::before {
    left: 27px;
  }

  .page-header--dark {
    padding: 60px 0 80px;
  }

  .page-header--dark .page-header__title {
    font-size: 32px;
  }

  .page-header--dark .page-header__subtitle {
    font-size: 15px;
  }
}

/* === Footer - Light === */
.footer {
  padding: 48px 0 24px;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  height: 32px;
  width: auto;
}

.footer__wordmark {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 15px;
  color: #1E293B;
}

.footer__tagline {
  font-size: 14px;
  color: #64748B;
  margin-top: 12px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 15px;
  color: #475569;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--cyan);
}

.footer__copyright {
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
