/*--------------------------------------------------------------
# Responsive layer — fluid behavior across all viewports
# Loads after header.css / main.css; preserves existing design.
--------------------------------------------------------------*/

:root {
  --ns-btn-bg: #b97f06;
  --ns-gold: #b97f06;
  --accent-color: #b97f06;
}

/* --- Global foundation --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.hero.ns-hero img.ns-hero-bg,
.about-page-hero-image,
.doctor-page-hero-image,
.intro-collage-item img,
.team-card-image,
.surgeons-card-photo img {
  max-width: none;
}

.patient-reviews-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 991px) {
  .patient-reviews-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: unset;
    object-position: center center;
  }

  .patient-reviews-panel {
    padding:
      calc(var(--ns-section-y) / 2)
      var(--ns-page-gutter)
      calc(var(--ns-section-y) / 2)
      var(--ns-page-gutter);
  }
}

.container-xl,
.row > [class*="col-"],
[class*="-copy"],
[class*="-panel"] {
  min-width: 0;
}

section,
.section {
  scroll-margin-top: clamp(4.5rem, 10vh, 6.5rem);
}

.hero:not(.ns-hero) {
  min-height: clamp(18rem, 55vh, 80vh);
  padding: clamp(3rem, 8vh, 5rem) 0;
}

/* --- Home hero --- */
.ns-hero.hero {
  display: block;
  min-height: clamp(560px, 88vh, 920px);
  padding: 0;
}

.ns-hero-bg-alt-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(48%, 640px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 12%,
    rgba(0, 0, 0, 0.55) 30%,
    #000 50%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 12%,
    rgba(0, 0, 0, 0.55) 30%,
    #000 50%,
    #000 100%
  );
}

.ns-hero-bg-alt-media .ns-hero-bg--alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: none;
  mask-image: none;
}

