/* pages/know-us.css — Know Us page: scrolling slices + breaks */

/* Know Us pages that use scrolling image slices */
.firm-scroll-page,
.admin-page{
  padding-top: 0 !important;
}

/* Text breaks between image slices */
.firm-break{
  padding: 44px 0;
}

.firm-break-inner{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.firm-break-text{
  margin: 0 0 14px 0;
  text-align: justify;
}

/* Project section logo: top-right, wrapping, larger, NOT rounded */
.firm-inline-logo{
  float: right;
  width: 240px;
  max-width: 40vw;
  height: auto;
  margin: 0 0 14px 22px;
  border-radius: 0;
}

.firm-inline-photo{
  float: left;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 18px 12px 0;
}

/* Clear floats */
.firm-break-inner::after{
  content: "";
  display: block;
  clear: both;
}

/* Inline email (mail icon + email) */
.firm-email-inline{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;

  font-weight: 700;
  text-decoration: none;
}

.firm-email-inline:hover{
  text-decoration: underline;
}

.firm-email-inline img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Work-with-us break: text on left, email on right */
.firm-break-work .firm-break-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.firm-break-work .firm-break-text{
  flex: 1;
  margin: 0;
}

.firm-break-work .firm-email-inline{
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

/* Person profile header (name + role) */
.firm-name{
  margin: 0 0 4px 0;
}

.firm-role{
  margin: 0 0 14px 0;
  font-weight: 500;
  opacity: 0.85;
}

/* Person header: name + role + social icons */
.firm-person-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.firm-person-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  margin-top: 4px;
}

.firm-person-link span{
  opacity: 0.85;
}

.firm-person-links img{
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.firm-person-links img:hover{
  opacity: 1;
}

.firm-person-link:hover span{
  opacity: 1;
  text-decoration: underline;
}

/* Work-with-us email: match person link style */
.firm-break-work .firm-email-inline{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.firm-break-work .firm-email-inline img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.firm-break-work .firm-email-inline:hover img{
  opacity: 1;
}

.firm-break-work .firm-email-inline span{
  opacity: 0.85;
}

.firm-break-work .firm-email-inline:hover span{
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px){
  .firm-break-work .firm-break-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .firm-break-work .firm-email-inline{
    margin-top: 10px;
  }

  .firm-inline-logo{
    float: none;
    display: block;
    margin: 0 auto 14px;
    width: 180px;
    max-width: 70%;
  }

  .firm-inline-photo{
    float: none;
    display: block;
    margin: 0 auto 14px;
    width: 200px;
    height: 200px;
  }

  .firm-break-text{
    text-align: left;
  }
}

/* ================= FOOTER GAP TWEAKS (moved from footer.css) ================= */

/* No gap between last slice and footer (scroll-slice pages) */
.firm-scroll-page{
  padding-bottom: 0;
}

.firm-scroll-page .firm-slice-4{
  margin-bottom: 0;
}

/* Remove the global footer top margin ONLY when footer follows the scroll-slice page */
.firm-scroll-page + .footer{
  margin-top: 0;
}

/* Reduce space between Work with us section and footer (Know Us page) */
.firm-break-work{
  margin-bottom: 24px;
}
