/* Audit fixes: layout, header/footer, menus, gallery, partners, doctor profiles */

body.sum-site-responsive {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.sum-site-responsive > .sum-main {
  flex: 1 0 auto;
  display: block;
}

body.sum-site-responsive > .sum-footer {
  margin-top: auto;
  position: relative;
  z-index: 4;
}

/* Header reads as its own bar, separate from page and footer */
.sum-header-premium .header-main-eight,
.sum-header-premium .sticky-active {
  background: #0c2348;
  box-shadow: 0 10px 28px rgba(8, 20, 48, 0.28);
}

.sum-header-premium .sum-header-logo-img {
  width: min(230px, 46vw);
  height: auto;
}

/* Departments menu stays a panel, not a full-page cover */
.sum-header-v8 .sum-ref-main-nav li.sum-dept-mega-parent {
  position: static;
}

.sum-header-v8 .sum-ref-main-nav .sum-dept-mega-dropdown {
  width: min(920px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px);
  max-height: min(62vh, 460px);
  overflow: auto;
  overscroll-behavior: contain;
}

/* Call button only — no second “Emergency” label over the footer */
.sum-sticky-actions__btn--emergency {
  width: 56px;
  height: 56px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.sum-sticky-actions__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sum-footer__bar-inner {
  padding-right: 84px;
}

.scrollToTop.scroll-bottom {
  right: 18px;
  bottom: 84px;
}

/* Footer social icons */
.sum-footer__social {
  gap: 10px;
}

.sum-footer__social a {
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 1;
}

.sum-footer__social a i,
.sum-footer__social .sum-social-x,
.sum-footer__social .sum-social-x svg {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  display: block;
}

.sum-footer__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Homepage hero type scale */
.sum-hero-slide--lead-showcase .sum-hero-lead-title,
.sum-hero-copy--lead h1.sum-hero-lead-title {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
}

.sum-hero-slide--lead-showcase .sum-hero-lead-accent {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.sum-hero-slide--lead-showcase .sum-hero-lead-desc {
  font-size: 1.05rem;
  line-height: 1.5;
}

.sum-hero-trust-badge {
  cursor: default;
  pointer-events: none;
}

/* Keep animated sections readable if the animation library has not run yet */
.sum-site-responsive .wow {
  visibility: visible;
}

@media (max-width: 991.98px) {
  .sum-hero-v8.sum-hero-clean .banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--sum-hero-banner-h, 420px);
    overflow: hidden;
  }

  .sum-hero-v8.sum-hero-clean .banner-content > .sum-hero-banner-img,
  .sum-hero-v8.sum-hero-clean .sum-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sum-hero-v8.sum-hero-clean .banner-content > .sum-hero-banner-img {
    object-fit: cover;
  }

  .sum-hero-v8.sum-hero-clean .banner-text {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 1366px) and (max-height: 800px) {
  .sum-hero-v8.sum-hero-clean {
    min-height: 0;
  }

  .sum-hero-v8.sum-hero-clean .banner-content {
    min-height: 420px;
  }
}

/* Crawlable specialty panels and explore links */
.sum-facility-panel[hidden] {
  display: none !important;
}

.sum-facility-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
  color: #0e7fa0;
  text-decoration: none;
}

.sum-home-explore {
  padding: 28px 0 36px;
  background: #f4f7fb;
}

.sum-home-explore h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.sum-home-explore ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sum-home-explore a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(39, 71, 125, 0.16);
  color: #16325c;
  font-weight: 700;
  text-decoration: none;
}

.sum-home-explore a:hover {
  border-color: #0e7fa0;
  color: #0e7fa0;
}

/* Scheme details button */
.sum-home-corp__cta--outline {
  background: #ffffff;
  color: #0d1b3f !important;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.sum-home-corp__cta--outline:hover {
  background: #e7f8fc;
  color: #0e7fa0 !important;
}

/* Partners page: sections stack instead of overlapping the hero */
body.sum-partners-page .sum-hp-benefits {
  margin-top: 28px;
}

body.sum-partners-page .sum-hp-partner-card,
body.sum-partners-page .sum-hp-segment,
body.sum-partners-page .sum-hp-benefit {
  position: relative;
  overflow: hidden;
}

.sum-hp-partner-card__logo img {
  width: 140px;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
}

/* Gallery thumbs keep a consistent frame */
.sum-gallery-card img,
.sum-gallery-album-card__media {
  aspect-ratio: 4 / 3;
}

.sum-gallery-card img,
.sum-gallery-album-card__media img,
.sum-gallery-event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* About plaques: equal type, space before the next section */
.sum-about-trio {
  margin-bottom: 12px;
}

.sum-plaque {
  min-height: 0;
}

.sum-plaque__body > p,
.sum-plaque__body--center > p,
.sum-plaque__lead {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
}

.sum-plaque__lead {
  margin-bottom: 10px !important;
  font-weight: 700;
}

.sum-about-leadership {
  margin-top: 12px;
}

/* Doctor profiles: less empty banner, appointment stays visible */
.sum-doctor-profile-page .sum-dprofile-banner {
  padding: 18px 0 24px;
}

.sum-doctor-profile-page .sum-dprofile-main {
  margin-top: 20px;
}

.sum-doctor-profile--page .sum-doctor-profile__hero-grid {
  align-items: start;
}

.sum-doctor-profile--page,
.sum-doctor-profile--page .sum-doctor-profile__hero {
  overflow: visible;
}

.sum-doctor-profile__btn--primary {
  background: #0b6f8a;
  color: #ffffff !important;
  font-size: 1rem;
  padding: 14px 22px;
  box-shadow: 0 10px 24px rgba(11, 111, 138, 0.35);
}

.sum-doctor-profile-page .sum-doctor-profile__actions {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  margin-top: 8px;
}

@media (max-width: 991px) {
  .sum-header-v8 .sum-ref-main-nav .sum-dept-mega-dropdown {
    max-height: 70vh;
  }

  .sum-footer__bar-inner {
    padding-right: 0;
    padding-bottom: 72px;
  }

  .sum-home-explore ul {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .sum-doctor-profile-page .sum-dprofile-banner {
    padding-bottom: 16px;
  }

  .sum-doctor-profile-page .sum-dprofile-main {
    margin-top: 12px;
  }
}