.ns-hero-bg--alt {
  width: auto;
  left: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.ns-hero-highlights-swiper {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.ns-hero-highlights-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.ns-hero-highlights-swiper .ns-hero-highlights {
  display: flex;
  width: 100%;
}

.ns-hero-highlight {
  height: 100%;
}

@media (max-width: 767px) {
  .ns-hero-title .ns-reveal-mask--line .ns-reveal-inner {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .ns-hero-highlights-swiper .ns-hero-highlights {
    display: flex;
    grid-template-columns: none;
    gap: 0;
  }
}

@media (max-width: 991px) {
  .ns-hero-highlights,
  .ns-hero-highlights-swiper .ns-hero-highlights {
    display: flex;
    grid-template-columns: none;
    gap: 0;
  }

  .ns-hero.hero {
    --ns-page-hero-height: clamp(18rem, 34vh, 23rem);
    min-height: var(--ns-page-hero-height);
    height: var(--ns-page-hero-height);
  }

  .ns-hero-inner {
    min-height: 100%;
    height: 100%;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    gap: 0.85rem;
    justify-content: center;
  }

  .ns-hero-copy {
    padding-top: 0;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .ns-hero-highlights-swiper {
    max-width: 100%;
    flex-shrink: 1;
    min-height: 0;
  }

  .ns-hero-bg-alt-media {
    width: 100%;
    left: 0;
    right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ns-hero-bg-alt-media .ns-hero-bg--alt {
    object-fit: cover;
    object-position: center top;
  }

  .procedure-details-page .procedure-overview {
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }
}

@media (max-width: 991px) and (max-height: 520px) {
  .ns-hero.hero {
    --ns-page-hero-height: clamp(19rem, 42vh, 24rem);
  }

  .ns-hero-eyebrow {
    margin-bottom: 0.65rem;
    font-size: clamp(2.75rem, 10vw, 4.5rem);
  }

  .ns-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .ns-hero-inner {
    gap: 0.55rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ns-hero-eyebrow {
    font-size: clamp(4rem, 9vw, 7rem);
  }

  .ns-hero-title {
    font-size: clamp(2.1rem, 4.5vw, 2.75rem);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ns-hero.hero {
    min-height: clamp(480px, 72vh, 720px);
  }

  .ns-hero-eyebrow {
    font-size: clamp(8rem, 14vw, 14rem);
  }

  .ns-hero-title {
    font-size: clamp(2.15rem, 4vw, 3.25rem);
  }
}

@media (max-width: 575px) {
  .ns-hero-inner {
    gap: 0.65rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* --- Feature spotlight (current template) --- */
.feature-spotlight {
  min-height: 0;
  background: #003959;
}

.feature-spotlight-bg,
.feature-spotlight-shade {
  display: none !important;
}

.feature-spotlight-grid {
  display: block;
  min-height: 0;
}

.feature-spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--ns-section-y) / 2) 0;
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: center;
}

.feature-spotlight-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 4.2vw, 2.85rem);
  text-align: center;
  white-space: nowrap;
}

.feature-spotlight-title > span,
.feature-spotlight-title > strong {
  display: inline;
}

.feature-spotlight-title .ns-reveal-mask--line {
  display: inline-block;
  vertical-align: top;
}

.feature-spotlight-category {
  display: none;
}

.feature-spotlight-text {
  margin: 0 0 0.85rem;
  text-align: center;
  line-height: 1.65;
}

.feature-spotlight-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1rem;
  margin-top: 0;
  padding-top: 0.35rem;
}

.feature-spotlight-links a {
  text-decoration: none;
}

.feature-spotlight-links a.feature-spotlight-link {
  text-decoration: underline !important;
  text-underline-offset: var(--ns-link-underline-offset);
  text-decoration-thickness: var(--ns-link-underline-thickness);
}

.feature-spotlight-links a.feature-spotlight-link:hover {
  text-decoration: none !important;
  opacity: 0.7;
}

.feature-spotlight-links a.feature-spotlight-links-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none !important;
}

.feature-spotlight-links-all-text {
  text-decoration: underline;
  text-underline-offset: var(--ns-link-underline-offset);
  text-decoration-thickness: var(--ns-link-underline-thickness);
}

.feature-spotlight-links a.feature-spotlight-links-all:hover .feature-spotlight-links-all-text {
  text-decoration: none;
}

.feature-spotlight-actions {
  display: none;
}

@media (max-width: 389px) {
  .feature-spotlight-title {
    white-space: normal;
  }
}

@media (max-width: 991px) {
  .feature-spotlight .feature-btn,
  .feature-spotlight .feature-btn-solid,
  .feature-spotlight .feature-btn-ghost {
    align-self: center !important;
  }
}

/* --- Split heroes: edge-to-edge photos on mobile --- */
@media (max-width: 991px) {
  .about-page-hero--split .about-page-hero-media--right {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-page-hero--split .about-page-hero-image {
    object-fit: cover;
    object-position: center top;
  }

  .surgeons-page-hero .about-page-hero-image {
    object-position: center top;
  }
}

/* --- Header / logo --- */
.site-logo img {
  max-width: 100%;
  max-height: 82px;
}

@media (max-width: 1199px) {
  .site-logo img {
    max-height: 68px;
  }
}

@media (max-width: 480px) {
  .site-topbar-hours {
    display: none;
  }
}

/* --- Intro showcase --- */
.intro-brand-name {
  max-width: 100%;
}

@media (max-width: 991px) {
  .intro-brand-tag,
  .intro-brand-sub {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
  }

  .intro-brand-sub {
    font-size: clamp(0.62rem, 3.15vw, 0.85rem);
    letter-spacing: 0.08em;
  }
}

/* --- Footer --- */
@media (max-width: 1199px) and (min-width: 992px) {
  .site-footer-top-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.25rem;
  }
}

/* --- Patient reviews --- */
@media (max-width: 991px) {
  .patient-reviews-panel {
    padding:
      calc(var(--ns-section-y) / 2)
      var(--ns-page-gutter)
      calc(var(--ns-section-y) / 2)
      var(--ns-page-gutter);
  }
}

@media (max-width: 414px) {
  .patient-reviews-footer {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  .patient-reviews-nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- Meet team --- */
@media (max-width: 991px) {
  .meet-team:not(.meet-team--listing) {
    margin-top: 0;
  }
}

/* --- Area / plastic surgery grids --- */
@media (max-width: 575px) {
  .area-procedure-grid,
  .area-hub-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 991px) {
  .plastic-surgery-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
  }
}

/* --- Doctor tabs: tiny screens --- */
@media (max-width: 991px) {
  .doctor-details-page .doctor-tabs-nav .nav-link,
  .procedure-details-page .doctor-tabs-nav .nav-link {
    white-space: normal;
    line-height: 1.2;
    hyphens: auto;
    padding: 0.7rem 0.3rem !important;
    min-height: 2.85rem;
  }
}

@media (max-width: 374px) {
  .doctor-details-page .doctor-tabs-nav.nav-tabs,
  .procedure-details-page .doctor-tabs-nav.nav-tabs {
    flex-wrap: wrap !important;
  }

  .doctor-details-page .doctor-tabs-nav .nav-item,
  .procedure-details-page .doctor-tabs-nav .nav-item {
    flex: 1 1 50% !important;
  }
}

/* --- Book consultation --- */
.book-consult-form {
  width: 100%;
  max-width: 28rem;
}

/* --- Large monitors: prevent over-stretch --- */
@media (min-width: 1920px) {
  .container-xl {
    max-width: var(--ns-page-max);
  }
}
