/* ==========================================================================
   Canadian Physiotherapy & Chiropractic Centres (CPCC)
   Single Service Page Dedicated Stylesheet (single-service.css)
   Pure, Self-Contained CSS for Consistent Layout & Spacing
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Layout Container Helper
   -------------------------------------------------------------------------- */
.service-container {
  width: 100%;
  max-width: 80rem;
  /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .service-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .service-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --------------------------------------------------------------------------
   1. Plain Blue Hero Section & CTA Buttons
   -------------------------------------------------------------------------- */
.service-blue-hero {
  background-color: #0b1a30;
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .service-blue-hero {
    padding: 5.5rem 0 6rem;
  }
}

.service-hero-breadcrumbs {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-hero-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.service-hero-breadcrumbs a:hover {
  color: #ffffff;
}

.service-hero-breadcrumbs span.active {
  color: #5eead4;
  font-weight: 600;
}

.service-hero-eyebrow {
  display: inline-block;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

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

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

.service-hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 44rem;
  font-weight: 400;
  margin: 0 0 2rem 0;
}

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

/* Action Buttons with Guaranteed Gaps */
.service-hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background-color: #dc2626;
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
  line-height: 1.25;
}

.service-btn-red:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(220, 38, 38, 0.5);
  color: #ffffff !important;
}

.service-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: transparent;
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1.25;
}

.service-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. Shared Section Header & Eyebrow
   -------------------------------------------------------------------------- */
.service-section-header {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.service-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0d9488;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.service-section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.15rem;
  height: 2px;
  background-color: #0d9488;
  border-radius: 9999px;
}

.service-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #091426;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

@media (min-width: 640px) {
  .service-section-title {
    font-size: 2.15rem;
  }
}

@media (min-width: 1024px) {
  .service-section-title {
    font-size: 2.5rem;
  }
}

.service-section-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

@media (min-width: 640px) {
  .service-section-lead {
    font-size: 1.05rem;
  }
}

/* 3-Column Card Grid Shared Helper */
.service-cards-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .service-cards-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   3. Section 2: Why Choose Us
   -------------------------------------------------------------------------- */
.service-why-section {
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .service-why-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
}

.service-feature-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 4px 20px -4px rgba(9, 20, 38, 0.04);
  transition: all 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(9, 20, 38, 0.08);
  border-color: rgba(13, 148, 136, 0.35);
}

.service-feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #f0fdfa;
  border: 1px solid #ccfbf1;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.service-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #091426;
  margin: 0 0 0.625rem 0;
}

.service-feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Section 3: Conditions We Treat
   -------------------------------------------------------------------------- */
.service-conditions-section {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .service-conditions-section {
    padding-top: 2.5rem;
    padding-bottom: 5.5rem;
  }
}

.service-conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-conditions-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
  }
}

.service-conditions-img-wrap {
  width: 100%;
  height: 360px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(9, 20, 38, 0.08);
  background-color: #f1f5f9;
}

@media (min-width: 640px) {
  .service-conditions-img-wrap {
    height: 420px;
  }
}

@media (min-width: 1024px) {
  .service-conditions-img-wrap {
    height: 440px;
  }
}

.service-conditions-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .service-checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-checklist {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #091426;
  margin: 0;
}

.service-checklist li .material-symbols-outlined {
  color: #0d9488;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Section 4: Treatment Process (Dark Navy Floating Banner)
   -------------------------------------------------------------------------- */
.service-process-section {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .service-process-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
}

.service-process-banner {
  background-color: #091426;
  background-image: radial-gradient(circle at 85% 20%, rgba(13, 148, 136, 0.22) 0%, transparent 60%);
  border-radius: 2rem;
  color: #ffffff;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(9, 20, 38, 0.35);
}

@media (min-width: 640px) {
  .service-process-banner {
    padding: 3.75rem 3rem;
  }
}

@media (min-width: 1024px) {
  .service-process-banner {
    padding: 4.25rem 3.5rem;
  }
}

.service-process-banner .service-section-title {
  color: #ffffff;
}

.service-process-banner .service-section-lead {
  color: #cbd5e1;
}

.service-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .service-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.service-step-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #0d9488;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.service-process-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.service-process-grid p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Section 5: Your First Visit
   -------------------------------------------------------------------------- */
.service-visit-section {
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .service-visit-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
}

.service-visit-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 4px 20px -4px rgba(9, 20, 38, 0.04);
  transition: all 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-visit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(9, 20, 38, 0.08);
}

.service-visit-img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
  margin: 0;
  display: block;
}

.service-visit-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-visit-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #091426;
  margin: 0 0 0.5rem 0;
}

.service-visit-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Section 6: Frequently Asked Questions
   -------------------------------------------------------------------------- */
.service-faq-section {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .service-faq-section {
    padding-top: 2.5rem;
    padding-bottom: 5.5rem;
  }
}

.service-faq-container {
  max-width: 52rem;
  /* 832px wide reading width */
  margin-left: auto;
  margin-right: auto;
}

.service-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.service-faq-item {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(30, 41, 59, 0.08);
  padding: 1.25rem 1.6rem;
  transition: all 0.18s ease;
}

.service-faq-item[open] {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 6px 20px -4px rgba(13, 148, 136, 0.12);
}

.service-faq-summary {
  font-size: 1rem;
  font-weight: 700;
  color: #091426;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.service-faq-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background-color: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.service-faq-item[open] .service-faq-icon {
  background-color: #0d9488;
  color: #ffffff;
  transform: rotate(180deg);
}

.service-faq-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748b;
  margin-top: 0.875rem;
  padding-top: 0.25rem;
}

.service-faq-body p {
  margin: 0 0 0.75rem 0;
}

.service-faq-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Section 7: Bottom CTA Banner (Navy)
   -------------------------------------------------------------------------- */
.service-cta-section {
  background-color: #091426;
  color: #ffffff;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .service-cta-section {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }
}

.service-cta-inner {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.service-cta-eyebrow {
  display: inline-block;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

@media (min-width: 640px) {
  .service-cta-title {
    font-size: 2.65rem;
  }
}

@media (min-width: 1024px) {
  .service-cta-title {
    font-size: 3rem;
  }
}

.service-cta-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 38rem;
  margin: 0 auto 2rem auto;
}

@media (min-width: 640px) {
  .service-cta-lead {
    font-size: 1.1rem;
  }
}

.service-cta-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Responsive Enhancements (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
  .service-hero-btns,
  .service-cta-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .service-hero-btns .service-btn-red,
  .service-hero-btns .service-btn-outline,
  .service-cta-btns .service-btn-red,
  .service-cta-btns .service-btn-outline {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .service-blue-hero {
    padding: 3rem 0 3.5rem !important;
  }

  .service-cta-section {
    padding-top: 3.5rem !important;
    padding-bottom: 4rem !important;
  }
}
