/* ==========================================================================
   Canadian Physiotherapy & Chiropractic Centres (CPCC)
   Service Archive Page Stylesheet (archive-service.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Archive Hero
   -------------------------------------------------------------------------- */
.archive-hero {
  position: relative;
  background-color: #0b1a30;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(13, 148, 136, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 45%);
  color: #ffffff;
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .archive-hero {
    padding: 4.5rem 0 4.75rem;
  }
}

/* ==========================================================================
   Harmonious Section Spacing System (Guarantees Perfect Layout Rhythm)
   ========================================================================== */
.archive-services-grid-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.symptom-matcher-section {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
  background: #f8fafc;
  border-top: 1px solid rgba(30, 41, 59, 0.08);
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.archive-matrix-section {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
}

.archive-insurance-section {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.archive-faq-section {
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

@media (min-width: 1024px) {
  .archive-services-grid-section {
    padding-top: 3.25rem;
    padding-bottom: 3rem;
  }
  .symptom-matcher-section {
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }
  .archive-matrix-section {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
  .archive-insurance-section {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }
  .archive-faq-section {
    padding-top: 3.25rem;
    padding-bottom: 3.75rem;
  }
}

.archive-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2dd4bf;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.archive-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background-color: #2dd4bf;
  border-radius: 9999px;
}

.archive-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .archive-hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .archive-hero-title {
    font-size: 3.15rem;
  }
}

.archive-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .archive-hero-lead {
    font-size: 1.125rem;
  }
}

/* Fast Facts Ribbon in Hero */
.archive-trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.archive-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.archive-trust-item .material-symbols-outlined {
  color: #2dd4bf;
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   2. Filter & Search Control Bar
   -------------------------------------------------------------------------- */
.archive-filter-bar {
  background: #ffffff;
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 72px; /* right below header */
  z-index: 30;
  transition: all 0.2s ease;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9999px;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab-btn:hover {
  color: #0b1a30;
  background: #f1f5f9;
}

.filter-tab-btn.active {
  background: #0b1a30;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 26, 48, 0.18);
}

.filter-tab-btn .tab-count {
  font-size: 11px;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.2);
  color: inherit;
}

.filter-tab-btn.active .tab-count {
  background: rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
}

.archive-search-box {
  position: relative;
  min-width: 260px;
}

.archive-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 13.5px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0b1a30;
  transition: all 0.2s ease;
}

.archive-search-input:focus {
  outline: none;
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.archive-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Service Cards Grid
   -------------------------------------------------------------------------- */
.service-catalog-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(11, 26, 48, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}

.service-card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #0b1a30;
}

.service-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-catalog-card:hover .service-card-image-wrap img {
  transform: scale(1.06);
}

.service-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 48, 0.2) 0%, rgba(11, 26, 48, 0.85) 100%);
}

.service-pill-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #0d9488;
  font-size: 11px;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-pill-category {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(11, 26, 48, 0.85);
  backdrop-filter: blur(4px);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.service-card-floating-title {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  right: 1rem;
  color: #ffffff;
}

.service-card-subtitle {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2dd4bf;
  display: block;
  margin-bottom: 0.2rem;
}

.service-card-h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

.service-card-content {
  padding: 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 0.85rem;
}

.service-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.service-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(203, 213, 225, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-tag::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: #0d9488;
}

.service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-service-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 700;
  color: #0d9488;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-service-view:hover {
  color: #0b1a30;
  transform: translateX(3px);
}

.btn-service-book {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #0b1a30;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-service-book:hover {
  background: #e11d48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Symptom Matcher Guide
   -------------------------------------------------------------------------- */
.symptom-matcher-section {
  background: #f8fafc;
  border-top: 1px solid rgba(30, 41, 59, 0.08);
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

#symptom-chips-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  #symptom-chips-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  #symptom-chips-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.symptom-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}

.symptom-chip-btn .symptom-chip-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.symptom-chip-btn .symptom-icon {
  font-size: 20px;
  color: #0d9488;
  flex-shrink: 0;
}

.symptom-chip-arrow {
  font-size: 16px;
  color: #94a3b8;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.symptom-chip-btn:hover {
  border-color: #0d9488;
  color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12);
}

.symptom-chip-btn:hover .symptom-chip-arrow {
  color: #0d9488;
  transform: translateX(3px);
}

.symptom-triage-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.875rem;
  background-color: #f0fdfa;
  border: 1px solid #99f6e4;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .symptom-triage-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.symptom-triage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  background-color: #0f766e;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.symptom-triage-btn:hover {
  background-color: #115e59;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Comparison Matrix Table
   -------------------------------------------------------------------------- */
.archive-matrix-wrap {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  background: #0b1a30;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.matrix-table td {
  padding: 0.75rem 1rem;
  font-size: 12.5px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.matrix-table tr:hover td {
  background-color: #f8fafc;
}

.matrix-check {
  color: #0d9488;
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   6. Insurance Trust Strip
   -------------------------------------------------------------------------- */
.archive-insurance-header {
  margin-bottom: 1.15rem;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  row-gap: 0.85rem;
}

@media (min-width: 640px) {
  .insurance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    row-gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .insurance-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.65rem;
    row-gap: 0.65rem;
  }
}

.insurance-logo-badge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

.insurance-logo-badge:hover,
.insurance-logo-badge.insurance-highlight {
  border-color: #0d9488;
}

.insurance-logo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   7. Accordion FAQ
   -------------------------------------------------------------------------- */
.archive-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.archive-faq-item.active {
  border-color: #0d9488;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}

.archive-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1a30;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.archive-faq-btn:hover {
  color: #0d9488;
}

.archive-faq-icon {
  font-size: 20px;
  color: #0d9488;
  transition: transform 0.3s ease;
}

.archive-faq-item.active .archive-faq-icon {
  transform: rotate(180deg);
}

.archive-faq-panel {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

.archive-faq-item.active .archive-faq-panel {
  display: block;
}

/* Animation for hidden cards in live filter */
.service-catalog-card.is-hidden {
  display: none !important;
}

/* Empty search state */
.archive-no-results {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
}

.archive-no-results.is-visible {
  display: block;
}

/* ==========================================================================
   Mobile Responsive Enhancements (< 640px)
   ========================================================================== */
#archive-filter-tabs {
  -webkit-overflow-scrolling: touch;
}

.filter-tab-btn {
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .archive-cta-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .archive-cta-btns a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .symptom-triage-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .symptom-triage-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

