/* ==========================================================================
   Hospitals page styles
   ========================================================================== */

/* ---------- Hospitals grid ---------- */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.hospital-card {
  background: #fff;
  border: 1px solid var(--rfa-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.hospital-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
}

.hospital-photo {
  background: var(--rfa-mint);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.hospital-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hospital-card:hover .hospital-photo img {
  transform: scale(1.05);
}

.hospital-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hospital-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rfa-deep);
  margin: 0 0 8px;
  line-height: 1.35;
}
.hospital-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--rfa-mid);
  font-weight: 600;
  margin: 0 0 12px;
}
.hospital-location svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}
.hospital-specialties {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rfa-ink-soft);
  line-height: 1.55;
}
.hospital-specialties strong { color: var(--rfa-deep); }

/* ---------- Why list ---------- */
.why-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  max-width: 800px;
  margin-inline: auto;
}
.why-list li {
  position: relative;
  padding: 18px 20px 18px 52px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rfa-border);
  font-size: 0.95rem;
  color: var(--rfa-ink-soft);
  line-height: 1.55;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.why-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 26px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rfa-light);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-list li strong { color: var(--rfa-deep); }

/* ---------- Planning CTA ---------- */
.planning-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---------- CTA strip (safety fallback) ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--rfa-deep), var(--rfa-primary));
  color: #fff;
  padding-block: 50px;
}
.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-strip h3 {
  color: #fff;
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
}
.cta-strip p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 560px;
}
@media (max-width: 600px) {
  .cta-strip-inner { flex-direction: column; text-align: center; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 500px) {
  .hospitals-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-list li { padding-left: 46px; font-size: 0.9rem; }
}