/* --- TREATMENTS PAGE (consistent with Home / Providers / Symptoms) --- */

/* =========== HERO =========== */
.treatments-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 0; /* +space */
}
.treatments-hero h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  color: var(--section-heading-color);
  margin-bottom: 1rem;
}
.treatments-hero .lead,
.treatments-hero p {
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* =========== UNIFIED BUTTONS =========== */
.btn, .btn-primary {
  --btn-bg: var(--primary-color);
  --btn-bg-hover: var(--primary-600);
  --btn-text: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: 6px;
  border: 0;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .06s ease;
}
.btn:hover, .btn-primary:hover { background-color: var(--btn-bg-hover); }
.btn:active, .btn-primary:active { transform: translateY(1px); }
/* Keep white text in all states */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible { color: #fff !important; text-decoration: none; }

/* Optional link-style CTA */
.btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 700; color: var(--primary-color); text-decoration: none;
}
.btn-link:hover { color: var(--primary-700); text-decoration: underline; }

/* =========== BENEFITS ROW =========== */
.treatment-benefits {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3.2rem; /* +space */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.benefit {
  grid-column: span 12;
  display: flex; align-items: center; gap: .75rem;
  background: var(--light-background);
  border: 1px solid #e6edf0;
  border-radius: 10px;
  padding: .95rem 1.1rem; /* +space */
}
.benefit img { width: 28px; height: 28px; display: block; }

/* =========== FEATURED TREATMENTS GRID =========== */
.treatments-grid {
  max-width: var(--container-max-width);
  margin: 2.2rem auto 0;       /* +space */
  padding: 0 1.5rem 2.4rem;    /* +space */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;                /* +gap */
}
.treatment-card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 14px;
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.treatment-card:hover { transform: translateY(-3px); box-shadow: var(--box-shadow-medium); }

.treatment-media { position: relative; aspect-ratio: 16 / 9; background: var(--light-background); overflow: hidden; }
.treatment-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.treatment-body { padding: 1.35rem 1.35rem 1.6rem; } /* +space */
.treatment-body h3 { color: var(--section-heading-color); font-size: 1.35rem; margin-bottom: .55rem; }
.treatment-body p  { color: var(--text-color); margin: .35rem 0 .85rem; }
.treatment-points { margin: .6rem 0 0; padding-left: 1rem; list-style: disc; color: var(--text-color); }

/* =========== HOW IT WORKS =========== */
.hiw {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.6rem; /* +space */
}
.hiw h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--section-heading-color);
  margin-bottom: 1.6rem; /* +space */
}
.hiw-steps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.15rem; } /* +gap */
.hiw-step {
  grid-column: span 12;
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 14px;
  padding: 1.35rem; /* +space */
  box-shadow: var(--box-shadow-soft);
}
.hiw-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-color); color: #fff; font-weight: 700; margin-bottom: .6rem;
}

/* =========== FAQ (accordion) — match Symptoms) =========== */
.treatments-faq {
  max-width: 950px;                /* align to Symptoms width */
  margin: 0 auto;
  padding: 0 1.5rem 2.8rem;        /* +space, align rhythm */
}

/* ✨ Updated to match Symptoms: smaller, left-aligned, inset like questions */
.treatments-faq h3 {
  text-align: left;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin: 0 clamp(8px, 2vw, 16px) 0.9rem;
  color: var(--section-heading-color);
  font-weight: 700;
}

/* If you use the collapsible structure (same classes as Symptoms) */
.faq-acc { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }

/* Thin separators (inset left/right like Symptoms) */
.faq-item {
  border-top: 1px solid #e6edf0;
  margin: 0 clamp(8px, 2vw, 16px);
  padding: .35rem 0;               /* a bit more touch room */
}
.faq-item:first-child { border-top: 0; }

/* Question button with left caret; caret adopts text color; subtle hover */
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 0;
  background: transparent; border: 0; text-align: left;
  font-size: 1.05rem;              /* match Symptoms feel */
  font-weight: 700; color: var(--section-heading-color);
  cursor: pointer;
  transition: color .2s ease, text-underline-offset .2s ease;
}
.faq-q::before {
  content: "";
  width: 18px; height: 18px; flex: 0 0 18px;
  /* inline SVG with currentColor so it matches text color */
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 5l7 7l-7 7'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 5l7 7l-7 7'/></svg>") center/contain no-repeat;
  background-color: currentColor;
  transform: rotate(0deg);
  opacity: .9;
  transition: transform .2s ease, opacity .2s ease;
}
/* rotate caret 90° on expand (no big flip) */
.faq-q[aria-expanded="true"]::before { transform: rotate(90deg); opacity: 1; }

/* Subtle hover (no bg highlight) */
.faq-q:hover {
  background: transparent !important;
  color: var(--primary-700);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
}
.faq-q:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; border-radius: 6px; }

/* Answer: indented so it aligns under the question text after the caret */
.faq-a {
  display: none;
  padding: 0 0 1rem 34px;          /* 18px caret + gap */
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
}

/* Fallback styling if your FAQ is still static h4 + p (no .faq-q/.faq-a yet) */
.treatments-faq .faq-item h4 {
  margin: 0; padding: .9rem 0;
  font-size: 1.05rem; font-weight: 700; color: var(--section-heading-color);
}
.treatments-faq .faq-item p {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  line-height: 1.7;
}

/* =========== CTA (two primary buttons, no "or") =========== */
.treatments-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.2rem;  /* +space */
}
.treatments-cta h3 {
  font-size: 1.75rem;
  margin-bottom: .85rem;        /* +space */
  color: var(--section-heading-color);
}
.treatments-cta p { margin-bottom: 1.15rem; color: var(--text-color); }
.treatments-cta .cta-buttons { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* =========== RESPONSIVE =========== */
@media (min-width: 768px) {
  .treatment-card { grid-column: span 6; }
  .benefit { grid-column: span 4; }
  .hiw-step { grid-column: span 4; }
}
@media (min-width: 1024px) {
  .treatment-card { grid-column: span 4; }
}
