/* ============================================================
   specialty.css
   Page-type styles for the NP specialties HUB and individual
   specialty (LEAF) pages. Link this AFTER style.css so it
   layers on the shared foundation.

   Sections:
     1. HUB  components  (.spec-*)
     2. LEAF components  (.sp-*)
   ============================================================ */


/* ============================================================
   1. HUB  (.spec-*)  - the /specialties/ index page
   ============================================================ */
/* ---- Specialty intro stat strip (STATIC) ---- */
.spec-intro-strip { max-width: 1200px; margin: 40px auto 0; padding: 0 20px; }
.spec-intro-inner {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff; border-radius: 12px; padding: 32px 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.spec-intro-stat { text-align: center; }
.spec-intro-stat .num { font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.spec-intro-stat .lbl { font-size: 0.92rem; opacity: 0.95; }

/* ---- Clinical vs leadership two-up (STATIC) ---- */
.spec-tracks { max-width: 1200px; margin: 0 auto; padding: 48px 20px 8px; }
.spec-tracks .section-header { text-align: center; margin-bottom: 32px; }
.spec-tracks .section-header h2 {
  color: #2c3e50; display: inline-block; padding-bottom: 12px; border-bottom: 3px solid #6366F1;
}
.spec-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-track-card {
  background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.spec-track-card:hover { border-color: #6366F1; box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12); }
.spec-track-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.spec-track-icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}
.spec-track-card h3 { font-size: 1.25rem; color: #2c3e50; }
.spec-track-card p { color: #4a5568; line-height: 1.65; margin-bottom: 14px; }
.spec-track-card ul { margin: 0; padding: 0; }
.spec-track-card li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #4a5568; font-size: 0.97rem; }
.spec-track-card li i { position: absolute; left: 0; top: 4px; color: #6366F1; }

/* ---- Per-card link to the leaf specialty page (build-generated) ---- */
.spec-card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 18px; font-size: 0.92rem; font-weight: 600; color: #6366F1;
  text-decoration: none; background: #EEF2FF; border: 1px solid transparent; border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.spec-card-link i { transition: transform 0.2s ease; }
.spec-card-link:hover {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
}
.spec-card-link:hover i { transform: translateX(4px); }

@media (max-width: 968px) {
  .spec-intro-inner { grid-template-columns: 1fr; gap: 18px; }
  .spec-track-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   2. LEAF  (.sp-*)  - an individual specialty page
   ============================================================ */
/* ---- Breadcrumb back to the hub ---- */
.sp-breadcrumb { max-width: 1200px; margin: 20px auto 0; padding: 0 20px; font-size: 0.9rem; color: #6c757d; }
.sp-breadcrumb a { color: #6366F1; text-decoration: none; font-weight: 600; }
.sp-breadcrumb a:hover { text-decoration: underline; }
.sp-breadcrumb i { font-size: 0.7rem; margin: 0 8px; color: #b0b6c0; }

/* ---- At-a-glance fact band ---- */
.sp-glance { max-width: 1200px; margin: 30px auto 0; padding: 0 20px; }
.sp-glance-inner {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #fff; border-radius: 12px; padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.sp-glance-item { text-align: center; }
.sp-glance-item .num { font-size: 1.8rem; font-weight: 700; line-height: 1.1; margin-bottom: 5px; }
.sp-glance-item .lbl { font-size: 0.82rem; opacity: 0.95; }

/* ---- "What this specialty does" feature rows ---- */
.sp-does { max-width: 1200px; margin: 0 auto; padding: 40px 20px 8px; }
.sp-does .section-header { text-align: center; margin-bottom: 32px; }
.sp-does .section-header h2 { color: #2c3e50; display: inline-block; padding-bottom: 12px; border-bottom: 3px solid #6366F1; }
.sp-does-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sp-does-card {
  background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.sp-does-card:hover { border-color: #6366F1; box-shadow: 0 6px 18px rgba(99,102,241,0.12); transform: translateY(-3px); }
.sp-does-icon {
  width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); margin-bottom: 16px;
}
.sp-does-card h3 { font-size: 1.12rem; color: #2c3e50; margin-bottom: 8px; }
.sp-does-card p { color: #4a5568; line-height: 1.6; font-size: 0.96rem; margin: 0; }

/* ---- Sibling-specialty nav cards ---- */
.sp-siblings { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.sp-siblings .section-header { text-align: center; margin-bottom: 28px; }
.sp-siblings .section-header h2 { color: #2c3e50; display: inline-block; padding-bottom: 12px; border-bottom: 3px solid #6366F1; }
.sp-sibling-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sp-sibling {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #fff; border: 2px solid #e5e7eb; border-radius: 10px;
  text-decoration: none; color: #2c3e50; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s ease;
}
.sp-sibling:hover { border-color: #6366F1; color: #6366F1; transform: translateX(3px); }
.sp-sibling i { color: #6366F1; font-size: 1.1rem; }

@media (max-width: 968px) {
  .sp-glance-inner { grid-template-columns: repeat(2,1fr); }
  .sp-does-grid { grid-template-columns: 1fr; }
  .sp-sibling-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .sp-glance-inner { grid-template-columns: 1fr; }
  .sp-sibling-grid { grid-template-columns: 1fr; }
}
