/* Global fixes for test deployment */
html.page-no-snap {
  scroll-snap-type: none !important;
}

/* ==========================================================================
   Redesigned Service Page Styles
   ========================================================================== */

/* --- Page-specific scroll adjustments --- */
.service-page {
  background-color: var(--purple-900);
}

.timeline-node {
  scroll-margin-top: calc(var(--header-height) + 30px);
}

/* --- Section headers --- */
.service-section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.service-section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.service-section-header .section-title {
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.3;
}

/* --- Who We Serve Section (服務對象) --- */
.service-audiences-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.audiences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.audience-card {
  background: rgba(34, 16, 64, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(160, 114, 230, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.audience-card:hover {
  transform: translateY(-8px);
  border-color: rgba(160, 114, 230, 0.4);
  box-shadow: 0 15px 35px rgba(124, 69, 212, 0.15), inset 0 0 15px rgba(160, 114, 230, 0.1);
}

.audience-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audience-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-800) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.audience-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.audience-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audience-pain-points {
  font-size: 0.95rem;
  color: var(--purple-200);
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
}

.audience-pain-points::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--accent-coral);
  font-weight: bold;
}

.audience-solution {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
}

.audience-solution::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

/* --- Four Stages Overview Section (四階段方案簡介) --- */
.service-overview-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--purple-900) 0%, rgba(20, 10, 35, 0.95) 100%);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.overview-card {
  background: rgba(58, 27, 107, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(160, 114, 230, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-spring);
  position: relative;
}

.overview-card:hover {
  transform: translateY(-8px);
  background: rgba(58, 27, 107, 0.35);
  border-color: rgba(160, 114, 230, 0.35);
  box-shadow: 0 15px 35px rgba(34, 16, 64, 0.3);
}

.overview-stage-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(160, 114, 230, 0.1);
  line-height: 1;
}

.overview-card:hover .overview-stage-num {
  color: rgba(232, 200, 114, 0.15);
}

.overview-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  padding-right: 1.5rem;
  margin: 0;
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--purple-200);
  line-height: 1.6;
  flex-grow: 1;
}

.overview-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(232, 200, 114, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  text-align: center;
}

.btn-detail-link {
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--purple-400);
  background: transparent;
  color: var(--purple-100);
  transition: all var(--transition-base);
  text-decoration: none;
}

.overview-card:hover .btn-detail-link {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(124, 69, 212, 0.3);
}

/* --- Section padding fix for static timeline --- */
.service-details-section {
  background: linear-gradient(180deg, rgba(20, 10, 35, 0.95) 0%, var(--purple-900) 100%) !important;
  padding-bottom: var(--space-4xl);
}

.service-timeline {
  padding-top: var(--space-2xl) !important;
}

.node-box {
  background: rgba(34, 16, 64, 0.7) !important;
  border: 1px solid rgba(160, 114, 230, 0.2) !important;
}

.node-box:hover {
  border-color: rgba(232, 200, 114, 0.4) !important;
  box-shadow: 0 15px 35px rgba(124, 69, 212, 0.2) !important;
}

.node-dot {
  background: var(--purple-400) !important;
  border-color: var(--purple-900) !important;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 992px) {
  .audiences-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 576px) {
  .service-section-header .section-title {
    font-size: 1.7rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   FAQ Section Styles (AIO/SEO)
   ========================================================================== */
.faq-section {
  background: var(--purple-900);
  position: relative;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(34, 16, 64, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(160, 114, 230, 0.15);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: all var(--transition-base, 0.3s ease);
}

.faq-item:hover {
  border-color: rgba(160, 114, 230, 0.35);
  box-shadow: 0 5px 15px rgba(124, 69, 212, 0.15);
}

.faq-item.active {
  border-color: rgba(232, 200, 114, 0.4);
  background: rgba(34, 16, 64, 0.6);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: color var(--transition-base, 0.3s ease);
}

.faq-question:hover {
  color: var(--accent-gold, #e8c872);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold, #e8c872);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--purple-100);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 1.25rem;
}

.faq-answer strong {
  color: var(--white);
}