/* =========================================================
   Sterling Specialist Hospital — healthcare identity
   Deep teal/blue accents, calm and clinical, Fraunces for warmth
   ========================================================= */

body.hospital { background: var(--paper); }

.sh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.sh-header .brand-mark__glyph { color: var(--sh-primary); }
.sh-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.sh-nav a { color: var(--ink-soft); padding: 6px 0; }
.sh-nav a:hover, .sh-nav a.active { color: var(--sh-primary); }
.sh-nav__back { display: flex; align-items: center; gap: 6px; color: var(--stone) !important; }
.sh-nav__back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.btn-sh {
  background: var(--sh-primary);
  color: #fff;
}
.btn-sh:hover { background: var(--sh-primary-deep); }

.emergency-bar {
  background: var(--sh-primary-deep);
  color: #cfe8e0;
  font-size: 13px;
  text-align: center;
  padding: 9px 0;
}
.emergency-bar strong { color: #fff; }
.emergency-bar a { color: #9fd9c9; font-weight: 600; }

/* ---------- Hero ---------- */
.sh-hero {
  position: relative;
  padding: 84px 0 90px;
  overflow: hidden;
}
.sh-hero__bg { position: absolute; inset: 0; z-index: -1; }
.sh-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.sh-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,39,51,0.82) 0%, rgba(13,39,51,0.6) 55%, rgba(248,245,239,1) 100%);
}
.sh-hero__inner { max-width: 680px; position: relative; }
.sh-hero .eyebrow { color: #9fd9c9; }
.sh-hero h1 { font-size: clamp(38px, 6vw, 60px); color: #fff; margin-bottom: 22px; }
.sh-hero h1 em { font-style: italic; color: #9fd9c9; font-weight: 400; }
.sh-hero p { color: #e4eeec; font-size: 17px; line-height: 1.6; max-width: 520px; margin-bottom: 32px; }
.sh-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-hero .btn-hero-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.sh-hero .btn-hero-ghost:hover { background: rgba(255,255,255,0.2); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.trust-strip__item { display: flex; align-items: center; gap: 9px; }
.trust-strip__item .icon { width: 18px; height: 18px; color: var(--sh-teal); }

/* ---------- Partners slider ---------- */
.partners-section {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
}
.partners-section__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 26px;
}

/* ---------- Section heading (shared pattern) ---------- */
.section { padding: 88px 0; }
.section--tint-sh { background: var(--sh-tint); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--ink); }
.section-head p { max-width: 420px; color: var(--stone); font-size: 15px; }

/* Centered variant — heading + subtitle stacked, used for sections with a
   single centered intro (process steps, FAQs) rather than the usual
   two-column heading-left/description-right layout. */
.section-head--center {
  display: block;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .ledger { margin-bottom: 22px; }
.section-head--center p { max-width: none; margin: 0 auto; }

/* ---------- Departments ---------- */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .departments-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .departments-grid { grid-template-columns: repeat(2, 1fr); } }

.dept-card {
  background: var(--paper-raised);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dept-card:hover { border-color: var(--sh-teal); transform: translateY(-2px); }
.dept-card.active { border-color: var(--sh-primary); background: var(--sh-tint); }
.dept-card .icon { width: 24px; height: 24px; color: var(--sh-primary); }
.dept-card__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dept-card__desc { font-size: 12.5px; color: var(--stone); line-height: 1.4; }

/* ---------- Board of Directors page ---------- */
.board-intro {
  background: var(--sh-primary-deep);
  padding: 72px 0 64px;
}
.board-intro .eyebrow { color: #9fd9c9; }
.board-intro h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); margin: 10px 0 16px; }
.board-intro p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 620px; line-height: 1.6; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .board-grid { grid-template-columns: 1fr; } }

.board-card {
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.board-card__photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--sh-tint);
}
.board-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card__name { font-size: 17px; margin-bottom: 4px; }
.board-card__role { font-size: 12.5px; font-weight: 600; color: var(--sh-teal); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.board-card__bio { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; text-align: left; }

/* ---------- Doctors slider ---------- */
.doctors-slider {
  background: var(--sh-primary-deep);
  border-radius: var(--radius-lg);
  padding: 36px 36px 30px;
  position: relative;
}
.doctors-slider__viewport { overflow: hidden; }
.doctors-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.doctors-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .doctors-slide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .doctors-slide { grid-template-columns: 1fr; } }

.doctors-slider__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.doctors-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.doctors-slider__dot:hover { background: rgba(255,255,255,0.5); }
.doctors-slider__dot.active { background: var(--sh-teal); transform: scale(1.25); }

.doctor-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doctor-card__media { aspect-ratio: 4/3; overflow: hidden; background: rgba(255,255,255,0.08); }
.doctor-card__media img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doctor-card__name { font-size: 17px; color: #fff; }
.doctor-card__title { font-size: 13px; color: var(--sh-teal); font-weight: 600; }
.doctor-card__dept { font-size: 12.5px; color: rgba(255,255,255,0.55); }
.doctor-card__days { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.day-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-book-doctor {
  background: var(--sh-teal);
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 11px;
  font-size: 13.5px;
}
.btn-book-doctor:hover { background: #327064; }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card { border-radius: var(--radius-md); overflow: hidden; background: var(--paper-raised); box-shadow: var(--shadow-soft); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__date { font-family: var(--font-mono); font-size: 11.5px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card__title { font-size: 18px; margin: 10px 0 8px; }
.post-card__excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 10px 0 20px; }
.split__copy p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

.icon { display: inline-flex; width: 18px; height: 18px; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Appointment modal ---------- */
.appt-modal__header { padding: 28px 28px 0; }
.appt-modal__doctor-name { font-size: 22px; margin-bottom: 4px; }
.appt-modal__doctor-title { color: var(--sh-teal); font-weight: 600; font-size: 14.5px; }
.appt-form { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 14.5px;
  color: var(--ink);
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--sh-primary); }
.form-field textarea { resize: vertical; min-height: 70px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

/* ---------- Hero trust strip (avatars + rating) ---------- */
.sh-hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.sh-hero__avatars { display: flex; }
.sh-hero__avatars img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  object-fit: cover;
  margin-left: -10px;
}
.sh-hero__avatars img:first-child { margin-left: 0; }
.sh-hero__trust-text { font-size: 13px; color: #e4eeec; }
.sh-hero__stars { color: #f5b942; letter-spacing: 1px; font-size: 13px; display: block; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--sh-primary-deep);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-item { display: flex; align-items: center; gap: 14px; }
.stat-item .icon { width: 26px; height: 26px; color: var(--sh-teal); flex-shrink: 0; }
.stat-item__number { font-family: var(--font-display); font-size: 30px; color: #fff; line-height: 1; }
.stat-item__label { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---------- Why choose us (checklist split) ---------- */
.why-us {
  background: var(--sh-primary-deep);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .why-us { grid-template-columns: 1fr; padding: 36px 26px; gap: 30px; } }
.why-us__copy .eyebrow { color: #9fd9c9; }
.why-us__copy h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 16px; }
.why-us__copy > p { color: rgba(255,255,255,0.7); font-size: 15.5px; line-height: 1.6; margin-bottom: 22px; }
.why-us__checklist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.why-us__checklist li { display: flex; gap: 12px; align-items: flex-start; color: #fff; font-size: 14.5px; line-height: 1.5; list-style: none; }
.why-us__checklist .icon { width: 18px; height: 18px; color: var(--sh-teal); flex-shrink: 0; margin-top: 2px; }
.why-us__media { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.why-us__media img { width: 100%; height: 100%; object-fit: cover; }
.why-us__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--sh-teal); color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.why-us__badge strong { display: block; font-size: 22px; font-family: var(--font-display); }
.why-us__badge span { font-size: 11.5px; }

/* ---------- Process steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
.step-item { text-align: center; padding: 0 12px; }
.step-item__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sh-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-item__icon .icon { width: 24px; height: 24px; }
.step-item__label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sh-teal); margin-bottom: 8px; }
.step-item__title { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.step-item__desc { font-size: 13px; color: var(--stone); line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 780px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.testimonial-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sh-tint); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--sh-primary); font-weight: 600; font-size: 15px;
}
.testimonial-card__name { font-size: 14.5px; font-weight: 600; }
.testimonial-card__role { font-size: 12.5px; color: var(--stone); }
.testimonial-card__quote { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.testimonial-card__stars { color: #f5b942; letter-spacing: 1px; font-size: 14px; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.faq-item__q .icon { width: 18px; height: 18px; color: var(--sh-teal); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .faq-item__q .icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.open .faq-item__a { padding-bottom: 20px; }

/* ---------- Newsletter bar ---------- */
.newsletter-bar {
  background: var(--sh-primary-deep);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-bar__copy { display: flex; align-items: center; gap: 14px; max-width: 480px; flex: 1 1 260px; }
.newsletter-bar__icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.newsletter-bar__icon .icon { width: 18px; height: 18px; }
.newsletter-bar__title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.newsletter-bar__desc { color: rgba(255,255,255,0.6); font-size: 13px; }
.newsletter-form { display: flex; gap: 0; flex: 1 1 320px; max-width: 420px; min-width: 0; }
@media (max-width: 640px) {
  .newsletter-bar { padding: 26px 22px; }
  .newsletter-bar__copy,
  .newsletter-form { flex: 1 1 100%; max-width: 100%; }
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 999px 0 0 999px;
  border: none;
  font-size: 14px;
}
.newsletter-form button {
  padding: 13px 22px;
  border-radius: 0 999px 999px 0;
  background: var(--sh-teal);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #327064; }

/* ---------- Footer (navy, multi-column) ---------- */
body.hospital .site-footer {
  background: var(--sh-primary-deep);
  color: rgba(255,255,255,0.65);
}
body.hospital .site-footer__brand .brand-mark__glyph { color: #9fd9c9; }
body.hospital .site-footer__brand .brand-mark__text { color: #fff; }
body.hospital .site-footer__tagline { color: rgba(255,255,255,0.55); }
body.hospital .site-footer__heading { color: #fff; }
body.hospital .site-footer__links a,
body.hospital .site-footer__col a,
body.hospital .site-footer__col p { color: rgba(255,255,255,0.65); }
body.hospital .site-footer__links a:hover,
body.hospital .site-footer__col a:hover { color: #fff; }
body.hospital .site-footer__emergency a { color: #9fd9c9; }
body.hospital .site-footer__grid { border-color: rgba(255,255,255,0.12); }
body.hospital .site-footer__bottom { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.45); }
.site-footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__socials a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.site-footer__socials a:hover { background: var(--sh-teal); }
.site-footer__socials .icon { width: 15px; height: 15px; }

@media (max-width: 480px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.slot-btn {
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-family: var(--font-mono);
  text-align: center;
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.slot-btn:hover:not(:disabled) { border-color: var(--sh-primary); }
.slot-btn.selected { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }
.slot-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.btn-submit-sh {
  background: var(--sh-primary);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 15px;
}
.btn-submit-sh:hover { background: var(--sh-primary-deep); }
.btn-submit-sh:disabled { opacity: 0.55; cursor: not-allowed; }

.modal-success .icon { width: 56px; height: 56px; color: var(--sh-primary); margin: 0 auto 20px; }
.modal-success { padding: 48px 32px; text-align: center; }
.modal-success h3 { font-size: 22px; margin-bottom: 10px; }
.modal-success p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer accent (Hospital pages) ---------- */
.site-footer { --footer-accent: var(--sh-teal); }
.site-footer__emergency { color: #f0c9c0; font-weight: 600; }
.site-footer__emergency a { color: #fff; }
