/* =====================================================
   PAGE DETAIL STYLES — Inflexion Health
   Shared styles for service & procedure detail pages
   ===================================================== */

/* --- Page Hero --- */
/* !important overrides the global section:nth-child(even) background rule */
.page-hero {
  background: var(--navy) !important;
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* --- Outline button on dark backgrounds ---
   Global `.btn-outline` in styles.css uses navy text + navy-alpha border,
   which becomes invisible against the dark `.page-hero` and `.cta-band`
   backgrounds — only the hover state (teal) makes the button visible.
   Re-colour the resting state to white so every secondary CTA on every
   subpage is legible at first glance. This scope only affects buttons
   *inside* those two dark sections, so the light-background usage of
   `.btn-outline` elsewhere on the site is untouched. */
.page-hero .btn-outline,
.cta-band .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.03);
}
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover {
  color: #ffffff;
  border-color: var(--teal);
  background: rgba(42,180,192,0.18);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(42,180,192,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(42,180,192,0.07) 0%, transparent 60%),
    linear-gradient(rgba(42,180,192,0.04) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(42,180,192,0.04) 1px, transparent 1px) 0 0 / 60px 60px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.65rem; }
.page-hero-icon {
  width: 64px; height: 64px;
  background: rgba(42,180,192,0.15);
  border: 1px solid rgba(42,180,192,0.3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2rem,4.5vw,3.2rem);
  font-weight: 800;
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-hero h1 span { color: var(--teal); }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}
.hero-meta-item i { color: var(--teal); font-size: 1rem; }

/* --- Page Sections --- */
.page-section { padding: 5rem 0; }
.page-section.bg-light { background: var(--off-white); }
.page-section.bg-white { background: var(--white); }
.page-section.bg-navy { background: var(--navy); }

/* --- Section Intro --- */
.section-intro { max-width: 680px; margin-bottom: 3.5rem; }
.section-intro .section-label { margin-bottom: 0.5rem; }
.section-intro .section-title { margin-bottom: 0.75rem; }
.section-intro p { color: var(--text-mid); font-size: 1rem; line-height: 1.8; }

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.two-col-text h2 { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 700; margin-bottom: 1rem; }
.two-col-text p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.8; }
.two-col-text ul { margin: 1rem 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.two-col-text ul li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }
.two-col-text ul li::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 0.45rem; flex-shrink: 0; }

/* --- Info cards grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy); }
.info-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* --- Steps / Process --- */
.steps { display: flex; flex-direction: column; gap: 2rem; }
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--navy); }
.step-body p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

/* --- Conditions tags cloud --- */
.conditions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cond-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(42,180,192,0.25);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
}
.cond-tag i { font-size: 0.8rem; }

/* --- FAQ Accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(42,180,192,0.3); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  gap: 1rem;
}
.faq-q i { color: var(--teal); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.5rem 1.25rem; }
.faq-a p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; }

/* --- CTA Band --- */
/* !important overrides the global section:nth-child(even) background rule */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, rgba(42,180,192,0.2) 100%) !important;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(42,180,192,0.04) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, rgba(42,180,192,0.04) 1px, transparent 1px) 0 0 / 50px 50px;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Evidence Badge --- */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42,180,192,0.1);
  border: 1px solid rgba(42,180,192,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--teal);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.evidence-badge i { font-size: 0.85rem; }

/* --- Stat strip --- */
.stat-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat-pill {
  background: rgba(42,180,192,0.08);
  border: 1px solid rgba(42,180,192,0.2);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
}
.stat-pill strong { color: var(--teal); font-size: 1.1rem; font-weight: 800; }
.stat-pill span { font-size: 0.8rem; color: var(--text-mid); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
  .page-hero { padding: 8rem 0 4rem; }
}
@media (max-width: 600px) {
  .page-section { padding: 3.5rem 0; }
  .cta-band { padding: 3.5rem 0; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem; }
}

/* =====================================================
   INJECTION PROCEDURE PAGES
   Shared styles for hyaluronic-acid, prp, cingal and
   corticosteroid procedure pages.
   ===================================================== */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.condition-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.condition-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.condition-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
}
.condition-card h3 i { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; }
.condition-card p { color: var(--text-mid); font-size: 0.94rem; line-height: 1.65; margin: 0; }

.callout-card {
  background: linear-gradient(135deg, var(--teal-light) 0%, #ffffff 100%);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.callout-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.callout-card h3 i { color: var(--teal); }
.callout-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}
.callout-card p:last-child { margin-bottom: 0; }

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.numbered-list li {
  counter-increment: step;
  padding-left: 3.25rem;
  position: relative;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.numbered-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.numbered-list li strong { color: var(--navy); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feature-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.65;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.feature-list li strong { color: var(--navy); }

.clinician-note {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}
.clinician-note-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.clinician-note-header i {
  font-size: 1.75rem;
  color: var(--teal);
  flex-shrink: 0;
}
.clinician-note-header h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0;
}
.clinician-note p {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.clinician-note p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .callout-card, .clinician-note { padding: 1.25rem 1.35rem; }
  .numbered-list li { padding-left: 2.85rem; }
  .numbered-list li::before { width: 32px; height: 32px; font-size: 0.85rem; }
}
