/* ============================================================
   REFERRING PHYSICIANS PAGE — referring-physicians.css
   ============================================================ */

/* --- HERO -------------------------------------------------- */
.rp-hero { padding: 160px 2rem 90px; }
.rp-hero h1 {
  margin-bottom: 1.25rem;
  max-width: 800px;
}
.rp-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- BODY -------------------------------------------------- */
.rp-body {
  padding: 80px 0 100px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.rp-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

/* --- CONTENT ----------------------------------------------- */
.rp-content { }
.rp-section {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.rp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rp-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.rp-section p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.rp-section p:last-child { margin-bottom: 0; }

/* Conditions grid */
.rp-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.rp-condition-item {
  background: var(--bg-secondary);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
}
.rp-condition-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* --- SIDEBAR ----------------------------------------------- */
.rp-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Referral box */
.rp-referral-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2rem;
}
.rp-referral-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: block;
}
.rp-referral-method {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
}
.rp-referral-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.rp-referral-phone {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  transition: color var(--transition);
}
.rp-referral-phone:hover { color: var(--accent); }
.rp-referral-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.rp-referral-divider {
  height: 1px;
  background: var(--border);
}
.rp-referral-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
.rp-referral-btn + .rp-referral-btn { margin-top: 0.65rem; }

/* Credential stack */
.rp-credential-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.rp-credential {
  background: var(--bg-secondary);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background var(--transition);
}
.rp-credential:hover { background: var(--bg-card); }
.rp-cred-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.rp-cred-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- NAV ACTIVE -------------------------------------------- */
.nav-active { color: #fff !important; }

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .rp-grid { grid-template-columns: 1fr; gap: 3rem; }
  .rp-sidebar { position: static; }
}
@media (max-width: 600px) {
  .rp-hero { padding: 130px 1.5rem 60px; }
  .rp-body { padding: 50px 0 60px; }
  .rp-conditions-grid { grid-template-columns: 1fr; }
}
