/* =========================================================
   Clinica Joelle — Location page details band
   Loaded only on the Location page. The slider has its own
   stylesheet because the pattern can be used anywhere.
   ========================================================= */

/* Mirrors the slider: that one runs off the right edge, this one runs off the
   left, with the inset on the opposite side. */
.loc-band {
  --loc-inset: clamp(16px, 3vw, 64px);
  --loc-gap: clamp(35px, 10vw, 100px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw + var(--loc-inset));
  /* Space above only — the band sits flush against whatever follows it. */
  margin-top: var(--loc-gap);
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  background: #000;
  color: #fff;
}

.loc-band-copy {
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
  align-self: center;
}
.loc-band-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.25;
  color: #fff;
  margin: 0 0 14px;
}
.loc-band-copy > p {
  color: #e6e1da;
  margin: 0 0 28px;
  max-width: 42ch;
}

.loc-band-details {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.loc-band-details li {
  display: grid;
  grid-template-columns: 22px 1fr;   /* icons share a column so the text aligns */
  gap: 14px;
  align-items: start;
  line-height: 1.55;
}
.loc-band-details svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #c7bfb2;
}
.loc-band-details a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.loc-band-details a:hover { border-bottom-color: #fff; }

.loc-band-link {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.loc-band-link:hover { background: #fff; color: #000; }

/* The clinic photos are portrait; the panel is a wide column. Cover crops it
   to fill rather than letterboxing black bars beside a tall image. */
.loc-band-media { position: relative; min-height: 320px; }
.loc-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .loc-band {
    grid-template-columns: 1fr;
    margin-right: calc(50% - 50vw);
  }
  .loc-band-media { min-height: 260px; }
}

/* This stylesheet loads only on the Location page, so scoping isn't needed:
   the closing CTA's own top margin would otherwise stack on top of the band's
   margin-bottom and reopen the gap this was meant to close. */
.ps-cta { margin-top: 0; }
