/* Savimind-only demo variations. The original CEVEPE visual system lives in
 * cevepe-original.css (captured from the public site with SHA-256 manifest).
 * Do not copy or override original presentation rules beyond integration needs.
 */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 26px;
}
.branch-location {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #3f4142;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  overflow: hidden;
}
.branch-location .branch-map {
  display: block;
  flex: none;
  min-height: 0;
  height: 310px;
  width: 100%;
  background: #e8f3fa;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.branch-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}
.branch-location .fb-card {
  flex: 1;
  min-width: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
}
@media (max-width: 760px) {
  .fb-grid { grid-template-columns: 1fr; gap: 18px; }
  .branch-location .branch-map { height: 270px; }
}
@media (max-width: 420px) {
  .branch-location .branch-map { height: 235px; }
}

/*
 * Editorial hero caption stays OUTSIDE .hero-photo's clip-path.
 * On desktop it is a branded callout over the lower cyan panel; on mobile
 * it becomes its own full-width row below the photograph.
 */
.hero { position: relative; }
.hero > .hero-photo-caption {
  position: absolute;
  left: clamp(18px, 3.4vw, 54px);
  bottom: clamp(36px, 10%, 85px);
  z-index: 5;
  box-sizing: border-box;
  display: block;
  width: max-content;
  max-width: min(31%, 360px);
  min-width: 0;
  margin: 0;
  padding: 14px 19px;
  background: #fff;
  color: #075f92;
  border-left: 4px solid #05a9d4;
  box-shadow: 0 6px 21px rgba(4, 39, 65, .12);
  font-size: clamp(12px, .95vw, 14px);
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: break-word;
  white-space: normal;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .hero > .hero-photo-caption {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 13px 17px;
    box-shadow: none;
    font-size: 13px;
  }
  .hero > .hero-copy { grid-column: 1; grid-row: 3; }
}

/* The CEVEPE source forces header social icons past 320px; footer retains them. */
@media (max-width: 560px) {
  .topbar-social { display: none; }
}
